Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Classes | Macros | Enumerations | Functions | Variables
ui_preferences.c File Reference
#include <string.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include <libaudcore/hook.h>
#include "debug.h"
#include "i18n.h"
#include "misc.h"
#include "output.h"
#include "playlist.h"
#include "plugin.h"
#include "plugins.h"
#include "preferences.h"
#include "ui_preferences.h"

Go to the source code of this file.

Classes

struct  Category
 
struct  TitleFieldTag
 

Macros

#define TITLESTRING_NPRESETS   6
 

Enumerations

enum  CategoryViewCols { CATEGORY_VIEW_COL_ICON, CATEGORY_VIEW_COL_NAME, CATEGORY_VIEW_COL_ID, CATEGORY_VIEW_N_COLS }
 

Functions

static void * create_output_plugin_box (void)
 
static void output_bit_depth_changed (void)
 
static void change_category (GtkNotebook *notebook, GtkTreeSelection *selection)
 
static void titlestring_tag_menu_callback (GtkMenuItem *menuitem, void *data)
 
static void on_titlestring_help_button_clicked (GtkButton *button, void *data)
 
static void update_titlestring_cbox (GtkComboBox *cbox, const char *format)
 
static void on_titlestring_entry_changed (GtkEntry *entry, GtkComboBox *cbox)
 
static void on_titlestring_cbox_changed (GtkComboBox *cbox, GtkEntry *entry)
 
static void widget_set_bool (const PreferencesWidget *widget, bool_t value)
 
static bool_t widget_get_bool (const PreferencesWidget *widget)
 
static void widget_set_int (const PreferencesWidget *widget, int value)
 
static int widget_get_int (const PreferencesWidget *widget)
 
static void widget_set_double (const PreferencesWidget *widget, double value)
 
static double widget_get_double (const PreferencesWidget *widget)
 
static void widget_set_string (const PreferencesWidget *widget, const char *value)
 
static char * widget_get_string (const PreferencesWidget *widget)
 
static void on_font_btn_font_set (GtkFontButton *button, const PreferencesWidget *widget)
 
static void on_spin_btn_changed_int (GtkSpinButton *button, const PreferencesWidget *widget)
 
static void on_spin_btn_changed_float (GtkSpinButton *button, const PreferencesWidget *widget)
 
static void fill_category_list (GtkTreeView *treeview, GtkNotebook *notebook)
 
static void on_radio_button_toggled (GtkWidget *button, const PreferencesWidget *widget)
 
static void init_radio_button (GtkWidget *button, const PreferencesWidget *widget)
 
static void on_toggle_button_toggled (GtkToggleButton *button, const PreferencesWidget *widget)
 
static void init_toggle_button (GtkWidget *button, const PreferencesWidget *widget)
 
static void on_entry_changed (GtkEntry *entry, const PreferencesWidget *widget)
 
static void on_cbox_changed_int (GtkComboBox *combobox, const PreferencesWidget *widget)
 
static void on_cbox_changed_string (GtkComboBox *combobox, const PreferencesWidget *widget)
 
static void fill_cbox (GtkWidget *combobox, const PreferencesWidget *widget, const char *domain)
 
static void create_spin_button (const PreferencesWidget *widget, GtkWidget **label_pre, GtkWidget **spin_btn, GtkWidget **label_past, const char *domain)
 
void create_font_btn (const PreferencesWidget *widget, GtkWidget **label, GtkWidget **font_btn, const char *domain)
 
static void create_entry (const PreferencesWidget *widget, GtkWidget **label, GtkWidget **entry, const char *domain)
 
static void create_label (const PreferencesWidget *widget, GtkWidget **label, GtkWidget **icon, const char *domain)
 
static void create_cbox (const PreferencesWidget *widget, GtkWidget **label, GtkWidget **combobox, const char *domain)
 
static void fill_grid (GtkWidget *grid, const PreferencesWidget *elements, int amt, const char *domain)
 
void create_widgets_with_domain (void *box, const PreferencesWidget *widgets, int amt, const char *domain)
 
static GtkWidget * create_titlestring_tag_menu (void)
 
static void show_numbers_cb (GtkToggleButton *numbers, void *unused)
 
static void leading_zero_cb (GtkToggleButton *leading)
 
static void create_titlestring_widgets (GtkWidget **cbox, GtkWidget **entry)
 
static void create_playlist_category (void)
 
static void create_song_info_category (void)
 
static bool_t output_enum_cb (PluginHandle *plugin, GList **list)
 
static GList * output_get_list (void)
 
static void output_combo_update (GtkComboBox *combo)
 
static void output_combo_changed (GtkComboBox *combo)
 
static void output_combo_fill (GtkComboBox *combo)
 
static void output_do_config (void)
 
static void output_do_about (void)
 
static void create_audio_category (void)
 
static void create_connectivity_category (void)
 
static void create_plugin_category (void)
 
static bool_t prefswin_destroy (GtkWidget *window, GdkEvent *event, void *data)
 
static void create_prefs_window (void)
 
void destroy_prefs_window (void)
 
void show_prefs_window (void)
 
void hide_prefs_window (void)
 

Variables

static void * prefswin = NULL
 
static GtkWidget * category_treeview = NULL
 
static GtkWidget * category_notebook = NULL
 
GtkWidget * titlestring_entry
 
static Category categories []
 
static int n_categories = G_N_ELEMENTS(categories)
 
static TitleFieldTag title_field_tags []
 
static const unsigned int n_title_field_tags = G_N_ELEMENTS(title_field_tags)
 
static ComboBoxElements bitdepth_elements []
 
static PreferencesWidget rg_mode_widgets []
 
static PreferencesWidget audio_page_widgets []
 
static PreferencesWidget proxy_host_port_elements []
 
static PreferencesWidget proxy_auth_elements []
 
static PreferencesWidget connectivity_page_widgets []
 
static PreferencesWidget chardet_elements []
 
static PreferencesWidget playlist_page_widgets []
 
static PreferencesWidget song_info_page_widgets []
 
static const char *const titlestring_presets [TITLESTRING_NPRESETS]
 
static const char *const titlestring_preset_names [TITLESTRING_NPRESETS]
 
static GtkWidget * output_config_button
 
static GtkWidget * output_about_button
 

Macro Definition Documentation

#define TITLESTRING_NPRESETS   6

Enumeration Type Documentation

Enumerator
CATEGORY_VIEW_COL_ICON 
CATEGORY_VIEW_COL_NAME 
CATEGORY_VIEW_COL_ID 
CATEGORY_VIEW_N_COLS 

Definition at line 42 of file ui_preferences.c.

Function Documentation

static void change_category ( GtkNotebook *  notebook,
GtkTreeSelection *  selection 
)
static

Definition at line 238 of file ui_preferences.c.

Referenced by fill_category_list().

static void create_audio_category ( void  )
static

Definition at line 1174 of file ui_preferences.c.

Referenced by create_prefs_window().

static void create_cbox ( const PreferencesWidget *  widget,
GtkWidget **  label,
GtkWidget **  combobox,
const char *  domain 
)
static

Definition at line 683 of file ui_preferences.c.

Referenced by create_widgets_with_domain(), and fill_grid().

static void create_connectivity_category ( void  )
static

Definition at line 1182 of file ui_preferences.c.

Referenced by create_prefs_window().

static void create_entry ( const PreferencesWidget *  widget,
GtkWidget **  label,
GtkWidget **  entry,
const char *  domain 
)
static

Definition at line 642 of file ui_preferences.c.

Referenced by create_widgets_with_domain(), and fill_grid().

void create_font_btn ( const PreferencesWidget *  widget,
GtkWidget **  label,
GtkWidget **  font_btn,
const char *  domain 
)

Definition at line 613 of file ui_preferences.c.

Referenced by create_widgets_with_domain(), and fill_grid().

static void create_label ( const PreferencesWidget *  widget,
GtkWidget **  label,
GtkWidget **  icon,
const char *  domain 
)
static

Definition at line 668 of file ui_preferences.c.

