Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

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>

Collaboration diagram for CharTableView:

Collaboration graph
[legend]

List of all members.

Public Slots

void modelSelectionChanged (QItemSelectionModel *model)
 Handling selection changes from model's internals. There can arrive selection changes unrelated to GUI integration.

Signals

void selectChar (uint)
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 currenCharactersIndex ()
 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

Private Slots

void removeCharacter ()
void viewDoubleClicked (const QModelIndex &index)


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@scribus.info>

Definition at line 24 of file chartableview.h.


Constructor & Destructor Documentation

CharTableView::CharTableView ( QWidget *  parent = 0  ) 

Definition at line 18 of file chartableview.cpp.

References actionMenu, deleteAct, removeCharacter(), tr(), and viewDoubleClicked().


Member Function Documentation

void CharTableView::selectChar ( uint   )  [signal]

Referenced by viewDoubleClicked().

void CharTableView::delChar (  )  [signal]

When user press the DELETE/BACKSPACE key.

Referenced by keyPressEvent().

void CharTableView::modelSelectionChanged ( QItemSelectionModel *  model  )  [slot]

Handling selection changes from model's internals. There can arrive selection changes unrelated to GUI integration.

Definition at line 46 of file chartableview.cpp.

CharTableModel * CharTableView::model (  )  [protected]

void CharTableView::hideEvent ( QHideEvent *  e  )  [protected]

Definition at line 131 of file chartableview.cpp.

References hideZoomedChar().

void CharTableView::keyPressEvent ( QKeyEvent *  k  )  [protected]

Definition at line 51 of file chartableview.cpp.

References delChar(), and viewDoubleClicked().

void CharTableView::mouseReleaseEvent ( QMouseEvent *  m  )  [protected]

Definition at line 104 of file chartableview.cpp.

References hideZoomedChar().

void CharTableView::mousePressEvent ( QMouseEvent *  e  )  [protected]

void CharTableView::mouseMoveEvent ( QMouseEvent *  e  )  [protected]

Definition at line 95 of file chartableview.cpp.

References hideZoomedChar().

int CharTableView::currenCharactersIndex (  )  [protected]

Map current QModelIndex into CharClassDef index/position.

Definition at line 116 of file chartableview.cpp.

References CharTableModel::columnCount(), and model().

Referenced by mousePressEvent(), and viewDoubleClicked().

void CharTableView::hideZoomedChar (  )  [protected]

Definition at line 121 of file chartableview.cpp.

References zoom.

Referenced by hideEvent(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

void CharTableView::resizeEvent ( QResizeEvent *  e  )  [protected]

Used for computing the items' pixmap size in the model.

Definition at line 137 of file chartableview.cpp.

References CharTableModel::columnCount(), model(), and CharTableModel::setViewWidth().

void CharTableView::removeCharacter (  )  [private, slot]

Definition at line 41 of file chartableview.cpp.

References deleteAct, model(), and CharTableModel::removeCharacter().

Referenced by CharTableView().

void CharTableView::viewDoubleClicked ( const QModelIndex &  index  )  [private, slot]

Definition at line 110 of file chartableview.cpp.

References currenCharactersIndex(), model(), and selectChar().

Referenced by CharTableView(), and keyPressEvent().


Member Data Documentation

Magnify dialog reference.

Definition at line 43 of file chartableview.h.

Referenced by hideZoomedChar(), and mousePressEvent().

QAction* CharTableView::deleteAct [protected]

Definition at line 45 of file chartableview.h.

Referenced by CharTableView(), mousePressEvent(), and removeCharacter().

QMenu* CharTableView::actionMenu [protected]

Definition at line 46 of file chartableview.h.

Referenced by CharTableView(), and mousePressEvent().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.