[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dnd-intro

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 12月 10日 (月) 12:41:20 JST


-------------------------
REMOTE_ADDR = 184.145.81.223
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro
-------------------------
@@ -806,3 +806,6 @@
 Let me repeat that the bulkiest of our DndTbWindow class instance methods, called 'create_toolbar' is here the list important. Those who believe they should understand it better, must have missed or forgotten our discussion and study of menus, toolbars and menu items in chapter 9, entitled ((<Menus and Toolbars|tut-gtk2-mnstbs>)). Toolbar here for us, is just a widget, an object (or a black box if you must), we wish to drag from one position to another, and back, if so desired. Its internals or the details about how it's built are of no interest to us here!
 
 What we are interested in, is the overall design or architecture of the top window encapsulated in DndTbWindow class. You can learn all about the layout of this window by reading its 'initialize' method, focusing on Gtk widgets built and gathered in the hierarchy of containers, and for the moment ignoring the drag-and-drop related methods, such as 'set_dnd_source_frame_widget' and 'set_dnd_destination_frame_widget'. We'll talk about these only after we understand the structure and design of the top window.
+
+
+In summary the main window consists of two parts, the edge frames (on the top, and on the left side of the main window), and the working area in the middle between the two frames. The two frames are the placeholders for our toolbar. Originally the top frame contains the toolbar. When the toolbar is dragged from its original position (frame) onto the other currently empty frame, we have to remove the toolbar from its current (source) frame and place it into the other empty (destination) frame. In this process we also have to shrink the vacated frame and indeed, change the toolbar orientation and size parameters accordingly.




ruby-gnome2-cvs メーリングリストの案内
Back to archive index