X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=dd0459c56ef90b5c80b43aec48adb8cd9a1eaab2;hp=86c8de0199c5a107b4b39cd467d8344a062b55aa;hb=8c16bc6817aac177791686ac1a5ad8ee2d93410c;hpb=11f042e025f1e8e304c3de2cb7d3b55de39d9ed6 diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index 86c8de01..dd0459c5 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -38,6 +38,7 @@ #include "uisettings.h" class ActionCollection; +class BufferHotListFilter; class BufferView; class BufferViewConfig; class ClientBufferViewConfig; @@ -79,9 +80,10 @@ class MainWin static void flagRemoteCoreOnly(QObject *object) { object->setProperty("REMOTE_CORE_ONLY", true); } static bool isRemoteCoreOnly(QObject *object) { return object->property("REMOTE_CORE_ONLY").toBool(); } + void saveStateToSettings(UiSettings &); + void restoreStateFromSettings(UiSettings &); + public slots: - void saveStateToSession(const QString &sessionId); - void saveStateToSessionSettings(SessionSettings &s); void showStatusBarMessage(const QString &message); void toggleMinimizedToTray(); @@ -89,9 +91,14 @@ class MainWin //! Bring window to front and focus it void forceActivated(); + //! Quit application + void quit(); + protected: void closeEvent(QCloseEvent *event); void changeEvent(QEvent *event); + void moveEvent(QMoveEvent *event); + void resizeEvent(QResizeEvent *event); protected slots: void connectedToCore(); @@ -119,9 +126,11 @@ class MainWin void on_actionConfigureNetworks_triggered(); void on_actionConfigureViews_triggered(); void on_actionLockLayout_toggled(bool lock); + void on_jumpHotBuffer_triggered(); void on_actionDebugNetworkModel_triggered(); void on_actionDebugBufferViewOverlay_triggered(); void on_actionDebugMessageModel_triggered(); + void on_actionDebugHotList_triggered(); void on_actionDebugLog_triggered(); void clientNetworkCreated(NetworkId); @@ -162,6 +171,7 @@ class MainWin void setupSystray(); void setupTitleSetter(); void setupToolBars(); + void setupHotList(); void updateIcon(); void enableMenus(); @@ -180,11 +190,17 @@ class MainWin QToolBar *_mainToolBar, *_chatViewToolBar, *_nickToolBar; QWidget *_awayLog; - friend class QtUi; + + QSize _normalSize; //!< Size of the non-maximized window + QPoint _normalPos; //!< Position of the non-maximized window #ifdef Q_WS_WIN DWORD dwTickCount; #endif + + BufferHotListFilter *_bufferHotList; + + friend class QtUi; }; SystemTray *MainWin::systemTray() const {