Public Member Functions

MTemplateCommand< CommandClass, CommandName, CommandSyntax > Class Template Reference

Search for all occurrences

Detailed Description

template<class CommandClass, const char * CommandName, MCreateSyntaxFunction CommandSyntax>
class MTemplateCommand< CommandClass, CommandName, CommandSyntax >

Template class for undoable commands.

Helper template class which make writing undoable commands easier.

Parameters:
  • CommandClass : derived from MPxCommand and used in the creator() method
  • CommandName : name of the command
  • CommandSyntax : function pointer to syntax creator

#include <MTemplateCommand.h>

Inheritance diagram for MTemplateCommand< CommandClass, CommandName, CommandSyntax >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool  isUndoable () const
  Define the command as undoable.