Pressing enter in the topic line now sets the channel topic.
[quassel.git] / src / qtui / mainwin.h
index d194a6f..57c8bb3 100644 (file)
@@ -52,6 +52,7 @@ class MainWin : public QMainWindow {
 
   protected:
     void closeEvent(QCloseEvent *event);
+    virtual void changeEvent(QEvent *event);
 
   protected slots:
     void connectedToCore();
@@ -59,8 +60,9 @@ class MainWin : public QMainWindow {
     void systrayActivated( QSystemTrayIcon::ActivationReason );
 
   private slots:
-
     void showSettingsDlg();
+    void showNetworkDlg();
+    void showAboutDlg();
     void showDebugConsole();
 
     void showCoreConnectionDlg(bool autoConnect = false);
@@ -71,6 +73,8 @@ class MainWin : public QMainWindow {
     void clientNetworkUpdated();
     void connectOrDisconnectFromNet();
 
+    void changeTopic(const QString &topic);
+
   signals:
     void connectToCore(const QVariantMap &connInfo);
     void disconnectFromCore();
@@ -80,6 +84,8 @@ class MainWin : public QMainWindow {
     Ui::MainWin ui;
     QtUi *gui;
 
+    QMenu *systrayMenu;
+
     void setupMenus();
     void setupViews();
     void setupNickWidget();
@@ -90,12 +96,15 @@ class MainWin : public QMainWindow {
 
     void setupSettingsDlg();
 
+    void toggleVisibility();
+
     void enableMenus();
 
     QSystemTrayIcon *systray;
 
     CoreConnectDlg *coreConnectDlg;
     SettingsDlg *settingsDlg;
+    DebugConsole *debugConsole;
 
     BufferId currentBuffer;
     QString currentProfile;
@@ -107,7 +116,6 @@ class MainWin : public QMainWindow {
     QAction *actionEditNetworks;
     QList<QAction *> networkActions;
 
-    DebugConsole *debugConsole;
     friend class QtUi;
 };