*******************************************************************************/
-//! \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 <QDeclarativeView>
+#include <QVariant>
+
#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.
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:
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();
private:
void initalizeUI();
+
+ QVBoxLayout* mainLayout;
+ QDeclarativeView *view;
+
SpinBox* historySizeSpinBox;
SpinBox* searchResultSizeSpinBox;
QVBoxLayout* verticalLayout;
QHBoxLayout* footerLayout;
bool _save;
#endif
-
-
-
+ int historyValue;
+ int searchResultValue;
+ bool dictionariesCheckBox;
+ bool bookmarksCheckBox;
};
#endif // SETTINGSWIDGET_H