Tools window to select special text characters. More...
#include <SymbolDialog.h>
Public Types | |
| enum | CharSet { lowerGreek = 0, upperGreek = 1, mathSymbols = 2, arrowSymbols = 3, numberSymbols = 4, latexArrowSymbols = 5, latexMathSymbols = 6 } |
Character set. More... | |
Public Slots | |
| void | addCurrentChar () |
| Find and emit char from current button ([return] pressed). | |
| void | getChar (int btnIndex) |
| Find and emit char from pressed button. | |
| virtual void | languageChange () |
| Change language (reset title). | |
Signals | |
| void | addLetter (const QString &) |
| Emitted when a letter is to be added. | |
Public Member Functions | |
| SymbolDialog (CharSet charSet, QWidget *parent=0, Qt::WFlags fl=0) | |
| Constructor. | |
Protected Member Functions | |
| void | focusInEvent (QFocusEvent *event) |
| Event handler: When the dialog gets the focus the first button is set to react on [return]. | |
Private Member Functions | |
| void | initArrowSymbols () |
| Show arrow symbols. | |
| void | initLatexArrowSymbols () |
| Show default LaTeX arrow symbols. | |
| void | initLatexMathSymbols () |
| Show default LaTeX math symbols. | |
| void | initLowerGreekChars () |
| Show lowercase Greek characters. | |
| void | initMathSymbols () |
| Show mathematical symbols. | |
| void | initNumberSymbols () |
| Show number symbols. | |
| void | initUpperGreekChars () |
| Show uppercase Greek characters. | |
Private Attributes | |
| QButtonGroup * | buttons |
| QPushButton * | closeButton |
| QGridLayout * | gridLayout |
| QVBoxLayout * | mainLayout |
| int | numButtons |
Tools window to select special text characters.
| SymbolDialog::SymbolDialog | ( | CharSet | charSet, | |
| QWidget * | parent = 0, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
Constructor.
| charSet | character set (lower- or uppercase) | |
| parent | parent widget | |
| fl | window flags |
References addCurrentChar(), arrowSymbols, buttons, closeButton, getChar(), gridLayout, initArrowSymbols(), initLatexArrowSymbols(), initLatexMathSymbols(), initLowerGreekChars(), initMathSymbols(), initNumberSymbols(), initUpperGreekChars(), languageChange(), latexArrowSymbols, latexMathSymbols, lowerGreek, mainLayout, mathSymbols, numberSymbols, and upperGreek.
| void SymbolDialog::addCurrentChar | ( | ) | [slot] |
Find and emit char from current button ([return] pressed).
References addLetter(), buttons, and numButtons.
Referenced by SymbolDialog().
| void SymbolDialog::addLetter | ( | const QString & | ) | [signal] |
Emitted when a letter is to be added.
Referenced by addCurrentChar(), and getChar().
| void SymbolDialog::focusInEvent | ( | QFocusEvent * | event | ) | [protected] |
Event handler: When the dialog gets the focus the first button is set to react on [return].
References buttons.
| void SymbolDialog::getChar | ( | int | btnIndex | ) | [slot] |
Find and emit char from pressed button.
References addLetter(), and buttons.
Referenced by SymbolDialog().
| void SymbolDialog::initArrowSymbols | ( | ) | [private] |
| void SymbolDialog::initLatexArrowSymbols | ( | ) | [private] |
Show default LaTeX arrow symbols.
References buttons, gridLayout, and numButtons.
Referenced by SymbolDialog().
| void SymbolDialog::initLatexMathSymbols | ( | ) | [private] |
Show default LaTeX math symbols.
References buttons, gridLayout, and numButtons.
Referenced by SymbolDialog().
| void SymbolDialog::initLowerGreekChars | ( | ) | [private] |
| void SymbolDialog::initMathSymbols | ( | ) | [private] |
Show mathematical symbols.
References buttons, gridLayout, and numButtons.
Referenced by SymbolDialog().
| void SymbolDialog::initNumberSymbols | ( | ) | [private] |
| void SymbolDialog::initUpperGreekChars | ( | ) | [private] |
Show uppercase Greek characters.
References buttons, gridLayout, and numButtons.
Referenced by SymbolDialog().
| void SymbolDialog::languageChange | ( | ) | [virtual, slot] |
Change language (reset title).
Referenced by SymbolDialog().
QButtonGroup* SymbolDialog::buttons [private] |
QPushButton* SymbolDialog::closeButton [private] |
Referenced by SymbolDialog().
QGridLayout* SymbolDialog::gridLayout [private] |
QVBoxLayout* SymbolDialog::mainLayout [private] |
Referenced by SymbolDialog().
int SymbolDialog::numButtons [private] |
1.7.1