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 //-------------------- 00027 00028 #include <qwidget.h> 00029 00030 //===================================== 00034 //===================================== 00035 class Window : public QWidget 00036 { 00037 //---------------------- 00038 public: 00040 Window( QWidget *parent=0, const char* name=0); 00041 00043 TitleWidget* getTitle(); 00044 00046 LayoutWidget* getLayout(); 00047 00049 void refresh(); 00050 //---------------------- 00051 private: 00053 QGridLayout* grid; 00054 00056 TitleWidget* title; 00057 00059 LayoutWidget* layout; 00060 00062 QPixmap* applicationIcon; 00063 //---------------------- 00064 }; 00065 //====================== 00066 00067 #endif //GUI_WINDOW_H