OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_reportpanel.h versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_reportpanel.h 1.3 -> 1.4

--- as_reportpanel.h     2003/02/19 18:23:16     1.3
+++ as_reportpanel.h     2003/02/20 16:48:00     1.4
@@ -42,23 +42,25 @@
 class QVBoxLayout;
 class QHBoxLayout;
 class QGridLayout;
-class QGroupBox;
 class QPushButton;
 class QTextEdit;
 class QToolButton;
+class QButtonGroup;
+class QPopupMenu;
+
+namespace AS {
 
 class Reportpanel : public QDialog
 {
     Q_OBJECT
 
 public:
-    Reportpanel(TiTable *pTable, Preferences *pPreferences,
-                QWidget *pParent = 0, const char *kszName = 0,
-                bool bModal = true, WFlags Flags = 0);
+    Reportpanel(TiTable *, Preferences *, QWidget *pParent = 0,
+                const char *kszName = 0, bool bModal = true, WFlags Flags = 0);
 //    ~Reportpanel(void); // No need to destroy widgets, because qt does it for us
 
 public:
-    QGroupBox    *m_pGroupbox;
+    QButtonGroup *m_pWeekmonthgroup;
     QToolButton  *m_pWeeklybutt;
     QToolButton  *m_pMonthlybutt;
     QToolButton  *m_pBothbutt;
@@ -71,21 +73,32 @@
     QVBoxLayout *m_pGrouplay;
     QHBoxLayout *m_pToolay;
     QHBoxLayout *m_pPushlay;
+    QHBoxLayout *m_pWeekmonthlay;
+    QPopupMenu  *m_pWeekpop;
+    QPopupMenu  *m_pMonthpop;
 
 private:
+    int          m_nWeeks;
+    int          m_nMonths;
     TiTable     *m_pReptable;
     Preferences *m_pReprefs;
 
+public slots:
+    int exec(void);
+
 protected slots:
     virtual void saveReport(void);
     virtual void textChange(void);
-    virtual void reportWeeks(int nWeeks = 1);
-    virtual void reportMonths(int nMonths = 1);
+    virtual void reportWeeks(int nMenuid = -1);
+    virtual void reportMonths(int nMenuid = -1);
+    virtual void reportBoth(int nMenuid = -1);
 
 private:
     void writeHeader(void);
+    void writeFooter(void);
     QString getWeek(QDate Refer = QDate::currentDate());
     QString getMonth(QDate Refer = QDate::currentDate());
 };
+} // namespace AS
 
 #endif // REPORTPANEL_H

CVSTrac 2.0.1