]> Creatis software - creaImageIO.git/blob - src/creaImageIOWxAttributeSelectionPanel.h
5700fd52553fe09b8a289095c38fc34dc48d8e52
[creaImageIO.git] / src / creaImageIOWxAttributeSelectionPanel.h
1 #ifndef __creaImageIOWxAttributeSelectionPanel_h_INCLUDED__
2 #define __creaImageIOWxAttributeSelectionPanel_h_INCLUDED__
3
4 #ifdef USE_WXWIDGETS
5 #include <creaWx.h>
6 #include <creaImageIOWxGimmickView.h>
7 #include <wx/listctrl.h>
8
9
10 namespace creaImageIO
11 {
12   /**
13    * \ingroup GUI
14    */
15   //=====================================================================
16  //=====================================================================
17   class WxAttributeSelectionPanel : public wxPanel
18   {
19   public:
20     WxAttributeSelectionPanel();    
21         WxAttributeSelectionPanel(wxWindow *parent, 
22                 wxDialog* dial,
23                 WxGimmickView* view,
24                 std::vector<std::string> sAtts,
25             std::vector<std::string> nsAtts,
26                 int numLev);
27     
28     ~WxAttributeSelectionPanel();
29         ///Saves the configuration
30          void OnSaveConfig(wxCommandEvent& event);
31          ///Changes items from shown to notShown
32          void OnAdd(wxCommandEvent& event);
33          ///Changes items from notShown to shown
34          void OnRemove(wxCommandEvent& event);
35          void OnComboChange(wxCommandEvent& event);
36   
37
38   private :
39           ///Loads the information on the vectors onto the lists
40            void LoadCtrls();
41           std::vector<std::string> shownA;
42           std::vector<std::string> notShownA;
43           wxComboBox* levels;
44           wxListCtrl* shownAtts;
45           wxListCtrl* notShownAtts;
46         wxDialog* dialog;
47         WxGimmickView* mView;
48
49         
50         DECLARE_EVENT_TABLE()
51
52   }; // class WxAttributeSelectionPanel
53   //=====================================================================
54
55   
56 } // EO namespace creaImageIO
57
58
59 #endif // USE_WIDGETS
60 // EOF
61 #endif
62