1 /*******************************************************************************
3 This file is part of mDictionary.
5 mDictionary is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 mDictionary is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with mDictionary. If not, see <http://www.gnu.org/licenses/>.
18 Copyright 2010 Comarch S.A.
20 *******************************************************************************/
22 //! \file DictManagerWidget.h
23 //! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
25 #ifndef SETTINGSWIDGET_H
26 #define SETTINGSWIDGET_H
30 #include <QPushButton>
31 #include "../../common/GUIInterface.h"
32 #include "../../common/settings.h"
34 //! Implements applications settings widget
36 Shows settings that user can change.
37 It allows to change limit of searches and limit of history.
38 It also allows to select if application has to search in dictionaries or in
39 bookmarks or in both of them. All changes are saved automatically after
40 hiding of this widget.
42 class SettingsWidget : public QDialog
48 \param parent parent of this widget, which must be subclass of
49 GUIInterface, because it will use it to get current settings and
52 explicit SettingsWidget(GUIInterface *parent = 0);
56 void showEvent(QShowEvent *);
57 void hideEvent(QHideEvent *);
67 QSpinBox* historySizeSpinBox;
68 QSpinBox* searchResultSizeSpinBox;
69 QVBoxLayout* verticalLayout;
70 QFormLayout* spinBoxesFormLayout;
72 QLabel* checkBoxesLabel;
73 QCheckBox* searchInDictionariesCheckBox;
74 QCheckBox* searchInBookmarksCheckBox;
76 GUIInterface* guiInterface;
81 QPushButton* closeButton;
82 QHBoxLayout* footerLayout;
90 #endif // SETTINGSWIDGET_H