Removing Debian maintainer script examples
[viking.git] / src / viklayerspanel.h
blob5259524c0ab8f818b0567d42663a8f90eb07b2a0
1 /*
2 * viking -- GPS Data and Topo Analyzer, Explorer, and Manager
4 * Copyright (C) 2003-2005, Evan Battaglia <gtoevan@gmx.net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef _VIKING_LAYERS_PANEL_H
23 #define _VIKING_LAYERS_PANEL_H
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <gtk/gtkvbox.h>
29 #include "viklayer.h"
30 #include "vikaggregatelayer.h"
32 G_BEGIN_DECLS
34 #define VIK_LAYERS_PANEL_TYPE (vik_layers_panel_get_type ())
35 #define VIK_LAYERS_PANEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_LAYERS_PANEL_TYPE, VikLayersPanel))
36 #define VIK_LAYERS_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_LAYERS_PANEL_TYPE, VikLayersPanelClass))
37 #define IS_VIK_LAYERS_PANEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_LLAYERS_PANEL_TYPE))
38 #define IS_VIK_LAYERS_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_LAYERS_PANEL_TYPE))
40 typedef struct _VikLayersPanel VikLayersPanel;
41 typedef struct _VikLayersPanelClass VikLayersPanelClass;
43 struct _VikLayersPanelClass
45 GtkVBoxClass vbox_class;
47 void (* update) (VikLayersPanel *vlp);
50 GType vik_layers_panel_get_type ();
51 VikLayersPanel *vik_layers_panel_new ();
52 void vik_layers_panel_free ( VikLayersPanel *vlp );
53 void vik_layers_panel_add_layer ( VikLayersPanel *vlp, VikLayer *l );
54 void vik_layers_panel_draw_all ( VikLayersPanel *vlp );
55 void vik_layers_panel_draw_all_using_viewport ( VikLayersPanel *vlp, VikViewport *vvp );
56 VikLayer *vik_layers_panel_get_selected ( VikLayersPanel *vlp );
57 void vik_layers_panel_cut_selected ( VikLayersPanel *vlp );
58 void vik_layers_panel_copy_selected ( VikLayersPanel *vlp );
59 void vik_layers_panel_paste_selected ( VikLayersPanel *vlp );
60 void vik_layers_panel_delete_selected ( VikLayersPanel *vlp );
61 VikLayer *vik_layers_panel_get_layer_of_type ( VikLayersPanel *vlp, gint type );
62 void vik_layers_panel_set_viewport ( VikLayersPanel *vlp, VikViewport *vvp );
63 //gboolean vik_layers_panel_tool ( VikLayersPanel *vlp, guint16 layer_type, VikToolInterfaceFunc tool_func, GdkEventButton *event, VikViewport *vvp );
64 VikViewport *vik_layers_panel_get_viewport ( VikLayersPanel *vlp );
65 void vik_layers_panel_emit_update ( VikLayersPanel *vlp );
66 VikLayer *vik_layers_panel_get_layer_of_type ( VikLayersPanel *vlp, gint type );
67 gboolean vik_layers_panel_properties ( VikLayersPanel *vlp );
68 gboolean vik_layers_panel_new_layer ( VikLayersPanel *vlp, gint type );
69 void vik_layers_panel_clear ( VikLayersPanel *vlp );
70 VikAggregateLayer *vik_layers_panel_get_top_layer ( VikLayersPanel *vlp );
71 void vik_layers_panel_change_coord_mode ( VikLayersPanel *vlp, VikCoordMode mode );
73 G_END_DECLS
75 #endif