I just did a first commit in which I started to use Qt features for the new
The main new element is the new file src/mainGUI.ui that you can open with
QtDesigner. It contains a test search window and a list of QAction and
connections between some slots/signals.
For each simple action that we want to do from the GUI (like a
toggle/trigger or key activation), there should be a QAction defined in the
.ui file. This is very handy for several reasons:
- to each QAction is associated a key shortcut. This means that key
management is done at the same level as the GUI and can be entirely be done
- it also allows to synchronize GUI elements, e.g. when the user press the
'C' key for constellations, the matching QAction is toggled and thus other
buttons can also be toggled if they are connected to this signal.
- each action is connected only once in the C++ code with the corresponding
core slot (currently in StelMainWindow constructor), and then designing the
GUI can be done entirely in QtDesigner. (I don't speak here about the fancy
GUI, but about the complex Qt based config windows)
Now that this is here we can start redesigning the configuration windows.
I will continue trying to get rid of the old key management scheme.