as_numdial.h

changeset 8
91d017614dde
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
equal deleted inserted replaced
0:388209e45bea 1:4be8e82f448f
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_numdial.h: ISO C++ interface 29 // as_numdial.h: ISO C++ interface
30 // 30 //
31 31
32 #define QT3_SUPPORT
33
32 #ifndef NUMDIALOG_H 34 #ifndef NUMDIALOG_H
33 #define NUMDIALOG_H 35 #define NUMDIALOG_H
34 36
35 #include <qvariant.h> 37 #include <qvariant.h>
36 #include <qdialog.h> 38 #include <qdialog.h>
37 #include <qspinbox.h> 39 #include <qspinbox.h>
38 40
41 //Added by qt3to4:
42 #include <Q3VBoxLayout>
43 #include <Q3Frame>
44 #include <Q3GridLayout>
45 #include <Q3HBoxLayout>
46 #include <QLabel>
39 47
40 class QVBoxLayout; 48
41 class QHBoxLayout; 49 class Q3VBoxLayout;
42 class QGridLayout; 50 class Q3HBoxLayout;
43 class QFrame; 51 class Q3GridLayout;
52 class Q3Frame;
44 class QLabel; 53 class QLabel;
45 class QPushButton; 54 class QPushButton;
46 55
47 namespace AS { 56 namespace AS {
48 57
49 class Numdial : public QDialog 58 class Numdial : public QDialog
50 { 59 {
51 Q_OBJECT 60 Q_OBJECT
52 61
53 public: 62 public:
54 Numdial(QWidget *pParent = 0, const char *pkcName = 0, bool bModal = true, WFlags Flags = 0); 63 Numdial(QWidget *pParent = 0, const char *pkcName = 0, bool bModal = true, Qt::WFlags Flags = 0);
55 // ~Numdial(void); // No need to destroy widgets, because qt does it for us 64 // ~Numdial(void); // No need to destroy widgets, because qt does it for us
56 65
57 QFrame *m_pFrame; 66 Q3Frame *m_pFrame;
58 QLabel *m_pReportlabel; 67 QLabel *m_pReportlabel;
59 QSpinBox *m_pSpinbox; 68 QSpinBox *m_pSpinbox;
60 QLabel *m_pWeeklabel; 69 QLabel *m_pWeeklabel;
61 QPushButton *m_pOkaybutt; 70 QPushButton *m_pOkaybutt;
62 QPushButton *m_pCancelbutt; 71 QPushButton *m_pCancelbutt;
63 72
64 protected: 73 protected:
65 QVBoxLayout *m_pFormlayout; 74 Q3VBoxLayout *m_pFormlayout;
66 QVBoxLayout *m_pFramelay; 75 Q3VBoxLayout *m_pFramelay;
67 QHBoxLayout *m_pInputlay; 76 Q3HBoxLayout *m_pInputlay;
68 QHBoxLayout *m_pButtlay; 77 Q3HBoxLayout *m_pButtlay;
69 78
70 protected slots: 79 protected slots:
71 virtual void textChange(); 80 virtual void textChange();
72 81
73 public: 82 public:

mercurial