38 : wxPanel(parent, -1, wxDefaultPosition, wxSize(300,250), wxBORDER_SUNKEN)
44 _inputPath =
new wxTextCtrl(
this, wxID_ANY, _T(
""), wxDefaultPosition, wxSize(400,30));
45 _outputPath =
new wxTextCtrl(
this, wxID_ANY, _T(
""), wxDefaultPosition, wxSize(400,30));
46 _addCheckBox =
new wxCheckBox(
this, -1, _T(
"Add Images to Database?") );
47 _mhdCheckBox =
new wxCheckBox(
this, -1, _T(
"Convert to MHD?") );
51 wxButton *inputDir =
new wxButton(
this, wxID_ANY,_T(
"Input Directory"), wxDefaultPosition, wxSize(140,30) );
52 wxButton *outputDir =
new wxButton(
this, wxID_ANY,_T(
"Output Directory"), wxDefaultPosition, wxSize(140,30) );
59 wxFlexGridSizer *textSizer =
new wxFlexGridSizer(1,2);
60 textSizer->Add(
new wxStaticText(
this, -1, _T(
"Transform a Bruker 'Serie'/'Study'/'set of Studies' directory into Dicom / MHD format.")), 1, wxGROW );
61 textSizer->Add(
new wxStaticText(
this, -1, _T(
"If checkbox is selected images will be loaded into the DB.")), 1, wxGROW );
63 wxFlexGridSizer *sizer =
new wxFlexGridSizer(2,5);
64 sizer->Add(
new wxStaticText(
this, -1, _T(
" ")), 1, wxGROW );
65 sizer->Add(
new wxStaticText(
this, -1, _T(
" ")), 1, wxGROW );
67 sizer->Add( inputDir, 1, wxGROW );
69 sizer->Add( outputDir, 1, wxGROW );
70 sizer->Add(
new wxStaticText(
this, -1, _T(
" ")), 1, wxGROW );
71 sizer->Add(
new wxStaticText(
this, -1, _T(
" ")), 1, wxGROW );
75 wxFlexGridSizer *topSizer =
new wxFlexGridSizer(1, 2);
76 topSizer->Add( textSizer, 1, wxGROW );
77 topSizer->Add( sizer, 1, wxGROW );
78 this->SetSizer( topSizer );
79 this->SetAutoLayout(
true );
110 long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST;
111 wxDirDialog* FD =
new wxDirDialog( 0, _T(
"Select the Input Directory"),
_currentDir, style);
113 if (FD->ShowModal()==wxID_OK)
121 long style = wxDD_DEFAULT_STYLE;
122 wxDirDialog* FD =
new wxDirDialog( 0, _T(
"Select the Output Directory"),
_currentDir, style);
124 if (FD->ShowModal()==wxID_OK)