source: trunk/MagicSoft/Mars/mmain/MStatusDisplay.h@ 1964

Last change on this file since 1964 was 1957, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MStatusDisplay
2#define MARS_MStatusDisplay
3
4#ifndef MARS_MAGIC
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TGFrame
9#include <TGFrame.h>
10#endif
11
12class MGList;
13
14class TCanvas;
15
16class TGTab;
17class TGLabel;
18class TGProgressBar;
19class TGHProgressBar;
20
21class MStatusDisplay : public TGTransientFrame
22{
23private:
24 MGList *fList;
25 TGHProgressBar *fBar;
26 TGTab *fTab;
27 TGLayoutHints *fLayCanvas;
28
29
30 TGLabel *fLine1;
31 TGLabel *fLine2;
32
33 void AddProgressBar();
34 void AddTabs();
35 void AddStatusLine1();
36 void AddStatusLine2();
37
38 TCanvas *GetCanvas(TGCompositeFrame *f);
39
40 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
41 void CloseWindow();
42
43public:
44 MStatusDisplay();
45 virtual ~MStatusDisplay();
46
47 TGProgressBar *GetBar() const { return (TGProgressBar*)fBar; }
48
49 void SetStatusLine1(const char *txt);
50 void SetStatusLine2(const char *txt);
51
52 TCanvas &AddTab(const char *name);
53
54 TCanvas *GetCanvas(int i);
55 TCanvas *GetCanvas(const TString &name);
56
57 ClassDef(MStatusDisplay, 0) // Window for a status display
58};
59
60#endif
61
62
Note: See TracBrowser for help on using the repository browser.