~debian-bazaar/+junk/anjuta-bzr-debian

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * Anjuta
 * Copyright (C) William Fagan 2008 
 *
 * Portions based on the Subversion plugin
 * Copyright (C) James Liggett 2007
 * Copyright (C) Johannes Schmid 2005
 *
 * Anjuta is free software.
 * 
 * You may redistribute it and/or modify it under the terms of the
 * GNU General Public License, as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option)
 * any later version.
 * 
 * Anjuta is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Anjuta.  If not, write to:
 * 	The Free Software Foundation, Inc.,
 * 	51 Franklin Street, Fifth Floor
 * 	Boston, MA  02110-1301, USA.
 */


#ifndef _BZR_REVISION_WIDGET_H_
#define _BZR_REVISION_WIDGET_H_

#include "bzr-revno-widget.h"
#include "bzr-date-widget.h"
#include "bzr-tags-widget.h"
#include <gtk/gtkhbox.h>
#include <gtk/gtkspinbutton.h>
#include <gtk/gtkcombobox.h>

G_BEGIN_DECLS

#define BZR_TYPE_REVISION_WIDGET             (bzr_revision_widget_get_type ())
#define BZR_REVISION_WIDGET(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), BZR_TYPE_REVISION_WIDGET, BzrRevisionWidget))
#define BZR_REVISION_WIDGET_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), BZR_TYPE_REVISION_WIDGET, BzrRevisionWidgetClass))
#define BZR_IS_REVISION_WIDGET(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BZR_TYPE_REVISION_WIDGET))
#define BZR_IS_REVISION_WIDGET_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), BZR_TYPE_REVISION_WIDGET))
#define BZR_REVISION_WIDGET_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BZR_TYPE_REVISION_WIDGET, BzrRevisionWidgetClass))

typedef struct _BzrRevisionWidgetClass BzrRevisionWidgetClass;
typedef struct _BzrRevisionWidget BzrRevisionWidget;
typedef struct _BzrRevisionWidgetPriv BzrRevisionWidgetPriv;

struct _BzrRevisionWidgetClass
{
	GtkHBoxClass parent_class;
	
	void (*rev_changed) (BzrRevisionWidget *self, const gchar *rev_string);
};

struct _BzrRevisionWidget
{
	GtkHBox parent_instance;
	
	BzrRevisionWidgetPriv *priv;
};

GType bzr_revision_widget_get_type (void) G_GNUC_CONST;
BzrRevisionWidget* bzr_revision_widget_new (const gchar *working_dir, const gchar *branch_loc, const gchar *text, gint min_rev, gboolean infinite);
void bzr_revision_widget_destroy (BzrRevisionWidget *self);
void bzr_revision_widget_set_max_rev (BzrRevisionWidget *self, gint revno);
void bzr_revision_widget_set_min_rev (BzrRevisionWidget *self, gint revno);
void bzr_revision_widget_set_rev (BzrRevisionWidget *self, gint revno);
GtkComboBox *bzr_revision_widget_get_option_combo (BzrRevisionWidget *self);
BzrRevnoWidget *bzr_revision_widget_get_revno_widget (BzrRevisionWidget *self);
BzrDateWidget *bzr_revision_widget_get_date_widget (BzrRevisionWidget *self);
BzrTagsWidget *bzr_revision_widget_get_tags_widget (BzrRevisionWidget *self);
const gchar *bzr_revision_widget_get_rev_string (BzrRevisionWidget *self);

G_END_DECLS

#endif /* _BZR_REVISION_WIDGET_H_ */