• 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 | Static Public Member Functions | List of all members
MacroList Class Reference

#include <lists.h>

Public Types

typedef std::vector< Macro * > vectype
 

Public Member Functions

void add (Macro *m)
 
void add (const vectype &ms)
 
bool load (const QString &f, vectype &ret, const KigPart &)
 
const vectype & macros () const
 
void remove (Macro *m)
 
bool save (Macro *m, const QString &f)
 
bool save (const vectype &ms, const QString &f)
 

Static Public Member Functions

static MacroList * instance ()
 

Detailed Description

This class keeps a list of all macro's, and allows them to be easily accessed, added etc.

Macro objects are owned by this list..

Definition at line 110 of file lists.h.

Member Typedef Documentation

typedef std::vector<Macro*> MacroList::vectype

Definition at line 113 of file lists.h.

Member Function Documentation

void MacroList::add ( Macro *  m)

Add a Macro m .

MacroList takes care of adding the action and ctor in the relevant places..

Definition at line 213 of file lists.cc.

void MacroList::add ( const vectype &  ms)

Add the Macro's ms.

MacroList takes care of adding the action and ctor in the relevant places..

Definition at line 201 of file lists.cc.

MacroList * MacroList::instance ( )
static

MacroList is a singleton.

Definition at line 195 of file lists.cc.

bool MacroList::load ( const QString &  f,
vectype &  ret,
const KigPart &  kdoc 
)

load macro's from file f .

note that this just returns the loaded macro's, and doesn't add them to the various lists. Use add() if you want that behaviour.. The fact that this functions requires a KigPart argument is semantically incorrect, but i haven't been able to work around it..

Definition at line 298 of file lists.cc.

const MacroList::vectype & MacroList::macros ( ) const

get access to the list of macro's.

Definition at line 231 of file lists.cc.

void MacroList::remove ( Macro *  m)

Remove macro m .

Macrolist takes care of deleting everything, and unregistering the action and ctor from the relevant places..

Definition at line 220 of file lists.cc.

bool MacroList::save ( Macro *  m,
const QString &  f 
)

Save macro m to file f .

Definition at line 240 of file lists.cc.

bool MacroList::save ( const vectype &  ms,
const QString &  f 
)

Save macros ms to file f .

Definition at line 247 of file lists.cc.


The documentation for this class was generated from the following files:
  • lists.h
  • lists.cc
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