QtiPlot  0.9.8.2
Public Types | Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
TextDialog Class Reference

Options dialog for text labels/axes labels. More...

#include <TextDialog.h>

List of all members.

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
ColorButtonbackgroundBtn
QPushButton * buttonApply
QPushButton * buttonCancel
QPushButton * buttonFont
ColorButtoncolorBtn
Graphd_graph
QwtScaleWidget * d_scale
TextType d_text_type
QSpinBox * distanceBox
QComboBox * formatApplyToBox
TextFormatButtonsformatButtons
QGroupBox * groupBox1
QGroupBox * groupBox2
QCheckBox * invertTitleBox
QFont selectedFont
 current font
QTextEdit * textEditBox

Detailed Description

Options dialog for text labels/axes labels.


Member Enumeration Documentation

Label types.

Enumerator:
AxisTitle 

axis label

LayerTitle 

Constructor & Destructor Documentation

TextDialog::TextDialog ( TextType  type,
QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Constructor.

Parameters:
typetext type (TextMarker | AxisTitle)
parentparent widget
flwindow 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.


Member Function Documentation

Return axis label alignment.

See also:
setAlignment()

References alignmentBox.

Referenced by apply(), and formatLayerLabels().

void TextDialog::apply ( ) [private, slot]
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]
void TextDialog::setAlignment ( int  align) [slot]

Set axis label alignment.

Parameters:
alignalignment (can be -1 for invalid, Qt::AlignHCenter, Qt::AlignLeft, or Qt::AlignRight)

References alignmentBox.

Referenced by setGraph().

void TextDialog::setGraph ( Graph g) [slot]
void TextDialog::setText ( const QString &  t) [slot]

Set the contents of the text editor box.

References textEditBox.

Referenced by setGraph().


Member Data Documentation

QComboBox* TextDialog::alignmentBox [private]

Referenced by alignment(), setAlignment(), and TextDialog().

QComboBox* TextDialog::backgroundBox [private]
QPushButton* TextDialog::buttonApply [private]

Referenced by TextDialog().

QPushButton* TextDialog::buttonCancel [private]

Referenced by TextDialog().

QPushButton* TextDialog::buttonFont [private]

Referenced by TextDialog().

Referenced by apply(), setGraph(), and TextDialog().

QwtScaleWidget* TextDialog::d_scale [private]

Referenced by apply(), setGraph(), and TextDialog().

QSpinBox* TextDialog::distanceBox [private]
QComboBox* TextDialog::formatApplyToBox [private]

Referenced by apply(), and TextDialog().

Referenced by TextDialog().

QGroupBox* TextDialog::groupBox1 [private]

Referenced by TextDialog().

QGroupBox * TextDialog::groupBox2 [private]
QCheckBox* TextDialog::invertTitleBox [private]
QFont TextDialog::selectedFont [private]

current font

Referenced by apply(), customFont(), formatLayerLabels(), and setGraph().

QTextEdit* TextDialog::textEditBox [private]

The documentation for this class was generated from the following files: