#include <kspread_editors.h>
Inherits TQWidget.
Public Member Functions | |
| CellEditor (Cell *cell, Canvas *_parent=0, bool captureAllKeyEvents=false, const char *_name=0) | |
| Cell * | cell () const |
| Canvas * | canvas () const |
| void | handleKeyPressEvent (TQKeyEvent *_ev) |
| void | handleIMEvent (TQIMEvent *_ev) |
| void | setEditorFont (TQFont const &font, bool updateSize) |
| int | cursorPosition () const |
| void | setCursorPosition (int pos) |
| void | setText (TQString text) |
| TQString | text () const |
| void | cut () |
| void | paste () |
| void | copy () |
| TQPoint | 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 TQString &item) |
Protected Member Functions | |
| void | resizeEvent (TQResizeEvent *) |
| bool | eventFilter (TQObject *o, TQEvent *e) |
Detailed Description
class CellEditor
Definition at line 167 of file kspread_editors.h.
Constructor & Destructor Documentation
◆ CellEditor()
| 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 TQObject constructor
Definition at line 489 of file kspread_editors.cpp.
◆ ~CellEditor()
| CellEditor::~CellEditor | ( | ) |
Definition at line 561 of file kspread_editors.cpp.
Member Function Documentation
◆ canvas()
| Canvas * CellEditor::canvas | ( | ) | const |
Definition at line 576 of file kspread_editors.cpp.
◆ cell()
| Cell * CellEditor::cell | ( | ) | const |
Definition at line 571 of file kspread_editors.cpp.
◆ checkChoice()
| bool CellEditor::checkChoice | ( | ) |
Definition at line 930 of file kspread_editors.cpp.
◆ checkFunctionAutoComplete
|
protectedslot |
Definition at line 586 of file kspread_editors.cpp.
◆ copy()
| void CellEditor::copy | ( | ) |
wrapper to KTextEdit::copy()
Definition at line 814 of file kspread_editors.cpp.
◆ cursorPosition()
| int CellEditor::cursorPosition | ( | ) | const |
Definition at line 1152 of file kspread_editors.cpp.
◆ cut()
| void CellEditor::cut | ( | ) |
wrapper to KTextEdit::cut()
Definition at line 804 of file kspread_editors.cpp.
◆ eventFilter()
|
protected |
Steals some key events from the TQLineEdit and sends it to the Canvas ( its parent ) instead.
Definition at line 1166 of file kspread_editors.cpp.
◆ functionAutoComplete
|
protectedslot |
Definition at line 631 of file kspread_editors.cpp.
◆ globalCursorPosition()
| TQPoint CellEditor::globalCursorPosition | ( | ) | const |
Definition at line 581 of file kspread_editors.cpp.
◆ handleIMEvent()
| void CellEditor::handleIMEvent | ( | TQIMEvent * | _ev | ) |
Definition at line 1125 of file kspread_editors.cpp.
◆ handleKeyPressEvent()
| void CellEditor::handleKeyPressEvent | ( | TQKeyEvent * | _ev | ) |
Definition at line 1066 of file kspread_editors.cpp.
◆ paste()
| void CellEditor::paste | ( | ) |
wrapper to KTextEdit::paste()
Definition at line 809 of file kspread_editors.cpp.
◆ resizeEvent()
|
protected |
Definition at line 1061 of file kspread_editors.cpp.
◆ setCheckChoice()
| void CellEditor::setCheckChoice | ( | bool | b | ) |
Definition at line 925 of file kspread_editors.cpp.
◆ setCursorPosition()
| void CellEditor::setCursorPosition | ( | int | pos | ) |
Definition at line 1160 of file kspread_editors.cpp.
◆ setCursorToRange()
| void CellEditor::setCursorToRange | ( | uint | pos | ) |
Definition at line 1227 of file kspread_editors.cpp.
◆ setEditorFont()
| void CellEditor::setEditorFont | ( | TQFont const & | font, |
| bool | updateSize | ||
| ) |
Definition at line 819 of file kspread_editors.cpp.
◆ setText()
| void CellEditor::setText | ( | TQString | text | ) |
Definition at line 1136 of file kspread_editors.cpp.
◆ setUpdateChoice()
| void CellEditor::setUpdateChoice | ( | bool | state | ) |
Definition at line 993 of file kspread_editors.cpp.
◆ text()
| TQString CellEditor::text | ( | ) | const |
wrapper to KTextEdit::text()
Definition at line 1131 of file kspread_editors.cpp.
◆ triggerFunctionAutoComplete
|
protectedslot |
Definition at line 592 of file kspread_editors.cpp.
◆ updateChoice()
| void CellEditor::updateChoice | ( | ) |
Definition at line 998 of file kspread_editors.cpp.
The documentation for this class was generated from the following files:
