TextDialog Class Reference

#include <TextDialog.h>

List of all members.


Detailed Description

Options dialog for text labels/axes labels.

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
ColorButtonbackgroundBtn
QCheckBox * boxApplyToAll
QSpinBox * boxBackgroundTransparency
QPushButton * buttonApply
QPushButton * buttonCancel
QPushButton * buttonDefault
QPushButton * buttonFont
QPushButton * buttonOk
ColorButtoncolorBtn
Graphd_graph
LegendWidgetd_legend
QwtScaleWidget * d_scale
TextFormatButtonsformatButtons
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)

Member Enumeration Documentation

Label types.

Enumerator:
TextMarker  normal text label
AxisTitle  axis label
LayerTitle 


Constructor & Destructor Documentation

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


Member Function Documentation

void TextDialog::accept (  )  [private, slot]

Accept changes and close dialog.

References apply().

Referenced by TextDialog().

int TextDialog::alignment (  ) 

Return axis label alignment.

See also:
setAlignment()

References alignmentBox.

Referenced by apply().

void TextDialog::apply (  )  [private, slot]

void TextDialog::customFont (  )  [private, slot]

Let the user select another font.

References selectedFont.

Referenced by TextDialog().

void TextDialog::formatAllLabels (  )  [protected]

void TextDialog::setAlignment ( int  align  )  [slot]

Set axis label alignment.

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

References alignmentBox.

Referenced by setGraph().

void TextDialog::setDefaultValues (  )  [private, slot]

void TextDialog::setGraph ( Graph g  )  [slot]

void TextDialog::setLegendWidget ( LegendWidget l  )  [slot]

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]

References backgroundBtn.

Referenced by TextDialog().


Member Data Documentation

QComboBox* TextDialog::alignmentBox [protected]

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

QComboBox* TextDialog::backgroundBox [protected]

QCheckBox* TextDialog::boxApplyToAll [protected]

Referenced by apply(), 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().

Graph* TextDialog::d_graph [protected]

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

QwtScaleWidget* TextDialog::d_scale [protected]

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

Referenced by TextDialog().

QGroupBox* TextDialog::groupBox1 [protected]

Referenced by TextDialog().

QGroupBox * TextDialog::groupBox2 [protected]

QComboBox* TextDialog::rotateBox [protected]

QFont TextDialog::selectedFont [protected]

QTextEdit* TextDialog::textEditBox [protected]

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


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

Generated on Sun Jun 15 21:32:25 2008 for QtiPlot by  doxygen 1.5.6