#include <kspread_editors.h>
Signals | |
| void | selectedCompletion (const TQString &item) |
Public Member Functions | |
| FunctionCompletion (CellEditor *editor) | |
| bool | eventFilter (TQObject *o, TQEvent *e) |
| void | doneCompletion () |
| void | showCompletion (const TQStringList &choices) |
Detailed Description
Provides autocompletition facilities in formula editors.
When the user types in the first few characters of a function name in a CellEditor which has a FunctionCompletion object installed on it, the FunctionCompletion object creates and displays a list of possible names which the user can select from. If the user selects a function name from the list, the FunctionCompletion::selectedCompletion() signal is emitted
Definition at line 120 of file kspread_editors.h.
Constructor & Destructor Documentation
◆ FunctionCompletion()
| FunctionCompletion::FunctionCompletion | ( | CellEditor * | editor | ) |
Definition at line 311 of file kspread_editors.cpp.
◆ ~FunctionCompletion()
| FunctionCompletion::~FunctionCompletion | ( | ) |
Definition at line 341 of file kspread_editors.cpp.
Member Function Documentation
◆ doneCompletion()
| void FunctionCompletion::doneCompletion | ( | ) |
Hides the autocompletion list box if it is visible and emits the selectedCompletion signal.
Definition at line 414 of file kspread_editors.cpp.
◆ eventFilter()
| bool FunctionCompletion::eventFilter | ( | TQObject * | o, |
| TQEvent * | e ) |
Handles various keyboard and mouse actions which may occur on the autocompletion popup list.
Definition at line 379 of file kspread_editors.cpp.
◆ selectedCompletion
|
signal |
Emitted, if the user selects a function name from the list.
◆ showCompletion()
| void FunctionCompletion::showCompletion | ( | const TQStringList & | choices | ) |
Populates the autocompletion list box with the specified choices and shows it so that the user can view and select a function name.
- Parameters
-
choices A list of possible function names which match the characters that the user has already entered.
Definition at line 422 of file kspread_editors.cpp.
The documentation for this class was generated from the following files:
