comparison src/rootvis/config_frontend.h @ 900:d985f0dcdeb0 trunk

[svn] - add a starting point for xmms-rootvis port. giacomo will need to finish this up, as my XLib skills are not enough at this time.
author nenolod
date Mon, 26 Mar 2007 01:19:26 -0700
parents
children 7b284f323ad8
comparison
equal deleted inserted replaced
899:68508f8cdf25 900:d985f0dcdeb0
1 #include <config.h>
2
3 #define VBOX 1
4 #define HBOX 2
5 #define HBBOX 3
6 #define HBBOX2 4
7 #define VBBOX 5
8 #define FRAME 6
9
10 #define ATTACH_TO_NOTEBOOK 1
11 #define ATTACH_TO_CONTAINER 2
12 #define ATTACH_TO_BOX 3
13
14 #define ENTRY 1
15 #define COMBO 2
16
17 // this struct contains all we need to change a color:
18 struct rootvis_colorsel
19 {
20 GtkWidget *preview; // the preview we need to update.
21 GtkWidget *button; // the button that made it all
22 // ( to keep pressed ). FIXME
23 GtkWidget *label; // the name left of the button.
24 GtkWidget *color_picker; // the colorpicker that was launched.
25 GtkWidget *window; // the window we launched.
26 gdouble color[4]; // the color.
27 gdouble saved_color[4];
28 char *name; // the name.
29 // (we'll use this to tune the colorpicker).
30 char *complete_name; // this is for the window's title.
31 };
32
33 // this is to contain pointers to various widgets...
34 struct rootvis_frontend
35 {
36 GtkWidget *window_main;
37 GtkWidget *window_channel[2];
38 GtkWidget *stereo_status[2];
39 GtkWidget *stereo_check;
40 GtkWidget *debug_check;
41 } widgets;
42
43 void config_hide(int);
44 void config_set_widgets(int);
45
46 int signal_window_close(GtkWidget *window, gpointer data);
47 void signal_check_toggled(GtkWidget *togglebutton, gpointer data);
48 void signal_stereo_toggled(GtkWidget *togglebutton, gpointer data);
49 void signal_textentry_changed(GtkWidget *entry, gpointer data);
50 void signal_toggle_colorselector(GtkWidget *button, struct config_value* cvar);
51 void signal_colorselector_ok(GtkWidget *button, struct config_value* cvar);
52 void signal_colorselector_cancel(GtkWidget *button, struct config_value* cvar);
53 void signal_colorselector_update(GtkWidget *w, struct config_value* cvar);
54
55 void signal_revert(GtkWidget *togglebutton, gpointer data);
56 void signal_save(GtkWidget *togglebutton, gpointer data);
57 void signal_show(GtkWidget *togglebutton, gpointer data);
58 void signal_hide(GtkWidget *togglebutton, gpointer data);
59
60
61 void frontend_update_color(struct config_value* cvar, int system);
62 void frontend_set_color(struct config_value* cvar);