00001 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 #ifndef _DLGSTATUS_H_
00031 #define _DLGSTATUS_H_
00032 
00033 
00034 
00035 
00036 
00037 
00038 #include <osbconst.h>
00039 #include <qbuttongroup.h>
00040 #include <qdialog.h>
00041 
00042 
00043 
00044 
00045 
00046 namespace OSB_GUI {
00047     class DateSelect;
00048 }
00049 
00050 namespace OSB_LIB {
00051     class Date;
00052 }
00053 
00054 class QVBoxLayout;
00055 class QHBoxLayout;
00056 class QGridLayout;
00057 class QFrame;
00058 class QPushButton;
00059 class QLabel;
00060 class QRadioButton;
00061 
00062 
00063 
00064 namespace OSB_GUI {
00065 
00066 
00067 
00071     class GroupBoxStatus : public QButtonGroup {
00072     public:
00074         GroupBoxStatus(
00075                   OSB_LIB::CfgStatus status,
00076                   QWidget*           parent,
00077             const char*              name = "gbStatus_"
00078         );
00080         void destroy() const;
00082         void languageChange();
00084         OSB_LIB::CfgStatus cfgStatus() const;
00085     private:
00087         ~GroupBoxStatus();
00094         void setup(OSB_LIB::CfgStatus status);
00095     private:
00097 
00098         QGridLayout*  gridLayout_;
00099         QRadioButton* rbEditable_;
00100         QLabel*       tlEditable_;
00101         QRadioButton* rbStandby_;
00102         QLabel*       tlStandBy_;
00103         QRadioButton* rbTesting_;
00104         QLabel*       tlTesting_;
00105         QRadioButton* rbReleased_;
00106         QLabel*       tlReleased_;
00108     };                                  
00109 
00113     class DlgStatus : public QDialog {
00114         Q_OBJECT                        
00115     public:
00117         DlgStatus(
00118                   OSB_LIB::CfgStatus status,
00119                   QWidget*           parent,
00120             const char*              name  = "dlgStatus",
00121                   bool               modal = false,
00122                   WFlags             fl    = 0
00123         );
00130         OSB_LIB::CfgStatus cfgStatus() const;
00131     protected slots:
00133         virtual void languageChange();
00134     private:
00136 
00137         GroupBoxStatus* gbStatus_;
00138         QPushButton*    pbOk_;
00139         QPushButton*    pbCancel_;
00141 
00143 
00144         QFrame*      linePb_;
00145         QVBoxLayout* dlgLayout_;
00146         QHBoxLayout* pbLayout_;
00148     };                                  
00149 
00153     class DlgStatusRd : public QDialog {
00154         Q_OBJECT                        
00155     public:
00163         DlgStatusRd(
00164                   OSB_LIB::CfgStatus status,
00165             const OSB_LIB::Date&     releaseTs,
00166                   QWidget*           parent,
00167             const char*              name  = "dlgStatus",
00168                   bool               modal = false,
00169                   WFlags             fl    = 0
00170         );
00177         OSB_LIB::CfgStatus cfgStatus() const;
00183         OSB_LIB::Date releaseDate() const;
00184     protected slots:
00186         virtual void languageChange();
00187     private:
00189 
00190         GroupBoxStatus* gbStatus_;
00191         DateSelect*     dateSelect_;
00192         QPushButton*    pbOk_;
00193         QPushButton*    pbCancel_;
00195 
00197 
00198 
00199         QFrame*      lineSd_;
00201         QFrame*      linePb_;
00203         QVBoxLayout* loDialog_;
00205         QHBoxLayout* loTop_;
00207         QHBoxLayout* loPb_;
00209     };                                  
00210 }                                       
00211 #endif                                  // #ifndef _DLGSTATUS_H_