/* 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",
+" ",
+" +++ ",
+" +++ ",
+" +++ ",
+" ",
+" @@@@ ",
+" @@@@ ",
+" @@ ",
+" @@ ",
+" @@ ",
+" @@ ",
+" @@ ",
+" @@ ",
+" @@ ",
+" @@@@@@ ",
+" @@@@@@ "};
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"));
{
//=========================================================================
- 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();
fgsizer->AddGrowableCol(1, 1);
hbox->Add(fgsizer, 1, wxALL | wxEXPAND, 15);
- panel->SetSizer(hbox);
+ panel->SetSizerAndFit(hbox);
Centre();
ShowModal();