In settings widget on maemo add info button next to spin boxes
[mdictionary] / src / mdictionary / gui / SettingsWidget.h
index 7cc5ce4..55ad2d0 100644 (file)
@@ -30,6 +30,7 @@
 #include <QPushButton>
 #include "../../include/GUIInterface.h"
 #include "../../include/settings.h"
+#include "SpinBox.h"
 
 //! Implements applications settings widget
 /*!
@@ -51,6 +52,8 @@ public:
       */
     explicit SettingsWidget(GUIInterface *parent = 0);
 
+Q_SIGNALS:
+    void notify(Notify::NotifyType, QString);
 
 protected:
     void showEvent(QShowEvent *);
@@ -61,22 +64,37 @@ private Q_SLOTS:
     #ifndef Q_WS_MAEMO_5
         void save();
     #endif
+    #ifdef Q_WS_MAEMO_5
+        void showSearchResultSizeInfo();
+        void showHistorySizeInfo();
+    #endif
 
 private:
     void initalizeUI();
-    QSpinBox* historySizeSpinBox;
-    QSpinBox* searchResultSizeSpinBox;
+    SpinBox* historySizeSpinBox;
+    SpinBox* searchResultSizeSpinBox;
     QVBoxLayout* verticalLayout;
     QFormLayout* spinBoxesFormLayout;
+    QHBoxLayout* historySizeLayout;
+    QHBoxLayout* searchResultLayout;
+
+    #ifdef Q_WS_MAEMO_5
+        QToolButton* historySizeInfoToolButton;
+        QToolButton* searchResultSizeInfoToolButton;
+    #endif
 
     QLabel* checkBoxesLabel;
     QCheckBox* searchInDictionariesCheckBox;
     QCheckBox* searchInBookmarksCheckBox;
 
+
     GUIInterface* guiInterface;
     Settings* settings;
     bool _changed;
-    QString limitTip;
+
+    QString searchResultSizeToolTip;
+    QString historySizeToolTip;
+
     #ifndef Q_WS_MAEMO_5
         QPushButton* closeButton;
         QHBoxLayout* footerLayout;