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 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.
void values (const QString &text, int angle, int bkg, const QFont &fnt, const QColor &textColor, const QColor &backgroundColor)
 Emit all current values.

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
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 pickBackgroundColor ()
 Let the user pick the background color.
void pickTextColor ()
 Let the user pick the text color.
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::pickBackgroundColor (  )  [private, slot]

Let the user pick the background color.

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

Let the user pick the text color.

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::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]

void TextDialog::values ( const QString &  text,
int  angle,
int  bkg,
const QFont &  fnt,
const QColor &  textColor,
const QColor &  backgroundColor 
) [signal]

Emit all current values.

Parameters:
text the label text
angle the rotation angle
bkg the background type
fnt the text font
textColor the text color
backgroundColor the backgroundcolor


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]

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 Mon Oct 15 06:11:44 2007 for QtiPlot by  doxygen 1.5.3