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

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • modes
  • popup
objectchooserpopup.h
Go to the documentation of this file.
1 
19 #ifndef OBJECTCHOOSERPOPUP_H
20 #define OBJECTCHOOSERPOPUP_H
21 
22 #include <kmenu.h>
23 
24 #include <vector>
25 
26 class KigWidget;
27 class ObjectHolder;
28 
35 class ObjectChooserPopup
36  : public KMenu
37 {
38  Q_OBJECT
39 
40 public:
52  static int getObjectFromList( const QPoint& p, KigWidget* w,
53  const std::vector<ObjectHolder*>& objs,
54  bool givepopup = true );
55 
56 protected:
57  ObjectChooserPopup( const QPoint& p, KigWidget& view,
58  const std::vector<ObjectHolder*>& objs );
59  ~ObjectChooserPopup();
60 
61 protected slots:
62  void actionActivatedSlot( QAction* );
63 
64 protected:
65  QPoint mplc;
66  KigWidget& mview;
67  std::vector<ObjectHolder*> mobjs;
68 
69  int mselected;
70 };
71 
72 #endif // OBJECTCHOOSERPOPUP_H
ObjectChooserPopup::mplc
QPoint mplc
Definition: objectchooserpopup.h:65
KMenu
ObjectChooserPopup::getObjectFromList
static int getObjectFromList(const QPoint &p, KigWidget *w, const std::vector< ObjectHolder * > &objs, bool givepopup=true)
Get the index of the chosen object from a list of objects.
Definition: objectchooserpopup.cc:26
ObjectChooserPopup::mobjs
std::vector< ObjectHolder * > mobjs
Definition: objectchooserpopup.h:67
ObjectHolder
An ObjectHolder represents an object as it is known to the document.
Definition: object_holder.h:40
ObjectChooserPopup::mselected
int mselected
Definition: objectchooserpopup.h:69
ObjectChooserPopup::actionActivatedSlot
void actionActivatedSlot(QAction *)
Definition: objectchooserpopup.cc:108
KigWidget
This class is the real widget showing the document.
Definition: kig_view.h:50
ObjectChooserPopup::mview
KigWidget & mview
Definition: objectchooserpopup.h:66
ObjectChooserPopup
This class is useful to choose one object from a list of some, by querying the user via popup menu...
Definition: objectchooserpopup.h:35
ObjectChooserPopup::~ObjectChooserPopup
~ObjectChooserPopup()
Definition: objectchooserpopup.cc:104
ObjectChooserPopup::ObjectChooserPopup
ObjectChooserPopup(const QPoint &p, KigWidget &view, const std::vector< ObjectHolder * > &objs)
Definition: objectchooserpopup.cc:86
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal