Skip to content

Signals interactions

Thomas Lécluse edited this page Jul 11, 2020 · 12 revisions

Different signals description used to communicate within the app.

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()
Controller. sig_canvas_drag Performs a drag operation tuple, tuple view_canvas. ViewCanvas move_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 and the shuffle buttons once the previous animation ends lambda view_canvas. ViewCanvas emit:: sig_enable_animation_btns(True)
ViewMainToolBar. sig_enable_animation_btns Manages the enabled state of the switch perspective and the shuffle buttons bool view_mainframe. CentralWidget enable_animation_btns()
Controller. sig_course_changed Updates the displayed course int view_courses. ViewCoursePanel on_course_changed()
Controller. sig_create_course Creates a new course str view_add_widget. ViewAddWidget on_create_course()
Controller. sig_topic_changed Updates the topic of the selected course str view_board. ViewTopics on_topic_changed()
Controller. sig_student_group_changed Updates the list of students given the selected group str view_toolbar. ViewStudentListToolbar on_student_group_changed()
Controller. sig_student_selected To be determined int view_students. ViewStudentPanel on_student_selected()

Clone this wiki locally