OSDN Git Service

- Added the ability to do special refreshes for debugging. - Added the ability to...
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigDebugPage.java
index 8d31a67..e2bfc67 100644 (file)
  *\r
 */\r
 \r
+\r
+//**********************************************\r
+//**********************************************\r
+//* This dialog is the debugging information \r
+//* page used in the Edit/Preferences dialog\r
+//**********************************************\r
+//**********************************************\r
+\r
 package cx.fbn.nevernote.dialog;\r
 \r
 import com.trolltech.qt.gui.QCheckBox;\r
@@ -40,6 +48,7 @@ public class ConfigDebugPage extends QWidget {
        QCheckBox htmlEntitiesFix;\r
        QCheckBox enableThumbnails;\r
        QSpinBox  databaseCache;\r
+       QCheckBox reloadSharedNotebooks;\r
        \r
        public ConfigDebugPage(QWidget parent) {\r
                super(parent);\r
@@ -115,7 +124,13 @@ public class ConfigDebugPage extends QWidget {
                htmlEntitiesFix.setText(tr("Enable Android Fix"));\r
                htmlLayout.addWidget(htmlEntitiesFix);\r
                htmlGroup.setLayout(htmlLayout);\r
-\r
+               \r
+               reloadSharedNotebooks = new QCheckBox(tr("Shared Notebooks"));\r
+               QGroupBox refresh = new QGroupBox(tr("Special Refresh (WARNING - This can cause unsynchronized data loss)."));\r
+               QVBoxLayout refreshLayout = new QVBoxLayout();\r
+               refreshLayout.addWidget(reloadSharedNotebooks);\r
+               refresh.setLayout(refreshLayout);\r
+               \r
                \r
                QTextBrowser msg = new QTextBrowser(this);\r
                QTextBrowser htmlMsg = new QTextBrowser(this);\r
@@ -125,6 +140,7 @@ public class ConfigDebugPage extends QWidget {
                mainLayout.addWidget(crlfGroup);\r
                htmlLayout.addWidget(htmlMsg);\r
                mainLayout.addWidget(htmlGroup);\r
+               mainLayout.addWidget(refresh);\r
 \r
                mainLayout.addStretch(1);\r
                setLayout(mainLayout);\r
@@ -207,4 +223,12 @@ public class ConfigDebugPage extends QWidget {
                return new Integer(databaseCache.value()*1024).toString();\r
        }\r
 \r
+       \r
+       //***************************************\r
+       //* Special refreshes\r
+       //***************************************\r
+       public boolean reloadSharedNotebooksClicked() {\r
+               return reloadSharedNotebooks.isChecked();\r
+       }\r
+\r
 }\r