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

« back to all changes in this revision

Viewing changes to src/bzr-revision-widget.h

  • Committer: Jelmer Vernooij
  • Date: 2008-08-24 19:22:57 UTC
  • mfrom: (60.1.32 trunk)
  • Revision ID: jelmer@samba.org-20080824192257-duclhydfwqau1743
Merge new upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
 
2
/*
 
3
 * Anjuta
 
4
 * Copyright (C) William Fagan 2008 
 
5
 *
 
6
 * Portions based on the Subversion plugin
 
7
 * Copyright (C) James Liggett 2007
 
8
 * Copyright (C) Johannes Schmid 2005
 
9
 *
 
10
 * Anjuta is free software.
 
11
 * 
 
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)
 
15
 * any later version.
 
16
 * 
 
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.
 
21
 * 
 
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.
 
27
 */
 
28
 
 
29
 
 
30
#ifndef _BZR_REVISION_WIDGET_H_
 
31
#define _BZR_REVISION_WIDGET_H_
 
32
 
 
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>
 
39
 
 
40
G_BEGIN_DECLS
 
41
 
 
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))
 
48
 
 
49
typedef struct _BzrRevisionWidgetClass BzrRevisionWidgetClass;
 
50
typedef struct _BzrRevisionWidget BzrRevisionWidget;
 
51
typedef struct _BzrRevisionWidgetPriv BzrRevisionWidgetPriv;
 
52
 
 
53
struct _BzrRevisionWidgetClass
 
54
{
 
55
        GtkHBoxClass parent_class;
 
56
        
 
57
        void (*rev_changed) (BzrRevisionWidget *self, const gchar *rev_string);
 
58
};
 
59
 
 
60
struct _BzrRevisionWidget
 
61
{
 
62
        GtkHBox parent_instance;
 
63
        
 
64
        BzrRevisionWidgetPriv *priv;
 
65
};
 
66
 
 
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);
 
78
 
 
79
G_END_DECLS
 
80
 
 
81
#endif /* _BZR_REVISION_WIDGET_H_ */