00001 // Author: Bertrand Bellenot 22/08/02 00002 00003 /************************************************************************* 00004 * Copyright (C) 1995-2002, Bertrand Bellenot. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see the LICENSE file. * 00008 *************************************************************************/ 00009 00010 ////////////////////////////////////////////////////////////////////////// 00011 // // 00012 // GButtonFrame // 00013 // // 00014 // This File contains the declaration of the GButtonFrame-class for // 00015 // the RootShower application // 00016 // // 00017 ////////////////////////////////////////////////////////////////////////// 00018 00019 #ifndef GBUTTONFRAME_H 00020 #define GBUTTONFRAME_H 00021 00022 #ifndef ROOT_TGFrame 00023 #include "TGFrame.h" 00024 #endif 00025 00026 class TGButton; 00027 00028 00029 class GButtonFrame: public TGCompositeFrame { 00030 00031 private: 00032 TGLayoutHints *fButtonLayout; // Buttons layout 00033 TGButton *fNextEventButton; // "Start New Event" button 00034 TGButton *fShowTrackButton; // "Show Selection" button 00035 TGButton *fStopSimButton; // "Interrupt Simulation" button 00036 00037 public: 00038 // enum 00039 enum EState { 00040 kAllActive, 00041 kNoneActive 00042 }; 00043 00044 // Constructor & destructor 00045 GButtonFrame(const TGWindow* p, TGWindow* buttonHandler, Int_t nextEventId, 00046 Int_t showTrackId, Int_t interruptSimId); 00047 virtual ~GButtonFrame(); 00048 00049 void SetState(EState state); 00050 }; 00051 00052 #endif // GBUTTONFRAME_H