]>
Commit | Line | Data |
---|---|---|
50a14534 EB |
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> | |
d156fff5 GB |
27 | #include <gtk/gtk.h> |
28 | ||
50a14534 EB |
29 | G_BEGIN_DECLS |
30 | ||
31 | /* response codes */ | |
2880a1de RN |
32 | #define VIK_TRW_LAYER_TPWIN_CLOSE 6 |
33 | #define VIK_TRW_LAYER_TPWIN_INSERT 5 | |
50a14534 EB |
34 | #define VIK_TRW_LAYER_TPWIN_DELETE 4 |
35 | #define VIK_TRW_LAYER_TPWIN_SPLIT 3 | |
36 | #define VIK_TRW_LAYER_TPWIN_JOIN 2 | |
37 | #define VIK_TRW_LAYER_TPWIN_BACK 1 | |
38 | #define VIK_TRW_LAYER_TPWIN_FORWARD 0 | |
39 | ||
40 | #define VIK_TRW_LAYER_TPWIN_DATA_CHANGED 100 | |
41 | ||
42 | #define VIK_TRW_LAYER_TPWIN_TYPE (vik_trw_layer_tpwin_get_type ()) | |
43 | #define VIK_TRW_LAYER_TPWIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TRW_LAYER_TPWIN_TYPE, VikTrwLayerTpwin)) | |
44 | #define VIK_TRW_LAYER_TPWIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TRW_LAYER_TPWIN_TYPE, VikTrwLayerTpwinClass)) | |
45 | #define IS_VIK_TRW_LAYER_TPWIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TRW_LAYER_TPWIN_TYPE)) | |
46 | #define IS_VIK_TRW_LAYER_TPWIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TRW_LAYER_TPWIN_TYPE)) | |
47 | ||
48 | typedef struct _VikTrwLayerTpwin VikTrwLayerTpwin; | |
49 | typedef struct _VikTrwLayerTpwinClass VikTrwLayerTpwinClass; | |
50 | ||
51 | struct _VikTrwLayerTpwinClass | |
52 | { | |
53 | GtkDialogClass vik_trw_layer_class; | |
54 | }; | |
55 | ||
56 | GType vik_trw_layer_tpwin_get_type (); | |
57 | ||
c8430548 | 58 | VikTrwLayerTpwin *vik_trw_layer_tpwin_new ( GtkWindow *parent ); |
50a14534 EB |
59 | void vik_trw_layer_tpwin_set_empty ( VikTrwLayerTpwin *tpwin ); |
60 | void vik_trw_layer_tpwin_disable_join ( VikTrwLayerTpwin *tpwin ); | |
61 | void vik_trw_layer_tpwin_set_tp ( VikTrwLayerTpwin *tpwin, GList *tpl, gchar *track_name ); | |
62 | void vik_trw_layer_tpwin_set_track_name ( VikTrwLayerTpwin *tpwin, const gchar *track_name ); | |
63 | ||
64 | ||
65 | #endif |