|
QtiPlot
0.9.8.2
|
Widget with text format buttons (connected to a QTextEdit) More...
#include <TextFormatButtons.h>
Public Types | |
| enum | Buttons { Plot3D, AxisLabel, Legend, Equation, TexLegend } |
Public Member Functions | |
| void | setButtons (Buttons btns) |
| TextFormatButtons (QTextEdit *textEdit, Buttons buttons=Plot3D, QWidget *parent=0) | |
| Constructor. More... | |
Private Slots | |
| void | addBold () |
| Format seleted text to bold. More... | |
| void | addCurve () |
| Insert curve marker into the text. More... | |
| void | addFraction () |
| Format seleted text to fraction. More... | |
| void | addItalics () |
| Format seleted text to italics. More... | |
| void | addSquareRoot () |
| Format seleted text to square root. More... | |
| void | addSubscript () |
| Format seleted text to subscript. More... | |
| void | addSuperscript () |
| Format seleted text to superscript. More... | |
| void | addSymbol (const QString &letter) |
| Insert 'letter' into the text. More... | |
| void | addUnderline () |
| Format seleted text to underlined. More... | |
| void | showArrowSymbols () |
| Let the user insert arrow symbols. More... | |
| void | showLowerGreek () |
| Let the user insert lower case greek letters. More... | |
| void | showMathSymbols () |
| Let the user insert mathematical symbols. More... | |
| void | showUpperGreek () |
| Let the user insert capital greek letters. More... | |
Private Member Functions | |
| void | formatText (const QString &prefix, const QString &postfix) |
| Internal function: format selected text with prefix and postfix. More... | |
| void | init (Buttons btns) |
Private Attributes | |
| QTextEdit * | connectedTextEdit |
| Buttons | d_buttons |
Widget with text format buttons (connected to a QTextEdit)
| TextFormatButtons::TextFormatButtons | ( | QTextEdit * | textEdit, |
| Buttons | buttons = Plot3D, |
||
| QWidget * | parent = 0 |
||
| ) |
Constructor.
| textEdit | the QTextEdit that the buttons shall affect |
| parent | parent widget |
References init().
|
privateslot |
|
privateslot |
|
privateslot |
Format seleted text to fraction.
References d_buttons, Equation, formatText(), and TexLegend.
Referenced by init().
|
privateslot |
|
privateslot |
Format seleted text to square root.
References d_buttons, Equation, formatText(), and TexLegend.
Referenced by init().
|
privateslot |
|
privateslot |
|
privateslot |
Insert 'letter' into the text.
References connectedTextEdit, d_buttons, Equation, and TexLegend.
Referenced by showArrowSymbols(), showLowerGreek(), showMathSymbols(), and showUpperGreek().
|
privateslot |
|
private |
Internal function: format selected text with prefix and postfix.
References connectedTextEdit.
Referenced by addBold(), addCurve(), addFraction(), addItalics(), addSquareRoot(), addSubscript(), addSuperscript(), and addUnderline().
|
private |
References addBold(), addCurve(), addFraction(), addItalics(), addSquareRoot(), addSubscript(), addSuperscript(), addUnderline(), Equation, Legend, Plot3D, showArrowSymbols(), showLowerGreek(), showMathSymbols(), showUpperGreek(), and TexLegend.
Referenced by setButtons(), and TextFormatButtons().
| void TextFormatButtons::setButtons | ( | Buttons | btns | ) |
References d_buttons, and init().
Referenced by EnrichmentDialog::updateButtons().
|
privateslot |
Let the user insert arrow symbols.
References addSymbol(), SymbolDialog::arrowSymbols, connectedTextEdit, d_buttons, Equation, SymbolDialog::latexArrowSymbols, and TexLegend.
Referenced by init().
|
privateslot |
Let the user insert lower case greek letters.
References addSymbol(), connectedTextEdit, and SymbolDialog::lowerGreek.
Referenced by init().
|
privateslot |
Let the user insert mathematical symbols.
References addSymbol(), connectedTextEdit, d_buttons, Equation, SymbolDialog::latexMathSymbols, SymbolDialog::mathSymbols, and TexLegend.
Referenced by init().
|
privateslot |
Let the user insert capital greek letters.
References addSymbol(), connectedTextEdit, and SymbolDialog::upperGreek.
Referenced by init().
|
private |
Referenced by addSymbol(), formatText(), showArrowSymbols(), showLowerGreek(), showMathSymbols(), and showUpperGreek().
|
private |
Referenced by addFraction(), addSquareRoot(), addSubscript(), addSuperscript(), addSymbol(), setButtons(), showArrowSymbols(), and showMathSymbols().
1.8.6