Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4QtBaseWidgets/TGo4QFileItem.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4QFILEITEM_H
00017 #define TGO4QFILEITEM_H
00018 #include "qlistview.h"
00019 #include "TGo4QItem.h"
00020 class TGo4CompositeEvent;
00021 class TFile;
00026 class QFileInfo;
00027 class QString;
00028 
00029 
00030 class TGo4QFileItem : public TGo4QItem {
00031  //  Q_OBJECT
00032 
00033   public:
00034 
00035     TGo4QFileItem( QListView* parent, const QString & text, QFileInfo fi, TFile *);
00036 
00037     TGo4QFileItem( QListView* parent, const QString & text, TFile *);
00038 
00039 
00040     virtual ~TGo4QFileItem();
00041 
00042     void SetAsActiveFile(bool stat);
00043     bool IsActiveFile();
00044 
00045     bool IsCompositeInside(){return HasComp;}
00046 
00047    void SetComposite(TGo4CompositeEvent *evt){
00048       if(evt!=0) {
00049          HasComp=TRUE;
00050          fxEvt=evt;
00051       }
00052    }
00053    TGo4CompositeEvent *GetComposit() {return fxEvt;}
00054    void Close();
00055 
00056   private:
00057     bool HasComp;
00058     TGo4CompositeEvent *fxEvt;
00059     bool IsActive;
00060 
00061 };
00062 
00063 
00064 #endif  //TGO4QFILEITEM_H
00065 
00066 
00067 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:04 2005 for Go4-v2.10-5 by doxygen1.2.15