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

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:
Inheritance graph
[legend]

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

Definition at line 46 of file popup.h.

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 85 of file popup.cc.

NormalModePopupObjects::~NormalModePopupObjects ( )

Definition at line 237 of file popup.cc.

Member Function Documentation

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

Definition at line 226 of file popup.cc.

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

Definition at line 276 of file popup.cc.

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

Definition at line 266 of file popup.cc.

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

Definition at line 261 of file popup.cc.

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

Definition at line 285 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.

QMenu* NormalModePopupObjects::mmenuslast[NumberOfMenus]
protected

Definition at line 92 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
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