src/widget/main_window/topbar/left.c File Reference src/widget/main_window/topbar/left.c Topbar left design. #include "../../../../include/base.h"#include "../../../../include/signal.h"#include "../../../../include/widget.h"#include "../../../../include/fsm.h"Include dependency graph for left.c: Macros #define WANT_TO_START_ON_ANOTHER_PAGE   0 default == SYNTH Functions const char * widget_get_btt_label_synth () const char * widget_get_btt_label_state () const char * widget_get_btt_label_rules () const char * widget_get_btt_label_data () void window_design_topbar_left (GtkWidget *header_bar)
Detailed Description Topbar left design. Warning THE LABELS OF THE FOUR BUTTONS USED TO SELECT A PAGE IN THE MAIN WINDOW MUST ONLY BE DEFINED ONCE IN THE PROGRAM (in src/main_window/topbar/left/) AND ONLY USING ONE OF THE FOUR 'get_btt_label_' FUNCTIONS DEFINED IN THIS FILE
Function Documentation
widget_get_btt_label_data() widget_get_btt_label_dataleft.c left.cwidget_get_btt_label_data const char * widget_get_btt_label_data ( ) Returns "data"
widget_get_btt_label_rules() widget_get_btt_label_rulesleft.c left.cwidget_get_btt_label_rules const char * widget_get_btt_label_rules ( ) Returns "rules"
widget_get_btt_label_state() widget_get_btt_label_stateleft.c left.cwidget_get_btt_label_state const char * widget_get_btt_label_state ( ) Returns "state"
widget_get_btt_label_synth() widget_get_btt_label_synthleft.c left.cwidget_get_btt_label_synth const char * widget_get_btt_label_synth ( ) Returns "synth"
window_design_topbar_left() window_design_topbar_leftleft.c left.cwindow_design_topbar_left void window_design_topbar_left (GtkWidget * header_bar) The rules page consists of two half-pages in a GtkPaned widget : on the left, widgets for controlling or editing all the rules. on the right, widgets for controlling or editing the selected rule. As this division is clear and constant, it is simpler to place these two half-pages at the same hierarchical level as the other full pages like "synth", "state" or "results". So there is no: "widget_get_rules_page()" function. Instead, the distribution: "all rules" versus "the selected one" is moved to the file: "signal". It is in the function: static void switch_state_rules_data() { switch (fsm_get_state_rules_data()) { ... case (RULES) : GtkPaned *widget_all_vs_selected_one = ... break; ... } Parameters *header_bar