QtiPlot  0.9.8.2
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
SymbolDialog Class Reference

Tools window to select special text characters. More...

#include <SymbolDialog.h>

List of all members.

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

Detailed Description

Tools window to select special text characters.


Member Enumeration Documentation

Character set.

Enumerator:
lowerGreek 

lower case Greek letters

upperGreek 

upper case Greek letters

mathSymbols 

mathematical symbols

arrowSymbols 

arrow symbols

numberSymbols 

number symbols (e.g. 1/2, vi)

latexArrowSymbols 

default LaTeX arrow symbols

latexMathSymbols 

default LaTeX math symbols


Constructor & Destructor Documentation

SymbolDialog::SymbolDialog ( CharSet  charSet,
QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Member Function Documentation

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]

Show arrow symbols.

References buttons, gridLayout, and numButtons.

Referenced by SymbolDialog().

Show default LaTeX arrow symbols.

References buttons, gridLayout, and numButtons.

Referenced by SymbolDialog().

Show default LaTeX math symbols.

References buttons, gridLayout, and numButtons.

Referenced by SymbolDialog().

Show lowercase Greek characters.

References buttons, and gridLayout.

Referenced by SymbolDialog().

void SymbolDialog::initMathSymbols ( ) [private]

Show mathematical symbols.

References buttons, gridLayout, and numButtons.

Referenced by SymbolDialog().

void SymbolDialog::initNumberSymbols ( ) [private]

Show number symbols.

References buttons, gridLayout, and numButtons.

Referenced by SymbolDialog().

Show uppercase Greek characters.

References buttons, gridLayout, and numButtons.

Referenced by SymbolDialog().

void SymbolDialog::languageChange ( ) [virtual, slot]

Change language (reset title)

Referenced by SymbolDialog().


Member Data Documentation

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]

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