kig
ObjectChooserPopup Class Reference
#include <popup.h>
Inheritance diagram for ObjectChooserPopup:

Detailed Description
This class is useful to choose one object from a list of some, by querying the user via popup menu.You can't use this class directly, but these's a convenience method.
Definition at line 103 of file popup.h.
Static Public Member Functions | |
| static int | getObjectFromList (const QPoint &p, KigWidget *w, const std::vector< ObjectHolder * > &objs, bool givepopup=true) |
Protected Slots | |
| void | actionActivatedSlot (QAction *) |
Protected Member Functions | |
| ObjectChooserPopup (const QPoint &p, KigWidget &view, const std::vector< ObjectHolder * > &objs) | |
| ~ObjectChooserPopup () | |
Protected Attributes | |
| std::vector< ObjectHolder * > | mobjs |
| QPoint | mplc |
| int | mselected |
| KigWidget & | mview |
Constructor & Destructor Documentation
| ObjectChooserPopup::ObjectChooserPopup | ( | const QPoint & | p, | |
| KigWidget & | view, | |||
| const std::vector< ObjectHolder * > & | objs | |||
| ) | [protected] |
Member Function Documentation
| void ObjectChooserPopup::actionActivatedSlot | ( | QAction * | act | ) | [protected, slot] |
| int ObjectChooserPopup::getObjectFromList | ( | const QPoint & | p, | |
| KigWidget * | w, | |||
| const std::vector< ObjectHolder * > & | objs, | |||
| bool | givepopup = true | |||
| ) | [static] |
Get the index of the chosen object from a list of objects.
- Parameters:
-
p is the point where execute the popup w is the pointer to a KigWidget objs is the vector with the objects to chose from givepopup true means that we have to show a popup to the user
- Returns:
- the index of the chosen element ( starting from 0 ), or -1 if none was selected.
Member Data Documentation
std::vector<ObjectHolder*> ObjectChooserPopup::mobjs [protected] |
QPoint ObjectChooserPopup::mplc [protected] |
int ObjectChooserPopup::mselected [protected] |
KigWidget& ObjectChooserPopup::mview [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference