1 /***************************************************************************
2 * Copyright (C) 2005-07 by The Quassel Team *
3 * devel@quassel-irc.org *
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. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
25 #include "ui_mainwin.h"
27 #include "quasselui.h"
30 #include "chatwidget.h"
31 #include "bufferviewfilter.h"
32 #include "bufferview.h"
39 //!\brief The main window and central object of Quassel GUI.
40 /** In addition to displaying the main window including standard stuff like a menubar,
41 * dockwidgets and of course the chat window, this class also stores all data it
42 * receives from the core, and it maintains a list of all known nicks.
44 class MainWin : public QMainWindow, public AbstractUi {
52 void addBufferView(const QString &, QAbstractItemModel *, const BufferViewFilter::Modes &, const QStringList &);
54 AbstractUiMsg *layoutMsg(const Message &);
57 void closeEvent(QCloseEvent *event);
59 //void importOldBacklog();
63 void showServerList();
64 void showSettingsDlg();
66 void showBuffer(BufferId);
67 void showBuffer(Buffer *);
72 void importOldBacklog();
79 void setupSettingsDlg();
81 QSystemTrayIcon *systray;
83 ServerListDlg *serverListDlg;
84 CoreConnectDlg *coreConnectDlg;
85 SettingsDlg *settingsDlg;
89 QList<QDockWidget *> netViews;