as_reportpanel.h

changeset 3
c1941114ca88
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
equal deleted inserted replaced
0:238026d65c6b 1:d4f6eb3aeb02
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_reportpanel.h: ISO C++ interface 29 // as_reportpanel.h: ISO C++ interface
30 // 30 //
31 31
32 #define QT3_SUPPORT
33
32 #ifndef REPORTPANEL_H 34 #ifndef REPORTPANEL_H
33 #define REPORTPANEL_H 35 #define REPORTPANEL_H
34 36
35 #include <qvariant.h> 37 #include <qvariant.h>
36 #include <qdialog.h> 38 #include <qdialog.h>
37 #include <qdatetime.h> 39 #include <qdatetime.h>
38 40
41 //Added by qt3to4:
42 #include <Q3GridLayout>
43 #include <Q3HBoxLayout>
44 #include <Q3VBoxLayout>
45 #include <Q3PopupMenu>
46
39 47
40 class TiTable; 48 class TiTable;
41 class Preferences; 49 class Preferences;
42 class QVBoxLayout; 50 class Q3VBoxLayout;
43 class QHBoxLayout; 51 class Q3HBoxLayout;
44 class QGridLayout; 52 class Q3GridLayout;
45 class QPushButton; 53 class QPushButton;
46 class QTextEdit; 54 class Q3TextEdit;
47 class QToolButton; 55 class QToolButton;
48 class QButtonGroup; 56 class Q3ButtonGroup;
49 class QPopupMenu; 57 class Q3PopupMenu;
50 class QPrinter; 58 class QPrinter;
51 59
52 namespace AS { 60 namespace AS {
53 61
54 class Reportpanel : public QDialog 62 class Reportpanel : public QDialog
55 { 63 {
56 Q_OBJECT 64 Q_OBJECT
57 65
58 public: 66 public:
59 Reportpanel(TiTable *, Preferences *, QWidget *pParent = 0, 67 Reportpanel(TiTable *, Preferences *, QWidget *pParent = 0,
60 const char *kszName = 0, bool bModal = true, WFlags Flags = 0); 68 const char *kszName = 0, bool bModal = true, Qt::WFlags Flags = 0);
61 // ~Reportpanel(void); // No need to destroy widgets, because qt does it for us 69 // ~Reportpanel(void); // No need to destroy widgets, because qt does it for us
62 70
63 public: 71 public:
64 QButtonGroup *m_pWeekmonthgroup; 72 Q3ButtonGroup *m_pWeekmonthgroup;
65 QToolButton *m_pWeeklybutt; 73 QToolButton *m_pWeeklybutt;
66 QToolButton *m_pMonthlybutt; 74 QToolButton *m_pMonthlybutt;
67 QTextEdit *m_pBrowser; 75 Q3TextEdit *m_pBrowser;
68 QPushButton *m_pSavebutt; 76 QPushButton *m_pSavebutt;
69 QPushButton *m_pDismissbutt; 77 QPushButton *m_pDismissbutt;
70 QPushButton *m_pPrintbutt; 78 QPushButton *m_pPrintbutt;
71 79
72 protected: 80 protected:
73 QVBoxLayout *m_pFormlay; 81 Q3VBoxLayout *m_pFormlay;
74 QVBoxLayout *m_pGrouplay; 82 Q3VBoxLayout *m_pGrouplay;
75 QHBoxLayout *m_pToolay; 83 Q3HBoxLayout *m_pToolay;
76 QHBoxLayout *m_pPushlay; 84 Q3HBoxLayout *m_pPushlay;
77 QHBoxLayout *m_pWeekmonthlay; 85 Q3HBoxLayout *m_pWeekmonthlay;
78 QPopupMenu *m_pWeekpop; 86 Q3PopupMenu *m_pWeekpop;
79 QPopupMenu *m_pMonthpop; 87 Q3PopupMenu *m_pMonthpop;
80 88
81 private: 89 private:
82 int m_nWeeks; 90 int m_nWeeks;
83 int m_nMonths; 91 int m_nMonths;
84 TiTable *m_pReptable; 92 TiTable *m_pReptable;

mercurial