*******************************************************************************/
-//! \file DictManagerWidget.h
-//! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+/*! \file DictManagerWidget.h
+ \brief Implements applications settings widget
+ \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+*/
#ifndef SETTINGSWIDGET_H
#define SETTINGSWIDGET_H
#include <QWidget>
#include <QtGui>
#include <QPushButton>
-#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.
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 *);
#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;