source: trunk/MagicSoft/Cosy/gui/MGCosy.h@ 1194

Last change on this file since 1194 was 1111, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MGCOSY_H
2#define MGCOSY_H
3
4#ifndef ROOT_TGFrame
5#include <TGFrame.h>
6#endif
7
8class TIterator;
9
10class TGLabel;
11class TGPopupMenu;
12class TGMenuBar;
13class TGHorizontal3DLine;
14class TGLayoutHints;
15class TGCompositeFrame;
16class TGTab;
17class TGListBox;
18
19class ZdAz;
20class RaDec;
21class MsgQueue;
22
23class MGImage;
24class MGList;
25class MGCoordinates;
26class MGSkyPosition;
27class MGAccuracy;
28class MGVelocity;
29
30class MGCosy : public TGMainFrame
31{
32private:
33
34 //
35 // Create a main frame with a number of different buttons.
36 //
37 TGLayoutHints *fLayMenuBar;
38 TGLayoutHints *fLayMenuItem;
39
40 MGList *fList;
41
42 TGLabel **fLabel1;
43 TGLabel **fLabel2;
44 TGLabel **fLabel3;
45
46 TGLabel *fOffsetZd;
47 TGLabel *fOffsetAz;
48
49 MGCoordinates *fCZdAz;
50 MGCoordinates *fCRaDec;
51
52 MGSkyPosition *fSkyPosition;
53 MGAccuracy *fAccuracy;
54 MGVelocity *fVelocity;
55 MGVelocity *fOffset;
56
57 MsgQueue *fQueue;
58
59 TGTab *fTab;
60
61 TGLabel *fError;
62 TGLabel *fMoving;
63 TGLabel *fTracking;
64 TGLabel *fStopping;
65 TGLabel *fStopped;
66
67 TGListBox *fLog;
68
69 void CreateMenu();
70 void CreateLabel(TGCompositeFrame *f);
71 void CreateTabs(TGTab *fTab);
72
73 void StartPos();
74 void StartTrack();
75
76 void EnableLabel(TGLabel *label, Bool_t stat);
77 void UpdateOffset(ZdAz &off);
78
79public:
80 MGCosy(MsgQueue *q, const TGWindow *p, UInt_t w, UInt_t h);
81 ~MGCosy();
82
83 void CloseWindow();
84
85 TGLabel **GetLabel1() const { return fLabel1; }
86 TGLabel **GetLabel2() const { return fLabel2; }
87 TGLabel **GetLabel3() const { return fLabel3; }
88
89 TGListBox *GetLog() const { return fLog; }
90
91 void Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off, UInt_t stat);
92
93 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
94
95 ClassDef(MGCosy, 0)
96};
97
98#endif
99
100
Note: See TracBrowser for help on using the repository browser.