From 467d5db94f473d376c62e55faae77b0981c6d908 Mon Sep 17 00:00:00 2001 From: corredor <> Date: Thu, 11 Oct 2012 08:29:41 +0000 Subject: [PATCH] Feature #1665 . RaC - Changes to display properties dialog in windows and a better icon --- data/icons/wxart_editProperties.xpm | 54 ++++++++----------- .../bbtkwxGUIEditorGraphicBBS.cxx | 5 +- .../wxDiagramPropertiesEditionDialog.cxx | 4 +- 3 files changed, 27 insertions(+), 36 deletions(-) diff --git a/data/icons/wxart_editProperties.xpm b/data/icons/wxart_editProperties.xpm index 2c54498..63c8ac4 100644 --- a/data/icons/wxart_editProperties.xpm +++ b/data/icons/wxart_editProperties.xpm @@ -1,36 +1,24 @@ /* XPM */ -static char * editProperties_xpm[] = { -"16 16 17 1", +static const char * editProperties_xpm[] = { +"16 16 5 1", " c None", ". c #383838", -"+ c #484848", -"@ c #888888", -"# c #121212", -"$ c #4C4C4C", -"% c #3A3A3A", -"& c #474747", -"* c #535353", -"= c #515151", -"- c #919191", -"; c #525252", -"> c #8F8F8F", -", c #8C8C8C", -"' c #4D4D4D", -") c #838383", -"! c #3C3C3C", -" .+@ ", -" ###$ ", -" ###% ", -" && ", -" *=== ", -" ##### ", -" #### ", -" ### ", -" ## ", -" ## ", -" ## ", -" ##= ", -" ##= ", -" -;##*>,@ ", -" #######') ", -" #######! "}; +"+ c #000000", +"@ c #121212", +"# c #525252", +" ", +" +++ ", +" +++ ", +" +++ ", +" ", +" @@@@ ", +" @@@@ ", +" @@ ", +" @@ ", +" @@ ", +" @@ ", +" @@ ", +" @@ ", +" @@ ", +" @@@@@@ ", +" @@@@@@ "}; diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index b7fb989..08a1b07 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -150,7 +150,10 @@ void wxGUIEditorGraphicBBS::initToolbar() { toolbar->AddTool(ID_ADDCOMPLEXBOXOUTPUT, _T("Add output to Complex box"), bmp_complexoutputport, wxNullBitmap, wxITEM_NORMAL, _T("Add output Complex box"), _T("Add output Complex box")); - toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT, false); + + // toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT, false); RaC2012 2nd HackFest + toolbar->EnableTool(ID_ADDCOMPLEXBOXINPUT, true); + toolbar->EnableTool(ID_ADDCOMPLEXBOXOUTPUT, false); toolbar->AddSeparator(); toolbar->AddTool(ID_UNDO, _T("Undo"),bmp_undo, wxNullBitmap, wxITEM_NORMAL, _T("Undo"), _T("Undo")); diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxDiagramPropertiesEditionDialog.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxDiagramPropertiesEditionDialog.cxx index 4351e4a..2fd33a7 100755 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxDiagramPropertiesEditionDialog.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxDiagramPropertiesEditionDialog.cxx @@ -40,7 +40,7 @@ namespace bbtk { //========================================================================= - wxDiagramPropertiesEditionDialog::wxDiagramPropertiesEditionDialog(wxGUIEditorGraphicBBS *parent):wxDialog(parent,wxID_ANY,_T("Diagram Properties"), wxDefaultPosition, wxSize(420, 340),wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) + wxDiagramPropertiesEditionDialog::wxDiagramPropertiesEditionDialog(wxGUIEditorGraphicBBS *parent):wxDialog(parent,wxID_ANY,_T("Diagram Properties"), wxDefaultPosition, wxSize(320, 280),wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) { _parent = parent; constructDiagramPropertiesEditionDialog(); @@ -115,7 +115,7 @@ namespace bbtk fgsizer->AddGrowableCol(1, 1); hbox->Add(fgsizer, 1, wxALL | wxEXPAND, 15); - panel->SetSizer(hbox); + panel->SetSizerAndFit(hbox); Centre(); ShowModal(); -- 2.45.0