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

kig

MacroList Class Reference

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

#include <lists.h>

List of all members.

Public Types

typedef std::vector< Macro * > vectype

Public Member Functions

void add (const vectype &ms)
void add (Macro *m)
bool load (const QString &f, vectype &ret, const KigPart &)
const vectype & macros () const
void remove (Macro *m)
bool save (const vectype &ms, const QString &f)
bool save (Macro *m, 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 ( const vectype &  ms  ) 

Add the Macro's ms.

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

Definition at line 200 of file lists.cc.

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 212 of file lists.cc.

MacroList * MacroList::instance (  )  [static]

MacroList is a singleton.

Definition at line 194 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 297 of file lists.cc.

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

get access to the list of macro's.

Definition at line 230 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 219 of file lists.cc.

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

Save macros ms to file f .

Definition at line 246 of file lists.cc.

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

Save macro m to file f .

Definition at line 239 of file lists.cc.


The documentation for this class was generated from the following files:
  • lists.h
  • lists.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"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
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