00001 //============================================== 00002 // copyright : (C) 2003 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // As a special exception, Will Stokes gives permission to 00011 // link this program with Qt non-commercial edition, and 00012 // distribute the resulting executable, without including the 00013 // source code for the Qt non-commercial edition in the 00014 // source distribution. 00015 //============================================== 00016 00017 #ifndef GUI_WINDOW_H 00018 #define GUI_WINDOW_H 00019 00020 //-------------------- 00021 //forward declarations 00022 class QGridLayout; 00023 class QPixmap; 00024 class TitleWidget; 00025 class LayoutWidget; 00026 class StatusWidget; 00027 //-------------------- 00028 00029 #include <qwidget.h> 00030 00031 //===================================== 00035 //===================================== 00036 class Window : public QWidget 00037 { 00038 Q_OBJECT 00039 //---------------------- 00040 public: 00042 Window( QWidget *parent=0, const char* name=0); 00043 00045 TitleWidget* getTitle(); 00046 00048 LayoutWidget* getLayout(); 00049 00051 StatusWidget* getStatus(); 00052 00054 void refresh(); 00055 //---------------------- 00056 protected: 00057 void closeEvent( QCloseEvent* e); 00058 //---------------------- 00059 private: 00061 QGridLayout* grid; 00062 00064 TitleWidget* title; 00065 00067 LayoutWidget* layout; 00068 00070 StatusWidget* status; 00071 00073 QPixmap* applicationIcon; 00074 //---------------------- 00075 }; 00076 //====================== 00077 00078 #endif //GUI_WINDOW_H
1.3.4