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)
 ~CellEditor ()
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

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

wrapper to KTextEdit::text()

Definition at line 1131 of file kspread_editors.cc.

void CellEditor::cut (  ) 

wrapper to KTextEdit::cut()

Definition at line 804 of file kspread_editors.cc.

void CellEditor::paste (  ) 

wrapper to KTextEdit::paste()

Definition at line 809 of file kspread_editors.cc.

void CellEditor::copy (  ) 

wrapper to KTextEdit::copy()

Definition at line 814 of file kspread_editors.cc.

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:
KDE Home | KDE Accessibility Home | Description of Access Keys