creaImageIOWxAttributeSelectionPanel.h

Go to the documentation of this file.
00001 #ifndef __creaImageIOWxAttributeSelectionPanel_h_INCLUDED__
00002 #define __creaImageIOWxAttributeSelectionPanel_h_INCLUDED__
00003 
00004 #ifdef USE_WXWIDGETS
00005 #include <creaWx.h>
00006 #include <creaImageIOWxGimmickView.h>
00007 #include <wx/listctrl.h>
00008 
00009 
00010 namespace creaImageIO
00011 {
00015   //=====================================================================
00016  //=====================================================================
00017   class WxAttributeSelectionPanel : public wxPanel
00018   {
00019   public:
00020     WxAttributeSelectionPanel();    
00021         WxAttributeSelectionPanel(wxWindow *parent, 
00022                 wxDialog* dial,
00023                 WxGimmickView* view,
00024                 std::vector<std::string> sAtts,
00025             std::vector<std::string> nsAtts,
00026                 int numLev);
00027     
00028     ~WxAttributeSelectionPanel();
00030          void OnSaveConfig(wxCommandEvent& event);
00032          void OnAdd(wxCommandEvent& event);
00034          void OnRemove(wxCommandEvent& event);
00035          void OnComboChange(wxCommandEvent& event);
00036   
00037 
00038   private :
00040            void LoadCtrls();
00041           std::vector<std::string> shownA;
00042           std::vector<std::string> notShownA;
00043           wxComboBox* levels;
00044           wxListCtrl* shownAtts;
00045           wxListCtrl* notShownAtts;
00046         wxDialog* dialog;
00047         WxGimmickView* mView;
00048 
00049         
00050         DECLARE_EVENT_TABLE()
00051 
00052   }; // class WxAttributeSelectionPanel
00053   //=====================================================================
00054 
00055   
00056 } // EO namespace creaImageIO
00057 
00058 
00059 #endif // USE_WIDGETS
00060 // EOF
00061 #endif
00062