as_panel.h

changeset 3
c1941114ca88
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
equal deleted inserted replaced
0:76a2c67d8bf5 1:91e4812db427
1 // 1 //
2 // OSSP asgui - Accounting system graphical user interface 2 // OSSP asgui - Accounting system graphical user interface
3 // Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/) 3 // Copyright (c) 2002-2008 The OSSP Project (http://www.ossp.org/)
4 // Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com> 4 // Copyright (c) 2002-2008 Ralf S. Engelschall <rse@engelschall.com>
5 // Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com> 5 // Copyright (c) 2002-2008 Michael Schloh von Bennewitz <michael@schloh.com>
6 // Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH 6 // Copyright (c) 2002-2008 Cable & Wireless Telecommunications Services GmbH
7 // 7 //
8 // This file is part of OSSP asgui, an accounting system graphical user 8 // This file is part of OSSP asgui, an accounting system graphical user
9 // interface which can be found at http://www.ossp.org/pkg/tool/asgui/. 9 // interface which can be found at http://asgui.europalab.com/.
10 // 10 //
11 // Permission to use, copy, modify, and distribute this software for 11 // Permission to use, copy, modify, and distribute this software for
12 // any purpose with or without fee is hereby granted, provided that 12 // any purpose with or without fee is hereby granted, provided that
13 // the above copyright notice and this permission notice appear in all 13 // the above copyright notice and this permission notice appear in all
14 // copies. 14 // copies.
27 // SUCH DAMAGE. 27 // SUCH DAMAGE.
28 // 28 //
29 // as_panel.h: ISO C++ interface 29 // as_panel.h: ISO C++ interface
30 // 30 //
31 31
32 #define QT3_SUPPORT
33
32 #ifndef PREFPANEL_H 34 #ifndef PREFPANEL_H
33 #define PREFPANEL_H 35 #define PREFPANEL_H
34 36
35 #include <qvariant.h> 37 #include <qvariant.h>
36 #include <qdialog.h> 38 #include <qdialog.h>
37 #include <qbuttongroup.h> 39 #include <q3buttongroup.h>
38 #include <qlabel.h> 40 #include <qlabel.h>
39 #include <qlineedit.h> 41 #include <qlineedit.h>
40 #include <qpushbutton.h> 42 #include <qpushbutton.h>
41 #include <qtoolbutton.h> 43 #include <qtoolbutton.h>
42 #include <qcolordialog.h> 44 #include <qcolordialog.h>
44 #include <qcheckbox.h> 46 #include <qcheckbox.h>
45 #include <qtabwidget.h> 47 #include <qtabwidget.h>
46 #include <qwidget.h> 48 #include <qwidget.h>
47 #include <qlayout.h> 49 #include <qlayout.h>
48 #include <qtooltip.h> 50 #include <qtooltip.h>
49 #include <qwhatsthis.h> 51 #include <q3whatsthis.h>
50 #include <qstylefactory.h> 52 #include <qstylefactory.h>
51 #include <qlayout.h> 53 #include <qlayout.h>
54
55 //Added by qt3to4:
56 #include <Q3HBoxLayout>
57 #include <Q3GridLayout>
58 #include <Q3VBoxLayout>
52 59
53 #include "as_gui.h" // For usage of style_t 60 #include "as_gui.h" // For usage of style_t
54 61
55 62
56 class Prefpanel : public QDialog 63 class Prefpanel : public QDialog
57 { 64 {
58 Q_OBJECT 65 Q_OBJECT
59 66
60 public: 67 public:
61 Prefpanel(QWidget *pParent = 0, const char *kszName = 0, bool bModal = true, WFlags Flags = 0); 68 Prefpanel(QWidget *pParent = 0, const char *kszName = 0, bool bModal = true, Qt::WFlags Flags = 0);
62 // ~Prefpanel(void); // No need to destroy widgets, because qt does it for us 69 // ~Prefpanel(void); // No need to destroy widgets, because qt does it for us
63 70
64 private: 71 private:
65 Preferences *m_pPanprefs; 72 Preferences *m_pPanprefs;
66 QColor *m_pLight, *m_pDark; 73 QColor *m_pLight, *m_pDark;
67 QColorGroup *m_pOrigcolours, *m_pAltcolours; 74 QColorGroup *m_pOrigcolours, *m_pAltcolours;
68 75
69 public: 76 public:
70 QGroupBox *m_pGenbox, *m_pRembox, *m_pShadebox, *m_pThemebox; 77 Q3GroupBox *m_pGenbox, *m_pRembox, *m_pShadebox, *m_pThemebox;
71 QVBoxLayout *m_pStylelay, *m_pReportlay, *m_pSwitchlay; 78 Q3VBoxLayout *m_pStylelay, *m_pReportlay, *m_pSwitchlay;
72 QVBoxLayout *m_pVlayout, *m_pBinlayout; 79 Q3VBoxLayout *m_pVlayout, *m_pBinlayout;
73 QHBoxLayout *m_pBoolayout, *m_pGenlayout, *m_pRemlayout; 80 Q3HBoxLayout *m_pBoolayout, *m_pGenlayout, *m_pRemlayout;
74 QVBoxLayout *m_pShadeboxlay, *m_pThemeboxlay; 81 Q3VBoxLayout *m_pShadeboxlay, *m_pThemeboxlay;
75 QHBoxLayout *m_pGenboxlay, *m_pRemboxlay, *m_pColourlayout; 82 Q3HBoxLayout *m_pGenboxlay, *m_pRemboxlay, *m_pColourlayout;
76 QGridLayout *m_pGeninner, *m_pReminner, *m_pShadelayout; 83 Q3GridLayout *m_pGeninner, *m_pReminner, *m_pShadelayout;
77 84
78 QWidget *m_pBoolpage, *m_pGeneralpage, *m_pRemotepage, *m_pColourpage; 85 QWidget *m_pBoolpage, *m_pGeneralpage, *m_pRemotepage, *m_pColourpage;
79 86
80 QHBoxLayout *m_pButtlay; 87 Q3HBoxLayout *m_pButtlay;
81 QPushButton *m_pOkaybutton; 88 QPushButton *m_pOkaybutton;
82 QPushButton *m_pApplybutton; 89 QPushButton *m_pApplybutton;
83 QPushButton *m_pCancelbutton; 90 QPushButton *m_pCancelbutton;
84 QTabWidget *m_pTabselect; 91 QTabWidget *m_pTabselect;
85 92
92 QCheckBox *m_pCorbacheck, *m_pSoapcheck; 99 QCheckBox *m_pCorbacheck, *m_pSoapcheck;
93 100
94 QLabel *m_pLightlab, *m_pDarklab, *m_pRevertlab; 101 QLabel *m_pLightlab, *m_pDarklab, *m_pRevertlab;
95 QToolButton *m_pLightbutt, *m_pDarkbutt, *m_pRevertbutt; 102 QToolButton *m_pLightbutt, *m_pDarkbutt, *m_pRevertbutt;
96 103
97 QButtonGroup *m_pStylegroup, *m_pReportgroup, *m_pSwitchgroup; 104 Q3ButtonGroup *m_pStylegroup, *m_pReportgroup, *m_pSwitchgroup;
98 QCheckBox *m_pBackupcheck, *m_pExtendcheck; 105 QCheckBox *m_pBackupcheck, *m_pExtendcheck;
99 QCheckBox *m_pDetailcheck, *m_pSigncheck; 106 QCheckBox *m_pDetailcheck, *m_pSigncheck;
100 107
101 public: 108 public:
102 // Accessor get methods 109 // Accessor get methods

mercurial