** 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;
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();
}