Scribus
Open source desktop publishing at your fingertips
CharSelect Class Reference

Character Palette for direct glyphs inserting. The "classical" one is opened as CharSelectEnhanced instance. Both CharSelect/CharSelectEnhanced palettes are split due: 1) initial and usage performace. The CharSelectEnhanced is too slow to load on startup/doc opening etc. The memory footprint is much smaller too. 2) It was one dialog before split. To show/hide "enhanced" part caused serious mess with layouts and dialog sizes and positioning. Now it's handled in standard way. More...

#include <charselect.h>

Inheritance diagram for CharSelect:
Collaboration diagram for CharSelect:

Signals

void insertSpecialChar ()
 A signall emittedthis palette tries to insert glyphs. It does not have sense in standard "palette" mode, but it's used in StoryEditor workaround.
 
void insertUserSpecialChar (QChar, QString)
 
- Signals inherited from ScrPaletteBase
void paletteShown (bool)
 Let the action for this palette know when something changes and it hasnt caused it.
 

Public Member Functions

 CharSelect (QWidget *parent)
 
void hide ()
 Sample way to grab keystrokes, simply calls superclass at this point.
 
void show ()
 
void setDoc (ScribusDoc *doc)
 
void setEnabled (bool state, PageItem *item=0)
 
const QString & getCharacters ()
 
CharTableModeluserTableModel ()
 Used for StoryEditor.
 
virtual void changeEvent (QEvent *e)
 
- Public Member Functions inherited from ScrPaletteBase
 ScrPaletteBase (QWidget *parent=NULL, const QString &prefsContext=QString::null, bool modal=false, Qt::WindowFlags f=0)
 
void startup ()
 

Additional Inherited Members

- Public Slots inherited from ScrPaletteBase
virtual void setPaletteShown (bool)
 
virtual void setFontSize ()
 
virtual int exec ()
 
int exec (QWidget *newParent)
 
- Protected Slots inherited from ScrPaletteBase
virtual void reject ()
 
- Protected Member Functions inherited from ScrPaletteBase
virtual void setPrefsContext (QString context)
 Set the Preferences context to be used for storage of startup visibility and position and size.
 
void storePosition ()
 
void storePosition (int newX, int newY)
 
void storeSize ()
 
void storeVisibility (bool)
 
virtual void showEvent (QShowEvent *showEvent)
 Restore the geometry of the window when showing it.
 
virtual void closeEvent (QCloseEvent *closeEvent)
 Captures the close event and changes it to hide.
 
virtual void hideEvent (QHideEvent *)
 Stores the geometry of the window when hiding.
 
- Protected Attributes inherited from ScrPaletteBase
PrefsContextpalettePrefs
 
QString prefsContextName
 
bool visibleOnStartup
 
QWidget * originalParent
 
QWidget * tempParent
 

Detailed Description

Character Palette for direct glyphs inserting. The "classical" one is opened as CharSelectEnhanced instance. Both CharSelect/CharSelectEnhanced palettes are split due: 1) initial and usage performace. The CharSelectEnhanced is too slow to load on startup/doc opening etc. The memory footprint is much smaller too. 2) It was one dialog before split. To show/hide "enhanced" part caused serious mess with layouts and dialog sizes and positioning. Now it's handled in standard way.

Note
This palette is used as standard Scribus palette for ScribusDoc mainly.
There is 2nd usage as well - in the StoryEditor. See its docstrings.

Member Function Documentation

void CharSelect::insertUserSpecialChar ( QChar  ,
QString   
)
signal

Internal signal for one glyph only


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