Changeset 706
- Timestamp:
- 07/26/07 02:37:41 (1 year ago)
- Files:
-
- other/dps/trunk/dsssps/components.d (modified) (3 diffs)
- other/dps/trunk/dsssps/newfile.d (modified) (1 diff)
- other/dps/trunk/dsssps/newsection.d (added)
- other/dps/trunk/dsssps/sconf.d (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
other/dps/trunk/dsssps/components.d
r704 r706 12 12 import dsssps.dps; 13 13 import dsssps.newfile; 14 import dsssps.newsection; 14 15 import dsssps.prefs; 15 16 import dsssps.process; … … 145 146 dpsApp.EVT_MENU(floatingIds, &OnClean); 146 147 148 topMenu.Append(++floatingIds, "Add Component"); 149 dpsApp.EVT_MENU(floatingIds, &OnAdd); 150 147 151 topMenu.Append(++floatingIds, "Edit dsss.conf"); 148 152 dpsApp.EVT_MENU(floatingIds, &OnEditDSSSConf); … … 171 175 // FIXME 172 176 (new DPSProcessWindow("dsss distclean")).Show(true); 177 } 178 179 /// Callback for adding sections 180 void OnAdd(Object s, wxEvent e) 181 { 182 (new DPSNewSectionDialog()).Show(true); 173 183 } 174 184 other/dps/trunk/dsssps/newfile.d
r703 r706 15 15 { 16 16 super(null, wxID_ANY, "New file in " ~ prefix, 17 wxDefaultPosition, wxSize( 640, 60));17 wxDefaultPosition, wxSize(320, 60)); 18 18 19 19 // create a text dialog for the filename, starting with the prefix 20 20 tctl = new wxTextCtrl(this, wxID_ANY, prefix, 21 wxPoint(0, 0), wxSize( 640, 30));21 wxPoint(0, 0), wxSize(320, 30)); 22 22 23 23 // and a button to create 24 24 wxButton b = new wxButton(this, ++floatingIds, "Create", 25 wxPoint(0, 30), wxSize( 640, 30));25 wxPoint(0, 30), wxSize(320, 30)); 26 26 EVT_BUTTON(floatingIds, &OnCreate); 27 27 }
