X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=670bcaf1c37dad80b07d8bba751fdd814bb66a46;hp=1bff138b491863f4ae3879e0c6bafacfd8588f87;hb=bc5aa95a2df7cbea81bb97345717c2763c9cf21d;hpb=4775cbfc0dde54bad2a483a51409f392187a20f3 diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index 1bff138b..670bcaf1 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -21,7 +21,12 @@ #ifndef MAINWIN_H_ #define MAINWIN_H_ -#include +#ifdef HAVE_KDE +# include +#else +# include +#endif + #include #include "qtui.h" @@ -29,7 +34,9 @@ #include "titlesetter.h" class ActionCollection; +class BufferView; class BufferViewConfig; +class BufferViewDock; class BufferWidget; class MsgProcessorStatusWidget; class NickListWidget; @@ -38,8 +45,15 @@ class SystemTrayIcon; class QMenu; class QLabel; +class KHelpMenu; + //!\brief The main window of Quassel's QtUi. -class MainWin : public QMainWindow { +class MainWin +#ifdef HAVE_KDE +: public KMainWindow { +#else +: public QMainWindow { +#endif Q_OBJECT public: @@ -49,6 +63,7 @@ class MainWin : public QMainWindow { void init(); void addBufferView(BufferViewConfig *config = 0); + BufferView *allBuffersView() const; inline QSystemTrayIcon *systemTrayIcon() const; @@ -56,6 +71,7 @@ class MainWin : public QMainWindow { public slots: void saveStateToSession(const QString &sessionId); void saveStateToSessionSettings(SessionSettings &s); + void showStatusBarMessage(const QString &message); protected: void closeEvent(QCloseEvent *event); @@ -79,10 +95,16 @@ class MainWin : public QMainWindow { void showCoreConnectionDlg(bool autoConnect = false); void showCoreInfoDlg(); void showSettingsDlg(); - void on_actionEditNetworks_triggered(); - void on_actionManageViews_triggered(); + void showNotificationsDlg(); +#ifdef HAVE_KDE + void showShortcutsDlg(); +#endif + void on_actionConfigureNetworks_triggered(); + void on_actionConfigureViews_triggered(); void on_actionLockDockPositions_toggled(bool lock); void on_actionDebugNetworkModel_triggered(); + void on_actionDebugMessageModel_triggered(); + void on_actionDebugLog_triggered(); void clientNetworkCreated(NetworkId); void clientNetworkRemoved(NetworkId); @@ -99,6 +121,9 @@ class MainWin : public QMainWindow { void disconnectFromCore(); private: +#ifdef HAVE_KDE + KHelpMenu *_kHelpMenu; +#endif QMenu *systrayMenu; QLabel *coreLagLabel; @@ -125,7 +150,7 @@ class MainWin : public QMainWindow { QSystemTrayIcon *_trayIcon; - QList _netViews; + QList _bufferViews; BufferWidget *_bufferWidget; NickListWidget *_nickListWidget;