-
-signals:
- void connectToCore(const QVariantMap &connInfo);
- void disconnectFromCore();
- void requestBacklog(BufferInfo, QVariant, QVariant);
-
-private:
- Ui::MainWin ui;
-
- QMenu *systrayMenu;
- QLabel *coreLagLabel;
- QLabel *sslLabel;
- MsgProcessorStatusWidget *msgProcessorStatusWidget;
-
- TitleSetter _titleSetter;
-
- void setupMenus();
- void setupViews();
- void setupNickWidget();
- void setupChatMonitor();
- void setupInputWidget();
- void setupTopicWidget();
- void setupStatusBar();
- void setupSystray();
-
- void toggleVisibility();
-
- void enableMenus();
-
- QSystemTrayIcon *systray;
- QIcon activeTrayIcon;
- QIcon onlineTrayIcon;
- QIcon offlineTrayIcon;
- bool trayIconActive;
- QTimer *timer;
-
- BufferId currentBuffer;
- QString currentProfile;
-
- QList<QDockWidget *> _netViews;
- NickListWidget *nickListWidget;
-
-#ifdef HAVE_DBUS
- org::freedesktop::Notifications *desktopNotifications;
- quint32 notificationId;
+ 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);
+ void clientNetworkRemoved(NetworkId);
+ void clientNetworkUpdated();
+ void connectOrDisconnectFromNet();
+
+ void saveMenuBarStatus(bool enabled);
+ void saveStatusBarStatus(bool enabled);
+
+ void loadLayout();
+ void saveLayout();
+
+ void bufferViewToggled(bool enabled);
+
+ signals:
+ void connectToCore(const QVariantMap &connInfo);
+ void disconnectFromCore();
+
+ private:
+#ifdef HAVE_KDE
+ KHelpMenu *_kHelpMenu;
+#endif
+
+ QLabel *coreLagLabel;
+ QLabel *sslLabel;
+ MsgProcessorStatusWidget *msgProcessorStatusWidget;
+
+ TitleSetter _titleSetter;
+
+ void setupActions();
+ void setupBufferWidget();
+ void setupMenus();
+ void setupNickWidget();
+ void setupChatMonitor();
+ void setupInputWidget();
+ void setupTopicWidget();
+ void setupStatusBar();
+ void setupSystray();
+ void setupTitleSetter();
+ void setupToolBars();
+ void setupHotList();
+
+ void updateIcon();
+ void enableMenus();
+
+ void hideToTray();
+
+ SystemTray *_systemTray;
+
+ QList<BufferViewDock *> _bufferViews;
+ BufferWidget *_bufferWidget;
+ NickListWidget *_nickListWidget;
+ InputWidget *_inputWidget;
+
+ QMenu *_fileMenu, *_networksMenu, *_viewMenu, *_bufferViewsMenu, *_settingsMenu, *_helpMenu, *_helpDebugMenu;
+ QMenu *_toolbarMenu;
+ QToolBar *_mainToolBar, *_chatViewToolBar, *_nickToolBar;
+
+ QWidget *_awayLog;
+
+ QSize _normalSize; //!< Size of the non-maximized window
+ QPoint _normalPos; //!< Position of the non-maximized window
+
+#ifdef Q_WS_WIN
+ DWORD dwTickCount;