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

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