~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to kpager/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-09-05 20:45:14 UTC
  • Revision ID: james.westby@ubuntu.com-20070905204514-632hhspl0nvrc84i
Tags: upstream-3.93.0
ImportĀ upstreamĀ versionĀ 3.93.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************
 
2
 
 
3
    config.h  - KPager config dialog
 
4
    Copyright (C) 2000  Antonio Larrosa Jimenez <larrosa@kde.org>
 
5
 
 
6
    This program is free software; you can redistribute it and/or modify
 
7
    it under the terms of the GNU General Public License as published by
 
8
    the Free Software Foundation; either version 2 of the License, or
 
9
    (at your option) any later version.
 
10
 
 
11
    This program is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
    GNU General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU General Public License
 
17
    along with this program; if not, write to the Free Software
 
18
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
 
 
20
    Send comments and bug fixes to larrosa@kde.org
 
21
 
 
22
***************************************************************************/
 
23
#ifndef __KPCONFIG_H
 
24
#define __KPCONFIG_H
 
25
 
 
26
#include <kdialog.h>
 
27
#include <Q3ButtonGroup>
 
28
 
 
29
class QCheckBox;
 
30
 
 
31
class KPagerConfigDialog : public KDialog
 
32
{
 
33
    Q_OBJECT
 
34
 
 
35
public:
 
36
    KPagerConfigDialog(QWidget *parent);
 
37
 
 
38
public Q_SLOTS:
 
39
    void setShowName(bool show);
 
40
    void setShowNumber(bool show);
 
41
    void setShowBackground(bool show);
 
42
    void setShowWindows(bool show);
 
43
 
 
44
    void setWindowDrawMode(int mode);
 
45
    void setLayout(int layout);
 
46
 
 
47
    void enableWindowDragging(bool);
 
48
 
 
49
    void loadConfiguration();
 
50
    void slotOk();
 
51
public:
 
52
    static void initConfiguration(void);
 
53
    static bool m_showName;
 
54
    static bool m_showNumber;
 
55
    static bool m_showBackground;
 
56
    static bool m_showWindows;
 
57
    static int m_windowDrawMode;
 
58
    static int m_layoutType;
 
59
    static bool m_windowDragging;
 
60
 
 
61
protected:
 
62
    QCheckBox *m_chkShowName;
 
63
    QCheckBox *m_chkShowNumber;
 
64
    QCheckBox *m_chkShowBackground;
 
65
    QCheckBox *m_chkShowWindows;
 
66
    Q3ButtonGroup *m_grpWindowDrawMode;
 
67
    Q3ButtonGroup *m_grpLayoutType;
 
68
    QCheckBox* m_chkWindowDragging;
 
69
    bool m_tmpShowName;
 
70
    bool m_tmpShowNumber;
 
71
    bool m_tmpShowBackground;
 
72
    bool m_tmpShowWindows;
 
73
    int m_tmpWindowDrawMode;
 
74
    int m_tmpLayoutType;
 
75
    bool m_tmpWindowDragging;
 
76
};
 
77
 
 
78
#endif