1 /***************************************************************************
2 * Copyright (C) 2004 by Kita Developers *
3 * ikemo@users.sourceforge.jp *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
18 #include <kapplication.h>
19 #include <kparts/dockmainwindow.h>
27 class KitaBBSTabWidget;
28 class KitaBoardTabWidget;
31 class KitaThreadTabWidget;
33 class KitaWriteTabWidget;
42 * This class serves as the main window for Kita. It handles the
43 * menus, toolbars, and status bars.
45 * @short Main window class
46 * @author $AUTHOR <$EMAIL>
47 * @version $APP_VERSION
50 class KitaMainWindow : public KDockMainWindow
55 virtual ~KitaMainWindow();
57 void load( const KURL& url );
58 void slotSetMainStatusbar( const QString& statusStr );
59 void setUrl( const KURL& url );
60 void bookmark( const QString& datURL, bool on );
63 void closeSubjectView();
65 void newToolbarConfig();
66 void optionsShowToolbar();
67 void optionsShowStatusbar();
68 void optionsConfigureKeys();
69 void optionsConfigureToolbars();
70 void optionsPreferences();
71 void settingsMenuAboutToShow();
72 void setFont( const QFont& font );
74 void slotCheckSubjectToggleAction( bool check );
75 void slotCheckWriteToggleAction( bool check );
82 KToggleAction *m_toolbarAction;
83 KToggleAction *m_statusbarAction;
84 KToggleAction* m_subjectListAction;
85 KToggleAction* m_showWriteDockAction;
86 KAction* m_toggleViewAction;
88 KDockWidget* m_dummyDock; /* dummy MainDockWidget */
89 KitaBoardDock* m_boardDock;
90 KitaThreadDock* m_threadDock;
91 KitaWriteDock* m_writeDock;
93 KitaThreadTabWidget* m_threadTab;
94 KitaBBSTabWidget* m_bbsTab;
95 KitaBoardTabWidget* m_boardTab;
96 KitaWriteTabWidget* m_writeTab;
102 void loadFavorites();
103 void saveFavorites();
104 void loadFavoriteBoards();
105 void saveFavoriteBoards();
106 void loadCompletion();
107 void loadStyleSheet();
108 void saveStyleSheet();
110 void loadAboneIDList();
111 void loadAboneNameList();
112 void loadAboneWordList();