root/trunk/qt4-gui/src/settings/events.h

Revision 6143, 3.1 kB (checked in by flynd, 8 months ago)

Changed 'Auto popup message' setting to be user configurable which statuses to allow it for. This closes #1416.

Line 
1/*
2 * This file is part of Licq, an instant messaging client for UNIX.
3 * Copyright (C) 2007 Licq developers
4 *
5 * Licq 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 2 of the License, or
8 * (at your option) any later version.
9 *
10 * Licq 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 Licq; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 */
19
20#ifndef SETTINGS_EVENTS_H
21#define SETTINGS_EVENTS_H
22
23#include <config.h>
24
25#include <QObject>
26
27class QCheckBox;
28class QComboBox;
29class QGridLayout;
30class QGroupBox;
31class QLabel;
32class QLineEdit;
33class QVBoxLayout;
34class QWidget;
35
36
37namespace LicqQtGui
38{
39class FileNameEdit;
40class SettingsDlg;
41
42namespace Settings
43{
44class Events : public QObject
45{
46  Q_OBJECT
47
48public:
49  Events(SettingsDlg* parent);
50  virtual ~Events() {}
51
52  void load();
53  void apply();
54
55private slots:
56  void setOnEventsEnabled(bool enable);
57
58private:
59  /**
60   * Setup the events page.
61   *
62   * @return a widget with the event settings
63   */
64  QWidget* createPageOnEvent(QWidget* parent);
65
66  /**
67   * Setup the sound page.
68   *
69   * @return a widget with the sound settings
70   */
71  QWidget* createPageSounds(QWidget* parent);
72
73  // Widgets for on event settings
74  QVBoxLayout* myPageOnEventLayout;
75  QGroupBox* myNewMsgActionsBox;
76  QGroupBox* myParanoiaBox;
77  QVBoxLayout* myParanoiaLayout;
78  QGridLayout* myMsgActionsLayout;
79  QCheckBox* myOnEventAwayCheck;
80  QCheckBox* myOnEventNaCheck;
81  QCheckBox* myOnEventOccupiedCheck;
82  QCheckBox* myOnEventDndCheck;
83  QCheckBox* myAlwaysOnlineNotifyCheck;
84  QCheckBox* myBoldOnMsgCheck;
85  QComboBox* myAutoPopupCombo;
86  QCheckBox* myAutoRaiseCheck;
87  QCheckBox* myAutoFocusCheck;
88  QCheckBox* myFlashTaskbarCheck;
89  QCheckBox* myFlashAllCheck;
90  QCheckBox* myFlashUrgentCheck;
91  QCheckBox* myIgnoreNewUsersCheck;
92  QCheckBox* myIgnoreWebPanelCheck;
93  QCheckBox* myIgnoreMassMsgCheck;
94  QCheckBox* myIgnoreEmailPagerCheck;
95  QLabel* myHotKeyLabel;
96  QLineEdit* myHotKeyField;
97
98  // Widget for sounds settings
99  QVBoxLayout* myPageSoundsLayout;
100  QGroupBox* myEventParamsBox;
101  QGroupBox* myAcceptEventsBox;
102  QGridLayout* myEventParamsLayout;
103  QGridLayout* myAcceptEventsLayout;
104  QCheckBox* myOnEventsCheck;
105  QLabel* mySndPlayerLabel;
106  QLabel* mySndMsgLabel;
107  QLabel* mySndChatLabel;
108  QLabel* mySndUrlLabel;
109  QLabel* mySndFileLabel;
110  QLabel* mySndNotifyLabel;
111  QLabel* mySndSysMsgLabel;
112  QLabel* mySndMsgSentLabel;
113  FileNameEdit* mySndPlayerEdit;
114  FileNameEdit* mySndMsgEdit;
115  FileNameEdit* mySndChatEdit;
116  FileNameEdit* mySndUrlEdit;
117  FileNameEdit* mySndFileEdit;
118  FileNameEdit* mySndNotifyEdit;
119  FileNameEdit* mySndSysMsgEdit;
120  FileNameEdit* mySndMsgSentEdit;
121};
122
123} // namespace Settings
124} // namespace LicqQtGui
125
126#endif
Note: See TracBrowser for help on using the browser.