TQCommand Class Reference

#include <TQCommand.h>

Inheritance diagram for TQCommand:

TList TQObject TList TQObject TSeqCollection TSeqCollection TSeqCollection TSeqCollection TCollection TCollection TCollection TCollection TCollection TCollection TCollection TCollection TQUndoManager TQUndoManager List of all members.

Public Member Functions

 TQCommand (const char *cl=0, void *object=0, const char *redo=0, const char *undo=0)
 TQCommand (TObject *obj, const char *redo=0, const char *undo=0)
 TQCommand (const TQCommand &com)
virtual ~TQCommand ()
virtual void Redo (Option_t *option="")
virtual void Undo (Option_t *option="")
virtual void SetArgs (Int_t nargs,...)
virtual void SetUndoArgs (Int_t nargs,...)
virtual void SetRedoArgs (Int_t nargs,...)
virtual Bool_t CanMerge (TQCommand *c) const
virtual void Merge (TQCommand *c)
virtual Bool_t CanCompress (TQCommand *c) const
virtual void Compress (TQCommand *c)
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsSetter () const
virtual Bool_t CanRedo () const
virtual Bool_t CanUndo () const
const char * GetRedoName () const
const char * GetUndoName () const
TQConnectionGetRedo () const
TQConnectionGetUndo () const
Long_tGetRedoArgs () const
Long_tGetUndoArgs () const
Int_t GetNRargs () const
Int_t GetNUargs () const
void * GetObject () const
Int_t GetStatus () const
Bool_t IsMacro () const
Bool_t IsUndoing () const
Bool_t IsRedoing () const
Bool_t IsExecuting () const
virtual void SetName (const char *name)
virtual void SetTitle (const char *title)
virtual void ls (Option_t *option="") const
virtual void Add (TObject *obj, Option_t *opt)
virtual void Add (TObject *obj)
virtual void Delete (Option_t *option="")
virtual const char * GetName () const
virtual const char * GetTitle () const
 TQCommand (const char *cl=0, void *object=0, const char *redo=0, const char *undo=0)
 TQCommand (TObject *obj, const char *redo=0, const char *undo=0)
 TQCommand (const TQCommand &com)
virtual ~TQCommand ()
virtual void Redo (Option_t *option="")
virtual void Undo (Option_t *option="")
virtual void SetArgs (Int_t nargs,...)
virtual void SetUndoArgs (Int_t nargs,...)
virtual void SetRedoArgs (Int_t nargs,...)
virtual Bool_t CanMerge (TQCommand *c) const
virtual void Merge (TQCommand *c)
virtual Bool_t CanCompress (TQCommand *c) const
virtual void Compress (TQCommand *c)
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsSetter () const
virtual Bool_t CanRedo () const
virtual Bool_t CanUndo () const
const char * GetRedoName () const
const char * GetUndoName () const
TQConnectionGetRedo () const
TQConnectionGetUndo () const
Long_tGetRedoArgs () const
Long_tGetUndoArgs () const
Int_t GetNRargs () const
Int_t GetNUargs () const
void * GetObject () const
Int_t GetStatus () const
Bool_t IsMacro () const
Bool_t IsUndoing () const
Bool_t IsRedoing () const
Bool_t IsExecuting () const
virtual void SetName (const char *name)
virtual void SetTitle (const char *title)
virtual void ls (Option_t *option="") const
virtual void Add (TObject *obj, Option_t *opt)
virtual void Add (TObject *obj)
virtual void Delete (Option_t *option="")
virtual const char * GetName () const
virtual const char * GetTitle () const

Static Public Member Functions

static TQCommandGetCommand ()
static TQCommandGetCommand ()

Protected Member Functions

virtual void Init (const char *cl, void *object, const char *redo, const char *undo)
virtual void PrintCollectionHeader (Option_t *option) const
virtual void Init (const char *cl, void *object, const char *redo, const char *undo)
virtual void PrintCollectionHeader (Option_t *option) const

Protected Attributes

