Just some CVS ignore stuff.
[dia.git] / app / layer_dialog.h
blob7af8643043bc82286c3739b4e44ea88767373249
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 *connectable;
62 GtkWidget *label;
64 EditLayerDialog *edit_dialog;
66 /** If true, the user has set this layers connectivity to on
67 * while it was not selected.
69 gboolean connect_on;
70 /** If true, the user has set this layers connectivity to off
71 * while it was selected.
73 gboolean connect_off;
76 struct _EditLayerDialog {
77 GtkWidget *dialog;
78 GtkWidget *name_entry;
79 DiaLayerWidget *layer_widget;
83 struct _DiaLayerWidgetClass
85 GtkListItemClass parent_class;
88 GtkType dia_layer_widget_get_type(void);
89 GtkWidget* dia_layer_widget_new(Diagram *dia, Layer *layer);
90 void dia_layer_set_layer(DiaLayerWidget *widget, Diagram *dia, Layer *layer);
91 void dia_layer_update_from_layer(DiaLayerWidget *widget);
93 #endif /* LAYER_DIALOG_H */