Referenced by create_widgets_with_domain(), and fill_grid().

static void * create_output_plugin_box ( void  )
static

Definition at line 1141 of file ui_preferences.c.

static void create_playlist_category ( void  )
static

Definition at line 975 of file ui_preferences.c.

Referenced by create_prefs_window().

static void create_plugin_category ( void  )
static

Definition at line 1196 of file ui_preferences.c.

Referenced by create_prefs_window().

static void create_prefs_window ( void  )
static

Definition at line 1220 of file ui_preferences.c.

Referenced by show_prefs_window().

static void create_song_info_category ( void  )
static

Definition at line 1067 of file ui_preferences.c.

Referenced by create_prefs_window().

static void create_spin_button ( const PreferencesWidget *  widget,
GtkWidget **  label_pre,
GtkWidget **  spin_btn,
GtkWidget **  label_past,
const char *  domain 
)
static

Definition at line 574 of file ui_preferences.c.

Referenced by create_widgets_with_domain(), and fill_grid().

static GtkWidget* create_titlestring_tag_menu ( void  )
static

Definition at line 924 of file ui_preferences.c.

Referenced by create_playlist_category().

static void create_titlestring_widgets ( GtkWidget **  cbox,
GtkWidget **  entry 
)
static

Definition at line 956 of file ui_preferences.c.

Referenced by create_playlist_category().

void create_widgets_with_domain ( void *  box,
const PreferencesWidget *  widgets,
int  amt,
const char *  domain 
)

Definition at line 740 of file ui_preferences.c.

Referenced by plugin_make_config_window().

void destroy_prefs_window ( void  )

Definition at line 1320 of file ui_preferences.c.

static void fill_category_list ( GtkTreeView *  treeview,
GtkNotebook *  notebook 
)
static

Definition at line 424 of file ui_preferences.c.

Referenced by create_prefs_window().

static void fill_cbox ( GtkWidget *  combobox,
const PreferencesWidget *  widget,
const char *  domain 
)
static

Definition at line 529 of file ui_preferences.c.

Referenced by create_cbox().

static void fill_grid ( GtkWidget *  grid,
const PreferencesWidget *  elements,
int  amt,
const char *  domain 
)
static

Definition at line 695 of file ui_preferences.c.

Referenced by create_widgets_with_domain().

void hide_prefs_window ( void  )

Definition at line 1333 of file ui_preferences.c.

static void init_radio_button ( GtkWidget *  button,
const PreferencesWidget *  widget 
)
static

Definition at line 482 of file ui_preferences.c.

Referenced by create_widgets_with_domain().

static void init_toggle_button ( GtkWidget *  button,
const PreferencesWidget *  widget 
)
static

Definition at line 503 of file ui_preferences.c.

Referenced by create_widgets_with_domain().

static void leading_zero_cb ( GtkToggleButton *  leading)
static

Definition at line 949 of file ui_preferences.c.

Referenced by create_playlist_category().

static void on_cbox_changed_int ( GtkComboBox *  combobox,
const PreferencesWidget *  widget 
)
static

Definition at line 517 of file ui_preferences.c.

Referenced by fill_cbox().

static void on_cbox_changed_string ( GtkComboBox *  combobox,
const PreferencesWidget *  widget 
)
static

Definition at line 523 of file ui_preferences.c.

Referenced by fill_cbox().

static void on_entry_changed ( GtkEntry *  entry,
const PreferencesWidget *  widget 
)
static

Definition at line 512 of file ui_preferences.c.

Referenced by create_entry().

static void on_font_btn_font_set ( GtkFontButton *  button,
const PreferencesWidget *  widget 
)
static

Definition at line 409 of file ui_preferences.c.

Referenced by create_font_btn().

static void on_radio_button_toggled ( GtkWidget *  button,
const PreferencesWidget *  widget 
)
static

Definition at line 476 of file ui_preferences.c.

Referenced by init_radio_button().

static void on_spin_btn_changed_float ( GtkSpinButton *  button,
const PreferencesWidget *  widget 
)
static

