X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=49b49d70a5f33b1c4419aeea30e5e8ec37b0be5c;hp=010a1bc7bff3ca3b1c9d149e030e9586851163bc;hb=9f33f6e471dedbefe7bbe336a40312894628afe1;hpb=8e9f08aa0f4e663473b634511b1bcc40145e9ba9 diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index 010a1bc7..49b49d70 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -27,10 +27,6 @@ # include #endif -#ifdef Q_WS_WIN -# include -#endif - #include "qtui.h" #include "titlesetter.h" #include "uisettings.h" @@ -74,12 +70,10 @@ class MainWin void addBufferView(ClientBufferViewConfig *config); BufferView *allBuffersView() const; + BufferView *activeBufferView() const; inline BufferWidget *bufferWidget() const { return _bufferWidget; } - -#ifndef QT_NO_SYSTEMTRAYICON inline SystemTray *systemTray() const { return _systemTray; } -#endif bool event(QEvent *event); @@ -91,20 +85,17 @@ class MainWin public slots: void showStatusBarMessage(const QString &message); - -#ifndef QT_NO_SYSTEMTRAYICON - void toggleMinimizedToTray(); -#endif - - //! Bring window to front and focus it - void forceActivated(); + void hideCurrentBuffer(); + void nextBufferView(); //!< Activate the next bufferview + void previousBufferView(); //!< Activate the previous bufferview + void nextBuffer(); + void previousBuffer(); //! Quit application void quit(); protected: void closeEvent(QCloseEvent *event); - void changeEvent(QEvent *event); void moveEvent(QMoveEvent *event); void resizeEvent(QResizeEvent *event); @@ -129,9 +120,9 @@ class MainWin void showSettingsDlg(); void showNotificationsDlg(); void showIgnoreList(QString newRule = QString()); -#ifdef HAVE_KDE void showShortcutsDlg(); -#endif + void toggleFullscreen(); + void handleCoreConnectionError(const QString &errorMsg); void userAuthenticationRequired(CoreAccount *, bool *valid, const QString &errorMessage); void handleNoSslInClient(bool *accepted); @@ -150,6 +141,9 @@ class MainWin void on_actionDebugHotList_triggered(); void on_actionDebugLog_triggered(); + void bindJumpKey(); + void onJumpKey(); + void clientNetworkCreated(NetworkId); void clientNetworkRemoved(NetworkId); void clientNetworkUpdated(); @@ -162,6 +156,9 @@ class MainWin void saveLayout(); void bufferViewToggled(bool enabled); + void bufferViewVisibilityChanged(bool visible); + void changeActiveBufferView(bool backwards); + void changeActiveBufferView(int bufferViewId); signals: void connectToCore(const QVariantMap &connInfo); @@ -174,6 +171,7 @@ class MainWin MsgProcessorStatusWidget *_msgProcessorStatusWidget; CoreConnectionStatusWidget *_coreConnectionStatusWidget; + SystemTray *_systemTray; TitleSetter _titleSetter; @@ -184,6 +182,7 @@ class MainWin void setupChatMonitor(); void setupInputWidget(); void setupTopicWidget(); + void setupViewMenuTail(); void setupStatusBar(); void setupSystray(); void setupTitleSetter(); @@ -193,11 +192,6 @@ class MainWin void updateIcon(); void enableMenus(); -#ifndef QT_NO_SYSTEMTRAYICON - void hideToTray(); - SystemTray *_systemTray; -#endif - QList _bufferViews; BufferWidget *_bufferWidget; NickListWidget *_nickListWidget; @@ -216,11 +210,9 @@ class MainWin 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; + QHash _jumpKeyMap; + int _activeBufferViewIndex; friend class QtUi; };