kig
#include <objectchooserpopup.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 |
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 35 of file objectchooserpopup.h.
Constructor & Destructor Documentation
|
protected |
Definition at line 86 of file objectchooserpopup.cc.
|
protected |
Definition at line 104 of file objectchooserpopup.cc.
Member Function Documentation
|
protectedslot |
Definition at line 108 of file objectchooserpopup.cc.
|
static |
Get the index of the chosen object from a list of objects.
This file is part of Kig, a KDE program for Interactive Geometry...
- 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.
Copyright (C) 2012 David E. Narvaez david .nar vaez@ comp uter. org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition at line 26 of file objectchooserpopup.cc.
Member Data Documentation
|
protected |
Definition at line 67 of file objectchooserpopup.h.
|
protected |
Definition at line 65 of file objectchooserpopup.h.
|
protected |
Definition at line 69 of file objectchooserpopup.h.
|
protected |
Definition at line 66 of file objectchooserpopup.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.