Definition at line 419 of file ui_preferences.c.

Referenced by create_spin_button().

static void on_spin_btn_changed_int ( GtkSpinButton *  button,
const PreferencesWidget *  widget 
)
static

Definition at line 414 of file ui_preferences.c.

Referenced by create_spin_button().

static void on_titlestring_cbox_changed ( GtkComboBox *  cbox,
GtkEntry *  entry 
)
static

Definition at line 299 of file ui_preferences.c.

Referenced by create_titlestring_widgets().

static void on_titlestring_entry_changed ( GtkEntry *  entry,
GtkComboBox *  cbox 
)
static

Definition at line 291 of file ui_preferences.c.

Referenced by create_titlestring_widgets().

static void on_titlestring_help_button_clicked ( GtkButton *  button,
void *  data 
)
static

Definition at line 271 of file ui_preferences.c.

Referenced by create_playlist_category().

static void on_toggle_button_toggled ( GtkToggleButton *  button,
const PreferencesWidget *  widget 
)
static

Definition at line 493 of file ui_preferences.c.

Referenced by init_toggle_button().

static void output_bit_depth_changed ( void  )
static

Definition at line 1122 of file ui_preferences.c.

static void output_combo_changed ( GtkComboBox *  combo)
static

Definition at line 1105 of file ui_preferences.c.

Referenced by create_output_plugin_box().

static void output_combo_fill ( GtkComboBox *  combo)
static

Definition at line 1115 of file ui_preferences.c.

Referenced by create_output_plugin_box().

static void output_combo_update ( GtkComboBox *  combo)
static

Definition at line 1097 of file ui_preferences.c.

Referenced by create_output_plugin_box(), and output_combo_changed().

static void output_do_about ( void  )
static

Definition at line 1134 of file ui_preferences.c.

Referenced by create_output_plugin_box().

static void output_do_config ( void  )
static

Definition at line 1127 of file ui_preferences.c.

Referenced by create_output_plugin_box().

static bool_t output_enum_cb ( PluginHandle plugin,
GList **  list 
)
static

Definition at line 1077 of file ui_preferences.c.

Referenced by output_get_list().

static GList* output_get_list ( void  )
static

Definition at line 1083 of file ui_preferences.c.

Referenced by output_combo_changed(), output_combo_fill(), and output_combo_update().

static bool_t prefswin_destroy ( GtkWidget *  window,
GdkEvent *  event,
void *  data 
)
static

Definition at line 1212 of file ui_preferences.c.

Referenced by create_prefs_window(), and destroy_prefs_window().

static void show_numbers_cb ( GtkToggleButton *  numbers,
void *  unused 
)
static

Definition at line 942 of file ui_preferences.c.

Referenced by create_playlist_category().

void show_prefs_window ( void  )

Definition at line 1325 of file ui_preferences.c.

static void titlestring_tag_menu_callback ( GtkMenuItem *  menuitem,
void *  data 
)
static

Definition at line 253 of file ui_preferences.c.

Referenced by create_titlestring_tag_menu().

static void update_titlestring_cbox ( GtkComboBox *  cbox,
const char *  format 
)
static

Definition at line 278 of file ui_preferences.c.

Referenced by create_titlestring_widgets(), and on_titlestring_entry_changed().

static bool_t widget_get_bool ( const PreferencesWidget *  widget)
static

Definition at line 319 of file ui_preferences.c.

Referenced by init_toggle_button().

static double widget_get_double ( const PreferencesWidget *  widget)
static

Definition at line 369 of file ui_preferences.c.

Referenced by create_spin_button().

static int widget_get_int ( const PreferencesWidget *  widget)
static

Definition at line 344 of file ui_preferences.c.

Referenced by create_spin_button(), fill_cbox(), and init_radio_button().

static char* widget_get_string ( const PreferencesWidget *  widget)
static

Definition at line 397 of file ui_preferences.c.

Referenced by create_entry(), create_font_btn(), and fill_cbox().

static void widget_set_bool ( const PreferencesWidget *  widget,
bool_t  value 
)
static

