]> Creatis software - creaImageIO.git/blob - src/creaImageIOWxEditFieldsPanel.h
b71736a833577705ac68d9ac685b4a7f28f7d2db
[creaImageIO.git] / src / creaImageIOWxEditFieldsPanel.h
1 #ifndef __creaImageIOWxEditFieldsPanel_h_INCLUDED__
2 #define __creaImageIOWxEditFieldsPanel_h_INCLUDED__
3
4 #ifdef USE_WXWIDGETS
5 #include <creaWx.h>
6 #include <creaImageIOWxGimmickView.h>
7
8
9 namespace creaImageIO
10 {
11   /**
12    * \ingroup GUI
13    */
14   //=====================================================================
15  //=====================================================================
16   class WxEditFieldsPanel : public wxPanel
17   {
18   public:
19     WxEditFieldsPanel();    
20         WxEditFieldsPanel(wxWindow *parent, 
21                 wxDialog* dial,
22                 WxGimmickView* view, 
23                 tree::Node* nod, 
24                 const std::vector<std::string> name,
25                 const std::vector<std::string> key);
26     
27     ~WxEditFieldsPanel();
28         ///Saves the configuration
29          void OnEdit(wxCommandEvent& event);
30          void OnComboChange(wxCommandEvent& event);
31
32   private :
33         tree::Node* node; 
34         std::vector<std::string> names;
35         std::vector<std::string> keys;
36         wxDialog* dialog;
37         WxGimmickView* mView;
38         wxComboBox* attributes;
39         wxStaticText * actualVal;
40         wxTextCtrl* newVal;
41
42         DECLARE_EVENT_TABLE()
43
44
45   }; // class WxEditFieldsPanel
46   //=====================================================================
47
48   
49 } // EO namespace creaImageIO
50
51
52 #endif // USE_WIDGETS
53 // EOF
54 #endif
55