1
/****************************************************************************
2
** optionsdlg.h - the preferences dialog
3
** Copyright (C) 2001, 2002 Justin Karneges
5
** This program is free software; you can redistribute it and/or
6
** modify it under the terms of the GNU General Public License
7
** as published by the Free Software Foundation; either version 2
8
** of the License, or (at your option) any later version.
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.
15
** You should have received a copy of the GNU General Public License
16
** along with this program; if not, write to the Free Software
17
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
19
****************************************************************************/
24
#include"ui_options.h"
26
#include<qbuttongroup.h>
27
#include<qpushbutton.h>
29
#include<qstringlist.h>
30
#include<qradiobutton.h>
33
class OptionsDlg : public OptionsUI
37
OptionsDlg(const Options &, QWidget *parent=0, const char *name=0);
40
static OptionsDlg *find();
43
void applyOptions(const Options &);
46
void showColor(QPushButton *pb, QColor c);
50
QButtonGroup *bg_defAct, *bg_color, *bg_font, *bg_oe, *bg_delChats;
51
QLineEdit *le_font[3], *le_oe[7];
54
bool dirty; // whether or not data changed
55
bool noDirty; // flag to disable dirty checks
57
void doApplyOptions();
62
void chooseColor(int);
63
void chooseOnEvent(int);
64
void selectIconSet(int);
65
void selectAlertStyle(int);
66
void selectStatusPreset(int);
67
void selectBrowser(int);
68
void newStatusPreset();
69
void changeStatusPreset();
70
void removeStatusPreset();