| 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_CONTACTLIST_H |
|---|
| 21 | #define SETTINGS_CONTACTLIST_H |
|---|
| 22 | |
|---|
| 23 | #include <config.h> |
|---|
| 24 | |
|---|
| 25 | #include <QObject> |
|---|
| 26 | |
|---|
| 27 | #include "core/gui-defines.h" |
|---|
| 28 | |
|---|
| 29 | class QCheckBox; |
|---|
| 30 | class QComboBox; |
|---|
| 31 | class QGridLayout; |
|---|
| 32 | class QGroupBox; |
|---|
| 33 | class QLabel; |
|---|
| 34 | class QLineEdit; |
|---|
| 35 | class QRadioButton; |
|---|
| 36 | class QSpinBox; |
|---|
| 37 | class QVBoxLayout; |
|---|
| 38 | class QWidget; |
|---|
| 39 | |
|---|
| 40 | namespace LicqQtGui |
|---|
| 41 | { |
|---|
| 42 | class SettingsDlg; |
|---|
| 43 | |
|---|
| 44 | namespace Settings |
|---|
| 45 | { |
|---|
| 46 | class ContactList : public QObject |
|---|
| 47 | { |
|---|
| 48 | Q_OBJECT |
|---|
| 49 | |
|---|
| 50 | public: |
|---|
| 51 | ContactList(SettingsDlg* parent); |
|---|
| 52 | virtual ~ContactList() {} |
|---|
| 53 | |
|---|
| 54 | void load(); |
|---|
| 55 | void apply(); |
|---|
| 56 | |
|---|
| 57 | private slots: |
|---|
| 58 | void numColumnsChanged(); |
|---|
| 59 | |
|---|
| 60 | private: |
|---|
| 61 | /** |
|---|
| 62 | * Setup the contact list page. |
|---|
| 63 | * |
|---|
| 64 | * @return a widget with the contact list settings |
|---|
| 65 | */ |
|---|
| 66 | QWidget* createPageContactList(QWidget* parent); |
|---|
| 67 | |
|---|
| 68 | /** |
|---|
| 69 | * Setup the contact list columns page. |
|---|
| 70 | * |
|---|
| 71 | * @return a widget with the columns settings |
|---|
| 72 | */ |
|---|
| 73 | QWidget* createPageColumns(QWidget* parent); |
|---|
| 74 | |
|---|
| 75 | /** |
|---|
| 76 | * Setup the contact info page. |
|---|
| 77 | * |
|---|
| 78 | * @return a widget with the contact info settings |
|---|
| 79 | */ |
|---|
| 80 | QWidget* createPageContactInfo(QWidget* parent); |
|---|
| 81 | |
|---|
| 82 | // Widget for general contact list settings |
|---|
| 83 | QVBoxLayout* myPageContactListLayout; |
|---|
| 84 | QGroupBox* myAppearanceBox; |
|---|
| 85 | QGroupBox* myBehaviourBox; |
|---|
| 86 | QGridLayout* myAppearanceLayout; |
|---|
| 87 | QGridLayout* myBehaviourLayout; |
|---|
| 88 | QLabel* myFrameStyleLabel; |
|---|
| 89 | QLabel* mySortByLabel; |
|---|
| 90 | QLineEdit* myFrameStyleEdit; |
|---|
| 91 | QComboBox* mySortByCombo; |
|---|
| 92 | QCheckBox* mySSListCheck; |
|---|
| 93 | QCheckBox* myGridLinesCheck; |
|---|
| 94 | QCheckBox* myHeaderCheck; |
|---|
| 95 | QCheckBox* myShowDividersCheck; |
|---|
| 96 | QCheckBox* myFontStylesCheck; |
|---|
| 97 | QCheckBox* myAlwaysShowONUCheck; |
|---|
| 98 | QCheckBox* myScrollBarCheck; |
|---|
| 99 | QCheckBox* myShowExtIconsCheck; |
|---|
| 100 | QCheckBox* myShowPhoneIconsCheck; |
|---|
| 101 | QCheckBox* mySysBackCheck; |
|---|
| 102 | QCheckBox* myShowUserIconsCheck; |
|---|
| 103 | QCheckBox* myManualNewUserCheck; |
|---|
| 104 | QCheckBox* myShowGroupIfNoMsgCheck; |
|---|
| 105 | QCheckBox* myEnableMainwinMouseMovementCheck; |
|---|
| 106 | QCheckBox* myMainWinStickyCheck; |
|---|
| 107 | QCheckBox* myTransparentCheck; |
|---|
| 108 | QCheckBox* myDragMovesUserCheck; |
|---|
| 109 | |
|---|
| 110 | // Widgets for contact list column settings |
|---|
| 111 | QVBoxLayout* myPageColumnsLayout; |
|---|
| 112 | QGroupBox* myColumnsBox; |
|---|
| 113 | QGridLayout* myColumnsLayout; |
|---|
| 114 | QLabel* myColWidthLabel; |
|---|
| 115 | QLabel* myColAlignLabel; |
|---|
| 116 | QLabel* myColTitleLabel; |
|---|
| 117 | QLabel* myColFormatLabel; |
|---|
| 118 | QRadioButton* myColNumberRadio[MAX_COLUMNCOUNT]; |
|---|
| 119 | QSpinBox* myColWidthSpin[MAX_COLUMNCOUNT]; |
|---|
| 120 | QComboBox* myColAlignCombo[MAX_COLUMNCOUNT]; |
|---|
| 121 | QLineEdit* myColTitleEdit[MAX_COLUMNCOUNT]; |
|---|
| 122 | QLineEdit* myColFormatEdit[MAX_COLUMNCOUNT]; |
|---|
| 123 | |
|---|
| 124 | // Widgets for contact info settings |
|---|
| 125 | QVBoxLayout* myPageContactInfoLayout; |
|---|
| 126 | QGroupBox* myPopupBox; |
|---|
| 127 | QGroupBox* myAutoUpdateBox; |
|---|
| 128 | QGridLayout* myPopupLayout; |
|---|
| 129 | QVBoxLayout* myAutoUpdateLayout; |
|---|
| 130 | QCheckBox* myPopupPictureCheck; |
|---|
| 131 | QCheckBox* myPopupAliasCheck; |
|---|
| 132 | QCheckBox* myPopupAuthCheck; |
|---|
| 133 | QCheckBox* myPopupNameCheck; |
|---|
| 134 | QCheckBox* myPopupEmailCheck; |
|---|
| 135 | QCheckBox* myPopupPhoneCheck; |
|---|
| 136 | QCheckBox* myPopupFaxCheck; |
|---|
| 137 | QCheckBox* myPopupCellularCheck; |
|---|
| 138 | QCheckBox* myPopupIpCheck; |
|---|
| 139 | QCheckBox* myPopupLastOnlineCheck; |
|---|
| 140 | QCheckBox* myPopupOnlineSinceCheck; |
|---|
| 141 | QCheckBox* myPopupIdleTimeCheck; |
|---|
| 142 | QCheckBox* myPopupLocalTimeCheck; |
|---|
| 143 | QCheckBox* myPopupIdCheck; |
|---|
| 144 | QCheckBox* myAutoUpdateInfoCheck; |
|---|
| 145 | QCheckBox* myAutoUpdateInfoPluginsCheck; |
|---|
| 146 | QCheckBox* myAutoUpdateStatusPluginsCheck; |
|---|
| 147 | }; |
|---|
| 148 | |
|---|
| 149 | } // namespace Settings |
|---|
| 150 | } // namespace LicqQtGui |
|---|
| 151 | |
|---|
| 152 | #endif |
|---|