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

kig

Public Member Functions | List of all members
PopupActionProvider Class Referenceabstract

#include <popupactionprovider.h>

Inheritance diagram for PopupActionProvider:
Inheritance graph
[legend]

Public Member Functions

virtual ~PopupActionProvider ()
 
virtual bool executeAction (int menu, int &id, const std::vector< ObjectHolder * > &os, NormalModePopupObjects &popup, KigPart &doc, KigWidget &w, NormalMode &m)=0
 
virtual void fillUpMenu (NormalModePopupObjects &popup, int menu, int &nextfree)=0
 

Detailed Description

This class is an abstract class.

Its role is to fill up the NormalModePopupObjects with useful actions..

Definition at line 35 of file popupactionprovider.h.

Constructor & Destructor Documentation

virtual PopupActionProvider::~PopupActionProvider ( )
inlinevirtual

Definition at line 38 of file popupactionprovider.h.

Member Function Documentation

virtual bool PopupActionProvider::executeAction ( int  menu,
int &  id,
const std::vector< ObjectHolder * > &  os,
NormalModePopupObjects &  popup,
KigPart &  doc,
KigWidget &  w,
NormalMode &  m 
)
pure virtual

try to execute the id'th action you added to menu menu in popup popup ( first is 0 ).

Return true if this action does indeed belong to you ( is not greater than the number of actions you added ). Else return false, and subtract the number of actions you added from id. This requires you to keep a record of how much actions you added ( unless it's a fixed number, of course ).

Implemented in ObjectConstructorActionsProvider, PropertiesActionsProvider, BuiltinDocumentActionsProvider, ObjectTypeActionsProvider, BuiltinObjectActionsProvider, and NameObjectActionsProvider.

virtual void PopupActionProvider::fillUpMenu ( NormalModePopupObjects &  popup,
int  menu,
int &  nextfree 
)
pure virtual

add all your entries to menu menu in popup popup.

Set nextfree to the next free index..

Implemented in ObjectConstructorActionsProvider, PropertiesActionsProvider, BuiltinDocumentActionsProvider, ObjectTypeActionsProvider, BuiltinObjectActionsProvider, and NameObjectActionsProvider.


The documentation for this class was generated from the following file:
  • popupactionprovider.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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