MTGListTree.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 
00003   Name:         MTGListTree.h
00004   Created by:   Matthias Schneebeli
00005 
00006                                                                        
00007   Contents:     MIROODAS        
00008   $Log$
00009   Revision 1.1  2005/11/29 19:29:36  chuma
00010   Added directories:  lib/, include/ and /mxml and their files.
00011   Added Makefile.
00012 
00013   Revision 1.4  2005/03/10 18:29:43  chuma
00014   Fixed segmentation fault problems when connected online, then having the
00015   connection broken, then re-establishing the connection and then clicking
00016   on an online item in the main window.  The problem is in TGListTree in
00017   the ROOT code, and is fixed here by including 2 routines into MTGListTree.
00018 
00019   Revision 1.3  2004/09/24 22:08:35  chuma
00020   Added TNetFolder support
00021 
00022   Revision 1.2  2004/09/20 19:39:24  chuma
00023   multiple selection of histograms with CTRL key updated
00024 
00025   Revision 1.1  2004/09/16 16:30:36  schneebeli
00026   Linking on windows and multiple selection of items
00027 
00028   
00029 *********************************************************************/
00030 
00031 #ifndef MTGListTree_H
00032 #define MTGListTree_H
00033 
00034 #include <vector>
00035 
00036 #include "TObjArray.h"
00037 #include "TGListTree.h"
00038 
00039 class MTGListTree : public TGListTree
00040 {
00041 friend class TGListTreeItem;
00042   
00043 private:
00044   typedef std::vector<TGListTreeItem*>::iterator iterator;
00045   Bool_t fControlPressed;
00046 
00047 public:
00048   MTGListTree( TGWindow *, UInt_t, UInt_t, UInt_t, ULong_t =GetWhitePixel() );
00049   MTGListTree( TGCanvas *, UInt_t, ULong_t =GetWhitePixel() );
00050   Bool_t HandleButton( Event_t * );
00051   Bool_t HandleKey( Event_t * );
00052   void GetSelectedItems( std::vector<TGListTreeItem*> & );
00053   void GetSelectedItemsRecursive( TGListTreeItem *, std::vector<TGListTreeItem*> & );
00054 
00055   Int_t MDeleteItem( TGListTreeItem * );
00056   void MPDeleteChildren( TGListTreeItem * );
00057   
00058   ClassDef(MTGListTree, 1)
00059 };
00060 #endif
00061 
00062 // end of file

Roody DOC Version 1.0.1 ---- TRIUMF ----
Contributions: Pierre-Andre Amaudruz - Joe Chuma - Doxygen - Greg King - Konstantin Olchanski - Matthias Schneebeli