Definition at line 306 of file ui_preferences.c.

Referenced by on_toggle_button_toggled().

static void widget_set_double ( const PreferencesWidget *  widget,
double  value 
)
static

Definition at line 356 of file ui_preferences.c.

Referenced by on_spin_btn_changed_float().

static void widget_set_int ( const PreferencesWidget *  widget,
int  value 
)
static
static void widget_set_string ( const PreferencesWidget *  widget,
const char *  value 
)
static

Variable Documentation

PreferencesWidget audio_page_widgets[]
static
Initial value:
= {
{WIDGET_LABEL, N_("<b>Output Settings</b>")},
{WIDGET_CUSTOM, .data = {.populate = create_output_plugin_box}},
{WIDGET_COMBO_BOX, N_("Bit depth:"),
.cfg_type = VALUE_INT, .cname = "output_bit_depth", .callback = output_bit_depth_changed,
.data = {.combo = {bitdepth_elements, G_N_ELEMENTS (bitdepth_elements)}}},
{WIDGET_SPIN_BTN, N_("Buffer size:"),
.cfg_type = VALUE_INT, .cname = "output_buffer_size",
.data = {.spin_btn = {100, 10000, 1000, N_("ms")}}},
{WIDGET_CHK_BTN, N_("Soft clipping"),
.cfg_type = VALUE_BOOLEAN, .cname = "soft_clipping"},
{WIDGET_CHK_BTN, N_("Use software volume control (not recommended)"),
.cfg_type = VALUE_BOOLEAN, .cname = "software_volume_control"},
{WIDGET_LABEL, N_("<b>Replay Gain</b>")},
{WIDGET_CHK_BTN, N_("Enable Replay Gain"),
.cfg_type = VALUE_BOOLEAN, .cname = "enable_replay_gain"},
{WIDGET_BOX, .child = TRUE, .data = {.box = {rg_mode_widgets, G_N_ELEMENTS (rg_mode_widgets), TRUE}}},
{WIDGET_CHK_BTN, N_("Prevent clipping (recommended)"), .child = TRUE,
.cfg_type = VALUE_BOOLEAN, .cname = "enable_clipping_prevention"},
{WIDGET_LABEL, N_("<b>Adjust Levels</b>"), .child = TRUE},
{WIDGET_SPIN_BTN, N_("Amplify all files:"), .child = TRUE,
.cfg_type = VALUE_FLOAT, .cname = "replay_gain_preamp",
.data = {.spin_btn = {-15, 15, 0.1, N_("dB")}}},
{WIDGET_SPIN_BTN, N_("Amplify untagged files:"), .child = TRUE,
.cfg_type = VALUE_FLOAT, .cname = "default_gain",
.data = {.spin_btn = {-15, 15, 0.1, N_("dB")}}}}

Definition at line 121 of file ui_preferences.c.

Referenced by create_audio_category().

ComboBoxElements bitdepth_elements[]
static
Initial value:
= {
{ GINT_TO_POINTER(16), "16" },
{ GINT_TO_POINTER(24), "24" },
{ GINT_TO_POINTER(32), "32" },
{GINT_TO_POINTER (0), N_("Floating point")},
}

Definition at line 108 of file ui_preferences.c.

Category categories[]
static
Initial value:
= {
{"audio.png", N_("Audio")},
{"connectivity.png", N_("Network")},
{"playlist.png", N_("Playlist")},
{"info.png", N_("Song Info")},
{"plugins.png", N_("Plugins")},
}

Definition at line 66 of file ui_preferences.c.

GtkWidget* category_notebook = NULL
static
GtkWidget* category_treeview = NULL
static

Definition at line 60 of file ui_preferences.c.

Referenced by create_prefs_window().

PreferencesWidget chardet_elements[]
static
Initial value:
= {
{WIDGET_ENTRY, N_("Fallback character encodings:"), .cfg_type = VALUE_STRING,
.cname = "chardet_fallback", .child = TRUE}}

Definition at line 168 of file ui_preferences.c.

