1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4
* Copyright (C) William Fagan 2008
6
* Portions based on the Subversion plugin
7
* Copyright (C) James Liggett 2007
8
* Copyright (C) Johannes Schmid 2005
10
* Anjuta is free software.
12
* You may redistribute it and/or modify it under the terms of the
13
* GNU General Public License, as published by the Free Software
14
* Foundation; either version 2 of the License, or (at your option)
17
* Anjuta is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
* See the GNU General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with Anjuta. If not, write to:
24
* The Free Software Foundation, Inc.,
25
* 51 Franklin Street, Fifth Floor
26
* Boston, MA 02110-1301, USA.
30
#ifndef _BZR_REVISION_WIDGET_H_
31
#define _BZR_REVISION_WIDGET_H_
33
#include "bzr-revno-widget.h"
34
#include "bzr-date-widget.h"
35
#include "bzr-tags-widget.h"
36
#include <gtk/gtkhbox.h>
37
#include <gtk/gtkspinbutton.h>
38
#include <gtk/gtkcombobox.h>
42
#define BZR_TYPE_REVISION_WIDGET (bzr_revision_widget_get_type ())
43
#define BZR_REVISION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BZR_TYPE_REVISION_WIDGET, BzrRevisionWidget))
44
#define BZR_REVISION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BZR_TYPE_REVISION_WIDGET, BzrRevisionWidgetClass))
45
#define BZR_IS_REVISION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BZR_TYPE_REVISION_WIDGET))
46
#define BZR_IS_REVISION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BZR_TYPE_REVISION_WIDGET))
47
#define BZR_REVISION_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BZR_TYPE_REVISION_WIDGET, BzrRevisionWidgetClass))
49
typedef struct _BzrRevisionWidgetClass BzrRevisionWidgetClass;
50
typedef struct _BzrRevisionWidget BzrRevisionWidget;
51
typedef struct _BzrRevisionWidgetPriv BzrRevisionWidgetPriv;
53
struct _BzrRevisionWidgetClass
55
GtkHBoxClass parent_class;
57
void (*rev_changed) (BzrRevisionWidget *self, const gchar *rev_string);
60
struct _BzrRevisionWidget
62
GtkHBox parent_instance;
64
BzrRevisionWidgetPriv *priv;
67
GType bzr_revision_widget_get_type (void) G_GNUC_CONST;
68
BzrRevisionWidget* bzr_revision_widget_new (const gchar *working_dir, const gchar *branch_loc, const gchar *text, gint min_rev, gboolean infinite);
69
void bzr_revision_widget_destroy (BzrRevisionWidget *self);
70
void bzr_revision_widget_set_max_rev (BzrRevisionWidget *self, gint revno);
71
void bzr_revision_widget_set_min_rev (BzrRevisionWidget *self, gint revno);
72
void bzr_revision_widget_set_rev (BzrRevisionWidget *self, gint revno);
73
GtkComboBox *bzr_revision_widget_get_option_combo (BzrRevisionWidget *self);
74
BzrRevnoWidget *bzr_revision_widget_get_revno_widget (BzrRevisionWidget *self);
75
BzrDateWidget *bzr_revision_widget_get_date_widget (BzrRevisionWidget *self);
76
BzrTagsWidget *bzr_revision_widget_get_tags_widget (BzrRevisionWidget *self);
77
const gchar *bzr_revision_widget_get_rev_string (BzrRevisionWidget *self);
81
#endif /* _BZR_REVISION_WIDGET_H_ */