04fa961a |
1 | #ifndef ALIMONITORDIALOG_H |
2 | #define ALIMONITORDIALOG_H |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ |
5 | |
6 | /* $Id$ */ |
7 | |
8 | #include <TGFrame.h> |
9 | #include <TGButton.h> |
10 | #include <TGLabel.h> |
11 | #include <RQ_OBJECT.h> |
12 | |
13 | |
14 | class AliMonitorDialog : public TObject { |
15 | |
16 | RQ_OBJECT("AliMonitorDialog") |
17 | |
18 | public: |
19 | AliMonitorDialog(TGFrame* main, Int_t width = 300, Int_t height = 80, |
20 | Bool_t cancelBtn = kTRUE); |
21 | virtual ~AliMonitorDialog(); |
22 | |
23 | void CloseWindow(); |
24 | void DoOk(); |
25 | virtual void OnOkClicked() {}; |
26 | void DoCancel(); |
27 | virtual void OnCancelClicked() {}; |
28 | |
29 | protected: |
30 | TGTransientFrame* fMain; |
31 | TGLayoutHints* fFrameLayout; |
32 | TGHorizontalFrame* fFrame; |
33 | TGLayoutHints* fButtonFrameLayout; |
34 | TGHorizontalFrame* fButtonFrame; |
35 | TGLayoutHints* fButtonLayout; |
36 | TGTextButton* fOkButton; |
37 | TGTextButton* fCancelButton; |
38 | |
39 | ClassDef(AliMonitorDialog, 0) // base class for dialogs with ok and cancel button |
40 | }; |
41 | |
42 | |
43 | #endif |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 | |
51 | |
52 | |