#include <pen_toolbar.h>
Public Slots | |
| void | colorChanged (const QString &color) |
| void | lineWeightChanged (const qreal &weight) |
| void | lineTypeChanged (const QString &type) |
| void | penReset () |
| penReset resets the current pen to the preferred defaults. More... | |
| void | savePreset () |
Signals | |
| void | penChanged (Pen pen) |
Public Member Functions | |
| PenToolBar (const QString &title, QWidget *parent=0) | |
| virtual | ~PenToolBar () |
| Pen | getPen () const |
Public Attributes | |
| Pen | currentPen |
| QPointer< ColorComboBox > | colorBox |
| QPointer< LineTypeComboBox > | lineTypeBox |
| QPointer< LineWeightComboBox > | lineWeightBox |
Private Attributes | |
| QAction * | resetAction |
| QAction * | savePresetAction |
Definition at line 56 of file pen_toolbar.h.
| PenToolBar::PenToolBar | ( | const QString & | title, |
| QWidget * | parent = 0 |
||
| ) |
Constructor.
Definition at line 39 of file pen_toolbar.cpp.
|
virtualdefault |
Destructor
|
slot |
Called when the color was changed by the user.
Definition at line 116 of file pen_toolbar.cpp.
References Pen::color, currentPen, and penChanged().
| Pen PenToolBar::getPen | ( | ) | const |
Definition at line 97 of file pen_toolbar.cpp.
References currentPen.
|
slot |
Called when the linetype was changed by the user.
Definition at line 105 of file pen_toolbar.cpp.
References currentPen, Pen::lineType, and penChanged().
|
slot |
Called when the width was changed by the user.
Definition at line 127 of file pen_toolbar.cpp.
References currentPen, Pen::lineWeight, and penChanged().
|
signal |
Referenced by colorChanged(), MainWindow::initPenToolBar(), lineTypeChanged(), lineWeightChanged(), and penReset().
|
slot |
penReset resets the current pen to the preferred defaults.
Definition at line 138 of file pen_toolbar.cpp.
References Pen::color, colorBox, currentPen, Pen::lineType, lineTypeBox, Pen::lineWeight, lineWeightBox, penChanged(), and qApp.
|
slot |
savePreset() Save the current pen to the preferences.
Definition at line 169 of file pen_toolbar.cpp.
References Pen::color, currentPen, Pen::lineType, Pen::lineWeight, and qApp.
| QPointer<ColorComboBox> PenToolBar::colorBox |
Definition at line 67 of file pen_toolbar.h.
Referenced by penReset().
| Pen PenToolBar::currentPen |
Definition at line 66 of file pen_toolbar.h.
Referenced by colorChanged(), getPen(), lineTypeChanged(), lineWeightChanged(), penReset(), and savePreset().
| QPointer<LineTypeComboBox> PenToolBar::lineTypeBox |
Definition at line 68 of file pen_toolbar.h.
Referenced by penReset().
| QPointer<LineWeightComboBox> PenToolBar::lineWeightBox |
Definition at line 69 of file pen_toolbar.h.
Referenced by penReset().
|
private |
Definition at line 82 of file pen_toolbar.h.
|
private |
Definition at line 83 of file pen_toolbar.h.