Changeset 8376 for trunk/MagicSoft/Cosy/gui
- Timestamp:
- 03/14/07 19:12:17 (18 years ago)
- Location:
- trunk/MagicSoft/Cosy/gui
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGAccuracy.cc
r7790 r8376 1 1 #include "MGAccuracy.h" 2 2 3 #include <iostream .h> // cout3 #include <iostream> // cout 4 4 5 5 #include <TArc.h> … … 16 16 17 17 ClassImp(MGAccuracy); 18 19 using namespace std; 18 20 19 21 void MGAccuracy::DrawText(const char *c1, const char *c2, const char *c3, const char*txt) … … 163 165 dist *= 3600.; // [sec] 164 166 165 int rs = (int)floor(fmod(dist,60.));167 int rs = TMath::FloorNint(fmod(dist, (float)60.)); 166 168 167 169 dist /= 60.; // [min] -
trunk/MagicSoft/Cosy/gui/MGCoordinate.cc
r7794 r8376 8 8 9 9 #include <stdlib.h> // atoi 10 #include <iostream .h> // cout10 #include <iostream> // cout 11 11 12 12 #include <TSystem.h> … … 18 18 19 19 ClassImp(MGCoordinate); 20 21 using namespace std; 20 22 21 23 enum { … … 25 27 }; 26 28 27 MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type =kETypeDeg,29 MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type, 28 30 const Int_t flag, const char *txt, 29 31 const Int_t deg, const UInt_t min, const UInt_t sec) … … 91 93 TGLabel *label; 92 94 93 const char * deg = type==kETypeDeg ? "\xb0" : "h";94 const char * min = type==kETypeDeg ? "'" : "m";95 const char *s ec = type==kETypeDeg ? "\"" : "s";95 const char *sdeg = type==kETypeDeg ? "\xb0" : "h"; 96 const char *smin = type==kETypeDeg ? "'" : "m"; 97 const char *ssec = type==kETypeDeg ? "\"" : "s"; 96 98 97 99 if (flag==1) 98 100 { 99 label = new TGLabel(this, deg);101 label = new TGLabel(this, sdeg); 100 102 label->SetTextJustify(kTextLeft); 101 103 label->Move(37, 29-offset); … … 103 105 fList->Add(label); 104 106 105 label = new TGLabel(this, min);107 label = new TGLabel(this, smin); 106 108 label->SetTextJustify(kTextLeft); 107 109 label->Move(71, 29-offset); … … 109 111 fList->Add(label); 110 112 111 label = new TGLabel(this, s ec);113 label = new TGLabel(this, ssec); 112 114 label->SetTextJustify(kTextLeft); 113 115 label->Move(107, 29-offset); … … 116 118 } 117 119 118 label = new TGLabel(this, deg);120 label = new TGLabel(this, sdeg); 119 121 label->SetTextJustify(kTextLeft); 120 122 label->Move(39, ypos); … … 122 124 fList->Add(label); 123 125 124 label = new TGLabel(this, min);126 label = new TGLabel(this, smin); 125 127 label->SetTextJustify(kTextLeft); 126 128 label->Move(73, ypos); … … 128 130 fList->Add(label); 129 131 130 label = new TGLabel(this, s ec);132 label = new TGLabel(this, ssec); 131 133 label->SetTextJustify(kTextLeft); 132 134 label->Move(107, ypos); … … 149 151 } 150 152 151 void MGCoordinate::Print( )153 void MGCoordinate::Print(Option_t *o) const 152 154 { 153 155 if (fLabel) -
trunk/MagicSoft/Cosy/gui/MGCoordinate.h
r7790 r8376 58 58 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2); 59 59 60 void Print( );60 void Print(Option_t *o="") const; 61 61 62 62 ClassDef(MGCoordinate, 0) -
trunk/MagicSoft/Cosy/gui/MGCoordinates.cc
r7790 r8376 7 7 #include "MGCoordinates.h" 8 8 9 #include <iostream .h> // cout9 #include <iostream> // cout 10 10 11 11 #include "MGCoordinate.h" … … 13 13 14 14 ClassImp(MGCoordinates); 15 16 using namespace std; 15 17 16 18 MGCoordinates::MGCoordinates(const TGWindow* p, … … 54 56 } 55 57 56 void MGCoordinates::Print( )58 void MGCoordinates::Print(Option_t *o) const 57 59 { 58 60 fX->Print(); -
trunk/MagicSoft/Cosy/gui/MGCoordinates.h
r7790 r8376 37 37 void SetCoordinates(const XY &xy); 38 38 39 void Print( );39 void Print(Option_t *o="") const; 40 40 41 41 ClassDef(MGCoordinates, 0) -
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r7794 r8376 1 1 #include "MGCosy.h" 2 2 3 #include <iomanip .h>4 #include < iostream.h>3 #include <iomanip> 4 #include <fstream> 5 5 6 6 #include "msgqueue.h" … … 42 42 43 43 ClassImp(MGCosy); 44 45 using namespace std; 44 46 45 47 #define IDM_EXIT 1 … … 827 829 cout << "MGCosy: Setting Size" << endl; 828 830 #endif 829 const Int_t w = 1010;830 const Int_t h = 700;831 SetWMSizeHints(w , h, w,h, 1, 1); // set the smallest and biggest size of the Main frame831 const Int_t ww = 1010; 832 const Int_t hh = 700; 833 SetWMSizeHints(ww, hh, ww, hh, 1, 1); // set the smallest and biggest size of the Main frame 832 834 833 835 SetWindowName("Cosy Main Window"); … … 838 840 #endif 839 841 MapSubwindows(); 840 Resize(w ,h); //GetDefaultSize());842 Resize(ww, hh); //GetDefaultSize()); 841 843 MapWindow(); 842 844 } -
trunk/MagicSoft/Cosy/gui/MGNumStars.cc
r7794 r8376 1 1 #include "MGNumStars.h" 2 2 3 #include <iostream .h> // cout3 #include <iostream> // cout 4 4 5 5 #include <TLine.h> … … 13 13 14 14 ClassImp(MGNumStars); 15 16 using namespace std; 15 17 16 18 void MGNumStars::DrawText(const char*txt) -
trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc
r2751 r8376 7 7 #include "MGSkyPosition.h" 8 8 9 #include <iostream .h> // cout9 #include <iostream> // cout 10 10 11 11 #include <TArc.h> … … 21 21 22 22 ClassImp(MGSkyPosition); 23 24 using namespace std; 23 25 24 26 void MGSkyPosition::InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor)
Note:
See TracChangeset
for help on using the changeset viewer.