SciDAVis
1.D4
|
Options dialog for text labels/axes labels. More...
#include <TextDialog.h>
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 |
ColorButton * | backgroundBtn |
QSpinBox * | boxBackgroundTransparency |
QPushButton * | buttonApply |
QPushButton * | buttonCancel |
QPushButton * | buttonDefault |
QPushButton * | buttonFont |
QPushButton * | buttonOk |
ColorButton * | colorBtn |
TextFormatButtons * | formatButtons |
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) |
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 accept(), alignmentBox, apply(), AxisTitle, backgroundBox, backgroundBtn, boxBackgroundTransparency, buttonApply, buttonCancel, buttonDefault, buttonFont, buttonOk, colorBtn, customFont(), formatButtons, groupBox1, pickBackgroundColor(), pickTextColor(), setDefaultValues(), textEditBox, TextMarker, textType, TextFormatButtons::toggleCurveButton(), and updateTransparency().
|
inline |
Destructor.
|
privateslot |
int TextDialog::alignment | ( | ) |
Return axis label alignment.
References alignmentBox.
Referenced by apply().
int TextDialog::angle | ( | ) |
Return rotation angle (not yet implemented)
Referenced by apply().
|
privateslot |
Apply changes.
References alignment(), angle(), AxisTitle, backgroundBox, backgroundBtn, boxBackgroundTransparency, changeAlignment(), changeColor(), changeText(), ColorButton::color(), colorBtn, selectedFont, textEditBox, textType, and values().
Referenced by accept(), and TextDialog().
|
signal |
Signal for axes labels: change text alignment.
Referenced by apply().
|
signal |
Signal for axes labels: change text color.
Referenced by apply().
|
signal |
Signal for axes labels: change font.
Referenced by customFont().
|
signal |
Signal for axes labels: change text.
Referenced by apply().
|
privateslot |
Let the user select another font.
References changeFont(), and selectedFont.
Referenced by TextDialog().
|
privateslot |
Let the user pick the background color.
References backgroundBtn, ColorButton::color(), and ColorButton::setColor().
Referenced by TextDialog().
|
privateslot |
Let the user pick the text color.
References ColorButton::color(), colorBtn, and ColorButton::setColor().
Referenced by TextDialog().
|
slot |
Set axis label alignment.
align | alignment (can be -1 for invalid, Qt::AlignHCenter, Qt::AlignLeft, or Qt::AlignRight) |
References alignmentBox.
Referenced by ApplicationWindow::showRightAxisTitleDialog(), ApplicationWindow::showTitleDialog(), ApplicationWindow::showTopAxisTitleDialog(), ApplicationWindow::showXAxisTitleDialog(), and ApplicationWindow::showYAxisTitleDialog().
|
slot |
Set rotation angle (not yet implemented)
Referenced by ApplicationWindow::showTextDialog().
|
slot |
Set the background color to 'c'.
References backgroundBtn, boxBackgroundTransparency, and ColorButton::setColor().
Referenced by ApplicationWindow::showTextDialog().
|
slot |
Set label background type.
bkg | label background type 0 -> plain, no border 1 -> with border 2 -> border + shadow |
References backgroundBox.
Referenced by ApplicationWindow::showTextDialog().
|
privateslot |
References backgroundBox, backgroundBtn, boxBackgroundTransparency, ColorButton::color(), colorBtn, selectedFont, and ApplicationWindow::setLegendDefaultSettings().
Referenced by TextDialog().
|
slot |
Set the current font to 'fnt'.
References selectedFont.
Referenced by ApplicationWindow::showRightAxisTitleDialog(), ApplicationWindow::showTextDialog(), ApplicationWindow::showTitleDialog(), ApplicationWindow::showTopAxisTitleDialog(), ApplicationWindow::showXAxisTitleDialog(), and ApplicationWindow::showYAxisTitleDialog().
|
slot |
Set the contents of the text editor box.
References textEditBox.
Referenced by ApplicationWindow::showRightAxisTitleDialog(), ApplicationWindow::showTextDialog(), ApplicationWindow::showTitleDialog(), ApplicationWindow::showTopAxisTitleDialog(), ApplicationWindow::showXAxisTitleDialog(), and ApplicationWindow::showYAxisTitleDialog().
|
slot |
Set the text color to 'c'.
References colorBtn, and ColorButton::setColor().
Referenced by ApplicationWindow::showRightAxisTitleDialog(), ApplicationWindow::showTextDialog(), ApplicationWindow::showTitleDialog(), ApplicationWindow::showTopAxisTitleDialog(), ApplicationWindow::showXAxisTitleDialog(), and ApplicationWindow::showYAxisTitleDialog().
|
privateslot |
References backgroundBtn.
Referenced by TextDialog().
|
signal |
Emit all current values.
text | the label text |
angle | the rotation angle |
bkg | the background type |
fnt | the text font |
textColor | the text color |
backgroundColor | the backgroundcolor |
Referenced by apply().
|
protected |
Referenced by alignment(), setAlignment(), and TextDialog().
|
protected |
Referenced by apply(), setBackgroundType(), setDefaultValues(), and TextDialog().
|
protected |
Referenced by apply(), pickBackgroundColor(), setBackgroundColor(), setDefaultValues(), TextDialog(), and updateTransparency().
|
protected |
Referenced by apply(), setBackgroundColor(), setDefaultValues(), and TextDialog().
|
protected |
Referenced by TextDialog().
|
protected |
Referenced by TextDialog().
|
protected |
Referenced by TextDialog().
|
protected |
Referenced by TextDialog().
|
protected |
Referenced by TextDialog().
|
protected |
Referenced by apply(), pickTextColor(), setDefaultValues(), setTextColor(), and TextDialog().
|
protected |
Referenced by TextDialog().
|
protected |
Referenced by TextDialog().
|
protected |
|
protected |
|
protected |
current font
Referenced by apply(), customFont(), setDefaultValues(), and setFont().
|
protected |
Referenced by apply(), setText(), and TextDialog().
|
protected |
Referenced by apply(), and TextDialog().