-
Notifications
You must be signed in to change notification settings - Fork 3
Signals interactions
Thomas Lécluse edited this page Jul 5, 2020
·
12 revisions
The Class in which the signal is defined is also the handler of the signal.
| Signal | Role | Slots | Emitter Class | Triggered Method |
|---|---|---|---|---|
| Controller . sig_add_tile | Creates a desk at a random (free) position | None | view_mainframe.CentralWidget | create_desk() |
| Controller . sig_quit | Saves the DataBase before quitting the app | None | view_mainframe.ViewMainFrame | do_quit() |
| Controller . sig_canvas_click | Performs a desk creation on the click position | tuple | view_canvas.ViewCanvas | add_desk() |
| ViewCanvas . sig_move_ended | Handles the move animations count for the UI update timer | None | view_canvas.ViewTile | on_move_ended() |
| ViewTile . sig_move_update | Updates the current position of a tile | int, int | view_canvas.MoveAnimationThread | __on_move_updated() |
| ViewTile . sig_thread_finished | Ends the animation operation | None | view_canvas.MoveAnimationThread | __process_animation_ended() |
| CentralWidget . sig_move_animation_ended | Enables the switch perspective button once the previous animation ends | None | view_canvas.ViewCanvas | on_move_animation_ended() |