SciDAVis
1.D4
|
Widget with text format buttons (connected to a QTextEdit) More...
#include <TextFormatButtons.h>
Public Member Functions | |
TextFormatButtons (QTextEdit *textEdit, QWidget *parent=0) | |
Constructor. | |
void | toggleCurveButton (bool enable) |
Show/Hide the "add curve" button. |
Private Slots | |
void | addBold () |
Format seleted text to bold. | |
void | addCurve () |
Insert curve marker into the text. | |
void | addItalics () |
Format seleted text to italics. | |
void | addSubscript () |
Format seleted text to subscript. | |
void | addSuperscript () |
Format seleted text to superscript. | |
void | addSymbol (const QString &letter) |
Insert 'letter' into the text. | |
void | addUnderline () |
Format seleted text to underlined. | |
void | showArrowSymbols () |
Let the user insert arrow symbols. | |
void | showLowerGreek () |
Let the user insert lower case greek letters. | |
void | showMathSymbols () |
Let the user insert mathematical symbols. | |
void | showUpperGreek () |
Let the user insert capital greek letters. |
Private Member Functions | |
void | formatText (const QString &prefix, const QString &postfix) |
Internal function: format selected text with prefix and postfix. |
Private Attributes | |
QPushButton * | buttonArrowSymbols |
QPushButton * | buttonBold |
QPushButton * | buttonCurve |
QPushButton * | buttonItalics |
QPushButton * | buttonLowerGreek |
QPushButton * | buttonMathSymbols |
QPushButton * | buttonSubscript |
QPushButton * | buttonSuperscript |
QPushButton * | buttonUnderline |
QPushButton * | buttonUpperGreek |
QTextEdit * | connectedTextEdit |
Widget with text format buttons (connected to a QTextEdit)
TextFormatButtons::TextFormatButtons | ( | QTextEdit * | textEdit, |
QWidget * | parent = 0 |
||
) |
Constructor.
textEdit | the QTextEdit that the buttons shall affect |
parent | parent widget |
References addBold(), addCurve(), addItalics(), addSubscript(), addSuperscript(), addUnderline(), buttonArrowSymbols, buttonBold, buttonCurve, buttonItalics, buttonLowerGreek, buttonMathSymbols, buttonSubscript, buttonSuperscript, buttonUnderline, buttonUpperGreek, connectedTextEdit, showArrowSymbols(), showLowerGreek(), showMathSymbols(), and showUpperGreek().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Insert 'letter' into the text.
References connectedTextEdit.
Referenced by showArrowSymbols(), showLowerGreek(), showMathSymbols(), and showUpperGreek().
|
privateslot |
|
private |
Internal function: format selected text with prefix and postfix.
References connectedTextEdit.
Referenced by addBold(), addCurve(), addItalics(), addSubscript(), addSuperscript(), and addUnderline().
|
privateslot |
Let the user insert arrow symbols.
References addSymbol(), SymbolDialog::arrowSymbols, and connectedTextEdit.
Referenced by TextFormatButtons().
|
privateslot |
Let the user insert lower case greek letters.
References addSymbol(), connectedTextEdit, and SymbolDialog::lowerGreek.
Referenced by TextFormatButtons().
|
privateslot |
Let the user insert mathematical symbols.
References addSymbol(), connectedTextEdit, and SymbolDialog::mathSymbols.
Referenced by TextFormatButtons().
|
privateslot |
Let the user insert capital greek letters.
References addSymbol(), connectedTextEdit, and SymbolDialog::upperGreek.
Referenced by TextFormatButtons().
void TextFormatButtons::toggleCurveButton | ( | bool | enable | ) |
Show/Hide the "add curve" button.
References buttonCurve.
Referenced by AxesDialog::initAxesPage(), and TextDialog::TextDialog().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons(), and toggleCurveButton().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by TextFormatButtons().
|
private |
Referenced by addSymbol(), formatText(), showArrowSymbols(), showLowerGreek(), showMathSymbols(), showUpperGreek(), and TextFormatButtons().