frmoa.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.11 $
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 _FRMOSBADMIN_H_
00031 #define _FRMOSBADMIN_H_
00032 
00033 // ************************************************************************
00034 // included header files
00035 // + standard includes
00036 
00037 // + libraries
00038 #include <qmainwindow.h>
00039 
00040 // + local headers
00041 #include "adminwidget.h"
00042 
00043 // class declarations
00044 namespace OSB_LIB {
00045     class OsbUser;
00046 }
00047 // + Qt
00048 class QAction;
00049 class QLabel;
00050 class QListBox;
00051 
00052 // ************************************************************************
00053 // namespace extensions
00054 namespace OSB_GUI {
00055 
00056 // ************************************************************************
00057 // class definitions
00061     class FrmOa : public QMainWindow {
00062         Q_OBJECT                        // for vim ->;
00063     public:
00065         explicit FrmOa(
00066                   QWidget* parent = 0,
00067             const char*    name   = "FrmOa",
00068                   WFlags   fl     = WType_TopLevel
00069         );
00070 
00071     public slots:
00081         void statusMessage(
00082             const QString& msg = "",
00083                   int      ms  = -1
00084         );
00085 
00086     private slots:
00088         void languageChange();
00089 
00093         void waitToggled(bool);
00094 
00096         void windowActivated(QWidget* w);
00098         void showWindow(QListBoxItem* item);
00104         void showWindow(int type);
00106         void cfgWindowMenu();
00107 
00108     private:
00114         void buildMenu(AdminWidget* adm);
00121         void closeEvent(QCloseEvent* e);
00123         bool showWindow(AdminType type);
00124 
00132         AdminWidget* find(AdminType type);
00133 
00134     private:
00136         QWorkspace*  workspace_;
00138         QListBox*    admList_;
00140         QDockWindow* admDock_;
00141 
00143         AdminWidget* curAdmin_;
00144 
00146         QLabel* statusMsg_;
00148         QTimer* statusTimer_;
00149 
00151         QPopupMenu*  menuAdmin_;
00153         QPopupMenu*  menuWindow_;
00155         QAction*     adminExit_;
00157         QAction*     optWait_;
00158     };                                  // class FrmOa
00159 }                                       // namespace OSB_GUI
00160 #endif                                  // #ifndef _FRMOSBADMIN_H_

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