TQConnectionfRedo
TQConnectionfUndo
Long_tfRedoArgs
Long_tfUndoArgs
Int_t fNRargs
Int_t fNUargs
Int_t fState
Int_t fStatus
Bool_t fNewDelete
TString fName
TString fTitle
void * fObject
TQConnectionfRedo
TQConnectionfUndo
Long_tfRedoArgs
Long_tfUndoArgs
void * fObject

Friends

class TQUndoManager

Detailed Description

Definition at line 29 of file TQCommand.h.


Constructor & Destructor Documentation

TQCommand::TQCommand ( const char *  cl = 0,
void *  object = 0,
const char *  redo = 0,
const char *  undo = 0 
)

Definition at line 243 of file TQCommand.cxx.

References Init().

Referenced by TQUndoManager::Redo(), TQCommand(), and TQUndoManager::Undo().

TQCommand::TQCommand ( TObject obj,
const char *  redo = 0,
const char *  undo = 0 
)

Definition at line 272 of file TQCommand.cxx.

References Init().

TQCommand::TQCommand ( const TQCommand com  ) 

Definition at line 300 of file TQCommand.cxx.

References TList::Add(), fName, fNewDelete, fNRargs, fNUargs, fObject, fRedo, fRedoArgs, fState, fStatus, fTitle, fUndo, fUndoArgs, i, TQCommand(), and TQObject::TQConnection.

TQCommand::~TQCommand (  )  [virtual]

Definition at line 340 of file TQCommand.cxx.

References Delete(), fRedo, fRedoArgs, fUndo, and fUndoArgs.

TQCommand::TQCommand ( const char *  cl = 0,
void *  object = 0,
const char *  redo = 0,
const char *  undo = 0 
)

TQCommand::TQCommand ( TObject obj,
const char *  redo = 0,
const char *  undo = 0 
)

TQCommand::TQCommand ( const TQCommand com  ) 

virtual TQCommand::~TQCommand (  )  [virtual]


Member Function Documentation

void TQCommand::Init ( const char *  cl,
void *  object,
const char *  redo,
const char *  undo 
) [protected, virtual]

Definition at line 215 of file TQCommand.cxx.

References CompressName(), fName, fNewDelete, fNRargs, fNUargs, fObject, fRedo, fRedoArgs, fState, fStatus, fUndo, fUndoArgs, kFALSE, and TQObject::TQConnection.

Referenced by TQCommand().

void TQCommand::PrintCollectionHeader ( Option_t option  )  const [protected, virtual]

Reimplemented from TCollection.

Definition at line 916 of file TQCommand.cxx.

References fStatus, GetName(), and TROOT::IndentLevel().

void TQCommand::Redo ( Option_t option = ""  )  [virtual]

Definition at line 652 of file TQCommand.cxx.

References c, TQObject::Emit(), TQConnection::ExecuteMethod(), TList::fFirst, fNRargs, fRedo, fRedoArgs, fState, fStatus, TObjLink::GetObject(), kFALSE, kTRUE, and TObjLink::Next().

Referenced by Compress(), and TQUndoManager::Redo().

void TQCommand::Undo ( Option_t option = ""  )  [virtual]

Definition at line 689 of file TQCommand.cxx.

References c, TString::Contains(), TQObject::Emit(), TQConnection::ExecuteMethod(), TList::fLast, fNUargs, fState, fStatus, fUndo, fUndoArgs, TObjLink::GetObject(), TObjLink::GetOption(), kFALSE, kTRUE, TObjLink::Prev(), and TList::Remove().

Referenced by TQUndoManager::Undo().

void TQCommand::SetArgs ( Int_t  nargs,
  ... 
) [virtual]

Definition at line 528 of file TQCommand.cxx.

References fNRargs, fNUargs, fRedoArgs, fUndoArgs, and i.

void TQCommand::SetUndoArgs ( Int_t  nargs,
  ... 
) [virtual]

Definition at line 602 of file TQCommand.cxx.

References fNUargs, fUndoArgs, and i.

void TQCommand::SetRedoArgs ( Int_t  nargs,
  ... 
) [virtual]

Definition at line 570 of file TQCommand.cxx.

References fNRargs, fRedoArgs, and i.

Bool_t TQCommand::CanMerge ( TQCommand c  )  const [virtual]

Definition at line 399 of file TQCommand.cxx.

