My Project
dialog.h
1 #ifndef DIALOG_H
2 #define DIALOG_H
3 
4 #include "grid.h"
5 #include <QDialog>
6 
7 namespace Ui {
8 class Dialog;
9 }
10 
11 class Dialog : public QDialog
12 {
13  Q_OBJECT
14 
15 public:
16 
24  explicit Dialog(QWidget *parent = 0);
25 
31  ~Dialog();
32 
33 private slots:
34 
42  void on_frontcolorComboBox_activated(const QString &color);
43 
51  void on_backgroundComboBox_activated(const QString &color);
52 
59 
66 
73 
74 
81 
88 
95 
102 
109 
116 
125 
131  void on_undoButton_clicked();
132 
138  void on_redoButton_clicked();
139 
145  void setUndo(bool cannot);
146 
152  void setRedo(bool cannot);
153 
154 private:
155  Ui::Dialog *ui;
156  GridWidget *grid;
157 };
158 
159 #endif // DIALOG_H
void on_drawcircleButton_clicked()
Sets the tool to paint Circles.
Definition: dialog.cpp:171
void on_colmajorfillButton_clicked()
Sets the tool to Column fill.
Definition: dialog.cpp:121
~Dialog()
Destructor.
Definition: dialog.cpp:54
Dialog(QWidget *parent=0)
The constructor sets the undo and redo to disable so it cant be pressed also sets the connections bet...
Definition: dialog.cpp:17
void on_drawtriangleButton_clicked()
Sets the tool to paint Triangles.
Definition: dialog.cpp:161
void on_diagonalleftButton_clicked()
Sets the tool to Diagonal Left fill.
Definition: dialog.cpp:131
void on_undoButton_clicked()
Undo the previous grid modification.
Definition: dialog.cpp:194
void on_redoButton_clicked()
Redo the previous grid modification.
Definition: dialog.cpp:204
Definition: dialog.h:7
void setUndo(bool cannot)
Enables the undo button.
Definition: dialog.cpp:34
void on_lapizButton_clicked()
Sets the tool to dot.
Definition: dialog.cpp:90
void on_drawsquareButton_clicked()
Sets the tool to paint Squares.
Definition: dialog.cpp:151
void on_backgroundComboBox_activated(const QString &color)
Sets the color of the background.
Definition: dialog.cpp:79
void on_rowmajorfillButton_clicked()
Sets the tool to Row fill.
Definition: dialog.cpp:111
Definition: dialog.h:11
void on_diagonalrightButton_clicked()
Sets the tool to Diagonal Right fill.
Definition: dialog.cpp:141
void setRedo(bool cannot)
Enables the redo button.
Definition: dialog.cpp:44
void on_frontcolorComboBox_activated(const QString &color)
Sets the color of the brush.
Definition: dialog.cpp:66
void on_cleargridButton_clicked()
Clears the grid. Erase the grid.
Definition: dialog.cpp:100
void on_speedHorizontalSlider_valueChanged(int value)
Sets the tool point size.
Definition: dialog.cpp:183
Definition: grid.h:42