From 1b304ebdcfbe1c3bcd0a060ee3d193d81a8047f0 Mon Sep 17 00:00:00 2001 From: corredor <> Date: Mon, 3 May 2010 09:43:47 +0000 Subject: [PATCH] A little change in Editing dialog appearance --- .../wxBlackBoxEditionDialog.cxx | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx index 87f95d3..b2c4701 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx @@ -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 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;igetBBTKName()),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); -- 2.47.1