]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxDumpPanel.cpp
\ No newline at end of file
[creaImageIO.git] / src2 / creaImageIOWxDumpPanel.cpp
index 6e0ae15e38f01aaef62f4671c9f28eb9ca39ba26..1d1a3765c037dca77de9dfdc6f813b7065cc3f62 100644 (file)
 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(){}
 
@@ -33,8 +33,8 @@ namespace creaImageIO
        ///////////////////////////////////////////////////
        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);
@@ -52,7 +52,6 @@ namespace creaImageIO
                          result += "\n";
                   }
                   DumpText->SetValue(crea::std2wx(result));
-
                }
        }
 
@@ -61,7 +60,7 @@ namespace creaImageIO
 ///////////////////////////////////////////////////
        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)
                {
@@ -74,10 +73,10 @@ namespace creaImageIO
                Close();
        }
 
-
 ////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////
 BEGIN_EVENT_TABLE(WxDumpPanel, wxDialog)
     EVT_TOOL(DUMP_SAVE_ID, WxDumpPanel::SaveInfos)
 END_EVENT_TABLE()
-}
\ No newline at end of file
+}
+