1 /***************************************************************************
2 *                                                                         *
3 *   This program is free software; you can redistribute it and/or modify  *
4 *   it under the terms of the GNU General Public License as published by  *
5 *   the Free Software Foundation; either version 3 of the License, or     *
6 *   (at your option) any later version.                                   *
7 *                                                                         *
8 ***************************************************************************/
9 
10 #pragma once
11 
12 #include <QWidget>
13 #include "ui_UISettingsGUI.h"
14 
15 class SettingsGUI :
16         public QWidget,
17         private Ui::UISettingsGUI
18 {
19 Q_OBJECT
20 public:
21     explicit SettingsGUI(QWidget *parent = 0);
22     virtual ~SettingsGUI();
23 
24 private:
25     void init();
26 
27 private Q_SLOTS:
28     void slotChatColorItemClicked(QListWidgetItem *);
29     void slotTestAppTheme();
30     void slotThemeChanged();
31     void slotBrowseFont();
32     void slotBrowseLng();
33     void slotLngIndexChanged(int);
34     void slotUsersChanged();
35     void slotIconsChanged();
36     void slotGetColor();
37     void slotSetTransparency(int);
38     void slotResetTransferColors();
39 
40 Q_SIGNALS:
41     void saveFonts();
42 
43 public Q_SLOTS:
44     void ok();
45 
46 private:
47     bool custom_style;
48 
49     // clean colors (without transparency)
50     QColor h_color;
51     QColor shared_files_color;
52     QColor chat_background_color;
53     QColor downloads_clr;
54     QColor uploads_clr;
55 };
56