00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __TOPLEVEL_H__
00022 #define __TOPLEVEL_H__
00023
00024 #include <kmainwindow.h>
00025 #include <tqlistview.h>
00026
00027
00028 class TQSplitter;
00029 class TQWidgetStack;
00030
00031 class KToggleAction;
00032 class KAction;
00033
00034 class DockContainer;
00035 class IndexWidget;
00036 class SearchWidget;
00037 class HelpWidget;
00038 class ConfigModule;
00039 class ConfigModuleList;
00040 class ModuleTitle;
00041
00042 class TopLevel : public KMainWindow
00043 {
00044 Q_OBJECT
00045
00046 public:
00047 TopLevel( const char* name=0 );
00048 ~TopLevel();
00049
00050 protected:
00051 void setupActions();
00052
00053 protected slots:
00054 void activateModule(ConfigModule *);
00055 void categorySelected(TQListViewItem *category);
00056 void newModule(const TQString &name, const TQString& docPath, const TQString &quickhelp);
00057 void activateIconView();
00058 void activateTreeView();
00059
00060 void reportBug();
00061 void aboutModule();
00062
00063 void activateSmallIcons();
00064 void activateMediumIcons();
00065 void activateLargeIcons();
00066 void activateHugeIcons();
00067
00068 void deleteDummyAbout();
00069
00070 void slotSearchChanged(const TQString &);
00071 void slotHandbookRequest();
00072 void slotHelpRequest();
00073
00074 void changedModule(ConfigModule *changed);
00075
00076 bool queryClose();
00077
00078 private:
00079
00080 TQString handleAmpersand( TQString ) const;
00081
00082 TQSplitter *_splitter;
00083 TQWidgetStack *_stack;
00084 DockContainer *_dock;
00085 ModuleTitle *_title;
00086
00087 KToggleAction *tree_view, *icon_view;
00088 KToggleAction *icon_small, *icon_medium, *icon_large, *icon_huge;
00089 KAction *report_bug, *about_module;
00090
00091 IndexWidget *_index;
00092 SearchWidget *_search;
00093 HelpWidget *_help;
00094
00095 ConfigModule *_active;
00096 ConfigModuleList *_modules;
00097
00103 KAboutData *dummyAbout;
00104 };
00105
00106 #endif