]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxGimmickTools.cpp
fix _T(...
[creaImageIO.git] / src2 / creaImageIOWxGimmickTools.cpp
index 44b6390c9e1241c812ae14afe5fb3b3b3aa47638..58728d67836b7fc4e308e393294609637aa088fa 100644 (file)
@@ -6,7 +6,7 @@ namespace creaImageIO
        ** Begin of the threshold panel
        **/
        WxGimmickTools::WxGimmickTools(wxWindow* parent, wxString mCurrentDirectory)
-       : wxPanel(parent, -1, wxDefaultPosition, wxSize(300,200), wxBORDER_SUNKEN)
+       : wxPanel(parent, -1, wxDefaultPosition, wxSize(300,250), wxBORDER_SUNKEN)
        {
                _currentDir = mCurrentDirectory;
                _addFiles = true;
@@ -24,18 +24,25 @@ namespace creaImageIO
                Connect( outputDir->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxGimmickTools::onOutputDir );
                Connect( _addCheckBox->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED, (wxObjectEventFunction) &WxGimmickTools::onAddToDatabase );
 
-               wxFlexGridSizer * sizer         = new wxFlexGridSizer(2,5);
-               sizer -> Add( _inputPath, 1, wxGROW, 10 );
-               sizer -> Add( inputDir, 1, wxGROW, 10 );
-               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW, 10 );
-               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW, 10 );
-               sizer -> Add( _outputPath, 1, wxGROW, 10 );
-               sizer -> Add( outputDir, 1, wxGROW, 10 );
-               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW, 10 );
-               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW, 10 );
-               sizer -> Add( _addCheckBox, 1, wxGROW, 10 );
+               wxFlexGridSizer * textSizer     = new wxFlexGridSizer(1,2);
+               textSizer -> Add( new wxStaticText(this,-1,_T("Transform a Bruker image into Dicom format."))  , 1, wxGROW );
+               textSizer -> Add( new wxStaticText(this,-1,_T("If checkbox is selected images will be loaded into the DB."))  , 1, wxGROW );
 
-               this->SetSizer( sizer );
+               wxFlexGridSizer * sizer = new wxFlexGridSizer(2,5);
+               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW );
+               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW );
+               sizer -> Add( _inputPath, 1, wxGROW );
+               sizer -> Add( inputDir, 1, wxGROW );
+               sizer -> Add( _outputPath, 1, wxGROW );
+               sizer -> Add( outputDir, 1, wxGROW );
+               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW );
+               sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW );
+               sizer -> Add( _addCheckBox, 1, wxGROW );
+
+               wxFlexGridSizer * topSizer      = new wxFlexGridSizer(1,2);
+               topSizer -> Add( textSizer, 1, wxGROW );
+               topSizer -> Add( sizer, 1, wxGROW );
+               this->SetSizer( topSizer );
                this->SetAutoLayout( true );
                this->Layout();
        }