summaryrefslogtreecommitdiffstats
path: root/src/client/toolbar/toolbar.h
diff options
context:
space:
mode:
authorsr2013-02-04 19:50:31 +0100
committersr2013-02-04 19:50:31 +0100
commit1a5709501f94014d41987b956338bb6424b9f90c (patch)
treed3b93fe8dc406bca56aff147ef5cc4cbf9ed6be0 /src/client/toolbar/toolbar.h
parentTest (diff)
downloadpvs2-1a5709501f94014d41987b956338bb6424b9f90c.tar.gz
pvs2-1a5709501f94014d41987b956338bb6424b9f90c.tar.xz
pvs2-1a5709501f94014d41987b956338bb6424b9f90c.zip
Initial commit
Diffstat (limited to 'src/client/toolbar/toolbar.h')
-rw-r--r--src/client/toolbar/toolbar.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/client/toolbar/toolbar.h b/src/client/toolbar/toolbar.h
new file mode 100644
index 0000000..0ce4d2b
--- /dev/null
+++ b/src/client/toolbar/toolbar.h
@@ -0,0 +1,78 @@
+/*
+ # Copyright (c) 2009, 2010 - OpenSLX Project, Computer Center University of
+ # Freiburg
+ #
+ # This program is free software distributed under the GPL version 2.
+ # See http://openslx.org/COPYING
+ #
+ # If you have any feedback please consult http://openslx.org/feedback and
+ # send your suggestions, praise, or complaints to feedback@openslx.org
+ #
+ # General information about OpenSLX can be found at http://openslx.org/
+ */
+
+#ifndef PVSCLIENTGUI_H_
+#define PVSCLIENTGUI_H_
+
+#include <QtGui>
+#include "ui_toolbar.h"
+
+class ServerConnection;
+class VncWindow;
+class ConnectWindow;
+class BlankScreen;
+
+class Toolbar : public QWidget, private Ui_ToolbarClass
+{
+Q_OBJECT
+
+private:
+ int _location;
+ int _hideTimer;
+ int _hideDelay;
+ QMenu *_menu;
+ QAction *_acnDisconnect;
+ QAction *_acnQuit;
+ ServerConnection *_connection;
+
+ ConnectWindow *_connectWindow;
+ VncWindow *_vnc;
+
+ void setLocation();
+ bool hideBar();
+ void setBarVisible(bool shown);
+ void setupMenu();
+
+ void leaveEvent(QEvent* e);
+ void enterEvent(QEvent* e);
+ void timerEvent(QTimerEvent* event);
+
+public:
+ Toolbar(QWidget *parent = NULL);
+ virtual ~Toolbar();
+
+ int const static POSITION_TOP_LEFT = 0;
+ int const static POSITION_TOP_CENTER = 1;
+ int const static POSITION_TOP_RIGHT = 2;
+ int const static POSITION_BOTTOM_LEFT = 3;
+ int const static POSITION_BOTTOM_CENTER = 4;
+ int const static POSITION_BOTTOM_RIGHT = 5;
+
+protected:
+ /*
+ void enterEvent(QEvent *e);
+ void leaveEvent(QEvent *e);
+ void mousePressEvent(QMouseEvent *event);
+ void mouseReleaseEvent(QMouseEvent *event);
+ void mouseMoveEvent(QMouseEvent *event);
+ */
+
+private slots:
+ void onDisconnected(QObject* connection);
+ void onConnected(ServerConnection* connection);
+ void onDoDisconnect();
+ void onQuit();
+
+};
+
+#endif /* PVSCLIENTGUI_H_ */