|
QtiPlot
0.9.8.2
|
Options dialog for text labels/axes labels. More...
#include <TextDialog.h>
Public Types | |
| enum | TextType { AxisTitle, LayerTitle } |
| Label types. More... | |
Public Slots | |
| void | setAlignment (int align) |
| Set axis label alignment. More... | |
| void | setGraph (Graph *g) |
| void | setText (const QString &t) |
| Set the contents of the text editor box. More... | |
Public Member Functions | |
| int | alignment () |
| Return axis label alignment. More... | |
| TextDialog (TextType type, QWidget *parent=0, Qt::WFlags fl=0) | |
| Constructor. More... | |
Private Slots | |
| void | apply () |
| Apply changes. More... | |
| void | customFont () |
| Let the user select another font. More... | |
Private Member Functions | |
| void | formatLayerLabels (Graph *g) |
Private Attributes | |
| QComboBox * | alignmentBox |
| QComboBox * | backgroundBox |
| ColorButton * | backgroundBtn |
| QPushButton * | buttonApply |
| QPushButton * | buttonCancel |
| QPushButton * | buttonFont |
| ColorButton * | colorBtn |
| Graph * | d_graph |
| QwtScaleWidget * | d_scale |
| TextType | d_text_type |
| QSpinBox * | distanceBox |
| QComboBox * | formatApplyToBox |
| TextFormatButtons * | formatButtons |
| QGroupBox * | groupBox1 |
| QGroupBox * | groupBox2 |
| QCheckBox * | invertTitleBox |
| QFont | selectedFont |
| current font More... | |
| QTextEdit * | textEditBox |
Options dialog for text labels/axes labels.
| enum TextDialog::TextType |
| TextDialog::TextDialog | ( | TextType | type, |
| QWidget * | parent = 0, |
||
| Qt::WFlags | fl = 0 |
||
| ) |
Constructor.
| type | text type (TextMarker | AxisTitle) |
| parent | parent widget |
| fl | window flags |
References alignmentBox, apply(), TextFormatButtons::AxisLabel, AxisTitle, buttonApply, buttonCancel, buttonFont, colorBtn, customFont(), d_graph, d_scale, d_text_type, distanceBox, formatApplyToBox, formatButtons, groupBox1, invertTitleBox, and textEditBox.
| int TextDialog::alignment | ( | ) |
Return axis label alignment.
References alignmentBox.
Referenced by apply(), and formatLayerLabels().
|
privateslot |
Apply changes.
References alignment(), AxisTitle, ColorButton::color(), colorBtn, d_graph, d_scale, d_text_type, distanceBox, formatApplyToBox, formatLayerLabels(), invertTitleBox, MultiLayer::layersList(), LayerTitle, Graph::multiLayer(), Graph::notifyChanges(), selectedFont, Graph::setAxisTitle(), ApplicationWindow::setFormatBarFont(), textEditBox, Graph::updateMarkersBoundingRect(), and ApplicationWindow::windowsList().
Referenced by customFont(), and TextDialog().
|
privateslot |
Let the user select another font.
References apply(), selectedFont, and textEditBox.
Referenced by TextDialog().
|
private |
References alignment(), AxisTitle, ColorButton::color(), colorBtn, d_text_type, distanceBox, invertTitleBox, selectedFont, and Graph::updateMarkersBoundingRect().
Referenced by apply().
|
slot |
Set axis label alignment.
| align | alignment (can be -1 for invalid, Qt::AlignHCenter, Qt::AlignLeft, or Qt::AlignRight) |
References alignmentBox.
Referenced by setGraph().
|
slot |
References AxisTitle, Graph::axisTitleString(), colorBtn, Graph::currentScale(), d_graph, d_scale, d_text_type, distanceBox, invertTitleBox, LayerTitle, selectedFont, setAlignment(), ColorButton::setColor(), setText(), and textEditBox.
Referenced by ApplicationWindow::showAxisTitleDialog(), and ApplicationWindow::showTitleDialog().
|
slot |
|
private |
Referenced by alignment(), setAlignment(), and TextDialog().
|
private |
|
private |
|
private |
Referenced by TextDialog().
|
private |
Referenced by TextDialog().
|
private |
Referenced by TextDialog().
|
private |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
|
private |
Referenced by apply(), setGraph(), and TextDialog().
|
private |
Referenced by apply(), setGraph(), and TextDialog().
|
private |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
|
private |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
|
private |
Referenced by apply(), and TextDialog().
|
private |
Referenced by TextDialog().
|
private |
Referenced by TextDialog().
|
private |
|
private |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
|
private |
current font
Referenced by apply(), customFont(), formatLayerLabels(), and setGraph().
|
private |
Referenced by apply(), customFont(), setGraph(), setText(), and TextDialog().
1.8.6