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. | |
void | setGraph (Graph *g) |
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. | |
Private Slots | |
void | apply () |
Apply changes. | |
void | customFont () |
Let the user select another font. | |
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 | |
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().
void TextDialog::apply | ( | ) | [private, slot] |
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().
void TextDialog::customFont | ( | ) | [private, slot] |
Let the user select another font.
References apply(), selectedFont, and textEditBox.
Referenced by TextDialog().
void TextDialog::formatLayerLabels | ( | Graph * | g | ) | [private] |
References alignment(), AxisTitle, ColorButton::color(), colorBtn, d_text_type, distanceBox, invertTitleBox, selectedFont, and Graph::updateMarkersBoundingRect().
Referenced by apply().
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::setGraph | ( | Graph * | g | ) | [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().
void TextDialog::setText | ( | const QString & | t | ) | [slot] |
QComboBox* TextDialog::alignmentBox [private] |
Referenced by alignment(), setAlignment(), and TextDialog().
QComboBox* TextDialog::backgroundBox [private] |
ColorButton * TextDialog::backgroundBtn [private] |
QPushButton* TextDialog::buttonApply [private] |
Referenced by TextDialog().
QPushButton* TextDialog::buttonCancel [private] |
Referenced by TextDialog().
QPushButton* TextDialog::buttonFont [private] |
Referenced by TextDialog().
ColorButton* TextDialog::colorBtn [private] |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
Graph* TextDialog::d_graph [private] |
Referenced by apply(), setGraph(), and TextDialog().
QwtScaleWidget* TextDialog::d_scale [private] |
Referenced by apply(), setGraph(), and TextDialog().
TextType TextDialog::d_text_type [private] |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
QSpinBox* TextDialog::distanceBox [private] |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
QComboBox* TextDialog::formatApplyToBox [private] |
Referenced by apply(), and TextDialog().
TextFormatButtons* TextDialog::formatButtons [private] |
Referenced by TextDialog().
QGroupBox* TextDialog::groupBox1 [private] |
Referenced by TextDialog().
QGroupBox * TextDialog::groupBox2 [private] |
QCheckBox* TextDialog::invertTitleBox [private] |
Referenced by apply(), formatLayerLabels(), setGraph(), and TextDialog().
QFont TextDialog::selectedFont [private] |
current font
Referenced by apply(), customFont(), formatLayerLabels(), and setGraph().
QTextEdit* TextDialog::textEditBox [private] |
Referenced by apply(), customFont(), setGraph(), setText(), and TextDialog().