]> Creatis software - bbtkGEditor.git/commitdiff
New Execute icon
authorcorredor <>
Mon, 3 May 2010 09:15:38 +0000 (09:15 +0000)
committercorredor <>
Mon, 3 May 2010 09:15:38 +0000 (09:15 +0000)
data/icons/wxart_run.xpm [new file with mode: 0644]
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.cxx

diff --git a/data/icons/wxart_run.xpm b/data/icons/wxart_run.xpm
new file mode 100644 (file)
index 0000000..0f9b6f5
--- /dev/null
@@ -0,0 +1,20 @@
+/* XPM */
+static const char * run_xpm[] = {
+"15 13 3 1",
+"      c None",
+".     c #000000",
+"+     c #25A40F",
+" ..            ",
+" .+.           ",
+" .+++.         ",
+" .+++++.       ",
+" .+++++++.     ",
+" .+++++++++.   ",
+" .++++++++++.  ",
+" .+++++++++.   ",
+" .+++++++.     ",
+" .+++++.       ",
+" .+++.         ",
+" .+.           ",
+" ..            ",
+};
index 77caf4593a5f7a53a3ad334f4c5128d4c580b698..ea40403b04a47ffc5115bd07cbde665ae21c743f 100644 (file)
@@ -87,12 +87,13 @@ namespace bbtk
        {       
                //std::string filename= _dataDir + "/data/icons/wxart_new.xpm";   
                wxBitmap bmp_new(new_xpm);
+               wxBitmap bmp_run(run_xpm);
 
                wxToolBar  *_toolbar = new wxToolBar(this, wxID_ANY);
 
                //Adds a tool btn to the toolbar
                _toolbar->AddTool(1000,_T("New"),bmp_new, wxNullBitmap, wxITEM_NORMAL,_T("New tab"), _T("Create a new panel tab"));
-               _toolbar->AddTool(1001,_T("Execute"),bmp_new, wxNullBitmap, wxITEM_NORMAL,_T("Execute actual diagram"), _T("Execute actual diagram"));
+               _toolbar->AddTool(1001,_T("Execute"),bmp_run, wxNullBitmap, wxITEM_NORMAL,_T("Execute actual diagram"), _T("Execute actual diagram"));
 
                _toolbar->SetMargins( 2, 2 );
                _toolbar->Realize();
index 8fe150684d72792a1af798c0a0cbf4954499e88b..80d02cb452a70e7968cfe7477dd81b03525e7922 100644 (file)
@@ -49,6 +49,7 @@
 #include "wxVtkSceneManager.h"
 //#include "C:\RaC\CREATIS\bbtkGEditor\data\icons\wxart_new.xpm" // JPR
 #include "wxart_new.xpm" // JPR
+#include "wxart_run.xpm"
 
 //Includes creaMaracasVisu
 
index 94289132d605eee4826f25cf1947e7f358ffbeed..87f95d3af4f077391f04633f281e8768c7d4574f 100644 (file)
@@ -40,7 +40,7 @@ namespace bbtk
 {
        //=========================================================================
 
-       wxBlackBoxEditionDialog::wxBlackBoxEditionDialog(wxGUIEditorGraphicBBS *parent,GBlackBoxModel *model):wxDialog(parent,wxID_ANY,_T(""), wxDefaultPosition, wxSize(480, 640))
+       wxBlackBoxEditionDialog::wxBlackBoxEditionDialog(wxGUIEditorGraphicBBS *parent,GBlackBoxModel *model):wxDialog(parent,wxID_ANY,_T(""), wxDefaultPosition, wxSize(480, 640),wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
        {
                _model=model;
                std::string title("BlackBox Editing - Name:");
@@ -79,7 +79,7 @@ namespace bbtk
                for(int i = 0;i<lstInputs.size();i++)
                {
                        GPortModel* port = lstInputs[i];
-                       wxStaticText *lblName = new wxStaticText(this, -1, std2wx(port->getBBTKName()),wxDefaultPosition,wxSize(100,30));
+                       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));