Merge branch 'master' into google
[mdictionary] / trunk / src / base / gui / DictManagerWidget.h
index 4d587a2..56abbd5 100644 (file)
@@ -85,6 +85,12 @@ private Q_SLOTS:
     /*! Shows plugin's settings dialog*/
     void settingsButtonClicked();
 
+    //! Each change of state (that needs to be saved) should call this to indicate state change
+    void changed();
+
+    //! saves changes
+    void saveChanges();
+
 private:
     QPushButton* addNewDictButton;
     QPushButton* removeDictButton;
@@ -97,8 +103,16 @@ private:
     //holds association between items on list and CommonDictInterface objects
     QHash<QListWidgetItem*, CommonDictInterface*> dictsHash;
     GUIInterface* guiInterface;
+    bool _changed;
 
     void refreshDictsList();
+    #ifndef Q_WS_MAEMO_5
+        QPushButton* closeButton;
+        bool _save;
+
+        public Q_SLOTS:
+            void save();
+    #endif
 };
 
 #endif // DICTMANAGERWIDGET_H