I was basing on how the pallete box was implemented since both of them are dock widgets. I was more curious how to tie the labels to the enum. 
On stack overflow I found this: http://stackoverflow.com/questions/6281461/enum-to-string-c Would that be acceptable? This will not take into account the chosen language.