dlgstatus.h

Go to the documentation of this file.
00001 // OSB library ************************************************ -*- C++ -*-
00006 /*
00007   AUTHOR(S): Stephan Broennimann (vb)
00008 
00009   RCS information
00010    $Name: OSB_060808 $
00011    $Revision: 1.13 $
00012 
00013   License
00014    OSB rating and billing library for communication networks
00015    Copyright (C) 2004, 2005, 2006  OSB systems
00016 
00017    This file may be distributed and/or modify under the terms of the
00018    GNU General Public License (GPL) as published by the Free Software
00019    Foundation which is provided in the file LICENSE.GPL included in the
00020    packaging of this file.
00021 
00022    The file is distributed in the hope that it will be useful, but WITHOUT
00023    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00024    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00025    for more details.
00026 
00027    Holders of a OSB Commercial License may use this file under the terms
00028    and conditions of this commercial license.
00029  */
00030 #ifndef _DLGSTATUS_H_
00031 #define _DLGSTATUS_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 
00037 // + libraries
00038 #include <osbconst.h>
00039 #include <qbuttongroup.h>
00040 #include <qdialog.h>
00041 
00042 // + local headers
00043 
00044 // ************************************************************************
00045 // class declarations
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 // namespace extensions
00064 namespace OSB_GUI {
00065 
00066 // ************************************************************************
00067 // class definitions
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     };                                  // class GroupBoxStatus
00109 
00113     class DlgStatus : public QDialog {
00114         Q_OBJECT                        // for vim ->;
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     };                                  // class DlgStatus
00149 
00153     class DlgStatusRd : public QDialog {
00154         Q_OBJECT                        // for vim ->;
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     };                                  // class DlgStatusRd
00210 }                                       // namespace OSB_GUI
00211 #endif                                  // #ifndef _DLGSTATUS_H_

Generated on Sat Sep 2 14:17:36 2006 for OSB Library by  doxygen 1.4.7