Changeset 706

Show
Ignore:
Timestamp:
07/26/07 02:37:41 (1 year ago)
Author:
Gregor
Message:

Added 'new component' dialog.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • other/dps/trunk/dsssps/components.d

    r704 r706  
    1212import dsssps.dps; 
    1313import dsssps.newfile; 
     14import dsssps.newsection; 
    1415import dsssps.prefs; 
    1516import dsssps.process; 
     
    145146        dpsApp.EVT_MENU(floatingIds, &OnClean); 
    146147 
     148        topMenu.Append(++floatingIds, "Add Component"); 
     149        dpsApp.EVT_MENU(floatingIds, &OnAdd); 
     150 
    147151        topMenu.Append(++floatingIds, "Edit dsss.conf"); 
    148152        dpsApp.EVT_MENU(floatingIds, &OnEditDSSSConf); 
     
    171175        // FIXME 
    172176        (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); 
    173183    } 
    174184 
  • other/dps/trunk/dsssps/newfile.d

    r703 r706  
    1515    { 
    1616        super(null, wxID_ANY, "New file in " ~ prefix, 
    17             wxDefaultPosition, wxSize(640, 60)); 
     17            wxDefaultPosition, wxSize(320, 60)); 
    1818 
    1919        // create a text dialog for the filename, starting with the prefix 
    2020        tctl = new wxTextCtrl(this, wxID_ANY, prefix, 
    21             wxPoint(0, 0), wxSize(640, 30)); 
     21            wxPoint(0, 0), wxSize(320, 30)); 
    2222 
    2323        // and a button to create 
    2424        wxButton b = new wxButton(this, ++floatingIds, "Create", 
    25             wxPoint(0, 30), wxSize(640, 30)); 
     25            wxPoint(0, 30), wxSize(320, 30)); 
    2626        EVT_BUTTON(floatingIds, &OnCreate); 
    2727    }