• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kig

ObjectChooserPopup Class Reference

#include <popup.h>

Inheritance diagram for ObjectChooserPopup:

Inheritance graph
[legend]

List of all members.


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]

Definition at line 1129 of file popup.cc.

ObjectChooserPopup::~ObjectChooserPopup (  )  [protected]

Definition at line 1147 of file popup.cc.


Member Function Documentation

void ObjectChooserPopup::actionActivatedSlot ( QAction *  act  )  [protected, slot]

Definition at line 1151 of file popup.cc.

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.

Definition at line 1069 of file popup.cc.


Member Data Documentation

std::vector<ObjectHolder*> ObjectChooserPopup::mobjs [protected]

Definition at line 135 of file popup.h.

QPoint ObjectChooserPopup::mplc [protected]

Definition at line 133 of file popup.h.

int ObjectChooserPopup::mselected [protected]

Definition at line 137 of file popup.h.

KigWidget& ObjectChooserPopup::mview [protected]

Definition at line 134 of file popup.h.


The documentation for this class was generated from the following files:
  • popup.h
  • popup.cc

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal