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 ***************************************************************************/
10 #ifndef KITAMAINWINDOW_H
11 #define KITAMAINWINDOW_H
13 #include <kxmlguiwindow.h>
22 class ThreadTabWidget;
27 * This class serves as the main window for Kita. It handles the
28 * menus, toolbars, and status bars.
30 * @short Main window class
31 * @author $AUTHOR <$EMAIL>
32 * @version $APP_VERSION
35 class MainWindow : public KXmlGuiWindow
40 virtual ~MainWindow();
42 void load(const KUrl& url);
43 void setMainStatus(const QString& statusStr);
44 void setUrl(const KUrl& url);
45 void bookmark(const QString& datUrl, bool on);
49 void newToolbarConfig();
50 void optionsShowToolbar();
51 void optionsShowStatusbar();
52 void optionsConfigureKeys();
53 void optionsConfigureToolbars();
54 void optionsPreferences();
55 void settingsMenuAboutToShow();
56 void setFont(const QFont& font);
64 KToggleAction *m_toolbarAction;
65 KToggleAction *m_statusbarAction;
67 ThreadTabWidget* m_threadTab;
68 BBSTabWidget* m_bbsTab;
69 BoardTabWidget* m_boardTab;
70 WriteTabWidget* m_writeTab;
72 Preferences *m_prefDialog;
79 void loadFavoriteBoards();
80 void saveFavoriteBoards();
81 void loadCompletion();
83 void loadAboneIDList();
84 void loadAboneNameList();
85 void loadAboneWordList();
87 MainWindow(const MainWindow&);
88 MainWindow& operator=(const MainWindow&);
92 #endif // MAINWINDOW_H