Tree @HEAD (Download .tar.gz)
- ..
- gtkextra
- obj
- opengl
- task_project
- .cvsignore
- 3DRings.xpm
- alps.png
- apple-red.png
- application.ui
- background.png
- central.xml
- check-n.xpm
- check-y.xpm
- common.adb
- common.ads
- create_about.adb
- create_about.ads
- create_alignment.adb
- create_alignment.ads
- create_application.adb
- create_application.ads
- create_arrow.adb
- create_arrow.ads
- create_assistant.adb
- create_assistant.ads
- create_box.adb
- create_box.ads
- create_builder.adb
- create_builder.ads
- create_button_box.adb
- create_button_box.ads
- create_buttons.adb
- create_buttons.ads
- create_cairo.adb
- create_cairo.ads
- create_calendar.adb
- create_calendar.ads
- create_canvas.adb
- create_canvas.ads
- create_canvas_view_animate.adb
- create_canvas_view_animate.ads
- create_canvas_view_composite.adb
- create_canvas_view_composite.ads
- create_canvas_view_edit.adb
- create_canvas_view_edit.ads
- create_canvas_view_events.adb
- create_canvas_view_events.ads
- create_canvas_view_items.adb
- create_canvas_view_items.ads
- create_canvas_view_links.adb
- create_canvas_view_links.ads
- create_canvas_view_minimap.adb
- create_canvas_view_minimap.ads
- create_canvas_view_routes.adb
- create_canvas_view_routes.ads
- create_canvas_view_rtrees.adb
- create_canvas_view_rtrees.ads
- create_cell_view.adb
- create_cell_view.ads
- create_check_buttons.adb
- create_check_buttons.ads
- create_clipboard.adb
- create_clipboard.ads
- create_color_chooser.adb
- create_color_chooser.ads
- create_color_selection.adb
- create_color_selection.ads
- create_combo_box.adb
- create_combo_box.ads
- create_css_accordion.adb
- create_css_accordion.ads
- create_css_editor.adb
- create_css_editor.ads
- create_cursors.adb
- create_cursors.ads
- create_dialog.adb
- create_dialog.ads
- create_dnd.adb
- create_dnd.ads
- create_entry.adb
- create_entry.ads
- create_file_chooser.adb
- create_file_chooser.ads
- create_file_selection.adb
- create_file_selection.ads
- create_fixed.adb
- create_fixed.ads
- create_flow_box.adb
- create_flow_box.ads
- create_font_chooser.adb
- create_font_chooser.ads
- create_font_selection.adb
- create_font_selection.ads
- create_frame.adb
- create_frame.ads
- create_gestures.adb
- create_gestures.ads
- create_gtkada_builder.adb
- create_gtkada_builder.ads
- create_gtkada_dialog.adb
- create_gtkada_dialog.ads
- create_icon_view.adb
- create_icon_view.ads
- create_label.adb
- create_label.ads
- create_layout.adb
- create_layout.ads
- create_link_buttons.adb
- create_link_buttons.ads
- create_main_loop.adb
- create_main_loop.ads
- create_mdi.adb
- create_mdi.ads
- create_menu.adb
- create_menu.ads
- create_notebook.adb
- create_notebook.ads
- create_opacity.adb
- create_opacity.ads
- create_paned.adb
- create_paned.ads
- create_pixbuf.adb
- create_pixbuf.ads
- create_print.adb
- create_print.ads
- create_progress.adb
- create_progress.ads
- create_radio_button.adb
- create_radio_button.ads
- create_range.adb
- create_range.ads
- create_reparent.adb
- create_reparent.ads
- create_revealer.adb
- create_revealer.ads
- create_scrolled.adb
- create_scrolled.ads
- create_selection.adb
- create_selection.ads
- create_size_groups.adb
- create_size_groups.ads
- create_sources.adb
- create_sources.ads
- create_spin.adb
- create_spin.ads
- create_spinners.adb
- create_spinners.ads
- create_splittable.adb
- create_splittable.ads
- create_stack.adb
- create_stack.ads
- create_status.adb
- create_status.ads
- create_status_icons.adb
- create_status_icons.ads
- create_task_monitor.adb
- create_task_monitor.ads
- create_test_idle.adb
- create_test_idle.ads
- create_test_timeout.adb
- create_test_timeout.ads
- create_text_view.adb
- create_text_view.ads
- create_toggle_buttons.adb
- create_toggle_buttons.ads
- create_toolbar.adb
- create_toolbar.ads
- create_tooltips.adb
- create_tooltips.ads
- create_tree_filter.adb
- create_tree_filter.ads
- create_tree_view.adb
- create_tree_view.ads
- create_ui_manager.adb
- create_ui_manager.ads
- css_accordion.css
- dancing-penguin.gif
- FilesQueue.xpm
- global_exception_handler.adb
- global_exception_handler.ads
- gnat_debug.adc
- gnome-applets.png
- gnome-calendar.png
- gnome-foot.png
- gnome-gimp.png
- gnome-gmush.png
- gnome-gsame.png
- gnome-textfile.png
- gnu-keys.png
- gtkbuilder_custom_widget.xml
- gtkbuilder_example.xml
- libart_demo.adb
- libart_demo.ads
- lightning.png
- main_windows.adb
- main_windows.ads
- marble.xpm
- menus.ui
- Modeller.xpm
- penguin.lwo
- perspectives.xml
- perspectives_indep.xml
- README
- refresh.svg
- search_and_menu.png
- test.xpm
- test_rtree.adb
- testcairo_drawing.adb
- testcairo_drawing.ads
- testgtk.adb
- testgtk.css
- testgtk.gpr
- tree_minus.xpm
- tree_plus.xpm
create_paned.adb @HEAD — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | ------------------------------------------------------------------------------ -- GtkAda - Ada95 binding for the Gimp Toolkit -- -- -- -- Copyright (C) 1998-2018, AdaCore -- -- -- -- This library is free software; you can redistribute it and/or modify it -- -- under terms of the GNU General Public License as published by the Free -- -- Software Foundation; either version 3, or (at your option) any later -- -- version. This library is distributed in the hope that it will be useful, -- -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- ------------------------------------------------------------------------------ with Gtk.Box; use Gtk.Box; with Gtk.Button; use Gtk.Button; with Gtk.Enums; use Gtk.Enums; with Gtk.Frame; use Gtk.Frame; with Gtk.Paned; use Gtk.Paned; with Gtk.Widget; use Gtk.Widget; with Gtk; use Gtk; package body Create_Paned is ---------- -- Help -- ---------- function Help return String is begin return "A @bGtk_Paned@B splits a container in two parts, that can be" & " resized by the user." & ASCII.LF & "They have two children, one for each side." & ASCII.LF & "If @bShrink@B is set to True for one of the children, then the user" & " can resize it to any size. If it is set to False, then the" & " minimum size set for the child by a call to @bSet_Usize@B is" & " enforced, and the child can never be shrinked more than that." & ASCII.LF & "If @bResize@B is set to True for one of the children only, then" & " that child gets the exact size it requested, the other gets the" & " remaining space. In the example, the two buttons have requested" & " the same size, but since the second sets Resize to True, it gets" & " more space." & ASCII.LF & "If both children have the same value for resize, their allocated" & " size is a ratio between their respective sizes." & ASCII.LF & "Note that moving the handle to manually resize the widgets" & " cancels the effect of the resize buttons, so you should click on" & " them before playing with the handles..."; end Help; --------- -- Run -- --------- procedure Run (Frame : access Gtk.Frame.Gtk_Frame_Record'Class) is VPaned : Gtk_Paned; HPaned : Gtk_Paned; Frame2 : Gtk_Frame; Button : Gtk_Button; Vbox : Gtk_Box; begin Set_Label (Frame, "Panes"); Gtk_New_Vbox (Vbox, False, 0); Add (Frame, Vbox); Gtk_New_Vpaned (VPaned); Pack_Start (Vbox, VPaned, True, True, 0); Set_Border_Width (VPaned, 5); Gtk_New_Hpaned (HPaned); Pack1 (VPaned, HPaned, Resize => False, Shrink => True); Gtk_New (Frame2); Gtk_New (Button, "not Resize, not Shrink, minWidth=60"); Add (Frame2, Button); Set_Shadow_Type (Frame2, Shadow_In); Set_Size_Request (Frame2, 60, 60); Pack1 (HPaned, Frame2, False, False); Gtk_New (Frame2); Gtk_New (Button, "Resize, Shrink"); Add (Frame2, Button); Set_Shadow_Type (Frame2, Shadow_In); Set_Size_Request (Frame2, 80, 60); Pack2 (HPaned, Frame2, Resize => True, Shrink => True); Gtk_New (Frame2); Gtk_New (Button, "not Resize, not Shrink, minHeight=280"); Add (Frame2, Button); Set_Shadow_Type (Frame2, Shadow_In); Set_Size_Request (Frame2, 60, 280); Pack2 (VPaned, Frame2, Resize => False, Shrink => False); Show_All (Frame); end Run; end Create_Paned; |