Mercurial > audlegacy-plugins
annotate src/skins/skins_cfg.h @ 3047:4434b4c4a715
ported EsounD plugin
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Fri, 17 Apr 2009 16:17:10 +0300 |
parents | bdc4fbf878ec |
children | 1ffcad5f406c |
rev | line source |
---|---|
2572
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
1 /* |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
2 * Audacious - a cross-platform multimedia player |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
3 * Copyright (c) 2008 Tomasz Moń |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
4 * |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
5 * This program is free software; you can redistribute it and/or modify |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
6 * it under the terms of the GNU General Public License as published by |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
7 * the Free Software Foundation; under version 3 of the License. |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
8 * |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
9 * This program is distributed in the hope that it will be useful, |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
12 * GNU General Public License for more details. |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
13 * |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
14 * You should have received a copy of the GNU General Public License |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
15 * along with this program. If not, see <http://www.gnu.org/licenses>. |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
16 * |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
17 * The Audacious team does not consider modular code linking to |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
18 * Audacious or using our public API to be a derived work. |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
19 */ |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
20 |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
21 #ifndef SKINS_CFG_H |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
22 #define SKINS_CFG_H |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
23 |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
24 #include <glib.h> |
2793 | 25 #include <gtk/gtk.h> |
2572
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
26 |
2583 | 27 #define MAINWIN_DEFAULT_POS_X 20 |
28 #define MAINWIN_DEFAULT_POS_Y 20 | |
29 #define EQUALIZER_DEFAULT_POS_X 20 | |
30 #define EQUALIZER_DEFAULT_POS_Y 136 | |
31 #define PLAYLISTWIN_DEFAULT_WIDTH 275 | |
32 #define PLAYLISTWIN_DEFAULT_HEIGHT 232 | |
33 #define PLAYLISTWIN_DEFAULT_POS_X 295 | |
34 #define PLAYLISTWIN_DEFAULT_POS_Y 20 | |
35 | |
2572
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
36 |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
37 typedef struct { |
2584 | 38 gint player_x, player_y; |
2583 | 39 gint equalizer_x, equalizer_y; |
40 gint playlist_x, playlist_y; | |
41 gint playlist_width, playlist_height; | |
42 gint snap_distance; | |
43 gboolean snap_windows, save_window_position; | |
2592
8f5999909416
add ui_main - with huge amount of #if 0 to sort out later
Tomasz Mon <desowin@gmail.com>
parents:
2586
diff
changeset
|
44 gboolean scaled, autoscroll; |
2602
7cd898f08f31
work in progress - add ui_manager and ui_main_evlisteners
Tomasz Mon <desowin@gmail.com>
parents:
2592
diff
changeset
|
45 gboolean always_on_top, sticky; |
2582
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
46 gfloat scale_factor; |
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
47 gboolean always_show_cb; |
2614 | 48 gboolean close_dialog_open; |
49 gboolean close_dialog_add; | |
2582
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
50 gchar *skin; |
2614 | 51 gchar *filesel_path; |
2592
8f5999909416
add ui_main - with huge amount of #if 0 to sort out later
Tomasz Mon <desowin@gmail.com>
parents:
2586
diff
changeset
|
52 gboolean player_visible, equalizer_visible, playlist_visible; |
2582
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
53 gboolean player_shaded, equalizer_shaded, playlist_shaded; |
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
54 gboolean dim_titlebar; |
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
55 gboolean show_wm_decorations; |
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
56 gboolean easy_move; |
2584 | 57 gboolean allow_broken_skins; |
58 gboolean disable_inline_gtk; | |
59 gboolean analyzer_peaks; | |
2586 | 60 gboolean twoway_scroll; |
2583 | 61 gint timer_mode; |
62 gint vis_type; | |
63 gint analyzer_mode, analyzer_type; | |
64 gint scope_mode; | |
65 gint voiceprint_mode; | |
66 gint vu_mode, vis_refresh; | |
67 gint analyzer_falloff, peaks_falloff; | |
68 gint playlist_position; | |
69 gint mouse_change; | |
70 gint colorize_r; gint colorize_g; gint colorize_b; | |
71 gint scroll_pl_by; | |
2592
8f5999909416
add ui_main - with huge amount of #if 0 to sort out later
Tomasz Mon <desowin@gmail.com>
parents:
2586
diff
changeset
|
72 gboolean warn_about_win_visibility; |
8f5999909416
add ui_main - with huge amount of #if 0 to sort out later
Tomasz Mon <desowin@gmail.com>
parents:
2586
diff
changeset
|
73 gboolean warn_about_broken_gtk_engines; |
8f5999909416
add ui_main - with huge amount of #if 0 to sort out later
Tomasz Mon <desowin@gmail.com>
parents:
2586
diff
changeset
|
74 gboolean mainwin_use_bitmapfont; |
2606 | 75 gboolean eq_scaled_linked; |
2620 | 76 gboolean show_numbers_in_pl, show_separator_in_pl; |
2642 | 77 gchar *playlist_font, *mainwin_font; |
78 gboolean show_filepopup_for_tuple; | |
79 gint filepopup_delay; | |
2679
fb5375e86a03
make setting random skin on play working
Tomasz Mon <desowin@gmail.com>
parents:
2642
diff
changeset
|
80 gboolean random_skin_on_play; |
2582
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
81 } skins_cfg_t; |
2572
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
82 |
2582
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
83 extern skins_cfg_t config; |
2572
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
84 |
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
85 skins_cfg_t * skins_cfg_new(void); |
2582
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
86 void skins_cfg_free(); |
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
87 void skins_cfg_load(); |
9b4dfc007b87
use more local configuration options
Tomasz Mon <desowin@gmail.com>
parents:
2581
diff
changeset
|
88 void skins_cfg_save(); |
2572
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
89 |
2793 | 90 GtkWidget* skins_configure(void); |
2837
bdc4fbf878ec
make use of new InterfaceOps
Tomasz Mon <desowin@gmail.com>
parents:
2793
diff
changeset
|
91 void on_skin_view_drag_data_received(GtkWidget * widget, |
bdc4fbf878ec
make use of new InterfaceOps
Tomasz Mon <desowin@gmail.com>
parents:
2793
diff
changeset
|
92 GdkDragContext * context, |
bdc4fbf878ec
make use of new InterfaceOps
Tomasz Mon <desowin@gmail.com>
parents:
2793
diff
changeset
|
93 gint x, gint y, |
bdc4fbf878ec
make use of new InterfaceOps
Tomasz Mon <desowin@gmail.com>
parents:
2793
diff
changeset
|
94 GtkSelectionData * selection_data, |
bdc4fbf878ec
make use of new InterfaceOps
Tomasz Mon <desowin@gmail.com>
parents:
2793
diff
changeset
|
95 guint info, guint time, |
bdc4fbf878ec
make use of new InterfaceOps
Tomasz Mon <desowin@gmail.com>
parents:
2793
diff
changeset
|
96 gpointer user_data); |
2690
a8328c40a5c1
more work on skins plugin settings
Tomasz Mon <desowin@gmail.com>
parents:
2680
diff
changeset
|
97 |
2572
d0daee216c8d
stub (really incomplete) for skin engine plugin
Tomasz Mon <desowin@gmail.com>
parents:
diff
changeset
|
98 #endif |