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

kig

NormalModePopupObjects Class Reference

#include <popup.h>

Inheritance diagram for NormalModePopupObjects:

Inheritance graph
[legend]

List of all members.


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

Enumerator:
TransformMenu 
TestMenu 
ConstructMenu 
StartMenu 
ShowMenu 
SetColorMenu 
SetSizeMenu 
SetStyleMenu 
ToplevelMenu 
SetCoordinateSystemMenu 
NumberOfMenus 

Definition at line 59 of file popup.h.


Constructor & Destructor Documentation

NormalModePopupObjects::NormalModePopupObjects ( KigPart &  part,
KigWidget &  view,
NormalMode &  mode,
const std::vector< ObjectHolder * > &  objs,
const QPoint &  p 
)

Definition at line 181 of file popup.cc.

NormalModePopupObjects::~NormalModePopupObjects (  ) 

Definition at line 323 of file popup.cc.


Member Function Documentation

void NormalModePopupObjects::activateAction ( int  menu,
int  action 
) [protected]

Definition at line 312 of file popup.cc.

QAction * NormalModePopupObjects::addInternalAction ( int  menu,
QAction *  act 
)

Definition at line 785 of file popup.cc.

QAction * NormalModePopupObjects::addInternalAction ( int  menu,
const QIcon &  pix,
int  id 
)

Definition at line 763 of file popup.cc.

QAction * NormalModePopupObjects::addInternalAction ( int  menu,
const QIcon &  icon,
const QString &  name,
int  id 
)

Definition at line 768 of file popup.cc.

QAction * NormalModePopupObjects::addInternalAction ( int  menu,
const QString &  name,
int  id 
)

Definition at line 777 of file popup.cc.

std::vector<ObjectHolder*> NormalModePopupObjects::objects (  )  const [inline]

Definition at line 69 of file popup.h.

bool NormalModePopupObjects::onlyLabels (  )  const [inline]

Definition at line 74 of file popup.h.

KigPart& NormalModePopupObjects::part (  )  [inline]

Definition at line 70 of file popup.h.

QPoint NormalModePopupObjects::plc (  )  [inline]

Definition at line 72 of file popup.h.

KigWidget& NormalModePopupObjects::widget (  )  [inline]

Definition at line 71 of file popup.h.


Member Data Documentation

QMenu* NormalModePopupObjects::mmenus[NumberOfMenus] [protected]

Definition at line 91 of file popup.h.

NormalMode& NormalModePopupObjects::mmode [protected]

Definition at line 87 of file popup.h.

std::vector<ObjectHolder*> NormalModePopupObjects::mobjs [protected]

Definition at line 86 of file popup.h.

KigPart& NormalModePopupObjects::mpart [protected]

Definition at line 84 of file popup.h.

QPoint NormalModePopupObjects::mplc [protected]

Definition at line 83 of file popup.h.

std::vector<PopupActionProvider*> NormalModePopupObjects::mproviders [protected]

Definition at line 89 of file popup.h.

KigWidget& NormalModePopupObjects::mview [protected]

Definition at line 85 of file popup.h.


The documentation for this class was generated from the following files:
  • popup.h
  • popup.cc

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal