kspread

KSpread::FunctionCompletion Class Reference

#include <kspread_editors.h>

List of all members.


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.


Signals

void selectedCompletion (const QString &item)

Public Member Functions

 FunctionCompletion (CellEditor *editor)
 ~FunctionCompletion ()
bool eventFilter (QObject *o, QEvent *e)
void doneCompletion ()
void showCompletion (const QStringList &choices)

Member Function Documentation

bool FunctionCompletion::eventFilter ( QObject *  o,
QEvent *  e 
)

Handles various keyboard and mouse actions which may occur on the autocompletion popup list.

Definition at line 379 of file kspread_editors.cc.

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.cc.

void FunctionCompletion::showCompletion ( const QStringList &  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.cc.

void KSpread::FunctionCompletion::selectedCompletion ( const QString &  item  )  [signal]

Emitted, if the user selects a function name from the list.


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