Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkstatusbar.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __GXK_STATUS_BAR_H__
3 #define __GXK_STATUS_BAR_H__
4 
5 #include <gxk/gxkutils.hh>
6 
7 /* --- status percentages --- */
8 #define GXK_STATUS_PROGRESS (+200.0)
9 #define GXK_STATUS_DONE (+100.0)
10 #define GXK_STATUS_IDLE_HINT (-0.4)
11 #define GXK_STATUS_IDLE (-0.5)
12 #define GXK_STATUS_WAIT (-1.0)
13 #define GXK_STATUS_ERROR (-2.0)
14 /* 0..+100 is normal progression percentage */
15 
16 
17 /* --- auxillary structure --- */
18 typedef struct
19 {
20  GtkWidget *sbar;
21  GtkProgressBar *pbar;
22  GtkProgress *prog;
23  GtkLabel *message;
24  GtkLabel *status;
25  guint is_idle : 1;
26  guint timer_id;
27 } GxkStatusBar;
28 
29 
30 /* --- prototypes --- */
31 GtkWidget* gxk_status_bar_create (void);
32 void gxk_status_enable_error_bell (gboolean enable_error_bell);
33 void gxk_status_set (gfloat percentage,
34  const gchar *message,
35  const gchar *status_msg);
36 #define gxk_status_printf(percentage, status_msg, ...) gxk_status_set (percentage, status_msg, Bse::string_format (__VA_ARGS__).c_str())
37 void gxk_status_clear (void);
38 void gxk_status_window_push (gpointer widget);
39 void gxk_status_window_pop (void);
40 void gxk_status_push_progress_window (gpointer widget);
41 void gxk_status_pop_progress_window (void);
42 
43 
44 #endif /* __GXK_STATUS_BAR_H__ */
void gxk_status_window_push(gpointer widget)
Definition: gxkstatusbar.cc:276
GtkWidget * gxk_status_bar_create(void)
Definition: gxkstatusbar.cc:64
Definition: gxkstatusbar.hh:18
void gxk_status_window_pop(void)
Pop the most recently pushed window from the status bar window stack.
Definition: gxkstatusbar.cc:291
void gxk_status_set(gfloat percentage, const gchar *message, const gchar *status_msg)
Definition: gxkstatusbar.cc:259
void gxk_status_clear(void)
Clear the current status bar.
Definition: gxkstatusbar.cc:155