OSDN Git Service

Add option to start minimized.
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigAppearancePage.java
index 3fc2de4..39aedab 100644 (file)
@@ -48,6 +48,7 @@ public class ConfigAppearancePage extends QWidget {
        private final QCheckBox pdfPreview;\r
        private final QCheckBox newNoteWithTags;\r
        private final QCheckBox mimicEvernote;\r
+       private final QCheckBox startMinimized;\r
        private final QSpinBox autoSaveInterval;\r
        \r
        private final List<String> tformats;\r
@@ -123,6 +124,7 @@ public class ConfigAppearancePage extends QWidget {
                showSplashScreen = new QCheckBox(tr("Show Splash Screen on Startup"));\r
                showTrayIcon = new QCheckBox(tr("Show Tray Icon"));\r
                verifyDelete = new QCheckBox(tr("Verify Deletes"));\r
+               startMinimized = new QCheckBox(tr("Start Minimized"));\r
                pdfPreview = new QCheckBox(tr("Display PDF Documents Inline"));\r
                newNoteWithTags = new QCheckBox(tr("Create New Notes With Selected Tags"));\r
                \r
@@ -140,6 +142,7 @@ public class ConfigAppearancePage extends QWidget {
                mainLayout.addWidget(tagBehaviorGroup);\r
                mainLayout.addWidget(mimicEvernote); \r
                mainLayout.addWidget(showTrayIcon);\r
+               mainLayout.addWidget(startMinimized);\r
                mainLayout.addWidget(showSplashScreen);\r
                mainLayout.addWidget(verifyDelete);\r
                mainLayout.addWidget(pdfPreview);\r
@@ -312,6 +315,17 @@ public class ConfigAppearancePage extends QWidget {
                mimicEvernote.setChecked(val);\r
        }\r
 \r
+       \r
+       //*****************************************\r
+       //* Mimic Evernote Selection\r
+       //*****************************************\r
+       public boolean getStartMinimized() {\r
+               return startMinimized.isChecked();\r
+       }\r
+       public void setStartMinimized(boolean val) {\r
+               startMinimized.setChecked(val);\r
+       }\r
+\r
 \r
        //*****************************************\r
        //* Create Note With Selected Tags\r