1 #ifndef ALITPCMONITORDIALOG_H
2 #define ALITPCMONITORDIALOG_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ////////////////////////////////////////////////////////////////////////
11 //// AliTPCMonitorDialog class
13 //// Class to handle dialogs for settings of files and configurations
14 //// for the AliTPCMonitor
16 //// Author: Stefan Kniege, IKF, Frankfurt
19 /////////////////////////////////////////////////////////////////////////
23 #include "AliTPCMonitor.h"
25 class TGTransientFrame;
31 class TGHorizontalFrame;
34 class TGTransientFrame;
35 class TGCompositeFrame;
37 class AliTPCMonitorDialog : public TNamed
41 AliTPCMonitorDialog(TGWindow *p, TGWindow *main, UInt_t w, UInt_t h, UInt_t options = kVerticalFrame, Int_t version =1, AliTPCMonitor* monitor =0);
42 AliTPCMonitorDialog(const AliTPCMonitorDialog &dialog);
43 AliTPCMonitorDialog& operator= (const AliTPCMonitorDialog& dialog);
44 virtual ~AliTPCMonitorDialog();
47 void CloseWindow() const;
51 void HandleButtons(Int_t id = -1);
52 void CreateDialogVersion(Int_t version);
53 UInt_t GetWidth() const { return fWidth; }
54 UInt_t GetHeight() const { return fHeight; }
55 UInt_t GetOptions() const { return fOptions; }
56 AliTPCMonitor* GetMonitor() const { return fMonitor; }
57 TGWindow* GetClient() const { return fClient; }
58 TGWindow* GetMainFrame() const { return fMain; }
59 Int_t GetVersion() const { return fVersion; }
62 TGTransientFrame* fFrameMain; // Frames for dialog windows
63 TGCompositeFrame* fFrameComp; // Frames for dialog windows
64 TGHorizontalFrame* fFrameHor; // Frames for dialog windows
65 TGGroupFrame* fFrameGroup; // Frames for dialog windows
66 TGButton* fOkButton; // Ok button for windows
67 TGListBox* fListBox; // ListBox for entries to be selected
68 TGTab* fTab; // Tabs for several pages in one window
69 TGLayoutHints* fLayout1; // Layout for window version 1
70 TGLayoutHints* fLayout2; // Layout for window versoin 2
71 TGLayoutHints* fLayout3; // Layout for window version 3
75 TGTextBuffer* fBuf[7]; // Text buffer for GroupFrame
76 TGTextEntry* fEnt[7]; // Text entries for GroupFrame
78 AliTPCMonitor* fMonitor; // Pointer to AliTPCMonitor to be called
80 UInt_t fWidth; // Width of the window
81 UInt_t fHeight; // Height of the window
82 UInt_t fOptions; // Frame options
83 Int_t fVersion; // Version of the dialog
84 TGWindow* fClient; // TGClient of Dialog
85 TGWindow* fMain; // Main fraem for Dialog window
86 ClassDef(AliTPCMonitorDialog,1);