References fRedo, and fUndo.

void TQCommand::Merge ( TQCommand c  )  [virtual]

Definition at line 410 of file TQCommand.cxx.

References Add(), and c.

Bool_t TQCommand::CanCompress ( TQCommand c  )  const [virtual]

Definition at line 452 of file TQCommand.cxx.

References c, IsEqual(), and IsSetter().

void TQCommand::Compress ( TQCommand c  )  [virtual]

Definition at line 465 of file TQCommand.cxx.

References c, fNRargs, fRedoArgs, fStatus, i, and Redo().

Bool_t TQCommand::IsEqual ( const TObject obj  )  const [virtual]

Reimplemented from TObject.

Definition at line 485 of file TQCommand.cxx.

References c, xmlio::Class, fObject, fRedo, fUndo, TQConnection::GetClassName(), TQConnection::GetName(), and kFALSE.

Referenced by CanCompress().

Bool_t TQCommand::IsSetter (  )  const [virtual]

Definition at line 504 of file TQCommand.cxx.

References TString::BeginsWith(), GetRedoName(), GetUndoName(), and kFALSE.

Referenced by CanCompress().

Bool_t TQCommand::CanRedo (  )  const [virtual]

Definition at line 634 of file TQCommand.cxx.

References fStatus.

Bool_t TQCommand::CanUndo (  )  const [virtual]

Definition at line 643 of file TQCommand.cxx.

References fStatus.

const char * TQCommand::GetRedoName (  )  const

Definition at line 788 of file TQCommand.cxx.

References fRedo, and TQConnection::GetName().

Referenced by IsSetter().

const char * TQCommand::GetUndoName (  )  const

Definition at line 796 of file TQCommand.cxx.

References fUndo, and TQConnection::GetName().

Referenced by IsSetter().

TQConnection* TQCommand::GetRedo (  )  const [inline]

Definition at line 73 of file TQCommand.h.

References fRedo.

TQConnection* TQCommand::GetUndo (  )  const [inline]

Definition at line 74 of file TQCommand.h.

References fUndo.

Long_t * TQCommand::GetRedoArgs (  )  const

Definition at line 804 of file TQCommand.cxx.

References fRedoArgs.

Long_t * TQCommand::GetUndoArgs (  )  const

Definition at line 812 of file TQCommand.cxx.

References fUndoArgs.

Int_t TQCommand::GetNRargs (  )  const

Definition at line 820 of file TQCommand.cxx.

References fNRargs.

Int_t TQCommand::GetNUargs (  )  const

Definition at line 828 of file TQCommand.cxx.

References fNUargs.

void * TQCommand::GetObject (  )  const

Definition at line 836 of file TQCommand.cxx.

References fObject.

Int_t TQCommand::GetStatus (  )  const

Definition at line 844 of file TQCommand.cxx.

References fStatus.

Bool_t TQCommand::IsMacro (  )  const

Definition at line 852 of file TQCommand.cxx.

References fRedo, and fUndo.

Bool_t TQCommand::IsUndoing (  )  const

Definition at line 860 of file TQCommand.cxx.

References fState.

Bool_t TQCommand::IsRedoing (  )  const

Definition at line 868 of file TQCommand.cxx.

References fState.

Bool_t TQCommand::IsExecuting (  )  const

Definition at line 876 of file TQCommand.cxx.

References fState.

void TQCommand::SetName ( const char *  name  )  [virtual]

Reimplemented from TCollection.

Definition at line 884 of file TQCommand.cxx.

References fName.

void TQCommand::SetTitle ( const char *  title  )  [virtual]

Definition at line 892 of file TQCommand.cxx.

References fTitle.

void TQCommand::ls ( Option_t option = ""  )  const [virtual]

Reimplemented from TCollection.

Definition at line 900 of file TQCommand.cxx.

References TList::fFirst, fStatus, GetName(), and name.

Referenced by TQUndoManager::ls(), and TQUndoManager::PrintCollectionEntry().

void TQCommand::Add ( TObject obj,
Option_t opt 
) [virtual]

Reimplemented from TList.

Definition at line 425 of file TQCommand.cxx.

