summaryrefslogtreecommitdiff
path: root/src/gui/panels/panel-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels/panel-int.h')
-rw-r--r--src/gui/panels/panel-int.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/gui/panels/panel-int.h b/src/gui/panels/panel-int.h
index 133f1a3..e1c8932 100644
--- a/src/gui/panels/panel-int.h
+++ b/src/gui/panels/panel-int.h
@@ -51,6 +51,35 @@ struct _GPanelItem
};
+/* Elément de la hiérarchie des panneaux */
+typedef struct _panel_node
+{
+ struct _panel_node *parent; /* Noeud parent */
+
+ char path; /* Chemin du nom courant */
+ size_t depth; /* Profondeur utilisée */
+
+ bool simple; /* Noeud sans division */
+
+ union
+ {
+ GtkWidget *station; /* Station d'accueil simple */
+
+ struct
+ {
+ GtkWidget *paned; /* Station d'accueil composée */
+ struct _panel_node *first; /* Premier sous élément */
+ struct _panel_node *second; /* Second sous élément */
+ };
+
+ };
+
+} panel_node;
+
+
+#define GET_PANEL_NODE_WIDGET(node) (node->simple ? node->station : node->paned)
+
+
/* Elément réactif pour panneaux de l'éditeur (classe) */
struct _GPanelItemClass
{