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

Last change on this file since 1345 was 1275, 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 void StartDemo();
76
77 void EnableLabel(TGLabel *label, Bool_t stat);
78 void UpdateOffset(ZdAz &off);
79
80public:
81 MGCosy(MsgQueue *q, const TGWindow *p, UInt_t w, UInt_t h);
82 ~MGCosy();
83
84 void CloseWindow();
85
86 TGLabel **GetLabel1() const { return fLabel1; }
87 TGLabel **GetLabel2() const { return fLabel2; }
88 TGLabel **GetLabel3() const { return fLabel3; }
89
90 TGListBox *GetLog() const { return fLog; }
91
92 void Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off, UInt_t stat);
93
94 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
95
96 ClassDef(MGCosy, 0)
97};
98
99#endif
100
101
Note: See TracBrowser for help on using the repository browser.