add setingWidget Qml
[mdictionary] / src / mdictionary / gui / SettingsWidget.h
index b8d9841..d721cd9 100644 (file)
@@ -31,6 +31,7 @@
 #include <QtGui>
 #include <QPushButton>
 #include <QDeclarativeView>
+#include <QVariant>
 
 #include "../../include/GUIInterface.h"
 #include "../../include/settings.h"
@@ -57,6 +58,15 @@ public:
     explicit SettingsWidget(GUIInterface *parent = 0);
 
 Q_SIGNALS:
+    void setMinHistory(QVariant minValue);
+    void setMaxHistory(QVariant minValue);
+    void setValueHistory(QVariant value);
+    void setMinSearchResult(QVariant minValue);
+    void setMaxSearchResult(QVariant minValue);
+    void setValueSearchResult(QVariant value);
+    void setCheckedBookmarks(QVariant boolen);
+    void setCheckedDictionaries(QVariant boolen);
+
     void notify(Notify::NotifyType, QString);
 
 protected:
@@ -64,6 +74,11 @@ protected:
     void hideEvent(QHideEvent *);
 
 private Q_SLOTS:
+    void historySizeValueChanged(int value);
+    void searchResulValueChanged(int value);
+    void dictionariesCheckBoxChanged(bool boolean);
+    void bookmarksCheckBoxChanged(bool boolean);
+
     void changed();
     #ifndef Q_WS_MAEMO_5
         void save();
@@ -108,9 +123,10 @@ private:
         QHBoxLayout* footerLayout;
         bool _save;
     #endif
-
-
-
+    int historyValue;
+    int searchResultValue;
+    bool dictionariesCheckBox;
+    bool bookmarksCheckBox;
 };
 
 #endif // SETTINGSWIDGET_H