Add support for incrementing any number of progress ticks to AnjutaStatus
[anjuta-git-plugin.git] / libanjuta / anjuta-status.h
blob031e54739ee9cba3e7346cfde86d900b2631128f
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta-status.h
4 * Copyright (C) 2004 Naba Kumar <naba@gnome.org>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc., 59
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef _ANJUTA_STATUS_H_
22 #define _ANJUTA_STATUS_H_
24 #include <libgnomeui/gnome-appbar.h>
25 #include <libgnome/gnome-macros.h>
27 G_BEGIN_DECLS
29 #define ANJUTA_TYPE_STATUS (anjuta_status_get_type ())
30 #define ANJUTA_STATUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_STATUS, AnjutaStatus))
31 #define ANJUTA_STATUS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ANJUTA_TYPE_STATUS, AnjutaStatusClass))
32 #define ANJUTA_IS_STATUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_STATUS))
33 #define ANJUTA_IS_STATUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_STATUS))
35 typedef struct _AnjutaStatus AnjutaStatus;
36 typedef struct _AnjutaStatusPriv AnjutaStatusPriv;
37 typedef struct _AnjutaStatusClass AnjutaStatusClass;
39 struct _AnjutaStatus
41 GnomeAppBar parent;
42 AnjutaStatusPriv *priv;
45 struct _AnjutaStatusClass
47 GnomeAppBarClass parent_class;
49 /* signals */
50 void (*busy) (AnjutaStatus *status, gboolean state);
53 GType anjuta_status_get_type (void);
54 GtkWidget* anjuta_status_new (void);
56 /* Status bar text manipulation */
57 void anjuta_status_set (AnjutaStatus *status, const gchar * mesg, ...);
58 void anjuta_status_push (AnjutaStatus *status, const gchar * mesg, ...);
59 #define anjuta_status_pop(obj) gnome_appbar_pop(GNOME_APPBAR((obj)));
60 #define anjuta_status_clear_stack(obj) gnome_appbar_clear_stack(GNOME_APPBAR((obj)));
61 void anjuta_status_busy_push (AnjutaStatus *status);
62 void anjuta_status_busy_pop (AnjutaStatus *status);
63 void anjuta_status_set_default (AnjutaStatus *status, const gchar *label,
64 const gchar *value_format, ...);
65 void anjuta_status_add_widget (AnjutaStatus *status, GtkWidget *widget);
66 void anjuta_status (AnjutaStatus *status, const gchar *mesg, gint timeout);
67 void anjuta_status_set_title_window (AnjutaStatus *status, GtkWidget *window);
68 void anjuta_status_set_title (AnjutaStatus *status, const gchar *title);
70 /* Status bar progress manipulation */
71 void anjuta_status_set_splash (AnjutaStatus *status, const gchar *splash_file,
72 gint splash_progress_position);
73 void anjuta_status_disable_splash (AnjutaStatus *status,
74 gboolean disable_splash);
75 void anjuta_status_progress_add_ticks (AnjutaStatus *status, gint ticks);
76 void anjuta_status_progress_tick (AnjutaStatus *status,
77 GdkPixbuf *icon, const gchar *text);
78 void anjuta_status_progress_increment_ticks (AnjutaStatus *status, gint ticks,
79 const gchar *text);
80 void anjuta_status_progress_pulse (AnjutaStatus *status, const gchar *text);
81 void anjuta_status_progress_reset (AnjutaStatus *status);
83 G_END_DECLS
85 #endif