X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=a1fa44439a53d48aa622940cf39f4d183df3432c;hp=53548bfedcce659ae9bbc46789bd6b83d3695981;hb=15d94f850d7e82b9f9f65ec162d9db13f750d23f;hpb=d452877910888c25d40590b5fff57eb8197ca9b0 diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index 53548bfe..a1fa4443 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -70,6 +70,7 @@ class MainWin void addBufferView(ClientBufferViewConfig *config); BufferView *allBuffersView() const; + BufferView *activeBufferView() const; inline BufferWidget *bufferWidget() const { return _bufferWidget; } inline SystemTray *systemTray() const { return _systemTray; } @@ -84,6 +85,10 @@ class MainWin public slots: void showStatusBarMessage(const QString &message); + void nextBufferView(); //!< Activate the next bufferview + void previousBufferView(); //!< Activate the previous bufferview + void nextBuffer(); + void previousBuffer(); //! Quit application void quit(); @@ -114,9 +119,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); @@ -135,6 +140,9 @@ class MainWin void on_actionDebugHotList_triggered(); void on_actionDebugLog_triggered(); + void bindJumpKey(); + void onJumpKey(); + void clientNetworkCreated(NetworkId); void clientNetworkRemoved(NetworkId); void clientNetworkUpdated(); @@ -147,6 +155,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); @@ -170,6 +181,7 @@ class MainWin void setupChatMonitor(); void setupInputWidget(); void setupTopicWidget(); + void setupViewMenuTail(); void setupStatusBar(); void setupSystray(); void setupTitleSetter(); @@ -198,6 +210,8 @@ class MainWin QPoint _normalPos; //!< Position of the non-maximized window BufferHotListFilter *_bufferHotList; + QHash _jumpKeyMap; + int _activeBufferViewIndex; friend class QtUi; };