]> Creatis software - bbtkGEditor.git/commitdiff
A little change in Editing dialog appearance
authorcorredor <>
Mon, 3 May 2010 09:43:47 +0000 (09:43 +0000)
committercorredor <>
Mon, 3 May 2010 09:43:47 +0000 (09:43 +0000)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx

index 87f95d3af4f077391f04633f281e8768c7d4574f..b2c470147e3301f10f0b906bcf7d35d5780660b5 100644 (file)
@@ -72,16 +72,18 @@ namespace bbtk
        {
                wxBoxSizer *sizerDialog = new wxBoxSizer(wxVERTICAL);
 
-               wxStaticText *text = new wxStaticText(this, -1, _T("Input Ports"));
+               wxStaticText *text = new wxStaticText(this, -1, wxT("Input Ports"));
+               wxFont font(11, wxDEFAULT, wxNORMAL, wxBOLD);
+               text->SetFont(font);
                                
                std::vector<GPortModel*> lstInputs = _model->getInputPorts();
-               wxGridSizer *sizer = new wxGridSizer(lstInputs.size(),3,5,5);             
+               wxFlexGridSizer *sizer = new wxFlexGridSizer(lstInputs.size(),3,5,5);             
                for(int i = 0;i<lstInputs.size();i++)
                {
                        GPortModel* port = lstInputs[i];
-                       wxStaticText *lblName = new wxStaticText(this, -1, std2wx(port->getBBTKName()),wxDefaultPosition,wxSize(80,30));
-                       wxStaticText *lblType = new wxStaticText(this, -1, std2wx(port->getBBTKType()),wxDefaultPosition,wxSize(150,30));
-                       wxTextCtrl *txtValue = new wxTextCtrl(this, -1, _T(""),wxDefaultPosition,wxSize(50,15));
+                       wxStaticText *lblName = new wxStaticText(this, -1, std2wx(port->getBBTKName()),wxDefaultPosition,wxSize(100,20));
+                       wxStaticText *lblType = new wxStaticText(this, -1, std2wx(port->getBBTKType()),wxDefaultPosition,wxSize(230,20));
+                       wxTextCtrl *txtValue = new wxTextCtrl(this, -1, _T(""),wxDefaultPosition,wxSize(90,25));
 
                        if(port->getValue()!="")
                        {
@@ -99,9 +101,9 @@ namespace bbtk
                        _lstTypes.push_back(lblType);
                        _lstValues.push_back(txtValue);
 
-                       sizer->Add(lblName,0,wxEXPAND,5);
-                       sizer->Add(lblType,0,wxCENTRE|wxEXPAND,5);
-                       sizer->Add(txtValue,0,wxEXPAND,5);
+                       sizer->Add(lblName,1,wxEXPAND,5);
+                       sizer->Add(lblType,1,wxCENTRE|wxEXPAND,5);
+                       sizer->Add(txtValue,1,wxEXPAND,5);
                }
                
                wxBoxSizer *buts = new wxBoxSizer(wxHORIZONTAL);
@@ -115,10 +117,11 @@ namespace bbtk
                buts->Add(okButton,0,wxCENTRE|wxEXPAND,5);
                buts->Add(closeButton,0,wxCENTRE|wxEXPAND,5);
 
-               sizerDialog->Add(text,0,wxALIGN_TOP,10);
-               sizerDialog->AddSpacer(5);
-               sizerDialog->Add(sizer,0,wxALIGN_CENTER,10);
-               sizerDialog->Add(buts,0,wxALIGN_CENTER | wxTOP | wxBOTTOM,10);
+               sizerDialog->AddSpacer(10);
+               sizerDialog->Add(text,0,wxALIGN_TOP|wxALIGN_CENTER);
+               sizerDialog->AddSpacer(15);
+               sizerDialog->Add(sizer,0,wxALIGN_CENTER);
+               sizerDialog->Add(buts,0,wxALIGN_CENTER | wxTOP | wxBOTTOM);
 
                SetSizer(sizerDialog);