kig
Public Types |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members
NormalModePopupObjects Class Reference
#include <popup.h>
Inheritance diagram for NormalModePopupObjects:
Public Types | |
enum | { TransformMenu = 0, TestMenu, ConstructMenu, StartMenu, ShowMenu, SetColorMenu, SetSizeMenu, SetStyleMenu, ToplevelMenu, SetCoordinateSystemMenu, NumberOfMenus } |
Public Member Functions | |
NormalModePopupObjects (KigPart &part, KigWidget &view, NormalMode &mode, const std::vector< ObjectHolder * > &objs, const QPoint &p) | |
~NormalModePopupObjects () | |
QAction * | addInternalAction (int menu, const QString &name, int id) |
QAction * | addInternalAction (int menu, const QIcon &icon, const QString &name, int id) |
QAction * | addInternalAction (int menu, const QIcon &pix, int id) |
QAction * | addInternalAction (int menu, QAction *act) |
std::vector< ObjectHolder * > | objects () const |
bool | onlyLabels () const |
KigPart & | part () |
QPoint | plc () |
KigWidget & | widget () |
Protected Member Functions | |
void | activateAction (int menu, int action) |
Protected Attributes | |
QMenu * | mmenus [NumberOfMenus] |
QMenu * | mmenuslast [NumberOfMenus] |
NormalMode & | mmode |
std::vector< ObjectHolder * > | mobjs |
KigPart & | mpart |
QPoint | mplc |
std::vector < PopupActionProvider * > | mproviders |
KigWidget & | mview |
Detailed Description
This is the popup menu that appears when you click on selected objects in NormalMode.
. It's quite complex, since it has to fetch a lot of information from various places, and dispatch it again when the user selects something. Update: I'm also using it for when you clicked on an empty space in the document, because the difference between the two cases is not that important, and this class is generic enough to handle both cases.. When this is the case, mobjs is empty, some PopupActionProviders are disabled, and some others enabled..
Member Enumeration Documentation
anonymous enum |
Constructor & Destructor Documentation
NormalModePopupObjects::NormalModePopupObjects | ( | KigPart & | part, |
KigWidget & | view, | ||
NormalMode & | mode, | ||
const std::vector< ObjectHolder * > & | objs, | ||
const QPoint & | p | ||
) |
Member Function Documentation
|
protected |
|
inline |
Member Data Documentation
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The documentation for this class was generated from the following files:
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
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.