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

Revision 6543, 4.3 kB (checked in by root_42, 3 weeks ago)

Allow user to override Qt 4 browser selection.
Introduced new option for that.
Fixes #1645, or rather implements a new feature for this to be fixed.

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_CHAT_H
21#define SETTINGS_CHAT_H
22
23#include <config.h>
24
25#include <QObject>
26
27class QCheckBox;
28class QComboBox;
29class QGridLayout;
30class QGroupBox;
31class QLabel;
32class QLineEdit;
33class QSpinBox;
34class QVBoxLayout;
35class QWidget;
36
37namespace LicqQtGui
38{
39class ColorButton;
40class HistoryView;
41class SettingsDlg;
42class TabWidget;
43
44namespace Settings
45{
46class Chat : public QObject
47{
48  Q_OBJECT
49
50public:
51  Chat(SettingsDlg* parent);
52  virtual ~Chat() {}
53
54  void load();
55  void apply();
56
57private slots:
58  void useMsgChatViewChanged(bool);
59  void updatePreviews();
60
61private:
62  /**
63   * Setup the chat page.
64   *
65   * @return a widget with the chat settings
66   */
67  QWidget* createPageChat(QWidget* parent);
68
69  /**
70   * Setup the chat display page.
71   *
72   * @return a widget with the chat display settings
73   */
74  QWidget* createPageChatDisp(QWidget* parent);
75
76  /**
77   * Setup the history display page.
78   *
79   * @return a widget with the history display settings
80   */
81  QWidget* createPageHistDisp(QWidget* parent);
82
83  // Widget for chat settings
84  QVBoxLayout* myPageChatLayout;
85  QGroupBox* myChatBox;
86  QGroupBox* myExtensionsBox;
87  QGridLayout* myChatLayout;
88  QGridLayout* myExtensionsLayout;
89  QCheckBox* mySendFromClipboardCheck;
90  QCheckBox* myAutoPosReplyWinCheck;
91  QCheckBox* myAutoSendThroughServerCheck;
92  QCheckBox* mySingleLineChatModeCheck;
93  QCheckBox* myUseDoubleReturnCheck;
94  QCheckBox* myMsgChatViewCheck;
95  QCheckBox* myTabbedChattingCheck;
96  QCheckBox* mySendTNCheck;
97  QCheckBox* myMsgWinStickyCheck;
98  QCheckBox* myAutoCloseCheck;
99  QCheckBox* myShowSendCloseCheck;
100  QCheckBox* myCheckSpelling;
101  QCheckBox* myShowUserPicCheck;
102  QCheckBox* myShowUserPicHiddenCheck;
103  QCheckBox* myPopupAutoResponseCheck;
104
105  QGroupBox* myLocaleBox;
106  QVBoxLayout* myLocaleLayout;
107  QCheckBox* myShowAllEncodingsCheck;
108  QLabel* myDefaultEncodingLabel;
109  QComboBox* myDefaultEncodingCombo;
110
111  QCheckBox* myUseCustomUrlViewer;
112  QLabel* myUrlViewerLabel;
113  QLabel* myTerminalLabel;
114  QComboBox* myUrlViewerCombo;
115  QLineEdit* myTerminalEdit;
116
117  // Widget for chat display settings
118  QGridLayout* myPageChatDispLayout;
119  QGroupBox* myChatDispBox;
120  QGroupBox* myChatColorsBox;
121  QVBoxLayout* myChatDispLayout;
122  QGridLayout* myChatColorsLayout;
123  QLabel* myChatStyleLabel;
124  QLabel* myChatDateFormatLabel;
125  QComboBox* myChatStyleCombo;
126  QComboBox* myChatDateFormatCombo;
127  QCheckBox* myChatVertSpacingCheck;
128  QCheckBox* myChatLineBreakCheck;
129  QCheckBox* myShowHistoryCheck;
130  QCheckBox* myShowNoticesCheck;
131  QLabel* myColorRcvLabel;
132  QLabel* myColorSntLabel;
133  QLabel* myColorRcvHistoryLabel;
134  QLabel* myColorSntHistoryLabel;
135  QLabel* myColorNoticeLabel;
136  QLabel* myColorTabLabelLabel;
137  QLabel* myColorTypingLabelLabel;
138  QLabel* myColorChatBkgLabel;
139  ColorButton* myColorRcvButton;
140  ColorButton* myColorSntButton;
141  ColorButton* myColorRcvHistoryButton;
142  ColorButton* myColorSntHistoryButton;
143  ColorButton* myColorNoticeButton;
144  ColorButton* myColorTabLabelButton;
145  ColorButton* myColorTypingLabelButton;
146  ColorButton* myColorChatBkgButton;
147  TabWidget* myChatTabs;
148  HistoryView* myChatView;
149
150  // Widget for history display settings
151  QVBoxLayout* myPageHistDispLayout;
152  QGroupBox* myHistDispBox;
153  QGroupBox* myHistPreviewBox;
154  QVBoxLayout* myHistDispLayout;
155  QVBoxLayout* myHistPreviewLayout;
156  QLabel* myHistStyleLabel;
157  QLabel* myHistDateFormatLabel;
158  QComboBox* myHistStyleCombo;
159  QCheckBox* myHistVertSpacingCheck;
160  QCheckBox* myHistReverseCheck;
161  QComboBox* myHistDateFormatCombo;
162  HistoryView* myHistoryView;
163};
164
165} // namespace Settings
166} // namespace LicqQtGui
167
168#endif
Note: See TracBrowser for help on using the browser.