Changeset 2082 for trunk/MagicSoft
- Timestamp:
- 05/06/03 17:06:04 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2058 r2082 92 92 #include "MParContainer.h" // MParContainer::GetDescriptor 93 93 94 #undef DEBUG 95 //#define DEBUG 96 94 97 ClassImp(MStatusDisplay); 95 98 … … 157 160 MGPopupMenu *logmenu = new MGPopupMenu(gClient->GetRoot()); 158 161 logmenu->AddEntry("&Copy Selected", kLogCopy); 159 logmenu->AddEntry("Cl ear all",kLogClear);162 logmenu->AddEntry("Cl&ear all", kLogClear); 160 163 logmenu->AddSeparator(); 161 logmenu->AddEntry("Select All",kLogSelect);164 logmenu->AddEntry("Select &All", kLogSelect); 162 165 /* 163 166 logmenu->AddSeparator(); … … 165 168 */ 166 169 logmenu->AddSeparator(); 167 logmenu->AddEntry(" Save",kLogSave);168 logmenu->AddEntry("Save append",kLogAppend);170 logmenu->AddEntry("&Save", kLogSave); 171 logmenu->AddEntry("Save &append", kLogAppend); 169 172 logmenu->Associate(this); 170 173 … … 172 175 // Menu Bar 173 176 // 177 TGLayoutHints *layitem = new TGLayoutHints(kLHintsNormal, 0, 4, 0, 0); 178 fList->Add(layitem); 179 174 180 MGMenuBar *menubar = new MGMenuBar(this, 1, 1, kHorizontalFrame); 175 menubar->AddPopup("&File", filemenu, NULL);176 menubar->AddPopup("Lo&g", logmenu, NULL);177 menubar->AddPopup("&Size", sizemenu, NULL);178 menubar->AddPopup("&Tab", tabmenu, NULL);179 menubar->AddPopup("&Loop", loopmenu, NULL);181 menubar->AddPopup("&File", filemenu, layitem); 182 menubar->AddPopup("Lo&g", logmenu, layitem); 183 menubar->AddPopup("&Size", sizemenu, layitem); 184 menubar->AddPopup("&Tab", tabmenu, layitem); 185 menubar->AddPopup("&Loop", loopmenu, layitem); 180 186 menubar->BindKeys(this); 181 187 AddFrame(menubar); … … 273 279 TGCompositeFrame *f = fTab->AddTab("-Logbook-"); 274 280 275 276 fLogBox = new TGTextView(f, 1, 1 /*, -1, 0, TGTextView::GetBlackPixel()*/);281 // Create Text View 282 fLogBox = new TGTextView(f, 1, 1); // , -1, 0, TGFrame::GetDefaultFrameBackground()); 277 283 if (fFont) 278 284 fLogBox->SetFont(fFont); 279 fLogBox->Associate(this);285 //fLogBox->Associate(this); 280 286 281 287 // Add List box to the tab … … 810 816 } 811 817 return kTRUE; 812 818 #ifdef DEBUG 813 819 default: 814 820 cout << "Command-Menu #" << id << endl; 821 #endif 815 822 } 816 823 return kTRUE; … … 828 835 case kCM_MENU: 829 836 return ProcessMessageCommandMenu(mp1); // mp2=userdata 830 831 case kCM_MENUSELECT:832 cout << "Command-Menuselect #" << mp1 << " (UserData=" << (void*)mp2 << ")" << endl;833 return kTRUE;834 835 case kCM_BUTTON:836 cout << "Command-Button." << endl;837 return kTRUE;838 839 case kCM_CHECKBUTTON:840 cout << "Command-CheckButton." << endl;841 return kTRUE;842 843 case kCM_RADIOBUTTON:844 cout << "Command-RadioButton." << endl;845 return kTRUE;846 847 case kCM_LISTBOX:848 cout << "Command-Listbox #" << mp1 << " (LineId #" << mp2 << ")" << endl;849 return kTRUE;850 851 case kCM_COMBOBOX:852 cout << "Command-ComboBox." << endl;853 return kTRUE;854 855 837 case kCM_TAB: 856 838 for (int i=1; i<fTab->GetNumberOfTabs(); i++) … … 868 850 */ 869 851 return kTRUE; 870 } 871 872 cout << "Command: " << "Submsg:" << submsg << " Mp1=" << mp1 << " Mp2=" << mp2 << endl; 852 #ifdef DEBUG 853 case kCM_MENUSELECT: 854 cout << "Command-Menuselect #" << mp1 << " (UserData=" << (void*)mp2 << ")" << endl; 855 return kTRUE; 856 857 case kCM_BUTTON: 858 cout << "Command-Button." << endl; 859 return kTRUE; 860 861 case kCM_CHECKBUTTON: 862 cout << "Command-CheckButton." << endl; 863 return kTRUE; 864 865 case kCM_RADIOBUTTON: 866 cout << "Command-RadioButton." << endl; 867 return kTRUE; 868 869 case kCM_LISTBOX: 870 cout << "Command-Listbox #" << mp1 << " (LineId #" << mp2 << ")" << endl; 871 return kTRUE; 872 873 case kCM_COMBOBOX: 874 cout << "Command-ComboBox." << endl; 875 return kTRUE; 876 default: 877 cout << "Command: " << "Submsg:" << submsg << " Mp1=" << mp1 << " Mp2=" << mp2 << endl; 878 #endif 879 } 873 880 return kTRUE; 874 881 } … … 888 895 // kC_TEXTVIEW, kTXT_CLOSE, widget id, 0 // 889 896 // kC_TEXTVIEW, kTXT_SAVE, widget id, 0 // 897 #ifdef DEBUG 890 898 switch (submsg) 891 899 { … … 921 929 cout << "Textview-Save #" << mp1 << endl; 922 930 return kTRUE; 923 } 924 925 cout << "Textview: " << "Submsg:" << submsg << " Mp1=" << mp1 << " Mp2=" << mp2 << endl; 931 932 default: 933 cout << "Textview: " << "Submsg:" << submsg << " Mp1=" << mp1 << " Mp2=" << mp2 << endl; 934 } 935 #endif 926 936 return kTRUE; 927 937 } … … 942 952 return ProcessMessageTextview(GET_SUBMSG(msg), mp1, mp2); 943 953 } 944 954 #ifdef DEBUG 945 955 cout << "Msg: " << GET_MSG(msg) << " Submsg:" << GET_SUBMSG(msg); 946 956 cout << " Mp1=" << mp1 << " Mp2=" << mp2 << endl; 947 957 #endif 948 958 return kTRUE; 949 959 }
Note:
See TracChangeset
for help on using the changeset viewer.