X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fgui%2FSettingsWidget.h;h=f6ada01962876c082dc1d01e3db1d5286ebb0d4d;hb=87ff3664f4be5564a986ae484d2cea99a08bc2b5;hp=b281f2224e1c5993672121265c2bab0f9b0392ef;hpb=6552e14c830b3de28e1688b8a6b94c09317beac1;p=mdictionary diff --git a/src/mdictionary/gui/SettingsWidget.h b/src/mdictionary/gui/SettingsWidget.h index b281f22..f6ada01 100644 --- a/src/mdictionary/gui/SettingsWidget.h +++ b/src/mdictionary/gui/SettingsWidget.h @@ -19,8 +19,10 @@ *******************************************************************************/ -//! \file DictManagerWidget.h -//! \author Mateusz Półrola +/*! \file DictManagerWidget.h + \brief Implements applications settings widget + \author Mateusz Półrola +*/ #ifndef SETTINGSWIDGET_H #define SETTINGSWIDGET_H @@ -28,10 +30,10 @@ #include #include #include -#include "../../common/GUIInterface.h" -#include "../../common/settings.h" +#include "../../include/GUIInterface.h" +#include "../../include/settings.h" +#include "SpinBox.h" -//! Implements applications settings widget /*! Shows settings that user can change. It allows to change limit of searches and limit of history. @@ -45,12 +47,14 @@ class SettingsWidget : public QDialog public: //! Constructor /*! - \param parent parent of this widget, which must be subclass of + \param parent parent of this widget, which must be a subclass of GUIInterface, because it will use it to get current settings and set new ones. */ explicit SettingsWidget(GUIInterface *parent = 0); +Q_SIGNALS: + void notify(Notify::NotifyType, QString); protected: void showEvent(QShowEvent *); @@ -61,22 +65,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;