Line options dialog. More...
#include <LineDialog.h>
Public Types | |
enum | Unit { ScaleCoordinates, Pixels } |
Public Slots | |
void | accept () |
void | apply () |
void | displayCoordinates (int unit) |
void | enableButtonDefault (QWidget *w) |
void | setDefaultValues () |
Public Member Functions | |
void | enableHeadTab () |
void | initGeometryTab () |
LineDialog (ArrowMarker *line, QWidget *parent=0, Qt::WFlags fl=0) | |
void | setCoordinates (int unit) |
Private Attributes | |
QComboBox * | attachToBox |
QSpinBox * | boxHeadAngle |
QSpinBox * | boxHeadLength |
QPushButton * | btnApply |
QPushButton * | btnOk |
QPushButton * | buttonDefault |
ColorButton * | colorBox |
QCheckBox * | endBox |
QCheckBox * | filledBox |
QWidget * | geometry |
QWidget * | head |
ArrowMarker * | lm |
QWidget * | options |
QCheckBox * | startBox |
PenStyleBox * | styleBox |
QTabWidget * | tw |
QComboBox * | unitBox |
DoubleSpinBox * | widthBox |
DoubleSpinBox * | xEndBox |
QSpinBox * | xEndPixelBox |
DoubleSpinBox * | xStartBox |
QSpinBox * | xStartPixelBox |
DoubleSpinBox * | yEndBox |
QSpinBox * | yEndPixelBox |
DoubleSpinBox * | yStartBox |
QSpinBox * | yStartPixelBox |
Line options dialog.
enum LineDialog::Unit |
LineDialog::LineDialog | ( | ArrowMarker * | line, | |
QWidget * | parent = 0 , |
|||
Qt::WFlags | fl = 0 | |||
) |
References accept(), apply(), boxHeadAngle, boxHeadLength, btnApply, btnOk, buttonDefault, ArrowMarker::color(), colorBox, enableButtonDefault(), enableHeadTab(), endBox, ArrowMarker::filledArrowHead(), filledBox, ArrowMarker::hasEndArrow(), ArrowMarker::hasStartArrow(), head, ArrowMarker::headAngle(), ArrowMarker::headLength(), initGeometryTab(), lm, options, ColorButton::setColor(), setDefaultValues(), DoubleSpinBox::setRange(), DoubleSpinBox::setSingleStep(), PenStyleBox::setStyle(), DoubleSpinBox::setValue(), startBox, ArrowMarker::style(), styleBox, tw, ArrowMarker::width(), and widthBox.
void LineDialog::accept | ( | ) | [slot] |
References apply().
Referenced by LineDialog().
void LineDialog::apply | ( | ) | [slot] |
References attachToBox, boxHeadAngle, boxHeadLength, ColorButton::color(), colorBox, ArrowMarker::drawEndArrow(), ArrowMarker::drawStartArrow(), enableHeadTab(), endBox, ArrowMarker::fillArrowHead(), ArrowMarker::filledArrowHead(), filledBox, geometry, head, ArrowMarker::headAngle(), ArrowMarker::headLength(), lm, Graph::multiLayer(), MdiSubWindow::notifyChanges(), options, ArrowMarker::setAttachPolicy(), ArrowMarker::setColor(), setCoordinates(), ArrowMarker::setHeadAngle(), ArrowMarker::setHeadLength(), ArrowMarker::setStyle(), ArrowMarker::setWidth(), startBox, PenStyleBox::style(), styleBox, tw, unitBox, DoubleSpinBox::value(), and widthBox.
Referenced by accept(), and LineDialog().
void LineDialog::displayCoordinates | ( | int | unit | ) | [slot] |
References ArrowMarker::endPoint(), ArrowMarker::endPointCoord(), lm, ScaleCoordinates, DoubleSpinBox::setValue(), ArrowMarker::startPoint(), ArrowMarker::startPointCoord(), xEndBox, xEndPixelBox, xStartBox, xStartPixelBox, yEndBox, yEndPixelBox, yStartBox, and yStartPixelBox.
Referenced by initGeometryTab().
void LineDialog::enableButtonDefault | ( | QWidget * | w | ) | [slot] |
References buttonDefault, and geometry.
Referenced by LineDialog().
void LineDialog::enableHeadTab | ( | ) |
void LineDialog::initGeometryTab | ( | ) |
References ArrowMarker::attachPolicy(), attachToBox, displayCoordinates(), geometry, lm, DoubleSpinBox::setDecimals(), tw, unitBox, xEndBox, xEndPixelBox, xStartBox, xStartPixelBox, yEndBox, yEndPixelBox, yStartBox, and yStartPixelBox.
Referenced by LineDialog().
void LineDialog::setCoordinates | ( | int | unit | ) |
References lm, ScaleCoordinates, ArrowMarker::setEndPoint(), ArrowMarker::setStartPoint(), DoubleSpinBox::value(), xEndBox, xEndPixelBox, xStartBox, xStartPixelBox, yEndBox, yEndPixelBox, yStartBox, and yStartPixelBox.
Referenced by apply().
void LineDialog::setDefaultValues | ( | ) | [slot] |
References boxHeadAngle, boxHeadLength, ColorButton::color(), colorBox, filledBox, ApplicationWindow::setArrowDefaultSettings(), PenStyleBox::style(), styleBox, DoubleSpinBox::value(), and widthBox.
Referenced by LineDialog().
QComboBox* LineDialog::attachToBox [private] |
Referenced by apply(), and initGeometryTab().
QSpinBox* LineDialog::boxHeadAngle [private] |
Referenced by apply(), LineDialog(), and setDefaultValues().
QSpinBox * LineDialog::boxHeadLength [private] |
Referenced by apply(), LineDialog(), and setDefaultValues().
QPushButton* LineDialog::btnApply [private] |
Referenced by LineDialog().
QPushButton* LineDialog::btnOk [private] |
Referenced by LineDialog().
QPushButton* LineDialog::buttonDefault [private] |
Referenced by enableButtonDefault(), and LineDialog().
ColorButton* LineDialog::colorBox [private] |
Referenced by apply(), LineDialog(), and setDefaultValues().
QCheckBox* LineDialog::endBox [private] |
Referenced by apply(), enableHeadTab(), and LineDialog().
QCheckBox * LineDialog::filledBox [private] |
Referenced by apply(), LineDialog(), and setDefaultValues().
QWidget * LineDialog::geometry [private] |
Referenced by apply(), enableButtonDefault(), and initGeometryTab().
QWidget * LineDialog::head [private] |
Referenced by apply(), enableHeadTab(), and LineDialog().
ArrowMarker* LineDialog::lm [private] |
Referenced by apply(), displayCoordinates(), initGeometryTab(), LineDialog(), and setCoordinates().
QWidget* LineDialog::options [private] |
Referenced by apply(), and LineDialog().
QCheckBox* LineDialog::startBox [private] |
Referenced by apply(), enableHeadTab(), and LineDialog().
PenStyleBox* LineDialog::styleBox [private] |
Referenced by apply(), LineDialog(), and setDefaultValues().
QTabWidget* LineDialog::tw [private] |
Referenced by apply(), enableHeadTab(), initGeometryTab(), and LineDialog().
QComboBox* LineDialog::unitBox [private] |
Referenced by apply(), and initGeometryTab().
DoubleSpinBox* LineDialog::widthBox [private] |
Referenced by apply(), LineDialog(), and setDefaultValues().
DoubleSpinBox * LineDialog::xEndBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().
QSpinBox * LineDialog::xEndPixelBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().
DoubleSpinBox* LineDialog::xStartBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().
QSpinBox* LineDialog::xStartPixelBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().
DoubleSpinBox * LineDialog::yEndBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().
QSpinBox * LineDialog::yEndPixelBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().
DoubleSpinBox * LineDialog::yStartBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().
QSpinBox * LineDialog::yStartPixelBox [private] |
Referenced by displayCoordinates(), initGeometryTab(), and setCoordinates().