diff options
Diffstat (limited to 'Swift/QtUI/Whiteboard/Window.h')
-rw-r--r-- | Swift/QtUI/Whiteboard/Window.h | 67 |
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; + }; +} |