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

Last change on this file since 1692 was 1531, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.3 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
17enum {
18 kETypeDeg,
19 kETypeH
20};
21
22class TGLabel;
23class TGTextEntry;
24
25class MGCoordinate : public TGFrame
26{
27 Char_t fSign;
28
29 Int_t fDeg;
30 Int_t fMin;
31 Int_t fSec;
32
33 MGList *fList;
34
35 TGTextEntry *fTextEntryDeg;
36 TGTextEntry *fTextEntryMin;
37 TGTextEntry *fTextEntrySec;
38
39 TGLabel *fLabelDeg;
40 TGLabel *fLabelMin;
41 TGLabel *fLabelSec;
42
43 TGLabel *fLabel;
44
45 void Set(TGLabel *label, const Int_t val);
46 void Set(TGTextEntry *entry, const Int_t val);
47 Bool_t Set(TGLabel *label, Int_t &val, TGTextEntry *label);
48
49public:
50 MGCoordinate(const TGWindow* p, const Int_t type=kETypeDeg,
51 const Bool_t flag=kTRUE, const char *txt="Coordinates:",
52 const Int_t deg=0, const UInt_t min=0, const UInt_t sec=0);
53 ~MGCoordinate();
54
55 Double_t GetVal() const;
56 void SetVal(Double_t d);
57
58 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
59
60 void Print();
61
62 ClassDef(MGCoordinate, 0)
63};
64
65#endif // MGIMAGE_H
Note: See TracBrowser for help on using the repository browser.