kspread

KSpread::CellEditor Class Reference

#include <kspread_editors.h>

List of all members.


Detailed Description

class CellEditor

Definition at line 166 of file kspread_editors.h.


Public Member Functions

 CellEditor (Cell *cell, Canvas *_parent=0, bool captureAllKeyEvents=false, const char *_name=0)
Cellcell () const
Canvascanvas () 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

KSpread::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


Member Function Documentation

void KSpread::CellEditor::copy (  ) 

wrapper to KTextEdit::copy()

void KSpread::CellEditor::cut (  ) 

wrapper to KTextEdit::cut()

bool KSpread::CellEditor::eventFilter ( QObject *  o,
QEvent *  e 
) [protected]

Steals some key events from the QLineEdit and sends it to the Canvas ( its parent ) instead.

void KSpread::CellEditor::paste (  ) 

wrapper to KTextEdit::paste()

QString KSpread::CellEditor::text (  )  const

wrapper to KTextEdit::text()


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys