source: trunk/MagicSoft/Cosy/gui/MGCoordinate.h@ 735

Last change on this file since 735 was 732, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MGCOORDINATE_H
2#define MGCOORDINATE_H
3
4//
5// This File contains the declaration of the MGCoordinates-class
6//
7// Author: Thomas Bretz
8// Version: V1.0 (1-8-2000)
9
10#ifndef ROOT_TGFrame
11#include <TGFrame.h>
12#endif
13#ifndef MGLIST_H
14#include "MGList.h"
15#endif
16
17class TGLabel;
18class TGTextEntry;
19
20class MGCoordinate : public TGFrame
21{
22 UInt_t fDeg;
23 UInt_t fMin;
24 UInt_t fSec;
25
26 MGList fList;
27
28 TGTextEntry *fTextEntryDeg;
29 TGTextEntry *fTextEntryMin;
30 TGTextEntry *fTextEntrySec;
31
32 TGLabel *fLabelDeg;
33 TGLabel *fLabelMin;
34 TGLabel *fLabelSec;
35
36 TGLabel *fLabel;
37
38 void Set(TGLabel *label, const UInt_t val);
39 void Set(TGTextEntry *entry, const UInt_t val);
40 Bool_t Set(TGLabel *label, UInt_t &val, TGTextEntry *label);
41
42public:
43 MGCoordinate(const TGWindow* p,
44 const Bool_t flag=kTRUE, const char *txt="Coordinates:",
45 const UInt_t deg=0, const UInt_t min=0, const UInt_t sec=0);
46 ~MGCoordinate();
47
48 Double_t GetVal() const;
49 void SetVal(Double_t d);
50
51 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
52
53 void Print();
54};
55
56#endif // MGIMAGE_H
Note: See TracBrowser for help on using the repository browser.