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

Last change on this file since 914 was 913, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.4 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;
33
34class MGCosy : public TGMainFrame
35{
36private:
37
38 //
39 // Create a main frame with a number of different buttons.
40 //
41 TGLayoutHints *fLayMenuBar;
42 TGLayoutHints *fLayMenuItem;
43
44 MGList *fList;
45
46 TGLabel **fLabel1;
47 TGLabel **fLabel2;
48 TGLabel **fLabel3;
49
50 MGCoordinates *fCoord;
51 MGSkyPosition *fSkyPosition;
52 MGAccuracy *fAccuracy;
53 MGVelocity *fVelocity;
54 MGVelocity *fOffset;
55
56 MsgQueue *fQueue;
57
58 void CreateMenu();
59 void CreateLabel();
60 void CreateButton();
61
62public:
63 MGCosy(MsgQueue *q, const TGWindow *p, UInt_t w, UInt_t h);
64 ~MGCosy();
65
66 void CloseWindow();
67
68 TGLabel **GetLabel1() { return fLabel1; }
69 TGLabel **GetLabel2() { return fLabel2; }
70 TGLabel **GetLabel3() { return fLabel3; }
71
72 void Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off);
73
74 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
75};
76
77#endif
78
79
Note: See TracBrowser for help on using the repository browser.