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

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