- Timestamp:
- 05/05/03 17:01:06 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r2019 r2068 1 1 -*-*- END -*-*- 2 2003/05/05 - Thomas Bretz 3 4 * gui/MGCosy.[h,cc]: 5 - exchanged TGListBox for logging by TGTextView 6 7 8 2 9 2003/04/28 - Thomas Bretz 3 10 -
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r1953 r2068 10 10 #include <TGTab.h> // TGTab 11 11 #include <TGMenu.h> // TGPopupMenu 12 #include <TG Button.h> // TGButton12 #include <TGFrame.h> // TGGroupFrame 13 13 #include <TSystem.h> // gSystem 14 14 #include <TGLabel.h> // TGLabel 15 #include <TGListBox.h> // TGListBox 15 #include <TG3DLine.h> // TGHorizontal3DLine (TGSplitter) 16 #include <TGButton.h> // TGButton 17 #include <TGTextView.h> // TGTextView 16 18 #include <TGComboBox.h> // TGComboBox 17 #include <TG3DLine.h> // TGHorizontal3DLine (TGSplitter)18 19 #include <TGTextEntry.h> // TGTextEntry 19 #include <TGFrame.h> // TGGroupFrame20 20 #include <TApplication.h> // gApplication 21 21 … … 621 621 fList = new MGList; 622 622 623 fFont = gVirtualX->LoadQueryFont("7x13bold"); 624 623 625 #ifdef DEBUG 624 626 cout << "MGCosy: Creating Menu" << endl; … … 647 649 cout << "MGCosy: Creating MGAccuracy" << endl; 648 650 #endif 649 fAccuracy = new MGAccuracy(f1, 300);651 fAccuracy = new MGAccuracy(f1, 300); 650 652 #ifdef DEBUG 651 653 cout << "MGCosy: Creating MGVelocity" << endl; 652 654 #endif 653 fVelocity = new MGVelocity(f2, "Velocity [\"/min]", 300);655 fVelocity = new MGVelocity(f2, "Velocity [\"/min]", 300); 654 656 // fOffset = new MGVelocity (f, "Offset se-re [']", 300); 655 657 … … 663 665 #endif 664 666 TGGroupFrame *frame = new TGGroupFrame(f2, "Status"); 665 frame->Resize(300, 300);666 667 fList->Add(frame); 667 668 668 669 #ifdef DEBUG 669 cout << "MGCosy: Creating TG ListBox" << endl;670 #endif 671 fLog = new TG ListBox(f2, -1, kSunkenFrame); //kSunkenFrame|kDoubleBorder,672 fLog->Resize(300, 300);673 fLog->ChangeBackground(TGFrame::GetBlackPixel());670 cout << "MGCosy: Creating TGTextView" << endl; 671 #endif 672 fLog = new TGTextView(f2, 300, 300); 673 if (fFont) 674 fLog->SetFont(fFont); 674 675 fList->Add(fLog); 675 676 … … 743 744 MGCosy::~MGCosy() 744 745 { 746 #ifdef DEBUG 745 747 cout << "MGCosy::~MGCosy called." << endl; 746 748 #endif 747 749 delete fLayMenuBar; 748 750 delete fLayMenuItem; 749 751 #ifdef DEBUG 750 752 cout << "Deleting MGCosy::fList" << endl; 751 753 #endif 752 754 delete fList; 753 755 #ifdef DEBUG 756 cout << "Deleting MGCosy::fFont" << endl; 757 #endif 758 if (fFont) 759 gVirtualX->DeleteFont(fFont); 760 #ifdef DEBUG 754 761 cout << "MGCosy::~MGCosy done." << endl; 762 #endif 755 763 } 756 764 … … 971 979 // stat&kTracking ? fOffset->MapWindow() : fOffset->UnmapWindow(); 972 980 981 /* 973 982 if (fLog->TestBit(kHasChanged)) 974 983 { … … 976 985 fLog->Layout(); 977 986 fLog->ResetBit(kHasChanged); 978 } 987 }*/ 979 988 } 980 989 // ====================================================================== -
trunk/MagicSoft/Cosy/gui/MGCosy.h
r1953 r2068 16 16 class TIterator; 17 17 18 class TGTab; 18 19 class TGLabel; 20 class TGMenuBar; 21 class TGTextView; 19 22 class TGPopupMenu; 20 class TGMenuBar;21 class TGHorizontal3DLine;22 23 class TGLayoutHints; 23 24 class TGCompositeFrame; 24 class TGTab; 25 class TGListBox; 25 class TGHorizontal3DLine; 26 26 27 27 class ZdAz; … … 29 29 class MsgQueue; 30 30 31 class MGList; 31 32 class MGImage; 32 class MGList; 33 class MGAccuracy; 34 class MGVelocity; 33 35 class MGCoordinates; 34 36 class MGSkyPosition; 35 class MGAccuracy;36 class MGVelocity;37 37 38 38 class MGCosy : public TGMainFrame … … 95 95 TGLabel *fAvailSe3; 96 96 97 TGListBox *fLog; 97 TGTextView *fLog; 98 99 FontStruct_t fFont; 98 100 99 101 void CreateMenu(); … … 126 128 TGLabel *GetLabel3() const { return fLabel3; } 127 129 128 TG ListBox*GetLog() const { return fLog; }130 TGTextView *GetLog() const { return fLog; } 129 131 130 132 void Update(ZdAz pos, ZdAz acc, ZdAz vel, ZdAz off, RaDec radec, ZdAz soll, UInt_t stat, UInt_t stat2);
Note:
See TracChangeset
for help on using the changeset viewer.