References TList::AddLast(), c, xmlio::Class, TString::Contains(), TList::Last(), and o.

Referenced by Add(), and Merge().

virtual void TQCommand::Add ( TObject obj  )  [inline, virtual]

Reimplemented from TList.

Definition at line 89 of file TQCommand.h.

References Add().

void TQCommand::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TList.

Definition at line 374 of file TQCommand.cxx.

References TString::Contains(), TList::Delete(), TList::fFirst, TObjLink::GetObject(), TObjLink::GetOption(), TObjLink::Next(), and TList::Remove().

Referenced by ~TQCommand(), and TQUndoManager::~TQUndoManager().

const char * TQCommand::GetName (  )  const [virtual]

Reimplemented from TCollection.

Definition at line 732 of file TQCommand.cxx.

References c, TString::Data(), TList::fFirst, fName, fRedo, TQConnection::GetClassName(), TQConnection::GetName(), TObjLink::GetObject(), TString::IsNull(), TString::Length(), m, name, and TObjLink::Next().

Referenced by GetTitle(), ls(), and PrintCollectionHeader().

const char * TQCommand::GetTitle (  )  const [virtual]

Reimplemented from TObject.

Definition at line 769 of file TQCommand.cxx.

References TString::Data(), fTitle, fUndo, TQConnection::GetClassName(), TQConnection::GetName(), GetName(), TString::IsNull(), and title.

TQCommand * TQCommand::GetCommand (  )  [static]

Definition at line 354 of file TQCommand.cxx.

Referenced by G__G__Base2_233_0_41(), and G__setup_memfuncTQCommand().

virtual void TQCommand::Init ( const char *  cl,
void *  object,
const char *  redo,
const char *  undo 
) [protected, virtual]

virtual void TQCommand::PrintCollectionHeader ( Option_t option  )  const [protected, virtual]

Reimplemented from TCollection.

virtual void TQCommand::Redo ( Option_t option = ""  )  [virtual]

virtual void TQCommand::Undo ( Option_t option = ""  )  [virtual]

virtual void TQCommand::SetArgs ( Int_t  nargs,
  ... 
) [virtual]

virtual void TQCommand::SetUndoArgs ( Int_t  nargs,
  ... 
) [virtual]

virtual void TQCommand::SetRedoArgs ( Int_t  nargs,
  ... 
) [virtual]

virtual Bool_t TQCommand::CanMerge ( TQCommand c  )  const [virtual]

virtual void TQCommand::Merge ( TQCommand c  )  [virtual]

virtual Bool_t TQCommand::CanCompress ( TQCommand c  )  const [virtual]

virtual void TQCommand::Compress ( TQCommand c  )  [virtual]

virtual Bool_t TQCommand::IsEqual ( const TObject obj  )  const [virtual]

Reimplemented from TObject.

virtual Bool_t TQCommand::IsSetter (  )  const [virtual]

virtual Bool_t TQCommand::CanRedo (  )  const [virtual]

virtual Bool_t TQCommand::CanUndo (  )  const [virtual]

const char* TQCommand::GetRedoName (  )  const

const char* TQCommand::GetUndoName (  )  const

TQConnection* TQCommand::GetRedo (  )  const [inline]

Definition at line 73 of file TQCommand.h.

References fRedo.

TQConnection* TQCommand::GetUndo (  )  const [inline]

Definition at line 74 of file TQCommand.h.

References fUndo.

Long_t* TQCommand::GetRedoArgs (  )  const

Long_t* TQCommand::GetUndoArgs (  )  const

Int_t TQCommand::GetNRargs (  )  const

Int_t TQCommand::GetNUargs (  )  const

void* TQCommand::GetObject (  )  const

Int_t TQCommand::GetStatus (  )  const

Bool_t TQCommand::IsMacro (  )  const

Bool_t TQCommand::IsUndoing (  )  const

Bool_t TQCommand::IsRedoing (  )  const

Bool_t TQCommand::IsExecuting (  )  const

virtual void TQCommand::SetName ( const char *  name  )  [virtual]

Reimplemented from TCollection.

virtual void TQCommand::SetTitle ( const char *  title  )  [virtual]

