#include <TextDialog.h>
Public Types | |
| enum | TextType { TextMarker, AxisTitle, LayerTitle } |
| Label types. More... | |
Public Slots | |
| void | setAlignment (int align) |
| Set axis label alignment. | |
| void | setGraph (Graph *g) |
| void | setLegendWidget (LegendWidget *) |
| void | setText (const QString &t) |
| Set the contents of the text editor box. | |
Public Member Functions | |
| int | alignment () |
| Return axis label alignment. | |
| TextDialog (TextType type, QWidget *parent=0, Qt::WFlags fl=0) | |
| Constructor. | |
Protected Member Functions | |
| void | formatAllLabels () |
Protected Attributes | |
| QComboBox * | alignmentBox |
| QComboBox * | backgroundBox |
| ColorButton * | backgroundBtn |
| QCheckBox * | boxApplyToAll |
| QSpinBox * | boxBackgroundTransparency |
| QPushButton * | buttonApply |
| QPushButton * | buttonCancel |
| QPushButton * | buttonDefault |
| QPushButton * | buttonFont |
| QPushButton * | buttonOk |
| ColorButton * | colorBtn |
| Graph * | d_graph |
| LegendWidget * | d_legend |
| QwtScaleWidget * | d_scale |
| TextFormatButtons * | formatButtons |
| QGroupBox * | groupBox1 |
| QGroupBox * | groupBox2 |
| QComboBox * | rotateBox |
| QFont | selectedFont |
| current font | |
| QTextEdit * | textEditBox |
| TextType | textType |
Private Slots | |
| void | accept () |
| Accept changes and close dialog. | |
| void | apply () |
| Apply changes. | |
| void | customFont () |
| Let the user select another font. | |
| void | setDefaultValues () |
| void | updateTransparency (int alpha) |
| 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 accept(), alignmentBox, apply(), backgroundBox, backgroundBtn, boxApplyToAll, boxBackgroundTransparency, buttonApply, buttonCancel, buttonDefault, buttonFont, buttonOk, colorBtn, customFont(), d_graph, d_legend, d_scale, formatButtons, groupBox1, setDefaultValues(), textEditBox, TextMarker, textType, TextFormatButtons::toggleCurveButton(), and updateTransparency().
| void TextDialog::accept | ( | ) | [private, slot] |
| int TextDialog::alignment | ( | ) |
Return axis label alignment.
References alignmentBox.
Referenced by apply().
| void TextDialog::apply | ( | ) | [private, slot] |
Apply changes.
References alignment(), AxisTitle, backgroundBox, backgroundBtn, boxApplyToAll, boxBackgroundTransparency, ColorButton::color(), colorBtn, d_graph, d_legend, d_scale, formatAllLabels(), LayerTitle, Graph::notifyChanges(), selectedFont, LegendWidget::setBackgroundColor(), LegendWidget::setFont(), LegendWidget::setFrameStyle(), LegendWidget::setText(), LegendWidget::setTextColor(), textEditBox, TextMarker, and textType.
Referenced by accept(), and TextDialog().
| void TextDialog::customFont | ( | ) | [private, slot] |
| void TextDialog::formatAllLabels | ( | ) | [protected] |
| void TextDialog::setAlignment | ( | int | align | ) | [slot] |
Set axis label alignment.
| align | alignment (can be -1 for invalid, Qt::AlignHCenter, Qt::AlignLeft, or Qt::AlignRight) |
References alignmentBox.
Referenced by setGraph().
| void TextDialog::setDefaultValues | ( | ) | [private, slot] |
References backgroundBox, backgroundBtn, boxBackgroundTransparency, ColorButton::color(), colorBtn, selectedFont, and ApplicationWindow::setLegendDefaultSettings().
Referenced by TextDialog().
| void TextDialog::setGraph | ( | Graph * | g | ) | [slot] |
References AxisTitle, colorBtn, Graph::currentScale(), d_graph, d_scale, LayerTitle, selectedFont, setAlignment(), ColorButton::setColor(), setText(), and textType.
Referenced by ApplicationWindow::showAxisTitleDialog(), and ApplicationWindow::showTitleDialog().
| void TextDialog::setLegendWidget | ( | LegendWidget * | l | ) | [slot] |
References backgroundBox, backgroundBtn, LegendWidget::backgroundColor(), boxBackgroundTransparency, colorBtn, d_graph, d_legend, LegendWidget::font(), LegendWidget::frameStyle(), LegendWidget::plot(), selectedFont, ColorButton::setColor(), setText(), LegendWidget::text(), and LegendWidget::textColor().
Referenced by ApplicationWindow::showTextDialog().
| void TextDialog::setText | ( | const QString & | t | ) | [slot] |
Set the contents of the text editor box.
References textEditBox.
Referenced by setGraph(), and setLegendWidget().
| void TextDialog::updateTransparency | ( | int | alpha | ) | [private, slot] |
QComboBox* TextDialog::alignmentBox [protected] |
Referenced by alignment(), setAlignment(), and TextDialog().
QComboBox* TextDialog::backgroundBox [protected] |
Referenced by apply(), formatAllLabels(), setDefaultValues(), setLegendWidget(), and TextDialog().
ColorButton * TextDialog::backgroundBtn [protected] |
Referenced by apply(), formatAllLabels(), setDefaultValues(), setLegendWidget(), TextDialog(), and updateTransparency().
QCheckBox* TextDialog::boxApplyToAll [protected] |
Referenced by apply(), and TextDialog().
QSpinBox* TextDialog::boxBackgroundTransparency [protected] |
Referenced by apply(), formatAllLabels(), setDefaultValues(), setLegendWidget(), and TextDialog().
QPushButton* TextDialog::buttonApply [protected] |
Referenced by TextDialog().
QPushButton* TextDialog::buttonCancel [protected] |
Referenced by TextDialog().
QPushButton* TextDialog::buttonDefault [protected] |
Referenced by TextDialog().
QPushButton* TextDialog::buttonFont [protected] |
Referenced by TextDialog().
QPushButton* TextDialog::buttonOk [protected] |
Referenced by TextDialog().
ColorButton* TextDialog::colorBtn [protected] |
Referenced by apply(), formatAllLabels(), setDefaultValues(), setGraph(), setLegendWidget(), and TextDialog().
Graph* TextDialog::d_graph [protected] |
Referenced by apply(), formatAllLabels(), setGraph(), setLegendWidget(), and TextDialog().
LegendWidget* TextDialog::d_legend [protected] |
Referenced by apply(), setLegendWidget(), and TextDialog().
QwtScaleWidget* TextDialog::d_scale [protected] |
Referenced by apply(), setGraph(), and TextDialog().
TextFormatButtons* TextDialog::formatButtons [protected] |
Referenced by TextDialog().
QGroupBox* TextDialog::groupBox1 [protected] |
Referenced by TextDialog().
QGroupBox * TextDialog::groupBox2 [protected] |
QComboBox* TextDialog::rotateBox [protected] |
QFont TextDialog::selectedFont [protected] |
current font
Referenced by apply(), customFont(), formatAllLabels(), setDefaultValues(), setGraph(), and setLegendWidget().
QTextEdit* TextDialog::textEditBox [protected] |
Referenced by apply(), setText(), and TextDialog().
TextType TextDialog::textType [protected] |
Referenced by apply(), formatAllLabels(), setGraph(), and TextDialog().
1.5.6