29 #ifndef __creaImageIOWxDescriptorPanel_h_INCLUDED__
30 #define __creaImageIOWxDescriptorPanel_h_INCLUDED__
38 #include <wx/listctrl.h>
39 #include <wx/statline.h>
42 #define ID_DESCRIPTOR 1500
43 #define ID_LEVEL_CTRL ID_DESCRIPTOR+1
44 #define ID_LEVEL_ADD ID_DESCRIPTOR+2
45 #define ID_GR_CTRL ID_DESCRIPTOR+3
46 #define ID_EL_CTRL ID_DESCRIPTOR+4
47 #define ID_NAME_CTRL ID_DESCRIPTOR+5
48 #define ID_ATTRIBUTE_CTRL ID_DESCRIPTOR+6
49 #define ID_ATTRIBUTE_ADD ID_DESCRIPTOR+7
50 #define ID_REMOVE_ADD ID_DESCRIPTOR+8
51 #define ID_DSCP_APPLY ID_DESCRIPTOR+9
89 void onAddAttribute(
const std::string &att,
const std::string &name_att, std::string level =
"");
101 void OnRemove(wxCommandEvent& event);
104 void OnNew(wxCommandEvent& event);
107 void OnLoad(wxCommandEvent& event);
110 void OnOK(wxCommandEvent& event);
113 void OnApply(wxCommandEvent& event);
116 void OnCancel(wxCommandEvent& event);
122 bool addLevel(
const std::string &name);
125 bool addAtribute(
const std::string &level,
const std::string &name);
128 bool RemoveAttribute(
const std::string &level,
const std::string &name);
164 std::map<std::string, std::vector<std::string> >
DscpTree;
167 std::map<std::string, std::string>
ownatt;
182 #endif // USE_WIDGETS