kig
objectconstructoractionsprovider.cc
Go to the documentation of this file.
30 void ObjectConstructorActionsProvider::fillUpMenu( NormalModePopupObjects& popup, int menu, int& nextfree )
48 if ( (*i)->isTransform() && popup.objects().size() == 1 ) add = menu == NormalModePopupObjects::TransformMenu;
59 popup.addInternalAction( menu, KIcon( iconfile, popup.part().iconLoader() ), (*i)->descriptiveName(), nextfree++ );
Definition: construct_mode.h:58
bool executeAction(int menu, int &id, const std::vector< ObjectHolder * > &os, NormalModePopupObjects &popup, KigPart &doc, KigWidget &w, NormalMode &m)
try to execute the id'th action you added to menu menu in popup popup ( first is 0 )...
Definition: objectconstructoractionsprovider.cc:68
QAction * addInternalAction(int menu, const QString &name, int id)
Definition: popup.cc:276
bool isNull() const
Definition: popup.h:60
bool isEmpty() const
Definition: popup.h:59
Definition: popup.h:59
Definition: argsparser.h:112
This class represents a way to construct a set of objects from a set of other objects.
Definition: object_constructor.h:44
This is the popup menu that appears when you click on selected objects in NormalMode.
Definition: popup.h:46
virtual void handleArgs(const std::vector< ObjectCalcer * > &os, KigPart &d, KigWidget &v) const =0
do something fun with os .
Definition: argsparser.h:112
Definition: popup.h:59
virtual int wantArgs(const std::vector< ObjectCalcer * > &os, const KigDocument &d, const KigWidget &v) const =0
can this constructor do something useful with os ? return ArgsParser::Complete, Valid or NotGood ...
std::vector< ObjectCalcer * > getCalcers(const std::vector< ObjectHolder * > &os)
get the calcers that the holders represent ( not their namecalcers )
Definition: common.cc:34
void fillUpMenu(NormalModePopupObjects &popup, int menu, int &nextfree)
This file is part of Kig, a KDE program for Interactive Geometry...
Definition: objectconstructoractionsprovider.cc:30
Definition: popup.h:59
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
void selectObjects(const std::vector< ObjectHolder * > &os, KigWidget &w)
Definition: construct_mode.cc:378
virtual BaseConstructMode * constructMode(KigPart &doc)
Which construct mode should be used for this ObjectConstructor.
Definition: object_constructor.cc:592
Definition: normal.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.