SciDAVis  1.D4
Public Member Functions | Private Slots | Private Member Functions | Private Attributes
TextFormatButtons Class Reference

Widget with text format buttons (connected to a QTextEdit) More...

#include <TextFormatButtons.h>

List of all members.

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

Detailed Description

Widget with text format buttons (connected to a QTextEdit)


Constructor & Destructor Documentation

TextFormatButtons::TextFormatButtons ( QTextEdit *  textEdit,
QWidget *  parent = 0 
)

Member Function Documentation

void TextFormatButtons::addBold ( )
privateslot

Format seleted text to bold.

References formatText().

Referenced by TextFormatButtons().

void TextFormatButtons::addCurve ( )
privateslot

Insert curve marker into the text.

References formatText().

Referenced by TextFormatButtons().

void TextFormatButtons::addItalics ( )
privateslot

Format seleted text to italics.

References formatText().

Referenced by TextFormatButtons().

void TextFormatButtons::addSubscript ( )
privateslot

Format seleted text to subscript.

References formatText().

Referenced by TextFormatButtons().

void TextFormatButtons::addSuperscript ( )
privateslot

Format seleted text to superscript.

References formatText().

Referenced by TextFormatButtons().

void TextFormatButtons::addSymbol ( const QString &  letter)
privateslot

Insert 'letter' into the text.

References connectedTextEdit.

Referenced by showArrowSymbols(), showLowerGreek(), showMathSymbols(), and showUpperGreek().

void TextFormatButtons::addUnderline ( )
privateslot

Format seleted text to underlined.

References formatText().

Referenced by TextFormatButtons().

void TextFormatButtons::formatText ( const QString &  prefix,
const QString &  postfix 
)
private

Internal function: format selected text with prefix and postfix.

References connectedTextEdit.

Referenced by addBold(), addCurve(), addItalics(), addSubscript(), addSuperscript(), and addUnderline().

void TextFormatButtons::showArrowSymbols ( )
privateslot

Let the user insert arrow symbols.

References addSymbol(), SymbolDialog::arrowSymbols, and connectedTextEdit.

Referenced by TextFormatButtons().

void TextFormatButtons::showLowerGreek ( )
privateslot

Let the user insert lower case greek letters.

References addSymbol(), connectedTextEdit, and SymbolDialog::lowerGreek.

Referenced by TextFormatButtons().

void TextFormatButtons::showMathSymbols ( )
privateslot

Let the user insert mathematical symbols.

References addSymbol(), connectedTextEdit, and SymbolDialog::mathSymbols.

Referenced by TextFormatButtons().

void TextFormatButtons::showUpperGreek ( )
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().


Member Data Documentation

QPushButton* TextFormatButtons::buttonArrowSymbols
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonBold
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonCurve
private
QPushButton* TextFormatButtons::buttonItalics
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonLowerGreek
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonMathSymbols
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonSubscript
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonSuperscript
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonUnderline
private

Referenced by TextFormatButtons().

QPushButton* TextFormatButtons::buttonUpperGreek
private

Referenced by TextFormatButtons().

QTextEdit* TextFormatButtons::connectedTextEdit
private

The documentation for this class was generated from the following files: