Fix opening DockWidget views
Fix opening DockWidget views

The dock widget opening system had several issues,
1 - it didn't deal with translations
2 - it didn't deal with accelerator keys
3 - it crashed if passed a invalid string (like when using KDE, happened
for all options)

This new way of using the views are slightly different:
1 - no more string comparissons, use integer comparissons (much faster)
2 - do not use a convoluted if/else - switch simplify.
3 - do not create two different static variable strings for the same stuff
4 - create an enum / an vector of strings (the enums bein an index of it)
to acess the correct view.

The overall code is clear than the old one, and faster.
the only point where the code isn't as clear is on the call to
showDockWidgetAction, since we passed a string that had the
name of the Widget, but now the action only holds the index
for the name in the string vector, I first need to get the
correct string and send it.

Tested here closing and reopening the app and verifying that
the dock widgets that where left open are still open when
reopening the application.

Signed-off-by: Tomaz Canabrava <ccb3839ae5be3c29427fdefd1acdf43769f66bb0@intel.com>

mihadyuk/qgroundcontrol,kd0aij/qgroundcontrol,ethz-asl/qgc_asl,catch-twenty-two/qgroundcontrol,Hunter522/qgroundcontrol,CornerOfSkyline/qgroundcontrol,CornerOfSkyline/qgroundcontrol,catch-twenty-two/qgroundcontrol,RedoXyde/PX4_qGCS,kd0aij/qgroundcontrol,catch-twenty-two/qgroundcontrol,ethz-asl/qgc_asl,mihadyuk/qgroundcontrol,mihadyuk/qgroundcontrol,RedoXyde/PX4_qGCS,kd0aij/qgroundcontrol,catch-twenty-two/qgroundcontrol,CornerOfSkyline/qgroundcontrol,RedoXyde/PX4_qGCS,remspoor/qgroundcontrol,cfelipesouza/qgroundcontrol,remspoor/qgroundcontrol,cfelipesouza/qgroundcontrol,Hunter522/qgroundcontrol,Hunter522/qgroundcontrol,scott-eddy/qgroundcontrol,kd0aij/qgroundcontrol,Hunter522/qgroundcontrol,catch-twenty-two/qgroundcontrol,CornerOfSkyline/qgroundcontrol,scott-eddy/qgroundcontrol,remspoor/qgroundcontrol,RedoXyde/PX4_qGCS,remspoor/qgroundcontrol,CornerOfSkyline/qgroundcontrol,scott-eddy/qgroundcontrol,mihadyuk/qgroundcontrol,Hunter522/qgroundcontrol,cfelipesouza/qgroundcontrol,cfelipesouza/qgroundcontrol,CornerOfSkyline/qgroundcontrol,remspoor/qgroundcontrol,ethz-asl/qgc_asl,kd0aij/qgroundcontrol,kd0aij/qgroundcontrol,mihadyuk/qgroundcontrol,scott-eddy/qgroundcontrol,scott-eddy/qgroundcontrol,ethz-asl/qgc_asl,ethz-asl/qgc_asl,cfelipesouza/qgroundcontrol,remspoor/qgroundcontrol,RedoXyde/PX4_qGCS,mihadyuk/qgroundcontrol,Hunter522/qgroundcontrol,RedoXyde/PX4_qGCS,catch-twenty-two/qgroundcontrol,scott-eddy/qgroundcontrol,cfelipesouza/qgroundcontrol