kspread
KSpread::CellEditor Class Reference
class CellEditor More...
#include <Editors.h>

Public Slots | |
| void | setText (const QString &text, int cursorPos=-1) |
Signals | |
| void | modificationChanged (bool changed) |
| void | textChanged (const QString &text) |
Public Member Functions | |
| CellEditor (QWidget *parent, Selection *selection, bool captureAllKeyEvents=false) | |
| ~CellEditor () | |
| const Cell & | cell () const |
| bool | checkChoice () |
| void | copy () |
| int | cursorPosition () const |
| void | cut () |
| QPoint | globalCursorPosition () const |
| void | handleInputMethodEvent (QInputMethodEvent *_ev) |
| void | handleKeyPressEvent (QKeyEvent *_ev) |
| void | paste () |
| Selection * | selection () const |
| void | setCheckChoice (bool b) |
| void | setCursorPosition (int pos) |
| void | setCursorToRange (uint) |
| void | setEditorFont (QFont const &font, bool updateSize, const KoViewConverter *viewConverter) |
| void | setUpdateChoice (bool) |
| QString | text () const |
| void | updateChoice () |
Protected Slots | |
| void | checkFunctionAutoComplete () |
| void | functionAutoComplete (const QString &item) |
| void | triggerFunctionAutoComplete () |
Protected Member Functions | |
| bool | eventFilter (QObject *o, QEvent *e) |
| void | resizeEvent (QResizeEvent *) |
Detailed Description
class CellEditor
Definition at line 182 of file Editors.h.
Constructor & Destructor Documentation
| CellEditor::CellEditor | ( | QWidget * | parent, | |
| Selection * | selection, | |||
| bool | captureAllKeyEvents = false | |||
| ) | [explicit] |
Creates a new CellEditor.
- Parameters:
-
parent The parent widget. selection The Selection 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 527 of file Editors.cpp.
| CellEditor::~CellEditor | ( | ) |
Definition at line 592 of file Editors.cpp.
Member Function Documentation
| const Cell & CellEditor::cell | ( | ) | const |
Definition at line 603 of file Editors.cpp.
| bool CellEditor::checkChoice | ( | ) |
Definition at line 954 of file Editors.cpp.
| void CellEditor::checkFunctionAutoComplete | ( | ) | [protected, slot] |
Definition at line 618 of file Editors.cpp.
| void CellEditor::copy | ( | ) |
wrapper to KTextEdit::copy()
Definition at line 841 of file Editors.cpp.
| int CellEditor::cursorPosition | ( | ) | const |
Definition at line 1178 of file Editors.cpp.
| void CellEditor::cut | ( | ) |
wrapper to KTextEdit::cut()
Definition at line 831 of file Editors.cpp.
Steals some key events from the KLineEdit and sends it to the KSpread::Canvas ( its parent ) instead.
Definition at line 1194 of file Editors.cpp.
| void CellEditor::functionAutoComplete | ( | const QString & | item | ) | [protected, slot] |
Definition at line 663 of file Editors.cpp.
| QPoint CellEditor::globalCursorPosition | ( | ) | const |
Definition at line 613 of file Editors.cpp.
| void CellEditor::handleInputMethodEvent | ( | QInputMethodEvent * | _ev | ) |
Definition at line 1148 of file Editors.cpp.
| void CellEditor::handleKeyPressEvent | ( | QKeyEvent * | _ev | ) |
Definition at line 1091 of file Editors.cpp.
| void KSpread::CellEditor::modificationChanged | ( | bool | changed | ) | [signal] |
| void CellEditor::paste | ( | ) |
wrapper to KTextEdit::paste()
Definition at line 836 of file Editors.cpp.
| void CellEditor::resizeEvent | ( | QResizeEvent * | ) | [protected] |
Reimplemented from QWidget.
Definition at line 1086 of file Editors.cpp.
| Selection * CellEditor::selection | ( | ) | const |
Definition at line 608 of file Editors.cpp.
| void CellEditor::setCheckChoice | ( | bool | b | ) |
Definition at line 949 of file Editors.cpp.
| void CellEditor::setCursorPosition | ( | int | pos | ) |
Definition at line 1183 of file Editors.cpp.
| void CellEditor::setCursorToRange | ( | uint | pos | ) |
Definition at line 1246 of file Editors.cpp.
| void CellEditor::setEditorFont | ( | QFont const & | font, | |
| bool | updateSize, | |||
| const KoViewConverter * | viewConverter | |||
| ) |
Definition at line 846 of file Editors.cpp.
| void CellEditor::setText | ( | const QString & | text, | |
| int | cursorPos = -1 | |||
| ) | [slot] |
Definition at line 1159 of file Editors.cpp.
| void CellEditor::setUpdateChoice | ( | bool | state | ) |
Definition at line 1021 of file Editors.cpp.
| QString CellEditor::text | ( | ) | const |
wrapper to KTextEdit::text()
Definition at line 1154 of file Editors.cpp.
| void KSpread::CellEditor::textChanged | ( | const QString & | text | ) | [signal] |
| void CellEditor::triggerFunctionAutoComplete | ( | ) | [protected, slot] |
Definition at line 625 of file Editors.cpp.
| void CellEditor::updateChoice | ( | ) |
Definition at line 1026 of file Editors.cpp.
The documentation for this class was generated from the following files:
