Small formatting
Major refactoring : the types of the GeneralObj are now a real enumeration

The type were an integer :
0 for states
1 for transitions
2 for loopback transitions
3 for text.

Those numbers being not self describing, it has been changed into a real
enumeration.

TODO : add isTransition(), isState() functions that will clearly reduce the
size of some conditions.
State editor finished.

The two tabs now changes the information of a stat