]> Creatis software - creaImageIO.git/blob - src/creaImageIOWxExportDlg.h
63c6ed450eef9504cae041be9a30cf12f54f6b15
[creaImageIO.git] / src / creaImageIOWxExportDlg.h
1 #ifndef __creaImageIOWxExportDlg_h_INCLUDED__
2 #define __creaImageIOWxExportDlg_h_INCLUDED__
3
4 #ifdef USE_WXWIDGETS
5 #include <creaWx.h>
6 #include <creaImageIOWxGimmickView.h>
7
8 #define ID_EXPORTCOMBO_CTRL 1801
9 #define ID_EXPORT_OK            1802
10
11 namespace creaImageIO{
12         /**
13    * \ingroup GUI
14    */
15   //=====================================================================
16  //=====================================================================
17  /// Gimmick can handle multiple database with different organisations.
18  /// WxDescriptorPanel allows to select the storage to export data. 
19  ///
20         class WxExportDlg : public wxDialog
21         {
22         public:
23                 ///CTor
24                 WxExportDlg(wxWindow *parent, const std::vector<std::string> storages);
25                 ///DTor
26                 ~WxExportDlg();
27
28         /// Get selected storage
29         const std::string& GetStorage(){ return m_name;}
30
31         private:
32
33                 /// Storage ComboBox
34                 wxComboBox *ExportCombo;
35
36                 ///Validate selected storage
37                 void OnOk(wxCommandEvent &event);
38
39                 /// Storage name
40                 std::string m_name;
41
42         };
43 }
44 #endif // USE_WIDGETS
45 // EOF
46 #endif