summaryrefslogtreecommitdiffabout
path: root/kaddressbook/views/configuretableviewdialog.h
Unidiff
Diffstat (limited to 'kaddressbook/views/configuretableviewdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/views/configuretableviewdialog.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/kaddressbook/views/configuretableviewdialog.h b/kaddressbook/views/configuretableviewdialog.h
new file mode 100644
index 0000000..8392710
--- a/dev/null
+++ b/kaddressbook/views/configuretableviewdialog.h
@@ -0,0 +1,88 @@
1/*
2 This file is part of KAddressBook.
3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
4
5 This program 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 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.
14
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.
18
19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution.
22*/
23
24#ifndef CONFIGURETABLEVIEWDIALOG_H
25#define CONFIGURETABLEVIEWDIALOG_H
26
27#include "viewconfigurewidget.h"
28
29class QString;
30class QWidget;
31class QRadioButton;
32class QCheckBox;
33class KURLRequester;
34class KConfig;
35
36namespace KABC { class AddressBook; }
37
38class LookAndFeelPage;
39
40/**
41 Configure dialog for the table view. This dialog inherits from the
42 standard view dialog in order to add a custom page for the table
43 view.
44 */
45class ConfigureTableViewWidget : public ViewConfigureWidget
46{
47 public:
48 ConfigureTableViewWidget( KABC::AddressBook *ab, QWidget *parent, const char *name );
49 virtual ~ConfigureTableViewWidget();
50
51 virtual void restoreSettings( KConfig* );
52 virtual void saveSettings( KConfig* );
53
54 private:
55 void initGUI();
56
57 LookAndFeelPage *mPage;
58};
59
60/**
61 Internal class. It is only defined here for moc
62*/
63class LookAndFeelPage : public QWidget
64{
65 Q_OBJECT
66
67 public:
68 LookAndFeelPage( QWidget *parent, const char *name = 0 );
69 ~LookAndFeelPage() {}
70
71 void restoreSettings( KConfig* );
72 void saveSettings( KConfig* );
73
74 protected slots:
75 void enableBackgroundToggled( bool );
76
77 private:
78 void initGUI();
79
80 QRadioButton *mAlternateButton;
81 QRadioButton *mLineButton;
82 QRadioButton *mNoneButton;
83 QCheckBox *mToolTipBox;
84 KURLRequester *mBackgroundName;
85 QCheckBox *mBackgroundBox;
86};
87
88#endif