summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkviewpanel-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-11-11 21:22:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-11-11 21:22:38 (GMT)
commitdb934f20598340772f8c0256c8a8119790a1821e (patch)
treed03e57cc5fc953fc3e7653da74a8c58fd310de5d /src/gtkext/gtkviewpanel-int.h
parent2df715e74d6600ed0a5688a43f6ecd873957326a (diff)
Prepared the new organization of display widgets.
Diffstat (limited to 'src/gtkext/gtkviewpanel-int.h')
-rw-r--r--src/gtkext/gtkviewpanel-int.h150
1 files changed, 0 insertions, 150 deletions
diff --git a/src/gtkext/gtkviewpanel-int.h b/src/gtkext/gtkviewpanel-int.h
deleted file mode 100644
index edcc3d9..0000000
--- a/src/gtkext/gtkviewpanel-int.h
+++ /dev/null
@@ -1,150 +0,0 @@
-
-/* Chrysalide - Outil d'analyse de fichiers binaires
- * gtkviewpanel-int.h - définitions internes propre à l'affichage de contenu de binaire
- *
- * Copyright (C) 2010-2014 Cyrille Bagard
- *
- * This file is part of Chrysalide.
- *
- * Chrysalide is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * Chrysalide is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Foobar. If not, see <http://www.gnu.org/licenses/>.
- */
-
-
-#ifndef _GTK_VIEWPANEL_INT_H
-#define _GTK_VIEWPANEL_INT_H
-
-
-#include "gtkviewpanel.h"
-
-
-#include <stdbool.h>
-#include <gtk/gtk.h>
-
-
-
-/* Prend acte de l'association d'un binaire chargé. */
-typedef void (* attach_binary_fc) (GtkViewPanel *, GLoadedBinary *);
-
-/* Indique les dimensions de travail du composant d'affichage. */
-typedef void (* compute_requested_size_fc) (GtkViewPanel *, gint *, gint *);
-
-/* Détermine la taille des bonds lors de défilements. */
-typedef void (* compute_scroll_inc_fc) (GtkViewPanel *, gint, GtkOrientation, gdouble *, gdouble *);
-
-/* Réagit à un défilement chez une barre associée au composant. */
-typedef void (* adjust_scroll_value_fc) (GtkViewPanel *, GtkAdjustment *, GtkOrientation);
-
-/* Réagit à la sélection externe d'une adresse. */
-typedef void (* define_address_fc) (GtkViewPanel *, const vmpa2t *);
-
-/* Actualise les besoins internes avant un redimensionnement. */
-typedef void (* prepare_resize_fc) (GtkViewPanel *);
-
-/* Indique la position courante du curseur. */
-typedef const vmpa2t * (* get_caret_location_fc) (const GtkViewPanel *);
-
-/* Indique la position d'affichage d'une adresse donnée. */
-typedef bool (* get_addr_coordinates_fc) (const GtkViewPanel *, const vmpa2t *, gint *, gint *, ScrollPositionTweak);
-
-/* Fournit des éléments liés à la position courante dans la vue. */
-typedef bool (* get_view_position_fc) (const GtkViewPanel *, GBufferLine **, GObject **);
-
-/* Déplace le curseur à un emplacement défini. */
-typedef bool (* move_caret_to_fc) (GtkViewPanel *, gint, gint);
-
-/* Place en cache un rendu destiné à l'aperçu graphique rapide. */
-typedef void (* cache_glance_fc) (GtkViewPanel *, cairo_t *, const GtkAllocation *, double);
-
-
-
-/* Composant d'affichage générique (instance) */
-struct _GtkViewPanel
-{
- GtkFixed parent; /* A laisser en premier */
-
- GtkAdjustment *hadjustment; /* Barre de défilement horiz. */
- GtkAdjustment *vadjustment; /* Barre de défilement vert. */
- GtkScrollablePolicy hscroll_policy; /* Politique horizontale */
- GtkScrollablePolicy vscroll_policy; /* Politique verticale */
-
- bool show_border; /* Affichage d'une bordure ? */
- BinaryView content; /* Type de contenu */
- const bool *display; /* Affichage des colonnes ? */
-
- GLoadedBinary *binary; /* Binaire à visualiser */
-
- //define_address_fc define; /* Centrage sur une partie */
- prepare_resize_fc resize; /* Prépare une nouvelle taille */
-
-};
-
-/* Composant d'affichage générique (classe) */
-struct _GtkViewPanelClass
-{
- GtkFixedClass parent; /* A laisser en premier */
-
- attach_binary_fc attach; /* Association avec un binaire */
- compute_requested_size_fc compute_size; /* Calcul de la taille requise */
- compute_scroll_inc_fc compute_inc; /* Calcul des bonds */
- adjust_scroll_value_fc adjust; /* Réaction à un défilement */
- define_address_fc define; /* Centrage sur une partie */
- get_caret_location_fc get_caret_loc; /* Adresse du curseur */
- get_addr_coordinates_fc get_coordinates;/* Conversion adresse <-> pos. */
- get_view_position_fc get_position; /* Indications sur la position */
- move_caret_to_fc move_caret_to; /* Déplacement du curseur */
- cache_glance_fc cache_glance; /* Cache de la mignature */
-
- /* Signaux */
-
- void (* move_request) (GtkViewPanel *, const vmpa2t *);
-
- void (* caret_moved) (GtkViewPanel *, const vmpa2t *);
-
-};
-
-/* Propriétés propres au composant d'affichage */
-typedef enum _ViewPanelProps
-{
- VPP_0,
- VPP_HADJUSTMENT,
- VPP_VADJUSTMENT,
- VPP_HSCROLL_POLICY,
- VPP_VSCROLL_POLICY
-
-} ViewPanelProps;
-
-
-/* Définit un chemin décrivant la bordure autour du panneau. */
-void gtk_view_panel_define_border_path(GtkViewPanel *, cairo_t *, gint, gint);
-
-/* Dessine si besoin est une bordure autour du composant. */
-void gtk_view_panel_draw_border(GtkViewPanel *, cairo_t *);
-
-
-
-/* --------------------------- CONVERSIONS DE COORDONNEES --------------------------- */
-
-
-/* Transcrit les coordonnées à l'écran en coordonnées absolues. */
-void gtk_view_panel_compute_fake_coord(GtkViewPanel *, gint *, gint *);
-
-/* Transcrit les coordonnées absolues en coordonnées à l'écran. */
-void gtk_view_panel_compute_real_coord(GtkViewPanel *, gint *, gint *);
-
-/* Transcrit les coordonnées absolues en coordonnées à l'écran. */
-void gtk_view_panel_compute_relative_coords(GtkViewPanel *, gint *, gint *);
-
-
-
-#endif /* _GTK_VIEWPANEL_INT_H */