#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 () |
void | setLineStyle (Qt::PenStyle style) |
Public Member Functions | |
void | enableHeadTab () |
void | initGeometryTab () |
LineDialog (ArrowMarker *line, QWidget *parent=0, Qt::WFlags fl=0) | |
void | setCoordinates (int unit) |
Private Attributes | |
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 |
QComboBox * | styleBox |
QTabWidget * | tw |
QComboBox * | unitBox |
DoubleSpinBox * | widthBox |
DoubleSpinBox * | xEndBox |
QSpinBox * | xEndPixelBox |
DoubleSpinBox * | xStartBox |
QSpinBox * | xStartPixelBox |
DoubleSpinBox * | yEndBox |
QSpinBox * | yEndPixelBox |
DoubleSpinBox * | yStartBox |
QSpinBox * | yStartPixelBox |
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(), setLineStyle(), DoubleSpinBox::setRange(), DoubleSpinBox::setSingleStep(), DoubleSpinBox::setValue(), startBox, ArrowMarker::style(), styleBox, tw, ArrowMarker::width(), and widthBox.
void LineDialog::accept | ( | ) | [slot] |
void LineDialog::apply | ( | ) | [slot] |
References boxHeadAngle, boxHeadLength, ColorButton::color(), colorBox, ArrowMarker::drawEndArrow(), ArrowMarker::drawStartArrow(), enableHeadTab(), endBox, ArrowMarker::fillArrowHead(), ArrowMarker::filledArrowHead(), filledBox, geometry, Graph::getPenStyle(), head, ArrowMarker::headAngle(), ArrowMarker::headLength(), lm, Graph::notifyChanges(), options, ArrowMarker::setColor(), setCoordinates(), ArrowMarker::setHeadAngle(), ArrowMarker::setHeadLength(), ArrowMarker::setStyle(), ArrowMarker::setWidth(), startBox, 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] |
void LineDialog::enableHeadTab | ( | ) |
void LineDialog::initGeometryTab | ( | ) |
References displayCoordinates(), geometry, ApplicationWindow::locale(), 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, Graph::getPenStyle(), ApplicationWindow::setArrowDefaultSettings(), styleBox, DoubleSpinBox::value(), and widthBox.
Referenced by LineDialog().
void LineDialog::setLineStyle | ( | Qt::PenStyle | style | ) | [slot] |
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(), LineDialog(), and setCoordinates().
QWidget* LineDialog::options [private] |
Referenced by apply(), and LineDialog().
QCheckBox* LineDialog::startBox [private] |
Referenced by apply(), enableHeadTab(), and LineDialog().
QComboBox* LineDialog::styleBox [private] |
Referenced by apply(), LineDialog(), setDefaultValues(), and setLineStyle().
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().