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

Last change on this file since 1701 was 1701, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 2.3 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 TGLabel *fRaEst;
50 TGLabel *fDecEst;
51
52 TGLabel *fRaSoll;
53 TGLabel *fDecSoll;
54
55 TGLabel *fZdSoll;
56 TGLabel *fAzSoll;
57
58 TGLabel *fUtc;
59 TGLabel *fMjd;
60
61 MGCoordinates *fCZdAz;
62 MGCoordinates *fCRaDec;
63 MGCoordinates *fCCalib;
64
65 MGSkyPosition *fSkyPosition;
66 MGAccuracy *fAccuracy;
67 MGVelocity *fVelocity;
68 MGVelocity *fOffset;
69
70 MsgQueue *fQueue;
71
72 TGTab *fTab;
73
74 TGLabel *fError;
75 TGLabel *fMoving;
76 TGLabel *fTracking;
77 TGLabel *fStopping;
78 TGLabel *fStopped;
79
80 TGListBox *fLog;
81
82 void CreateMenu();
83 void CreateLabel(TGCompositeFrame *f);
84 void CreateTabs(TGTab *fTab);
85
86 void StartPos();
87 void StartTrack();
88 void StartDemo();
89 void StartCalib();
90 void StartTPoint();
91
92 void EnableLabel(TGLabel *label, Bool_t stat);
93 void UpdateOffset(ZdAz &off);
94 void UpdateZdAz(ZdAz &off);
95 void UpdateRaDec(ZdAz &pos, double mjd, RaDec &radec);
96 double UpdateTime();
97
98public:
99 MGCosy(MsgQueue *q, const TGWindow *p, UInt_t w, UInt_t h);
100 ~MGCosy();
101
102 void CloseWindow();
103
104 TGLabel **GetLabel1() const { return fLabel1; }
105 TGLabel **GetLabel2() const { return fLabel2; }
106 TGLabel **GetLabel3() const { return fLabel3; }
107
108 TGListBox *GetLog() const { return fLog; }
109
110 void Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off, RaDec radec, ZdAz soll, UInt_t stat);
111
112 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
113
114 ClassDef(MGCosy, 0)
115};
116
117#endif
118
119
Note: See TracBrowser for help on using the repository browser.