summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-06-02 16:23:59 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-06-02 16:23:59 (GMT)
commit7520c7fed383d4f7631f5572ef40379022126264 (patch)
treeee87b26bb923d0289a670defce96e2012f3623e3 /Swift/QtUI/Whiteboard/QtWhiteboardWindow.h
parente8ab1af885ff61715ab0350c3cb22ed6988a082a (diff)
downloadswift-contrib-7520c7fed383d4f7631f5572ef40379022126264.zip
swift-contrib-7520c7fed383d4f7631f5572ef40379022126264.tar.bz2
Added whiteboard controller with simple sharing
Whiteboard controller is handled in ChatController only for testing purposes.
Diffstat (limited to 'Swift/QtUI/Whiteboard/QtWhiteboardWindow.h')
-rw-r--r--Swift/QtUI/Whiteboard/QtWhiteboardWindow.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h
index 4423f7c..f472629 100644
--- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h
+++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.h
@@ -6,6 +6,8 @@
#pragma once
+#include <Swift/Controllers/UIInterfaces/WhiteboardWindow.h>
+
#include <QWidget>
#include <QGraphicsView>
#include <QGraphicsScene>
@@ -21,11 +23,13 @@
#include "GView.h"
namespace Swift {
- class Window : public QWidget
+ class QtWhiteboardWindow : public QWidget, public WhiteboardWindow
{
Q_OBJECT;
public:
- Window();
+ QtWhiteboardWindow();
+ void addItem(const std::string& item);
+ void show();
private slots:
void changeLineWidth(int i);
@@ -40,7 +44,7 @@ namespace Swift {
void setTextMode();
void setPolygonMode();
void setSelectMode();
-
+ void handleLastItemChanged(QGraphicsItem* item);
private:
QGraphicsScene* scene;
GView* graphicsView;