PCommand Class Reference

PCommand is the BaseObject for all PCommandos wich are executet in The ProjektManager. More...

Inheritance diagram for PCommand:

Inheritance graph
[legend]
Collaboration diagram for PCommand:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PCommand (void)
virtual ~PCommand (void)
void Init (void)
virtual void AttachedToManager (void)=0
 after adding to the Manager you are able to acces the DocumentClass and eg.
virtual void DetachedFromManager (void)=0
 is called short befor the Command is removed from the Manager normally this only happens if the Document is closed ;-)
virtual char * Name (void)=0
 should return the Name of the Command.
virtual BMessage * Do (PDocument *doc, BMessage *settings)
virtual void Undo (PDocument *doc, BMessage *undo)
void SetManager (PCommandManager *newManager)
PCommandManagerManager (void)

Protected Attributes

PCommandManagermanager


Detailed Description

PCommand is the BaseObject for all PCommandos wich are executet in The ProjektManager.

Author:
Paradoxon powered by Jesus Christ
Version:
0.01
Date:
2005/10/04 : mail@projectconceptor.de
Created on: Wed Oct 28 2005
Todo:
need something for MenuInsertion and for Shortcust so that every PCommand wich is loaded automatic inserted
See also:
PCommandManager

PDocument


Constructor & Destructor Documentation

PCommand::PCommand ( void   ) 

PCommand::~PCommand ( void   )  [virtual]


Member Function Documentation

virtual void PCommand::AttachedToManager ( void   )  [pure virtual]

after adding to the Manager you are able to acces the DocumentClass and eg.

add special Menusentry´s to all BWindows wich are Part of the Dokument This Name ist normally used to find and use this Command

Implemented in AddAttribute, ChangeValue, Copy, Delete, Find, Group, Insert, Move, Paste, RemoveAttribute, Resize, and Select.

virtual void PCommand::DetachedFromManager ( void   )  [pure virtual]

is called short befor the Command is removed from the Manager normally this only happens if the Document is closed ;-)

Implemented in AddAttribute, ChangeValue, Copy, Delete, Find, Group, Insert, Move, Paste, RemoveAttribute, Resize, and Select.

BMessage * PCommand::Do ( PDocument doc,
BMessage *  settings 
) [virtual]

void PCommand::Init ( void   ) 

PCommandManager* PCommand::Manager ( void   )  [inline]

virtual char* PCommand::Name ( void   )  [pure virtual]

should return the Name of the Command.

This Name ist normally used to find and use this Command

Implemented in AddAttribute, ChangeValue, Copy, Delete, Find, Group, Insert, Move, Paste, RemoveAttribute, Resize, and Select.

void PCommand::SetManager ( PCommandManager newManager  ) 

void PCommand::Undo ( PDocument doc,
BMessage *  undo 
) [virtual]


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Sun Jun 21 01:09:34 2009 for ProjektConceptor by  doxygen 1.5.9