QGroupBox styleGroup = new QGroupBox(tr("GUI Style"));
styleFormat = new QComboBox();
styleFormat.addItems(styles);
styleFormat.activated.connect(this, "styleSelected(String)");
standardPalette = new QCheckBox();
standardPalette.setText(tr("Use standard palette"));
standardPalette.clicked.connect(this, "standardPaletteChanged()");
QFormLayout styleLayout = new QFormLayout();
styleLayout.addWidget(styleFormat);
styleLayout.addWidget(standardPalette);
styleGroup.setLayout(styleLayout);
QGroupBox tagBehaviorGroup = new QGroupBox(tr("Tag Behavior"));
tagBehavior = new QComboBox();
tagBehavior.addItem(tr("Do nothing"),"DoNothing");
tagBehavior.addItem(tr("Count tags & do not hide inactive"),"NoHideInactiveCount");
tagBehavior.addItem(tr("Count tags & hide inactive"),"HideInactiveCount");
tagBehavior.addItem(tr("Color active tags"),"ColorActive");
QFormLayout tagLayout = new QFormLayout();
tagLayout.addWidget(tagBehavior);
tagBehaviorGroup.setLayout(tagLayout);
// Date/Time settings
QGroupBox datetimeGroup = new QGroupBox(tr("Date/Time Format"));
dateFormat = new QComboBox();
for (int i=0; i<dformats.size(); i++) {
dateFormat.addItem(tr(dformats.get(i)));
}
timeFormat = new QComboBox();
for (int i=0; i<tformats.size(); i++) {
timeFormat.addItem(tr(tformats.get(i)));
}
QFormLayout formatLayout = new QFormLayout();
formatLayout.addWidget(dateFormat);
formatLayout.addWidget(timeFormat);
datetimeGroup.setLayout(formatLayout);
mimicEvernote = new QCheckBox(tr("Mimic Evernote Selection Behavior (Requires Restart)"));
showSplashScreen = new QCheckBox(tr("Show Splash Screen on Startup"));
showTrayIcon = new QCheckBox(tr("Minimize To Tray"));
minimizeOnClose = new QCheckBox(tr("Close To Tray"));
if (!QSystemTrayIcon.isSystemTrayAvailable()) {
showTrayIcon.setEnabled(false);
minimizeOnClose.setEnabled(false);
}
verifyDelete = new QCheckBox(tr("Verify Deletes"));
startMinimized = new QCheckBox(tr("Start Minimized"));
pdfPreview = new QCheckBox(tr("Display PDF Documents Inline"));
checkForUpdates = new QCheckBox(tr("Check For Updates At Startup"));
newNoteWithTags = new QCheckBox(tr("Create New Notes With Selected Tags"));
anyTagSelection = new QCheckBox(tr("Display Notes Matching Any Selected Tags"));
includeTagChildren = new QCheckBox(tr("Include Children In Tag Selection"));
displayRightToLeft = new QCheckBox(tr("Display Notes Right-To-Left"));
QHBoxLayout startupNotebookLayout = new QHBoxLayout();
startupNotebook = new QComboBox();
startupNotebook.addItem(tr("All Notebooks"), "AllNotebooks");
startupNotebook.addItem(tr("Default Notebook"), "DefaultNotebook");