virtual void TQCommand::ls ( Option_t option = ""  )  const [virtual]

Reimplemented from TCollection.

virtual void TQCommand::Add ( TObject obj,
Option_t opt 
) [virtual]

Reimplemented from TList.

virtual void TQCommand::Add ( TObject obj  )  [inline, virtual]

Reimplemented from TList.

Definition at line 89 of file TQCommand.h.

References Add().

virtual void TQCommand::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TList.

virtual const char* TQCommand::GetName (  )  const [virtual]

Reimplemented from TCollection.

virtual const char* TQCommand::GetTitle (  )  const [virtual]

Reimplemented from TObject.

static TQCommand* TQCommand::GetCommand (  )  [static]


Friends And Related Function Documentation

TQUndoManager [friend]

Definition at line 31 of file TQCommand.h.


Member Data Documentation

TQConnection* TQCommand::fRedo [protected]

Definition at line 34 of file TQCommand.h.

Referenced by CanMerge(), GetName(), GetRedo(), GetRedoName(), Init(), IsEqual(), IsMacro(), Redo(), TQCommand(), and ~TQCommand().

TQConnection* TQCommand::fUndo [protected]

Definition at line 35 of file TQCommand.h.

Referenced by CanMerge(), GetTitle(), GetUndo(), GetUndoName(), Init(), IsEqual(), IsMacro(), TQCommand(), Undo(), and ~TQCommand().

Long_t* TQCommand::fRedoArgs [protected]

Definition at line 36 of file TQCommand.h.

Referenced by Compress(), GetRedoArgs(), Init(), Redo(), SetArgs(), SetRedoArgs(), TQCommand(), and ~TQCommand().

Long_t* TQCommand::fUndoArgs [protected]

Definition at line 37 of file TQCommand.h.

Referenced by GetUndoArgs(), Init(), SetArgs(), SetUndoArgs(), TQCommand(), Undo(), and ~TQCommand().

Int_t TQCommand::fNRargs [protected]

Definition at line 38 of file TQCommand.h.

Referenced by Compress(), GetNRargs(), Init(), Redo(), SetArgs(), SetRedoArgs(), and TQCommand().

Int_t TQCommand::fNUargs [protected]

Definition at line 39 of file TQCommand.h.

Referenced by GetNUargs(), Init(), SetArgs(), SetUndoArgs(), TQCommand(), and Undo().

Int_t TQCommand::fState [protected]

Definition at line 40 of file TQCommand.h.

Referenced by TQUndoManager::Add(), Init(), IsExecuting(), IsRedoing(), IsUndoing(), Redo(), TQUndoManager::Redo(), TQCommand(), TQUndoManager::Undo(), and Undo().

Int_t TQCommand::fStatus [protected]

Definition at line 41 of file TQCommand.h.

Referenced by CanRedo(), CanUndo(), Compress(), GetStatus(), Init(), ls(), PrintCollectionHeader(), Redo(), TQCommand(), and Undo().

Bool_t TQCommand::fNewDelete [protected]

Definition at line 42 of file TQCommand.h.

Referenced by Init(), and TQCommand().

TString TQCommand::fName [protected]

Reimplemented from TCollection.

Definition at line 43 of file TQCommand.h.

Referenced by GetName(), Init(), SetName(), and TQCommand().

TString TQCommand::fTitle [protected]

Definition at line 44 of file TQCommand.h.

Referenced by GetTitle(), SetTitle(), and TQCommand().

void* TQCommand::fObject [protected]

Definition at line 45 of file TQCommand.h.

Referenced by GetObject(), Init(), IsEqual(), and TQCommand().

TQConnection* TQCommand::fRedo [protected]

Definition at line 34 of file TQCommand.h.

TQConnection* TQCommand::fUndo [protected]

Definition at line 35 of file TQCommand.h.

Long_t* TQCommand::fRedoArgs [protected]

Definition at line 36 of file TQCommand.h.

Long_t* TQCommand::fUndoArgs [protected]

Definition at line 37 of file TQCommand.h.

void* TQCommand::fObject [protected]

Definition at line 45 of file TQCommand.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:45:49 2011 for ROOT_528-00b_version by  doxygen 1.5.1