summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-05-30 12:40:27 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-05-30 12:40:27 (GMT)
commitf20c70620ff8a15079bef36a844800cf544662e0 (patch)
tree4f9293726d9a8f41a31f69d05622fd32791d5b73 /Swift/QtUI/Whiteboard/Window.h
parente7db09d201280cb64de649f5e33ca13d82045f38 (diff)
downloadswift-contrib-f20c70620ff8a15079bef36a844800cf544662e0.zip
swift-contrib-f20c70620ff8a15079bef36a844800cf544662e0.tar.bz2
Added whiteboard files to swift tree
Diffstat (limited to 'Swift/QtUI/Whiteboard/Window.h')
-rw-r--r--Swift/QtUI/Whiteboard/Window.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/Swift/QtUI/Whiteboard/Window.h b/Swift/QtUI/Whiteboard/Window.h
new file mode 100644
index 0000000..4423f7c
--- /dev/null
+++ b/Swift/QtUI/Whiteboard/Window.h
@@ -0,0 +1,67 @@
+/*
+ * Copyright (c) 2012 Mateusz Piękos
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#pragma once
+
+#include <QWidget>
+#include <QGraphicsView>
+#include <QGraphicsScene>
+#include <QVBoxLayout>
+#include <QHBoxLayout>
+#include <QGridLayout>
+#include <QPainter>
+#include <QPushButton>
+#include <QSpinBox>
+#include <QColorDialog>
+#include <QToolButton>
+
+#include "GView.h"
+
+namespace Swift {
+ class Window : public QWidget
+ {
+ Q_OBJECT;
+ public:
+ Window();
+
+ private slots:
+ void changeLineWidth(int i);
+ void showColorDialog();
+ void showBrushColorDialog();
+ void setRubberMode();
+ void setLineMode();
+ void setRectMode();
+ void setCircleMode();
+ void setHandLineMode();
+ void setFilledHandLineMode();
+ void setTextMode();
+ void setPolygonMode();
+ void setSelectMode();
+
+ private:
+ QGraphicsScene* scene;
+ GView* graphicsView;
+ QVBoxLayout* layout;
+ QVBoxLayout* sidebarLayout;
+ QHBoxLayout* hLayout;
+ QGridLayout* toolboxLayout;
+ QWidget* widget;
+ QPushButton* moveUpButton;
+ QPushButton* moveDownButton;
+ QPushButton* colorDialogButton;
+ QPushButton* brushColorDialogButton;
+ QSpinBox* widthBox;
+ QToolButton* rubberButton;
+ QToolButton* lineButton;
+ QToolButton* rectButton;
+ QToolButton* circleButton;
+ QToolButton* handLineButton;
+ QToolButton* filledHandLineButton;
+ QToolButton* textButton;
+ QToolButton* polygonButton;
+ QToolButton* selectButton;
+ };
+}