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 }
 Label types. More...

Public Slots

void setAlignment (int align)
 Set axis label alignment.
void setAngle (int angle)
 Set rotation angle (not yet implemented).
void setBackgroundColor (QColor c)
 Set the background color to 'c'.
void setBackgroundType (int bkg)
 Set label background type.
void setFont (const QFont &fnt)
 Set the current font to 'fnt'.
void setLegendWidget (LegendWidget *)
void setText (const QString &t)
 Set the contents of the text editor box.
void setTextColor (QColor c)
 Set the text color to 'c'.

Signals

void changeAlignment (int)
 Signal for axes labels: change text alignment.
void changeColor (const QColor &)
 Signal for axes labels: change text color.
void changeFont (const QFont &)
 Signal for axes labels: change font.
void changeText (const QString &)
 Signal for axes labels: change text.

Public Member Functions

int alignment ()
 Return axis label alignment.
int angle ()
 Return rotation angle (not yet implemented).
 TextDialog (TextType type, QWidget *parent=0, Qt::WFlags fl=0)
 Constructor.
 ~TextDialog ()
 Destructor.

Protected Attributes

QComboBox * alignmentBox
QComboBox * backgroundBox
ColorButtonbackgroundBtn
QSpinBox * boxBackgroundTransparency
QPushButton * buttonApply
QPushButton * buttonCancel
QPushButton * buttonDefault
QPushButton * buttonFont
QPushButton * buttonOk
ColorButtoncolorBtn
LegendWidgetd_legend
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

enum TextDialog::TextType

Label types.

Enumerator:
TextMarker  normal text label
AxisTitle  axis label


Constructor & Destructor Documentation

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

Constructor.

Parameters:
type text type (TextMarker | AxisTitle)
parent parent widget
fl window flags

TextDialog::~TextDialog (  )  [inline]

Destructor.


Member Function Documentation

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

Accept changes and close dialog.

int TextDialog::alignment (  ) 

Return axis label alignment.

See also:
setAlignment()

int TextDialog::angle (  ) 

Return rotation angle (not yet implemented).

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

Apply changes.

void TextDialog::changeAlignment ( int   )  [signal]

Signal for axes labels: change text alignment.

void TextDialog::changeColor ( const QColor &   )  [signal]

Signal for axes labels: change text color.

void TextDialog::changeFont ( const QFont &   )  [signal]

Signal for axes labels: change font.

void TextDialog::changeText ( const QString &   )  [signal]

Signal for axes labels: change text.

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

Let the user select another font.

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)

void TextDialog::setAngle ( int  angle  )  [slot]

Set rotation angle (not yet implemented).

void TextDialog::setBackgroundColor ( QColor  c  )  [slot]

Set the background color to 'c'.

void TextDialog::setBackgroundType ( int  bkg  )  [slot]

Set label background type.

Parameters:
bkg label background type 0 -> plain, no border 1 -> with border 2 -> border + shadow

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

void TextDialog::setFont ( const QFont &  fnt  )  [slot]

Set the current font to 'fnt'.

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

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

Set the contents of the text editor box.

void TextDialog::setTextColor ( QColor  c  )  [slot]

Set the text color to 'c'.

void TextDialog::updateTransparency ( int  alpha  )  [private, slot]


Member Data Documentation

QComboBox* TextDialog::alignmentBox [protected]

QComboBox* TextDialog::backgroundBox [protected]

ColorButton * TextDialog::backgroundBtn [protected]

QSpinBox* TextDialog::boxBackgroundTransparency [protected]

QPushButton* TextDialog::buttonApply [protected]

QPushButton* TextDialog::buttonCancel [protected]

QPushButton* TextDialog::buttonDefault [protected]

QPushButton* TextDialog::buttonFont [protected]

QPushButton* TextDialog::buttonOk [protected]

ColorButton* TextDialog::colorBtn [protected]

LegendWidget* TextDialog::d_legend [protected]

TextFormatButtons* TextDialog::formatButtons [protected]

QGroupBox* TextDialog::groupBox1 [protected]

QGroupBox * TextDialog::groupBox2 [protected]

QComboBox* TextDialog::rotateBox [protected]

QFont TextDialog::selectedFont [protected]

current font

QTextEdit* TextDialog::textEditBox [protected]

TextType TextDialog::textType [protected]


The documentation for this class was generated from the following files:
Generated on Thu Feb 7 13:59:29 2008 for QtiPlot by  doxygen 1.5.4