]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALITPCMONITORDIALOG_H | |
2 | #define ALITPCMONITORDIALOG_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | //////////////////////////////////////////////////////////////////////// | |
10 | //// | |
11 | //// AliTPCMonitorDialog class | |
12 | //// | |
13 | //// Class to handle dialogs for settings of files and configurations | |
14 | //// for the AliTPCMonitor | |
15 | //// | |
16 | //// Author: Stefan Kniege, IKF, Frankfurt | |
17 | //// | |
18 | //// | |
19 | ///////////////////////////////////////////////////////////////////////// | |
20 | ||
21 | ||
22 | #include "TGFrame.h" | |
23 | #include "AliTPCMonitor.h" | |
24 | class TGWindow; | |
25 | class TGTransientFrame; | |
26 | class TGLayoutHints; | |
27 | class TGListBox; | |
28 | class AliTPCMonitor; | |
29 | class TGTab; | |
30 | class TGButton; | |
31 | class TGHorizontalFrame; | |
32 | class TGTextBuffer; | |
33 | class TGTextEntry; | |
34 | class TGTransientFrame; | |
35 | class TGCompositeFrame; | |
36 | class TGGroupFrame; | |
37 | class AliTPCMonitorDialog : public TNamed | |
38 | { | |
39 | ||
40 | public: | |
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(); | |
45 | ||
46 | void DoClose() const; | |
47 | void CloseWindow() const; | |
48 | void DoOK(); | |
49 | void DoCancel(); | |
50 | void DoTab(Int_t id); | |
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; } | |
60 | private: | |
61 | ||
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 | |
72 | ||
73 | ||
74 | ||
75 | TGTextBuffer* fBuf[7]; // Text buffer for GroupFrame | |
76 | TGTextEntry* fEnt[7]; // Text entries for GroupFrame | |
77 | ||
78 | AliTPCMonitor* fMonitor; // Pointer to AliTPCMonitor to be called | |
79 | ||
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); | |
87 | ||
88 | }; | |
89 | ||
90 | ||
91 | ||
92 | #endif |