00001 #ifndef KDE_MAINWINDOW_H 00002 #define KDE_MAINWINDOW_H 00003 00004 #include <faith/widget.h> 00005 #include <faith/application.h> 00006 #include <faith/menubar.h> 00007 #include <faith/toolbar.h> 00008 #include <faith/ui.h> 00009 00010 namespace Faith 00011 { 00012 00019 class FAITH_UI_EXPORT MainWindow : public Widget 00020 { 00021 K_OBJECT 00022 static int sMainWindowCount; 00023 Faith::Widget *mCentralWidget; 00024 Faith::MenuBar *mMenuBar; 00025 Faith::ToolBar *mToolBar; 00026 00027 public: 00028 MainWindow(const char *name=0); 00029 ~MainWindow(); 00030 00031 Faith::MenuBar *menuBar(); 00032 Faith::ToolBar *toolBar(); 00033 void setCentralWidget(Faith::Widget *widget); 00034 Faith::Widget *centralWidget() { return mCentralWidget; } 00035 00036 private: 00037 void organize(); 00038 }; 00039 00040 } 00041 00042 #endif 00043
1.4.7