Scribus
Open source desktop publishing at your fingertips
CharTableView Class Reference

A visual widget for displaying the unicode glyphs map. setAcceptDrops() note: It sets the right-button behaviour too. It enables delete popup menu when e is true instead of larger preview dialog. The idea: When user can drop items into it, he could want to delete it too. More...

#include <chartableview.h>

Inheritance diagram for CharTableView:
Collaboration diagram for CharTableView:

Public Slots

void modelSelectionChanged (QItemSelectionModel *model)
 Handling selection changes from model's internals. There can arrive selection changes unrelated to GUI integration.
 
void resizeLastRow ()
 Calculate height of the last row to fit image size.
 

Signals

void selectChar (uint, QString)
 
void delChar ()
 When user press the DELETE/BACKSPACE key.
 

Public Member Functions

 CharTableView (QWidget *parent=0)
 

Protected Member Functions

CharTableModelmodel ()
 
void hideEvent (QHideEvent *)
 
void keyPressEvent (QKeyEvent *k)
 
void mouseReleaseEvent (QMouseEvent *m)
 
void mousePressEvent (QMouseEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
int currentCharactersIndex ()
 Map current QModelIndex into CharClassDef index/position.
 
void hideZoomedChar ()
 
void resizeEvent (QResizeEvent *e)
 Used for computing the items' pixmap size in the model.
 

Protected Attributes

CharZoomzoom
 Magnify dialog reference.
 
QAction * deleteAct
 
QMenu * actionMenu
 

Detailed Description

A visual widget for displaying the unicode glyphs map. setAcceptDrops() note: It sets the right-button behaviour too. It enables delete popup menu when e is true instead of larger preview dialog. The idea: When user can drop items into it, he could want to delete it too.

Warning
: CharTableModel and CharTableView are designed for 1:1 relations!
Author
Petr Vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo

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