add return key to toolbar as input method is broken
[presencevnc] / src / mainwindow.h
index f3451be..fcdab29 100644 (file)
@@ -1,3 +1,21 @@
+/*
+    Presence VNC
+    Copyright (C) 2010 Christian Pulvermacher
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+*/
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
@@ -12,7 +30,7 @@ public:
        MainWindow(QString url, int quality);
 public slots:
        void about();
-       void connectDialog();
+       void showConnectDialog();
        void disconnectFromHost();
        void forceResize();
        void forceResizeDelayed();
@@ -20,21 +38,20 @@ public slots:
        void sendEsc() { vnc_view->sendKey(Qt::Key_Escape); }
        void sendPgUp() { vnc_view->sendKey(Qt::Key_PageUp); }
        void sendPgDn() { vnc_view->sendKey(Qt::Key_PageDown); }
+       void sendReturn() { vnc_view->sendKey(Qt::Key_Return); }
+       void showInputPanel();
        void showModifierMenu();
        void showPreferences();
        void statusChanged(RemoteView::RemoteStatus status);
        void toggleFullscreen();
 protected:
-       //virtual bool event(QEvent *event);
        void closeEvent(QCloseEvent*);
 private:
        void grabZoomKeys(bool grab);
        void reloadSettings();
        VncView *vnc_view;
        QScrollArea *scroll_area;
-       //QWidget *menu;
        QToolBar *toolbar;      
-       //QPoint swipe_start;
        QAction *scaling;
        QAction *disconnect_action;
 };