Commit Graph

49 Commits

Author SHA1 Message Date
Jean Sirmai e9ef7fbeae
WIP: TODO GListModel *create_node_recursive () and all that... 2023-12-25 23:55:28 +01:00
Jean Sirmai b734ab99d4
The quick comparison chart of equivalent functionalities 😮😃😇
https://docs.gtk.org/gtk4/section-list-widget.html
2023-12-25 19:16:52 +01:00
Jean Sirmai 34b43d1dac
WIP: Pourquoi ça marche ? Ça ne devrait pas. > row from iter at [ 0:0:0:1:0:1 ] = 'N' 2023-12-25 18:31:21 +01:00
Jean Sirmai 9c501b296f
WIP: gtk_tree_model_get_data_from_path() OK 2023-12-25 10:04:03 +01:00
Jean Sirmai e9a67bcf4a
WIP: how to walk the tree ? Another (small) step... 2023-12-25 01:08:11 +01:00
Jean Sirmai 7b364f0674
WIP: how to walk the tree ? A first step : first row 0: (ROOT) next row 0: (D) (line 103) 2023-12-25 00:23:13 +01:00
Jean Sirmai 125aea2127
WIP: how to walk the tree ? 2023-12-22 12:46:00 +01:00
Jean Sirmai 7a0abbc5b3
WIP: reading https://developer-old.gnome.org/gtk4/stable/GtkTreeView.html 2023-12-20 18:52:19 +01:00
Jean Sirmai 57bb001d11
WIP: reading https://developer-old.gnome.org/gtk4/stable/GtkTreeModel.html#gtk-tree-row-reference-new 2023-12-20 13:57:03 +01:00
Jean Sirmai 225e40fb53
WIP: before learning GtkCellEditable (cleaning) 2023-12-20 12:02:05 +01:00
Jean Sirmai 63f662ddc9
R E C U R S I V E T R E E (cleaning + comments) 2023-12-18 18:54:58 +01:00
Jean Sirmai 705af8c187
R E C U R S I V E T R E E (cleaning) 2023-12-18 18:48:14 +01:00
Jean Sirmai 4e616b6381
R E C U R S I V E T R E E (1st version) OK 2023-12-18 16:31:04 +01:00
Jean Sirmai 6724424219
manifest 2023-12-18 15:46:50 +01:00
Jean Sirmai 3c3f74e46e
WIP: tree_store.c:217:48: attention: argument 1 de : gtk_tree_view_new_with_model : pointeur incompatible 2023-12-18 12:19:17 +01:00
Jean Sirmai 2f1cd99bfb
WIP: GtkTreeStore * attendu mais l'argument est de type GtkTreeStore. Ma qué ? 2023-12-18 12:05:25 +01:00
Jean Sirmai 3430bd25fe
WIP: tree_model = create_node_recursive ((GtkTreeModel) tree_store, O); << pb de casting ? 2023-12-18 10:17:55 +01:00
Jean Sirmai 5e870ae870
WIP: TreeItem create_node_recursive (GtkTreeStore *model, TreeItem *current_item) {...} 2023-12-18 09:38:59 +01:00
Jean Sirmai 9da50fa49b
WIP: Construction itérative de l'arbre. Préparation de la construction récursive. 2023-12-18 08:49:36 +01:00
Jean Sirmai 0ed20386a7
WIP: gtk_tree_view_set_reorderable (GTK_TREE_VIEW (treeview), TRUE); 2023-12-16 18:19:54 +01:00
Jean Sirmai aa5ca0711f
WIP: Construction itérative de l'arbre. _append() et _set() dans iterate_node() (cleaning +) 2023-12-16 13:17:23 +01:00
Jean Sirmai d9745c0f6e
WIP: Construction itérative de l'arbre. _append() et _set() dans iterate_node() (cleaning) 2023-12-16 13:16:41 +01:00
Jean Sirmai 7278567729
WIP: Construction itérative de l'arbre. _append() et _set() dans iterate_node() 2023-12-16 13:11:50 +01:00
Jean Sirmai c00e97b4bd
WIP: transtyper model de GtkTreeStore en GtkTreeIter ? (ligne 96) 2023-12-16 10:38:34 +01:00
Jean Sirmai 3b5b5585d5
WIP: What the f...? Quand les iterateurs sont-ils egaux aux items ?! 2023-12-16 09:48:16 +01:00
Jean Sirmai 7efd6ee795
WIP: Is a more symetrical iteration possible ? line 92 GtkTreeIter * / GtkTreeStore * 2023-12-16 09:12:06 +01:00
Jean Sirmai 2132b0a7b4
WIP: before recursion, a perfect iteration ? (is OK) 2023-12-16 08:45:54 +01:00
Jean Sirmai 1d1b1fa744
WIP: preparing the recursive loop that builds the tree (0) 2023-12-16 08:30:28 +01:00
Jean Sirmai 8c3884e619
WIP: fonction iterate_node() premier micro-commit 2023-12-15 23:24:39 +01:00
Jean Sirmai 9d5a1ed25a
WIP: (micro) before creating a new function to iterate a node 2023-12-15 23:11:47 +01:00
Jean Sirmai 11c893d2c7
PROFONDEUR DE L'ARBRE (1ère fois) 2023-12-15 22:52:41 +01:00
Jean Sirmai cdc891823f
WIP: simplifications removing COLUMN_1 (ok) 2023-12-15 21:49:58 +01:00
Jean Sirmai 8891d5adfe
WIP: simplifications (TreeItem notation) 57-60 2023-12-15 11:31:09 +01:00
Jean Sirmai f6affc1ebf
WIP: simplifications removing COLUMN_1 2023-12-15 11:12:24 +01:00
Jean Sirmai db3043c274
WIP: simplifications removing the gboolean in struct _TreeItem 2023-12-15 11:02:53 +01:00
Jean Sirmai 8cc77af4f5
WIP: simplifications removing the so called 'VISIBLE_COLUMN' 2023-12-15 10:54:05 +01:00
Jean Sirmai cfc2db00d0
WIP: simplifications removing the 'WORLD_COLUMN' 2023-12-15 10:23:47 +01:00
Jean Sirmai dd37063fff
WIP: simplifications in add_columns(): gtk_cell_renderer_toggle_new() replaced by 'text' 2023-12-15 10:18:09 +01:00
Jean Sirmai f0b8b70bfb
WIP: simplifications in add_columns() 2023-12-15 10:12:13 +01:00
Jean Sirmai cc899e13c9
WIP: before removing item_toggled() 2023-12-14 12:15:49 +01:00
Jean Sirmai 271206f4ec
WIP: simplifications gtk-demo/tree_store.c remove: WORLD_COLUMN ? 2023-12-13 12:06:42 +01:00
Jean Sirmai 0c2f313a3b
WIP: simplifications dans builddir/demos/gtk-demo/tree_store.c 2023-12-13 11:53:11 +01:00
Jean Sirmai 3e52de8a09
WIP: simplifications dans builddir/demos/gtk-demo/demos.h 2023-12-13 09:30:00 +01:00
Jean Sirmai db225bd732
Learning GTK4 Trees _ initial commit (suite) > The Perfect Learning Loop. 2023-12-12 19:49:20 +01:00
Jean Sirmai 375d658cc8
Learning GTK4 Trees _ initial commit (+ simple & light loop) 2023-12-12 19:02:08 +01:00
Jean Sirmai 1a02d93f20
Learning GTK4 Trees _ initial commit (+ simple loop) 2023-12-12 18:40:36 +01:00
Jean Sirmai a0c82f2ade
Learning GTK4 Trees _ initial commit (+ manifest) 2023-12-12 12:48:58 +01:00
Jean Sirmai 8f56c928b1
Learning GTK4 Trees _ initial commit 2023-12-12 12:47:28 +01:00
Jean Sirmai c07ee22637
initial 2023-12-12 11:36:42 +01:00