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

Last change on this file since 1719 was 1702, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 2.5 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 TGLabel *fAvailMac1;
80 TGLabel *fAvailMac2;
81 TGLabel *fAvailMac3;
82 TGLabel *fAvailSe1;
83 TGLabel *fAvailSe2;
84 TGLabel *fAvailSe3;
85
86 TGListBox *fLog;
87
88 void CreateMenu();
89 void CreateLabel(TGCompositeFrame *f);
90 void CreateTabs(TGTab *fTab);
91
92 void StartPos();
93 void StartTrack();
94 void StartDemo();
95 void StartCalib();
96 void StartTPoint();
97
98 void EnableLabel(TGLabel *label, Bool_t stat);
99 void SetLabelColor(TGLabel *label, Bool_t col);
100 void UpdateOffset(ZdAz &off);
101 void UpdateZdAz(ZdAz &off);
102 void UpdateRaDec(ZdAz &pos, double mjd, RaDec &radec);
103 double UpdateTime();
104
105public:
106 MGCosy(MsgQueue *q, const TGWindow *p, UInt_t w, UInt_t h);
107 ~MGCosy();
108
109 void CloseWindow();
110
111 TGLabel **GetLabel1() const { return fLabel1; }
112 TGLabel **GetLabel2() const { return fLabel2; }
113 TGLabel **GetLabel3() const { return fLabel3; }
114
115 TGListBox *GetLog() const { return fLog; }
116
117 void Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off, RaDec radec, ZdAz soll, UInt_t stat, UInt_t stat2);
118
119 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
120
121 ClassDef(MGCosy, 0)
122};
123
124#endif
125
126
Note: See TracBrowser for help on using the repository browser.