]> git.street.me.uk Git - andy/viking.git/blob - src/viktrwlayer_tpwin.h
Fix internal tile locking
[andy/viking.git] / src / viktrwlayer_tpwin.h
1 /*
2  * viking -- GPS Data and Topo Analyzer, Explorer, and Manager
3  *
4  * Copyright (C) 2003-2005, Evan Battaglia <gtoevan@gmx.net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef _VIKING_TRWLAYER_TPWIN_H
23 #define _VIKING_TRWLAYER_TPWIN_H
24
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <gtk/gtkdialog.h>
28 G_BEGIN_DECLS
29
30 /* response codes */
31 #define VIK_TRW_LAYER_TPWIN_CLOSE    5
32 #define VIK_TRW_LAYER_TPWIN_DELETE   4
33 #define VIK_TRW_LAYER_TPWIN_SPLIT    3
34 #define VIK_TRW_LAYER_TPWIN_JOIN     2
35 #define VIK_TRW_LAYER_TPWIN_BACK     1
36 #define VIK_TRW_LAYER_TPWIN_FORWARD  0
37
38 #define VIK_TRW_LAYER_TPWIN_DATA_CHANGED 100
39
40 #define VIK_TRW_LAYER_TPWIN_TYPE            (vik_trw_layer_tpwin_get_type ())
41 #define VIK_TRW_LAYER_TPWIN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TRW_LAYER_TPWIN_TYPE, VikTrwLayerTpwin))
42 #define VIK_TRW_LAYER_TPWIN_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TRW_LAYER_TPWIN_TYPE, VikTrwLayerTpwinClass))
43 #define IS_VIK_TRW_LAYER_TPWIN(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TRW_LAYER_TPWIN_TYPE))
44 #define IS_VIK_TRW_LAYER_TPWIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TRW_LAYER_TPWIN_TYPE))
45
46 typedef struct _VikTrwLayerTpwin VikTrwLayerTpwin;
47 typedef struct _VikTrwLayerTpwinClass VikTrwLayerTpwinClass;
48
49 struct _VikTrwLayerTpwinClass
50 {
51   GtkDialogClass vik_trw_layer_class;
52 };
53
54 GType vik_trw_layer_tpwin_get_type ();
55
56 VikTrwLayerTpwin *vik_trw_layer_tpwin_new ();
57 void vik_trw_layer_tpwin_set_empty ( VikTrwLayerTpwin *tpwin );
58 void vik_trw_layer_tpwin_disable_join ( VikTrwLayerTpwin *tpwin );
59 void vik_trw_layer_tpwin_set_tp ( VikTrwLayerTpwin *tpwin, GList *tpl, gchar *track_name );
60 void vik_trw_layer_tpwin_set_track_name ( VikTrwLayerTpwin *tpwin, const gchar *track_name );
61
62
63 #endif