• 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
BuiltinObjectActionsProvider Class Reference

#include <builtinobjectactionsprovider.h>

Inheritance diagram for BuiltinObjectActionsProvider:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

This file is part of Kig, a KDE program for Interactive Geometry...

Copyright (C) 2012 David E. Narvaez david.nosp@m..nar.nosp@m.vaez@.nosp@m.comp.nosp@m.uter..nosp@m.org

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Definition at line 25 of file builtinobjectactionsprovider.h.

Member Function Documentation

bool BuiltinObjectActionsProvider::executeAction ( int  menu,
int &  id,
const std::vector< ObjectHolder * > &  os,
NormalModePopupObjects &  popup,
KigPart &  doc,
KigWidget &  w,
NormalMode &  m 
)
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 ).

Implements PopupActionProvider.

Definition at line 182 of file builtinobjectactionsprovider.cc.

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

add all your entries to menu menu in popup popup.

Set nextfree to the next free index..

Implements PopupActionProvider.

Definition at line 60 of file builtinobjectactionsprovider.cc.


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