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

kig

Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ObjectChooserPopup Class Reference

#include <objectchooserpopup.h>

Inheritance diagram for ObjectChooserPopup:
Inheritance graph
[legend]

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

ObjectChooserPopup::ObjectChooserPopup ( const QPoint &  p,
KigWidget &  view,
const std::vector< ObjectHolder * > &  objs 
)
protected

Definition at line 86 of file objectchooserpopup.cc.

ObjectChooserPopup::~ObjectChooserPopup ( )
protected

Definition at line 104 of file objectchooserpopup.cc.

Member Function Documentation

void ObjectChooserPopup::actionActivatedSlot ( QAction *  act)
protectedslot

Definition at line 108 of file objectchooserpopup.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.

This file is part of Kig, a KDE program for Interactive Geometry...

Parameters
pis the point where execute the popup
wis the pointer to a KigWidget
objsis the vector with the objects to chose from
givepopuptrue 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.nosp@m..nar.nosp@m.vaez@.nosp@m.comp.nosp@m.uter..nosp@m.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

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

Definition at line 67 of file objectchooserpopup.h.

QPoint ObjectChooserPopup::mplc
protected

Definition at line 65 of file objectchooserpopup.h.

int ObjectChooserPopup::mselected
protected

Definition at line 69 of file objectchooserpopup.h.

KigWidget& ObjectChooserPopup::mview
protected

Definition at line 66 of file objectchooserpopup.h.


The documentation for this class was generated from the following files:
  • objectchooserpopup.h
  • objectchooserpopup.cc
This file is part of the KDE documentation.
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.

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
  • 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