20#ifndef KOMACRO_MACRO_H
21#define KOMACRO_MACRO_H
24#include <ksharedptr.h>
27#include "xmlhandler.h"
56 typedef TQMap<TQString, TDESharedPtr<Macro > > Map;
74 const TQString name() const;
84 virtual const TQString toString() const;
90 TQValueList< TDESharedPtr<MacroItem> >& items() const;
96 void addItem(TDESharedPtr<MacroItem> item);
120 virtual TDESharedPtr<Context> execute(TQObject* sender);
The context of an execution.
The MacroItem class is an item in a Macro and represents one single execution step.
virtual TDESharedPtr< Context > execute(TQObject *sender) Connect the TQt signal signal of the TQObject sender with this Macro .
const TQString name() const
TQValueList< TDESharedPtr< MacroItem > > & items() const
TQMap< TQString, TDESharedPtr< Macro > > Map A TQMap of Macro instances accessible by there unique name.
void setName(const TQString &name) Set the name this Macro instance has.
void addItem(TDESharedPtr< MacroItem > item) Add the MacroItem item to the list of items this Macro has.
void clearItems() Removes all MacroItem instances this Macro has.
Macro(const TQString &name) Constructor.
virtual const TQString toString() const
The Manager class acts as window-wide manager for macros.
XMLHandler(Macro *const macro) Constructor to init a XMLHandler .
|