#include <TQCommand.h>
Inheritance diagram for TQCommand:

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 |
| TQConnection * | GetRedo () const |
| TQConnection * | GetUndo () const |
| Long_t * | GetRedoArgs () const |
| Long_t * | GetUndoArgs () 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 |
| TQConnection * | GetRedo () const |
| TQConnection * | GetUndo () const |
| Long_t * | GetRedoArgs () const |
| Long_t * | GetUndoArgs () 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 TQCommand * | GetCommand () |
| static TQCommand * | GetCommand () |
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 | |
| TQConnection * | fRedo |
| TQConnection * | fUndo |
| Long_t * | fRedoArgs |
| Long_t * | fUndoArgs |
| Int_t | fNRargs |
| Int_t | fNUargs |
| Int_t | fState |
| Int_t | fStatus |
| Bool_t | fNewDelete |
| TString | fName |
| TString | fTitle |
| void * | fObject |
| TQConnection * | fRedo |
| TQConnection * | fUndo |
| Long_t * | fRedoArgs |
| Long_t * | fUndoArgs |
| void * | fObject |
Friends | |
| class | TQUndoManager |
Definition at line 29 of file TQCommand.h.
| 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 | |||
| ) |
| 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] |
| 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] |
| 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] |
| void TQCommand::SetUndoArgs | ( | Int_t | nargs, | |
| ... | ||||
| ) | [virtual] |
| void TQCommand::SetRedoArgs | ( | Int_t | nargs, | |
| ... | ||||
| ) | [virtual] |
| void TQCommand::Merge | ( | TQCommand * | c | ) | [virtual] |
| void TQCommand::Compress | ( | TQCommand * | c | ) | [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] |
| Bool_t TQCommand::CanUndo | ( | ) | const [virtual] |
| 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] |
| TQConnection* TQCommand::GetUndo | ( | ) | const [inline] |
| 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 |
| void TQCommand::SetName | ( | const char * | name | ) | [virtual] |
| void TQCommand::SetTitle | ( | const char * | title | ) | [virtual] |
| 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().
Reimplemented from TList.
Definition at line 425 of file TQCommand.cxx.
References TList::AddLast(), c, xmlio::Class, TString::Contains(), TList::Last(), and o.
| virtual void TQCommand::Add | ( | TObject * | obj | ) | [inline, virtual] |
| 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 void TQCommand::Merge | ( | TQCommand * | c | ) | [virtual] |
| virtual void TQCommand::Compress | ( | TQCommand * | c | ) | [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] |
| TQConnection* TQCommand::GetUndo | ( | ) | const [inline] |
| 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 | ) | [inline, virtual] |
| 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] |
TQUndoManager [friend] |
Definition at line 31 of file TQCommand.h.
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] |
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] |
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.
1.5.1