]> Creatis software - creaImageIO.git/commitdiff
#3336 Bug Top window vtk9itk5wx3-macos
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Mon, 14 Apr 2025 11:45:54 +0000 (13:45 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Mon, 14 Apr 2025 11:45:54 +0000 (13:45 +0200)
bbtk/src/bbcreaImageIOImagesChooserDialogBox.xml
src/creaImageIOWxSimpleDlg.cpp

index d36ef10b7b3ca204d8059d62175936a6b6fcfa74..ddff9648cd2dc3aeaaa6a45b7216f557ae5d4cb1 100644 (file)
   <include>creaImageIOWxSimpleDlg.h</include>
   <!--========================================================================
     INPUTS/OUTPUTS DECLARATION -->
-
   <input name="Title" type="std::string" description="Title of the dialog"/>
-
-
-
   <typedef>
     <PRE>
       typedef std::vector<std::string> VectorStringType;</PRE>
   </typedef>
   <input name="DicomTags" type="VectorStringType" description="Dicom Tags (vector of Dicom tags ex: D0028_0030  D0020_0037)"/>
-
   <typedef>
     <PRE>
       typedef std::vector<vtkImageData*> OutputImagesType;</PRE>
   </typedef>
   <output name="Out" type="vtkImageData*" description="The selected image"/>
   <output name="OutImages" type="OutputImagesType" description="Vector of selected images"/>
-
   <typedef>
     <PRE>
       typedef std::map<std::string, std::string> MapInfoDicom;</PRE>
   </typedef>
-
   <typedef>
     <PRE>
       typedef std::vector< MapInfoDicom > VectorMapInfoDicom;</PRE>
   </typedef>
-
   <output name="DicomInfo" type="VectorMapInfoDicom" description="vector of maps of Dicom tags"/>
   <output name="FileName" type="std::string" description="Selected file name"/>
-  
   <!--========================================================================
     PROCESS section -->
-
   <process>
     <PRE>
-
-//    creaImageIO::WxSimpleDlg dlg(0,crea::std2wx(bbGetInputTitle()),"localdatabase_Descriptor.dscp","Local Database"); 
-    creaImageIO::WxSimpleDlg *dlg = new creaImageIO::WxSimpleDlg(0,crea::std2wx(bbGetInputTitle()),"localdatabase_Descriptor.dscp","Local Database"); 
+    creaImageIO::WxSimpleDlg *dlg = new creaImageIO::WxSimpleDlg(NULL,crea::std2wx(bbGetInputTitle()),"localdatabase_Descriptor.dscp","Local Database");
     dlg->SetAttrDicomTags( bbGetInputDicomTags() );
        dlg->ShowModal(); 
        bbSetOutputDicomInfo( dlg->getDicomInfoImagesSelected() );
index cf2911d73647e6d5b80817e2b314cc61301a8d86..798c8e8fd8b4955f780b0a811440797f375fa6ae 100644 (file)
@@ -37,7 +37,7 @@ namespace creaImageIO
                             wxString i_title,  
                             const std::string i_namedescp , 
                             const std::string i_namedb)
-    : wxDialog(parent, -1,_T("SELECT IMAGE(S)"), wxDefaultPosition, wxSize(500,300))
+    : wxDialog(parent, -1,_T("SELECT IMAGE(S)"), wxPoint(80,80), wxSize(500,300), wxSTAY_ON_TOP | wxCAPTION | wxCLOSE_BOX)
    {
                namedescp       = i_namedescp;
                namedb          = i_namedb;