Scribus
Open source desktop publishing at your fingertips
chartableview.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef CHARTABLEVIEW_H
8 #define CHARTABLEVIEW_H
9 
10 #include <QTableView>
11 
12 class CharTableModel;
13 class CharZoom;
14 
15 
24 class CharTableView : public QTableView
25 {
26  Q_OBJECT
27 
28 public:
29  CharTableView(QWidget * parent = 0);
30 
31 signals:
32  void selectChar(uint, QString);
34  void delChar();
35 
36 public slots:
39  void modelSelectionChanged(QItemSelectionModel * model);
40 
42  void resizeLastRow();
43 
44 protected:
47 
48  QAction * deleteAct;
49  QMenu * actionMenu;
50 
51  CharTableModel * model();
52  void hideEvent(QHideEvent *);
53  void keyPressEvent(QKeyEvent *k);
54  void mouseReleaseEvent(QMouseEvent *m);
55  void mousePressEvent(QMouseEvent* e);
56  void mouseMoveEvent(QMouseEvent* e);
57 
60 
61  void hideZoomedChar();
62 
64  void resizeEvent(QResizeEvent *e);
65 
66 private slots:
67  void removeCharacter();
68  void viewDoubleClicked(const QModelIndex & index);
69 };
70 
71 #endif
A model (MVC) to handle unicode characters map. It's a backend for CharTableView - its GUI representa...
Definition: chartablemodel.h:30
void delChar()
When user press the DELETE/BACKSPACE key.
void resizeEvent(QResizeEvent *e)
Used for computing the items' pixmap size in the model.
Definition: chartableview.cpp:150
A visual widget for displaying the unicode glyphs map. setAcceptDrops() note: It sets the right-butto...
Definition: chartableview.h:24
CharZoom * zoom
Magnify dialog reference.
Definition: chartableview.h:46
int currentCharactersIndex()
Map current QModelIndex into CharClassDef index/position.
Definition: chartableview.cpp:126
"A magnifying glass" dialog for CharTableView cell.
Definition: charzoom.h:15
void modelSelectionChanged(QItemSelectionModel *model)
Handling selection changes from model's internals. There can arrive selection changes unrelated to GU...
Definition: chartableview.cpp:47
void resizeLastRow()
Calculate height of the last row to fit image size.
Definition: chartableview.cpp:52