PreferencesWidget connectivity_page_widgets[]
static
Initial value:
= {
{WIDGET_LABEL, N_("<b>Proxy Configuration</b>"), NULL, NULL, NULL, FALSE},
{WIDGET_CHK_BTN, N_("Enable proxy usage"), .cfg_type = VALUE_BOOLEAN, .cname = "use_proxy"},
{WIDGET_TABLE, .child = TRUE, .data = {.table = {proxy_host_port_elements,
G_N_ELEMENTS (proxy_host_port_elements)}}},
{WIDGET_CHK_BTN, N_("Use authentication with proxy"),
.cfg_type = VALUE_BOOLEAN, .cname = "use_proxy_auth"},
{WIDGET_TABLE, .child = TRUE, .data = {.table = {proxy_auth_elements,
G_N_ELEMENTS (proxy_auth_elements)}}}
}

Definition at line 157 of file ui_preferences.c.

Referenced by create_connectivity_category().

int n_categories = G_N_ELEMENTS(categories)
static

Definition at line 74 of file ui_preferences.c.

Referenced by fill_category_list().

const unsigned int n_title_field_tags = G_N_ELEMENTS(title_field_tags)
static

Definition at line 90 of file ui_preferences.c.

Referenced by create_titlestring_tag_menu().

GtkWidget * output_about_button
static

Definition at line 1075 of file ui_preferences.c.

Referenced by create_output_plugin_box(), and output_combo_update().

GtkWidget* output_config_button
static

Definition at line 1075 of file ui_preferences.c.

Referenced by create_output_plugin_box(), and output_combo_update().

PreferencesWidget playlist_page_widgets[]
static
Initial value:
= {
{WIDGET_LABEL, N_("<b>Behavior</b>"), NULL, NULL, NULL, FALSE},
{WIDGET_CHK_BTN, N_("Continue playback on startup"),
.cfg_type = VALUE_BOOLEAN, .cname = "resume_playback_on_startup"},
{WIDGET_CHK_BTN, N_("Advance when the current song is deleted"),
.cfg_type = VALUE_BOOLEAN, .cname = "advance_on_delete"},
{WIDGET_CHK_BTN, N_("Clear the playlist when opening files"),
.cfg_type = VALUE_BOOLEAN, .cname = "clear_playlist"},
{WIDGET_CHK_BTN, N_("Open files in a temporary playlist"),
.cfg_type = VALUE_BOOLEAN, .cname = "open_to_temporary"},
{WIDGET_CHK_BTN, N_("Do not load metadata for songs until played"),
.cfg_type = VALUE_BOOLEAN, .cname = "metadata_on_play",
.callback = playlist_trigger_scan},
{WIDGET_LABEL, N_("<b>Compatibility</b>"), NULL, NULL, NULL, FALSE},
{WIDGET_CHK_BTN, N_("Interpret \\ (backward slash) as a folder delimiter"),
.cfg_type = VALUE_BOOLEAN, .cname = "convert_backslash"},
{WIDGET_TABLE, .data = {.table = {chardet_elements,
G_N_ELEMENTS (chardet_elements)}}}
}

Definition at line 177 of file ui_preferences.c.

Referenced by create_playlist_category().

void* prefswin = NULL
static
PreferencesWidget proxy_auth_elements[]
static
Initial value:
= {
{WIDGET_ENTRY, N_("Proxy username:"), .cfg_type = VALUE_STRING, .cname = "proxy_user"},
{WIDGET_ENTRY, N_("Proxy password:"), .cfg_type = VALUE_STRING, .cname = "proxy_pass",
.data = {.entry = {.password = TRUE}}}}

Definition at line 152 of file ui_preferences.c.

PreferencesWidget proxy_host_port_elements[]
static
Initial value:
= {
{WIDGET_ENTRY, N_("Proxy hostname:"), .cfg_type = VALUE_STRING, .cname = "proxy_host"},
{WIDGET_ENTRY, N_("Proxy port:"), .cfg_type = VALUE_STRING, .cname = "proxy_port"}}

Definition at line 148 of file ui_preferences.c.

