WIP: bugfixed tech controller, more refactoring

Resolved the dependencies between MainWindow, TechController
and MacroController somewhat more.

* The macro controller now listens to the tech controller
  for the active technology
* The tech controller has more responsibility now
* Some functionality has been taken out of the MainWindow
  and put into the controller's implementation
This commit is contained in:
Matthias Koefferlein
2017-04-15 17:51:04 +02:00
parent 5b422440a1
commit e6f696b8dc
14 changed files with 335 additions and 244 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ PluginDeclaration::init_menu ()
m_mouse_mode_action.qaction ()->setData (QVariant (id ()));
menu.insert_item ("edit_menu.mode_menu.end", name, m_mouse_mode_action);
menu.insert_item ("@toolbar.end", name, m_mouse_mode_action);
menu.insert_item ("@toolbar.end_modes", name, m_mouse_mode_action);
gtf::action_connect (m_mouse_mode_action.qaction (), SIGNAL (triggered ()), this, SLOT (mode_triggered ()));