namespace creaImageIO
{
// CTor
- WxDumpPanel::WxDumpPanel(wxWindow *parent, std::string i_filename)
+ WxDumpPanel::WxDumpPanel(wxWindow *parent, std::string i_filename)
: wxDialog(parent, -1,_T("DICOM TAGS"), wxDefaultPosition, wxSize(550,580)), filename(i_filename)
{
- int size = 16;
- mIcon = new wxImageList(size,size,true);
- mIcon->Add(wxBitmap(wxBitmap(wxIcon(save_xpm)).ConvertToImage().Rescale(size, size)));
- wxToolBar *mToolBar = new wxToolBar(this,-1,wxDefaultPosition,wxDefaultSize);
- mToolBar->AddTool( DUMP_SAVE_ID,_T("Save"), mIcon->GetBitmap(0), _T("Save Dicom Tags in text file"));
- mToolBar->Realize();
- DumpText = new wxTextCtrl( this, wxID_ANY,_T(""), wxPoint(5,30), wxSize(520,510), wxTE_READONLY| wxMac | wxTE_MULTILINE | wxTE_RICH );
- Layout();
- Print();
+ int size = 16;
+ mIcon = new wxImageList(size,size,true);
+ mIcon->Add(wxBitmap(wxBitmap(wxIcon(save_xpm)).ConvertToImage().Rescale(size, size)));
+ wxToolBar *mToolBar = new wxToolBar(this,-1,wxDefaultPosition,wxDefaultSize);
+ mToolBar->AddTool( DUMP_SAVE_ID,_T("Save"), mIcon->GetBitmap(0), _T("Save Dicom Tags in text file"));
+ mToolBar->Realize();
+ DumpText = new wxTextCtrl( this, wxID_ANY,_T(""), wxPoint(5,30), wxSize(520,510), wxTE_READONLY| wxMac | wxTE_MULTILINE | wxTE_RICH );
+ Layout();
+ Print();
}
-
+
// DTor
WxDumpPanel::~WxDumpPanel(){}
///////////////////////////////////////////////////
void WxDumpPanel::Print()
{
- std::stringstream os;
- if ( !filename.empty()) // ====== Deal with a single file ======
+ std::stringstream os;
+ if ( !filename.empty()) // ====== Deal with a single file ======
{
GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
f->SetLoadMode(GDCM_NAME_SPACE::LD_ALL);
result += "\n";
}
DumpText->SetValue(crea::std2wx(result));
-
}
}
///////////////////////////////////////////////////
void WxDumpPanel::SaveInfos(wxCommandEvent& event)
{
- wxFileDialog* FD = new wxFileDialog( 0,_T("Select file"), _T(""), _T(""),
+ wxFileDialog* FD = new wxFileDialog( 0,_T("Select file"), _T(""), _T(""),
crea::std2wx("*.txt"), wxOPEN, wxDefaultPosition);
if (FD->ShowModal()==wxID_OK)
{
Close();
}
-
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
BEGIN_EVENT_TABLE(WxDumpPanel, wxDialog)
EVT_TOOL(DUMP_SAVE_ID, WxDumpPanel::SaveInfos)
END_EVENT_TABLE()
-}
\ No newline at end of file
+}
+
namespace creaImageIO
{
// CTor
- WxExportDlg::WxExportDlg(wxWindow *parent, const std::vector<std::string> storages)
+ WxExportDlg::WxExportDlg(wxWindow *parent, const std::vector<std::string> storages)
: wxDialog(parent, -1,_T("EXPORT FILES TO STORAGE"), wxDefaultPosition, wxSize(260,150))
{
int size = 16;
WxExportDlg::~WxExportDlg(){}
-
void WxExportDlg::OnOk(wxCommandEvent &event)
{
m_name = crea::wx2std(ExportCombo->GetValue());
Close();
SetReturnCode(ID_EXPORT_OK);
- }
-
-
-}
\ No newline at end of file
+ }
+}