svg text alignment
[dia.git] / app / layer_dialog.h
blob6c526888f668d0ad4555d50657a6f451c3ab3bd6
1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef LAYER_DIALOG_H
19 #define LAYER_DIALOG_H
21 #include <gtk/gtk.h>
22 #include "diagram.h"
24 struct LayerDialog {
25 GtkWidget *dialog;
26 GtkWidget *diagram_omenu;
28 GtkWidget *layer_list;
30 Diagram *diagram;
32 GtkWidget *buttons[4];
35 void create_layer_dialog(void);
36 void layer_dialog_update_diagram_list(void);
37 void layer_dialog_show(void);
38 void layer_dialog_set_diagram(Diagram *dia);
41 /* DiaLayerWidget: */
42 #define DIA_LAYER_WIDGET(obj) \
43 GTK_CHECK_CAST (obj, dia_layer_widget_get_type (), DiaLayerWidget)
44 #define DIA_LAYER_WIDGET_CLASS(klass) \
45 GTK_CHECK_CLASS_CAST (klass, dia_layer_widget_get_type (), DiaLayerWidgetClass)
46 #define IS_DIA_LAYER_WIDGET(obj) \
47 GTK_CHECK_TYPE (obj, dia_layer_widget_get_type ())
49 typedef struct _DiaLayerWidget DiaLayerWidget;
50 typedef struct _DiaLayerWidgetClass DiaLayerWidgetClass;
51 typedef struct _EditLayerDialog EditLayerDialog;
53 struct _DiaLayerWidget
55 GtkListItem list_item;
57 Diagram *dia;
58 Layer *layer;
60 GtkWidget *visible;
61 GtkWidget *label;
63 EditLayerDialog *edit_dialog;
66 struct _EditLayerDialog {
67 GtkWidget *dialog;
68 GtkWidget *name_entry;
69 DiaLayerWidget *layer_widget;
73 struct _DiaLayerWidgetClass
75 GtkListItemClass parent_class;
78 guint dia_layer_widget_get_type(void);
79 GtkWidget* dia_layer_widget_new(Diagram *dia, Layer *layer);
80 void dia_layer_set_layer(DiaLayerWidget *widget, Diagram *dia, Layer *layer);
81 void dia_layer_update_from_layer(DiaLayerWidget *widget);
83 #endif /* LAYER_DIALOG_H */