]> git.street.me.uk Git - andy/viking.git/blame - src/viktrwlayer_tpwin.h
Minimum GTK+2.14 required for the build.
[andy/viking.git] / src / viktrwlayer_tpwin.h
CommitLineData
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
29G_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
50a14534
EB
36#define VIK_TRW_LAYER_TPWIN_BACK 1
37#define VIK_TRW_LAYER_TPWIN_FORWARD 0
38
39#define VIK_TRW_LAYER_TPWIN_DATA_CHANGED 100
40
41#define VIK_TRW_LAYER_TPWIN_TYPE (vik_trw_layer_tpwin_get_type ())
42#define VIK_TRW_LAYER_TPWIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TRW_LAYER_TPWIN_TYPE, VikTrwLayerTpwin))
43#define VIK_TRW_LAYER_TPWIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TRW_LAYER_TPWIN_TYPE, VikTrwLayerTpwinClass))
44#define IS_VIK_TRW_LAYER_TPWIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TRW_LAYER_TPWIN_TYPE))
45#define IS_VIK_TRW_LAYER_TPWIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TRW_LAYER_TPWIN_TYPE))
46
47typedef struct _VikTrwLayerTpwin VikTrwLayerTpwin;
48typedef struct _VikTrwLayerTpwinClass VikTrwLayerTpwinClass;
49
50struct _VikTrwLayerTpwinClass
51{
52 GtkDialogClass vik_trw_layer_class;
53};
54
55GType vik_trw_layer_tpwin_get_type ();
56
c8430548 57VikTrwLayerTpwin *vik_trw_layer_tpwin_new ( GtkWindow *parent );
50a14534
EB
58void vik_trw_layer_tpwin_set_empty ( VikTrwLayerTpwin *tpwin );
59void vik_trw_layer_tpwin_disable_join ( VikTrwLayerTpwin *tpwin );
60void vik_trw_layer_tpwin_set_tp ( VikTrwLayerTpwin *tpwin, GList *tpl, gchar *track_name );
61void vik_trw_layer_tpwin_set_track_name ( VikTrwLayerTpwin *tpwin, const gchar *track_name );
62
dd2c21f8 63G_END_DECLS
50a14534
EB
64
65#endif