XYZ action bar ?
This commit is contained in:
parent
af5f4cfc11
commit
9c0c44f8bd
22
hot.c
22
hot.c
|
@ -7,20 +7,28 @@
|
||||||
GtkWidget *get_space_page_new(){
|
GtkWidget *get_space_page_new(){
|
||||||
GtkWidget *space_grid = gtk_grid_new();
|
GtkWidget *space_grid = gtk_grid_new();
|
||||||
|
|
||||||
GtkDrawingArea *surface = GTK_DRAWING_AREA(gtk_drawing_area_new ());
|
GtkScrolledWindow *scrolled = GTK_SCROLLED_WINDOW(gtk_scrolled_window_new());
|
||||||
gtk_drawing_area_set_content_width (surface, 640);
|
gtk_scrolled_window_set_min_content_width (scrolled, 650);
|
||||||
gtk_drawing_area_set_content_height (surface, 600);
|
gtk_scrolled_window_set_min_content_height (scrolled, 600);
|
||||||
gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(surface), 0, 0, 1, 1);
|
GtkAdjustment *width = gtk_adjustment_new (600, 300, 1000, 1, 1, 1000);
|
||||||
|
GtkAdjustment *height = gtk_adjustment_new (600, 300, 1000, 1, 1, 1000);
|
||||||
|
// (value, lower, upper, step_increment, page_increment, page_size)
|
||||||
|
GtkWidget *viewport = gtk_viewport_new (width, height);
|
||||||
|
gtk_scrolled_window_set_child (scrolled, viewport);
|
||||||
|
gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(scrolled), 0, 0, 1, 1);
|
||||||
|
|
||||||
GtkBox *XYZ_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); // spacing = 2
|
GtkBox *XYZ_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); // spacing = 2
|
||||||
|
// GtkWidget *X_bar = gtk_action_bar_new(); gtk_action_bar_set_revealed (GTK_ACTION_BAR(X_bar), TRUE);
|
||||||
|
// GtkWidget* X_reveal = gtk_revealer_new (); gtk_revealer_set_child (X_reveal, X_bar);
|
||||||
|
// gtk_box_append (XYZ_box, X_bar);
|
||||||
gtk_box_append (XYZ_box, gtk_button_new_with_label ("X"));
|
gtk_box_append (XYZ_box, gtk_button_new_with_label ("X"));
|
||||||
gtk_box_append (XYZ_box, gtk_button_new_with_label ("Y"));
|
gtk_box_append (XYZ_box, gtk_button_new_with_label ("Y"));
|
||||||
gtk_box_append (XYZ_box, gtk_button_new_with_label ("Z"));
|
gtk_box_append (XYZ_box, gtk_button_new_with_label ("Z"));
|
||||||
gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(XYZ_box), 1, 0, 1, 1);
|
gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(XYZ_box), 1, 0, 1, 1);
|
||||||
|
|
||||||
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("RUN / STOP (and all that stuff...)"), 0, 1, 2, 1);
|
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("RUN / STOP (all that stuff...)"), 0, 1, 2, 1);
|
||||||
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("Objects / Situations (transparences)"), 0, 2, 2, 1);
|
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("Objects / Situations (transparences, style)"), 0, 2, 2, 1);
|
||||||
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("camera (zoom...)"), 0, 3, 2, 1);
|
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("zoom,...\n+/- grid"), 1, 1, 2, 3);
|
||||||
return space_grid;
|
return space_grid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue