rule geometry and algebra (at end) to enquire and edit
This commit is contained in:
parent
15470ea0a1
commit
3d5e5d2d69
|
@ -185,20 +185,21 @@ void *widget_get_rules_use(); // freq.c
|
||||||
// call: widget / rules / selected / dispatch.c / widget_get_rules_selected_pane()
|
// call: widget / rules / selected / dispatch.c / widget_get_rules_selected_pane()
|
||||||
// def: widget / rules / selected / dispatch.c
|
// def: widget / rules / selected / dispatch.c
|
||||||
// def: widget / rules / selected / edit.c
|
// def: widget / rules / selected / edit.c
|
||||||
// def: widget / rules / selected / analyse.c
|
// def: widget / rules / selected / enquire.c
|
||||||
|
|
||||||
void *widget_get_selected_rule(); // dispatch.c
|
void *widget_get_selected_rule(); // dispatch.c
|
||||||
void *widget_get_rule_edit(); // edit.c
|
void *widget_get_rule_edit(); // edit.c
|
||||||
void *widget_get_rule_analyse(); // analyse.c
|
void *widget_get_rule_enquire(); // enquire.c
|
||||||
|
|
||||||
// call: widget / rules / selected / dispatch.c / widget_get_selected_rule()
|
// call: widget / rules / selected / dispatch.c / widget_get_selected_rule()
|
||||||
// def: widget / rules / selected / text.c
|
// def: widget / rules / selected / text.c
|
||||||
// def: widget / rules / selected / image.c
|
// def: widget / rules / selected / image.c
|
||||||
|
|
||||||
void *widget_get_selected_rule_texts();
|
void *widget_get_selected_rule_algebra();
|
||||||
void *widget_get_selected_rule_images();
|
void *widget_get_selected_rule_geometry();
|
||||||
void *widget_get_btt_conditions_list();
|
void *widget_get_btt_conditions_list();
|
||||||
void *widget_get_btt_assignations_list();
|
void *widget_get_btt_assignations_list();
|
||||||
|
void *widget_get_btt_rule_identity();
|
||||||
|
|
||||||
// def: widget / rules / selected / wip_menu.c
|
// def: widget / rules / selected / wip_menu.c
|
||||||
GtkEntry widget_set_one_item_text_in_list (GtkWidget *list_box, const char *text);
|
GtkEntry widget_set_one_item_text_in_list (GtkWidget *list_box, const char *text);
|
||||||
|
|
|
@ -32,58 +32,10 @@
|
||||||
#include "../../../../include/signal.h"
|
#include "../../../../include/signal.h"
|
||||||
|
|
||||||
|
|
||||||
static void *get_btt_assign_list()
|
void *widget_get_selected_rule_algebra()
|
||||||
{
|
|
||||||
GtkWidget* list_box = gtk_list_box_new();
|
|
||||||
GtkWidget *label_A = GTK_WIDGET (gtk_label_new("value (0,0,1,3) == 0)")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_A);
|
|
||||||
GtkWidget *label_B = GTK_WIDGET (gtk_label_new("value (0,1,1,0) == 2)")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_B);
|
|
||||||
GtkWidget *label_C = GTK_WIDGET (gtk_label_new("value (0,1,1,2) == 1)")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_C);
|
|
||||||
GtkWidget *label_D = GTK_WIDGET (gtk_label_new("value (1,0,1,2) == 0)")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_D);
|
|
||||||
GtkWidget *label_E = GTK_WIDGET (gtk_label_new("value (1,1,1,0) == 2)")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_E);
|
|
||||||
|
|
||||||
GtkWidget *pop = gtk_popover_new ();
|
|
||||||
gtk_popover_set_child (GTK_POPOVER (pop), list_box);
|
|
||||||
gtk_popover_present (GTK_POPOVER (pop));
|
|
||||||
gtk_popover_set_autohide (GTK_POPOVER (pop), FALSE);
|
|
||||||
gtk_popover_set_cascade_popdown (GTK_POPOVER (pop), TRUE);
|
|
||||||
|
|
||||||
GtkMenuButton *actions = GTK_MENU_BUTTON (gtk_menu_button_new ());
|
|
||||||
gtk_menu_button_set_label (GTK_MENU_BUTTON (actions), "actions");
|
|
||||||
gtk_menu_button_set_always_show_arrow (actions, TRUE);
|
|
||||||
gtk_menu_button_set_popover (actions, GTK_WIDGET (pop));
|
|
||||||
// gtk_widget_set_halign (GTK_WIDGET (actions), GTK_ALIGN_START);
|
|
||||||
|
|
||||||
return actions;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void *widget_get_btt_rule_identity()
|
|
||||||
{
|
|
||||||
GtkWidget* list_box = gtk_list_box_new();
|
|
||||||
GtkWidget *label_A = GTK_WIDGET (gtk_label_new("AMP > ADP")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_A);
|
|
||||||
GtkWidget *label_B = GTK_WIDGET (gtk_label_new("AMP-activated protein kinase")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_B);
|
|
||||||
GtkWidget *label_C = GTK_WIDGET (gtk_label_new("date")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_C);
|
|
||||||
GtkWidget *label_D = GTK_WIDGET (gtk_label_new("author")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_D);
|
|
||||||
GtkWidget *label_E = GTK_WIDGET (gtk_label_new("status, activity")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_E);
|
|
||||||
|
|
||||||
GtkWidget *pop = gtk_popover_new ();
|
|
||||||
gtk_popover_set_child (GTK_POPOVER (pop), list_box);
|
|
||||||
gtk_popover_present (GTK_POPOVER (pop));
|
|
||||||
gtk_popover_set_autohide (GTK_POPOVER (pop), FALSE);
|
|
||||||
gtk_popover_set_cascade_popdown (GTK_POPOVER (pop), TRUE);
|
|
||||||
|
|
||||||
GtkMenuButton *identity = GTK_MENU_BUTTON (gtk_menu_button_new ());
|
|
||||||
gtk_menu_button_set_label (GTK_MENU_BUTTON (identity), "identity");
|
|
||||||
gtk_menu_button_set_always_show_arrow (identity, TRUE);
|
|
||||||
gtk_menu_button_set_popover (identity, GTK_WIDGET (pop));
|
|
||||||
// gtk_widget_set_halign (GTK_WIDGET (identity), GTK_ALIGN_START);
|
|
||||||
|
|
||||||
return identity;
|
|
||||||
}
|
|
||||||
|
|
||||||
void *widget_get_selected_rule_texts()
|
|
||||||
{
|
{
|
||||||
GtkWidget *label_ad_hoc = GTK_WIDGET (gtk_label_new (\
|
GtkWidget *label_ad_hoc = GTK_WIDGET (gtk_label_new (\
|
||||||
" ")); // ad hoc (provisoire)
|
" ")); // (provisoire)
|
||||||
GtkBox *conditions_actions_names_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
|
GtkBox *conditions_actions_names_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
|
||||||
GtkLayoutManager *conditions_actions_identity_layout = gtk_box_layout_new (GTK_ORIENTATION_HORIZONTAL);
|
GtkLayoutManager *conditions_actions_identity_layout = gtk_box_layout_new (GTK_ORIENTATION_HORIZONTAL);
|
||||||
gtk_widget_set_layout_manager (GTK_WIDGET (conditions_actions_names_box),
|
gtk_widget_set_layout_manager (GTK_WIDGET (conditions_actions_names_box),
|
|
@ -35,9 +35,9 @@
|
||||||
void *widget_get_selected_rule() {
|
void *widget_get_selected_rule() {
|
||||||
|
|
||||||
GtkBox *images_and_texts = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
GtkBox *images_and_texts = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
||||||
gtk_box_append (images_and_texts, GTK_WIDGET (widget_get_selected_rule_images ()));
|
gtk_box_append (images_and_texts, GTK_WIDGET (widget_get_selected_rule_geometry ()));
|
||||||
gtk_box_append (images_and_texts, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
gtk_box_append (images_and_texts, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
||||||
gtk_box_append (images_and_texts, GTK_WIDGET (widget_get_selected_rule_texts ()));
|
gtk_box_append (images_and_texts, GTK_WIDGET (widget_get_selected_rule_algebra ()));
|
||||||
|
|
||||||
return GTK_WIDGET (images_and_texts);
|
return GTK_WIDGET (images_and_texts);
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ void *widget_get_rules_selected_pane()
|
||||||
if (fsm_get_exec_edit()) gtk_paned_set_end_child (rule_itself_vs_explore_edit_pane,
|
if (fsm_get_exec_edit()) gtk_paned_set_end_child (rule_itself_vs_explore_edit_pane,
|
||||||
GTK_WIDGET (widget_get_rule_edit()));
|
GTK_WIDGET (widget_get_rule_edit()));
|
||||||
else gtk_paned_set_end_child (rule_itself_vs_explore_edit_pane,
|
else gtk_paned_set_end_child (rule_itself_vs_explore_edit_pane,
|
||||||
GTK_WIDGET (widget_get_rule_analyse()));
|
GTK_WIDGET (widget_get_rule_enquire()));
|
||||||
gtk_paned_set_position (rule_itself_vs_explore_edit_pane, 640); // WARNING : c'est une position "absolue"
|
gtk_paned_set_position (rule_itself_vs_explore_edit_pane, 640); // WARNING : c'est une position "absolue"
|
||||||
gtk_paned_set_wide_handle (rule_itself_vs_explore_edit_pane, TRUE);
|
gtk_paned_set_wide_handle (rule_itself_vs_explore_edit_pane, TRUE);
|
||||||
gtk_paned_set_shrink_start_child (rule_itself_vs_explore_edit_pane, FALSE);
|
gtk_paned_set_shrink_start_child (rule_itself_vs_explore_edit_pane, FALSE);
|
||||||
|
|
|
@ -36,6 +36,6 @@
|
||||||
void *widget_get_rule_edit()
|
void *widget_get_rule_edit()
|
||||||
{
|
{
|
||||||
return gtk_label_new
|
return gtk_label_new
|
||||||
("___________\n RULE EDIT\n controls\n''''''''''''''''''''");
|
("_______________\n RULE EDITION\n controls\n''''''''''''''''''''''''''");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,10 +33,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void *widget_get_rule_analyse()
|
void *widget_get_rule_enquire()
|
||||||
{
|
{
|
||||||
return gtk_label_new (" ______________________\n RULE INVESTIGATION\n\
|
return gtk_label_new (" ________________\n RULE INQUIRY\n\
|
||||||
tools\n '''''''''''''''''''''''''''''''''''''''");
|
tools\n '''''''''''''''''''''''''''");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ static GtkBox *rec_ZOOM_box()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void *widget_get_selected_rule_images() {
|
void *widget_get_selected_rule_geometry() {
|
||||||
|
|
||||||
// - - - - - - - - - - - - C A M E R A - - - - - - - - - - - - - - //
|
// - - - - - - - - - - - - C A M E R A - - - - - - - - - - - - - - //
|
||||||
GtkBox *right_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
GtkBox *right_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
|
@ -108,6 +108,30 @@ void *widget_get_btt_assignations_list()
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void *widget_get_btt_rule_identity()
|
||||||
|
{
|
||||||
|
GtkWidget* list_box = gtk_list_box_new();
|
||||||
|
GtkWidget *label_A = GTK_WIDGET (gtk_label_new("AMP > ADP")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_A);
|
||||||
|
GtkWidget *label_B = GTK_WIDGET (gtk_label_new("AMP-activated protein kinase")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_B);
|
||||||
|
GtkWidget *label_C = GTK_WIDGET (gtk_label_new("date")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_C);
|
||||||
|
GtkWidget *label_D = GTK_WIDGET (gtk_label_new("author")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_D);
|
||||||
|
GtkWidget *label_E = GTK_WIDGET (gtk_label_new("status, activity")); gtk_list_box_append (GTK_LIST_BOX (list_box), label_E);
|
||||||
|
|
||||||
|
GtkWidget *pop = gtk_popover_new ();
|
||||||
|
gtk_popover_set_child (GTK_POPOVER (pop), list_box);
|
||||||
|
gtk_popover_present (GTK_POPOVER (pop));
|
||||||
|
gtk_popover_set_autohide (GTK_POPOVER (pop), FALSE);
|
||||||
|
gtk_popover_set_cascade_popdown (GTK_POPOVER (pop), TRUE);
|
||||||
|
|
||||||
|
GtkMenuButton *identity = GTK_MENU_BUTTON (gtk_menu_button_new ());
|
||||||
|
gtk_menu_button_set_label (GTK_MENU_BUTTON (identity), "identity");
|
||||||
|
gtk_menu_button_set_always_show_arrow (identity, TRUE);
|
||||||
|
gtk_menu_button_set_popover (identity, GTK_WIDGET (pop));
|
||||||
|
// gtk_widget_set_halign (GTK_WIDGET (identity), GTK_ALIGN_START);
|
||||||
|
|
||||||
|
return identity;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue