kig
NormalModePopupObjects Class Reference
#include <popup.h>
Inheritance diagram for NormalModePopupObjects:

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..
Definition at line 46 of file popup.h.
Public Types | |
| enum | { TransformMenu = 0, TestMenu, ConstructMenu, StartMenu, ShowMenu, SetColorMenu, SetSizeMenu, SetStyleMenu, ToplevelMenu, SetCoordinateSystemMenu, NumberOfMenus } |
Public Member Functions | |
| QAction * | addInternalAction (int menu, QAction *act) |
| QAction * | addInternalAction (int menu, const QIcon &pix, int id) |
| QAction * | addInternalAction (int menu, const QIcon &icon, const QString &name, int id) |
| QAction * | addInternalAction (int menu, const QString &name, int id) |
| NormalModePopupObjects (KigPart &part, KigWidget &view, NormalMode &mode, const std::vector< ObjectHolder * > &objs, const QPoint &p) | |
| std::vector< ObjectHolder * > | objects () const |
| bool | onlyLabels () const |
| KigPart & | part () |
| QPoint | plc () |
| KigWidget & | widget () |
| ~NormalModePopupObjects () | |
Protected Member Functions | |
| void | activateAction (int menu, int action) |
Protected Attributes | |
| QMenu * | mmenus [NumberOfMenus] |
| NormalMode & | mmode |
| std::vector< ObjectHolder * > | mobjs |
| KigPart & | mpart |
| QPoint | mplc |
| std::vector < PopupActionProvider * > | mproviders |
| KigWidget & | mview |
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
| void NormalModePopupObjects::activateAction | ( | int | menu, | |
| int | action | |||
| ) | [protected] |
| std::vector<ObjectHolder*> NormalModePopupObjects::objects | ( | ) | const [inline] |
Member Data Documentation
QMenu* NormalModePopupObjects::mmenus[NumberOfMenus] [protected] |
NormalMode& NormalModePopupObjects::mmode [protected] |
std::vector<ObjectHolder*> NormalModePopupObjects::mobjs [protected] |
KigPart& NormalModePopupObjects::mpart [protected] |
QPoint NormalModePopupObjects::mplc [protected] |
std::vector<PopupActionProvider*> NormalModePopupObjects::mproviders [protected] |
KigWidget& NormalModePopupObjects::mview [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference