X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.h;h=93a711271d9418d4c614ca8871c30506ce87ef50;hb=faa66f7e00aeeea661b46f01bdfc715567eef669;hp=9104654e2c41420abdfb9baa87c9fcd83e08534f;hpb=76db8cdfbeffaaba359c8e80cf2146da9e9e7f8a;p=quassel.git diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index 9104654e..93a71127 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,11 +18,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef MAINWIN_H_ -#define MAINWIN_H_ +#pragma once -#ifdef HAVE_KDE +#include + +#ifdef HAVE_KDE4 # include +#elif defined HAVE_KF5 +# include #else # include #endif @@ -35,6 +38,7 @@ class ActionCollection; class BufferHotListFilter; class BufferView; class BufferViewConfig; +class ChatMonitorView; class ClientBufferViewConfig; class CoreAccount; class CoreConnectionStatusWidget; @@ -44,7 +48,6 @@ class InputWidget; class MsgProcessorStatusWidget; class NickListWidget; class SystemTray; -class ChatMonitorView; class TopicWidget; class QMenu; @@ -56,10 +59,9 @@ class KHelpMenu; //!\brief The main window of Quassel's QtUi. class MainWin #ifdef HAVE_KDE - : public KMainWindow -{ + : public KMainWindow { #else -: public QMainWindow { + : public QMainWindow { #endif Q_OBJECT @@ -84,6 +86,9 @@ public: void saveStateToSettings(UiSettings &); void restoreStateFromSettings(UiSettings &); + // We need to override this to add the show/hide menu bar option + virtual QMenu *createPopupMenu(); + public slots: void showStatusBarMessage(const QString &message); void hideCurrentBuffer(); @@ -122,7 +127,9 @@ private slots: void showNotificationsDlg(); void showIgnoreList(QString newRule = QString()); void showShortcutsDlg(); - void toggleFullscreen(); + void showPasswordChangeDlg(); + void showNewTransferDlg(const QUuid &transferId); + void onFullScreenToggled(); void handleCoreConnectionError(const QString &errorMsg); void userAuthenticationRequired(CoreAccount *, bool *valid, const QString &errorMessage); @@ -136,6 +143,7 @@ private slots: void on_actionConfigureViews_triggered(); void on_actionLockLayout_toggled(bool lock); void on_jumpHotBuffer_triggered(); + void on_bufferSearch_triggered(); void on_actionDebugNetworkModel_triggered(); void on_actionDebugBufferViewOverlay_triggered(); void on_actionDebugMessageModel_triggered(); @@ -152,6 +160,7 @@ private slots: void saveMenuBarStatus(bool enabled); void saveStatusBarStatus(bool enabled); + void saveMainToolBarStatus(bool enabled); void loadLayout(); void saveLayout(); @@ -200,6 +209,7 @@ private: ChatMonitorView *_chatMonitorView; TopicWidget *_topicWidget; + QAction *_fullScreenAction; QMenu *_fileMenu, *_networksMenu, *_viewMenu, *_bufferViewsMenu, *_settingsMenu, *_helpMenu, *_helpDebugMenu; QMenu *_toolbarMenu; QToolBar *_mainToolBar, *_chatViewToolBar, *_nickToolBar; @@ -217,6 +227,3 @@ private: friend class QtUi; }; - - -#endif