|
|
Here you can find some Gtkmm-related tests I wrote.
| TreeView/TreeModel |
This class diagram illustrates class dependancy in Gtk::TreeView class hierarchy (at least the way I understand it). You might also want to check out an excellent GTK+ 2.0 Tree View Tutorial by Tim-Philipp Müller for very mature discussion of View-Model concepts in GTK+ 2.0.
Window hierarchy in the example:
Gtk::Window (top_level)
|
\__MainWindow_ui
|
\_Gtk::VBox
|
+-Gtk::ScrolledWindow
| |
| \_Gtk::TreeView (not managed)
|
\_Gtk::HButtonBox
|
+--Gtk::Button
+--Gtk::Button
\__Gtk::Button
Test source code TreeViewTest-1.4.tar.gz (also illustrates how to implement correct scrolling window adjustments calculations).
ChangeLog:
Release 1.4 Dec 18 2004 Vladislav Grinchenko - Added visual cell cursor (colored yellow). - Added keyboard navigation with arrow keys. - Added Enter/Spacebar list traversal action. Mar 3 2004 Vladislav Grinchenko - Made dependable only on Gtkmm2 libraries - Added an example of selecting the row by application. - Added autoscrolling code! Release 1.3 Jul 28 2003 Vladislav Grinchenko - Made items list bigger to illustrate ScrollWindow bug in gtkmm2 Release 1.0 Nov 11 2002 Vladislav Grinchenko - Initial version