OSDN Git Service

Add automatic upgrade checking.
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigAppearancePage.java
index 4e95242..c2f8d49 100644 (file)
@@ -46,6 +46,7 @@ public class ConfigAppearancePage extends QWidget {
        private final QCheckBox showTrayIcon;\r
        private final QCheckBox verifyDelete;\r
        private final QCheckBox pdfPreview;\r
        private final QCheckBox showTrayIcon;\r
        private final QCheckBox verifyDelete;\r
        private final QCheckBox pdfPreview;\r
+       private final QCheckBox checkForUpdates;\r
        private final QCheckBox newNoteWithTags;\r
        private final QCheckBox mimicEvernote;\r
        private final QCheckBox startMinimized;\r
        private final QCheckBox newNoteWithTags;\r
        private final QCheckBox mimicEvernote;\r
        private final QCheckBox startMinimized;\r
@@ -138,6 +139,7 @@ public class ConfigAppearancePage extends QWidget {
                verifyDelete = new QCheckBox(tr("Verify Deletes"));\r
                startMinimized = new QCheckBox(tr("Start Minimized"));\r
                pdfPreview = new QCheckBox(tr("Display PDF Documents Inline"));\r
                verifyDelete = new QCheckBox(tr("Verify Deletes"));\r
                startMinimized = new QCheckBox(tr("Start Minimized"));\r
                pdfPreview = new QCheckBox(tr("Display PDF Documents Inline"));\r
+               checkForUpdates = new QCheckBox(tr("Check For Updates At Startup"));\r
                newNoteWithTags = new QCheckBox(tr("Create New Notes With Selected Tags"));\r
                \r
                QHBoxLayout autoSaveLayout = new QHBoxLayout();\r
                newNoteWithTags = new QCheckBox(tr("Create New Notes With Selected Tags"));\r
                \r
                QHBoxLayout autoSaveLayout = new QHBoxLayout();\r
@@ -160,6 +162,7 @@ public class ConfigAppearancePage extends QWidget {
                mainLayout.addWidget(verifyDelete);\r
                mainLayout.addWidget(pdfPreview);\r
                mainLayout.addWidget(newNoteWithTags);\r
                mainLayout.addWidget(verifyDelete);\r
                mainLayout.addWidget(pdfPreview);\r
                mainLayout.addWidget(newNoteWithTags);\r
+               mainLayout.addWidget(checkForUpdates);\r
                mainLayout.addStretch(1);\r
                setLayout(mainLayout);\r
                \r
                mainLayout.addStretch(1);\r
                setLayout(mainLayout);\r
                \r
@@ -293,6 +296,16 @@ public class ConfigAppearancePage extends QWidget {
        public boolean getPdfPreview() {\r
                return pdfPreview.isChecked();\r
        }\r
        public boolean getPdfPreview() {\r
                return pdfPreview.isChecked();\r
        }\r
+       \r
+       //*******************************************\r
+       //* check for updates get/set\r
+       //*******************************************\r
+       public void setCheckForUpdates(boolean val) {\r
+               checkForUpdates.setChecked(val);        \r
+       }\r
+       public boolean getCheckForUpdates() {\r
+               return checkForUpdates.isChecked();\r
+       }\r
 \r
        \r
        //********************************************\r
 \r
        \r
        //********************************************\r