Mercurial > audlegacy-plugins
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/rootvis/config_frontend.h Mon Mar 26 01:19:26 2007 -0700 @@ -0,0 +1,62 @@ +#include <config.h> + +#define VBOX 1 +#define HBOX 2 +#define HBBOX 3 +#define HBBOX2 4 +#define VBBOX 5 +#define FRAME 6 + +#define ATTACH_TO_NOTEBOOK 1 +#define ATTACH_TO_CONTAINER 2 +#define ATTACH_TO_BOX 3 + +#define ENTRY 1 +#define COMBO 2 + +// this struct contains all we need to change a color: +struct rootvis_colorsel +{ + GtkWidget *preview; // the preview we need to update. + GtkWidget *button; // the button that made it all + // ( to keep pressed ). FIXME + GtkWidget *label; // the name left of the button. + GtkWidget *color_picker; // the colorpicker that was launched. + GtkWidget *window; // the window we launched. + gdouble color[4]; // the color. + gdouble saved_color[4]; + char *name; // the name. + // (we'll use this to tune the colorpicker). + char *complete_name; // this is for the window's title. +}; + +// this is to contain pointers to various widgets... +struct rootvis_frontend +{ + GtkWidget *window_main; + GtkWidget *window_channel[2]; + GtkWidget *stereo_status[2]; + GtkWidget *stereo_check; + GtkWidget *debug_check; +} widgets; + +void config_hide(int); +void config_set_widgets(int); + +int signal_window_close(GtkWidget *window, gpointer data); +void signal_check_toggled(GtkWidget *togglebutton, gpointer data); +void signal_stereo_toggled(GtkWidget *togglebutton, gpointer data); +void signal_textentry_changed(GtkWidget *entry, gpointer data); +void signal_toggle_colorselector(GtkWidget *button, struct config_value* cvar); +void signal_colorselector_ok(GtkWidget *button, struct config_value* cvar); +void signal_colorselector_cancel(GtkWidget *button, struct config_value* cvar); +void signal_colorselector_update(GtkWidget *w, struct config_value* cvar); + +void signal_revert(GtkWidget *togglebutton, gpointer data); +void signal_save(GtkWidget *togglebutton, gpointer data); +void signal_show(GtkWidget *togglebutton, gpointer data); +void signal_hide(GtkWidget *togglebutton, gpointer data); + + +void frontend_update_color(struct config_value* cvar, int system); +void frontend_set_color(struct config_value* cvar);