|
SciDAVis
1.D4
|
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 } |
| 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. | |
| ~SymbolDialog () | |
| Destructor. | |
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 | 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(), initLowerGreekChars(), initMathSymbols(), initNumberSymbols(), initUpperGreekChars(), languageChange(), lowerGreek, mainLayout, mathSymbols, and upperGreek.
| SymbolDialog::~SymbolDialog | ( | ) |
Destructor.
|
slot |
Find and emit char from current button ([return] pressed)
References addLetter(), buttons, and numButtons.
Referenced by SymbolDialog().
|
signal |
Emitted when a letter is to be added.
Referenced by addCurrentChar(), and getChar().
|
protected |
Event handler: When the dialog gets the focus the first button is set to react on [return].
References buttons.
|
slot |
Find and emit char from pressed button.
References addLetter(), and buttons.
Referenced by SymbolDialog().
|
private |
|
private |
Show lowercase Greek characters.
References buttons, gridLayout, and numButtons.
Referenced by SymbolDialog().
|
private |
Show mathematical symbols.
References buttons, gridLayout, and numButtons.
Referenced by SymbolDialog().
|
private |
|
private |
Show uppercase Greek characters.
References buttons, gridLayout, and numButtons.
Referenced by SymbolDialog().
|
virtualslot |
Change language (reset title)
Referenced by SymbolDialog().
|
private |
|
private |
Referenced by SymbolDialog().
|
private |
Referenced by initArrowSymbols(), initLowerGreekChars(), initMathSymbols(), initNumberSymbols(), initUpperGreekChars(), and SymbolDialog().
|
private |
Referenced by SymbolDialog().
|
private |
Referenced by addCurrentChar(), initArrowSymbols(), initLowerGreekChars(), initMathSymbols(), initNumberSymbols(), and initUpperGreekChars().
1.8.1