Initial commit
[keepassx] / src / dialogs / SettingsDlg.h
1 /***************************************************************************
2  *   Copyright (C) 2005 by Tarek Saidi                                     *
3  *   tarek@linux                                                           *
4  *                                                                         *
5  *   This program 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; version 2 of the License.               *
8
9  *                                                                         *
10  *   This program 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.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20
21 #ifndef SETTINGSDLG_H
22 #define SETTINGSDLG_H
23
24 #include "ui_SettingsDlg.h"
25 #include "lib/AutoType.h"
26
27 class CSettingsDlg : public QDialog, private Ui_SettingsDialog
28 {
29         Q_OBJECT
30         public:
31                 CSettingsDlg(QWidget* parent);
32                 ~CSettingsDlg();
33         
34         private slots:
35         virtual void OnCancel();
36         virtual void OnOK();
37         virtual void OnTextColor();
38         virtual void OnColor2();
39         virtual void OnColor1();
40                 void OnOtherButton(QAbstractButton*);
41                 /*void OnIntPluginNone();
42                 void OnIntPluginGnome();
43                 void OnIntPluginKde();*/
44                 void OnMountDirBrowse();
45                 void OnBrowserCmdBrowse();
46                 void OnCustomizeEntryDetails();
47                 void OnInactivityLockChange(bool checked);
48                 void OnAutoSaveToggle(bool checked);
49                 void OnAutoSaveChangeToggle(bool checked);
50                 void OnBackupDeleteChange();
51                 void OnSelectLanguage(int index);
52         
53 #ifdef GLOBAL_AUTOTYPE
54         private slots:
55                 void resetGlobalShortcut();
56 #endif
57         
58         private:
59                 virtual void paintEvent(QPaintEvent*);
60                 virtual void resizeEvent(QResizeEvent*);
61                 void initLanguageList();
62                 void apply();
63                 QColor color1,color2,textcolor;
64                 QPixmap BannerPixmap;
65                 QList<Translation> translations;
66 #ifdef GLOBAL_AUTOTYPE
67                 Shortcut pShortcut;
68 #endif
69                 //static bool PluginsModified;
70
71 };
72
73 #endif
74