PreferencesWidget rg_mode_widgets[]
static
Initial value:
= {
{WIDGET_CHK_BTN, N_("Album mode"), .cfg_type = VALUE_BOOLEAN, .cname = "replay_gain_album"}}

Definition at line 118 of file ui_preferences.c.

PreferencesWidget song_info_page_widgets[]
static
Initial value:
= {
{WIDGET_LABEL, N_("<b>Album Art</b>")},
{WIDGET_LABEL, N_("Search for images matching these words (comma-separated):")},
{WIDGET_ENTRY, .cfg_type = VALUE_STRING, .cname = "cover_name_include"},
{WIDGET_LABEL, N_("Exclude images matching these words (comma-separated):")},
{WIDGET_ENTRY, .cfg_type = VALUE_STRING, .cname = "cover_name_exclude"},
{WIDGET_CHK_BTN, N_("Search for images matching song file name"),
.cfg_type = VALUE_BOOLEAN, .cname = "use_file_cover"},
{WIDGET_CHK_BTN, N_("Search recursively"),
.cfg_type = VALUE_BOOLEAN, .cname = "recurse_for_cover"},
{WIDGET_SPIN_BTN, N_("Search depth:"), .child = TRUE,
.cfg_type = VALUE_INT, .cname = "recurse_for_cover_depth",
.data = {.spin_btn = {0, 100, 1}}},
{WIDGET_LABEL, N_("<b>Popup Information</b>")},
{WIDGET_CHK_BTN, N_("Show popup information"),
.cfg_type = VALUE_BOOLEAN, .cname = "show_filepopup_for_tuple"},
{WIDGET_SPIN_BTN, N_("Popup delay (tenths of a second):"), .child = TRUE,
.cfg_type = VALUE_INT, .cname = "filepopup_delay",
.data = {.spin_btn = {0, 100, 1}}},
{WIDGET_CHK_BTN, N_("Show time scale for current song"), .child = TRUE,
.cfg_type = VALUE_BOOLEAN, .cname = "filepopup_showprogressbar"}}

Definition at line 197 of file ui_preferences.c.

Referenced by create_song_info_category().

TitleFieldTag title_field_tags[]
static
Initial value:
= {
{ N_("Artist") , "${artist}" },
{ N_("Album") , "${album}" },
{ N_("Title") , "${title}" },
{ N_("Tracknumber"), "${track-number}" },
{ N_("Genre") , "${genre}" },
{ N_("Filename") , "${file-name}" },
{ N_("Filepath") , "${file-path}" },
{ N_("Date") , "${date}" },
{ N_("Year") , "${year}" },
{ N_("Comment") , "${comment}" },
{ N_("Codec") , "${codec}" },
{ N_("Quality") , "${quality}" },
}

Definition at line 76 of file ui_preferences.c.

GtkWidget* titlestring_entry

Definition at line 64 of file ui_preferences.c.

Referenced by create_playlist_category(), and titlestring_tag_menu_callback().

const char* const titlestring_preset_names[TITLESTRING_NPRESETS]
static
Initial value:
= {
N_("TITLE"),
N_("ARTIST - TITLE"),
N_("ARTIST - ALBUM - TITLE"),
N_("ARTIST - ALBUM - TRACK. TITLE"),
N_("ARTIST [ ALBUM ] - TRACK. TITLE"),
N_("ALBUM - TITLE")}

Definition at line 229 of file ui_preferences.c.

Referenced by create_titlestring_widgets().

const char* const titlestring_presets[TITLESTRING_NPRESETS]
static
Initial value:
= {
"${title}",
"${?artist:${artist} - }${title}",
"${?artist:${artist} - }${?album:${album} - }${title}",
"${?artist:${artist} - }${?album:${album} - }${?track-number:${track-number}. }${title}",
"${?artist:${artist} }${?album:[ ${album} ] }${?artist:- }${?track-number:${track-number}. }${title}",
"${?album:${album} - }${title}"}

Definition at line 221 of file ui_preferences.c.

Referenced by on_titlestring_cbox_changed(), and update_titlestring_cbox().