kspread
KSpread::CellEditor Class Reference
#include <kspread_editors.h>
Inherits QWidget.
Detailed Description
class CellEditorDefinition at line 166 of file kspread_editors.h.
Public Member Functions | |
CellEditor (Cell *cell, Canvas *_parent=0, bool captureAllKeyEvents=false, const char *_name=0) | |
Cell * | cell () const |
Canvas * | canvas () const |
void | handleKeyPressEvent (QKeyEvent *_ev) |
void | handleIMEvent (QIMEvent *_ev) |
void | setEditorFont (QFont const &font, bool updateSize) |
int | cursorPosition () const |
void | setCursorPosition (int pos) |
void | setText (QString text) |
QString | text () const |
void | cut () |
void | paste () |
void | copy () |
QPoint | globalCursorPosition () const |
bool | checkChoice () |
void | setCheckChoice (bool b) |
void | updateChoice () |
void | setUpdateChoice (bool) |
void | setCursorToRange (uint) |
Protected Slots | |
void | checkFunctionAutoComplete () |
void | triggerFunctionAutoComplete () |
void | functionAutoComplete (const QString &item) |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *) |
bool | eventFilter (QObject *o, QEvent *e) |
Constructor & Destructor Documentation
CellEditor::CellEditor | ( | Cell * | cell, | |
Canvas * | _parent = 0 , |
|||
bool | captureAllKeyEvents = false , |
|||
const char * | _name = 0 | |||
) |
Creates a new CellEditor.
- Parameters:
-
cell The spreadsheet cell to associate the cell text editor with _parent The Canvas object to associate this cell text editor with captureAllKeyEvents Controls whether or not the text editor swallows arrow key events or sends them to the parent canvas instead. If this is set to true, pressing the arrow keys will navigate backwards and forwards through the text in the editor. If it is false, the key events will be sent to the parent canvas which will change the cell being edited (depending on the direction of the arrow pressed). Generally this should be set to true if the user double clicks on the cell to edit it, and false if the user initiates editing by typing whilst the cell is selected. _name This parameter is sent to the QObject constructor
Definition at line 489 of file kspread_editors.cc.
Member Function Documentation
QString CellEditor::text | ( | ) | const |
void CellEditor::cut | ( | ) |
void CellEditor::paste | ( | ) |
void CellEditor::copy | ( | ) |
bool CellEditor::eventFilter | ( | QObject * | o, | |
QEvent * | e | |||
) | [protected] |
Steals some key events from the QLineEdit and sends it to the Canvas ( its parent ) instead.
Definition at line 1166 of file kspread_editors.cc.
The documentation for this class was generated from the following files: