forked from csmall/gjay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_private.h
74 lines (62 loc) · 2.68 KB
/
ui_private.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* Gjay - Gtk+ DJ music playlist creator
* Copyright (C) 2002,2003 Chuck Groom
* Copyright (C) 2010-2015 Craig Small
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
/* Only thr ui*.c files should include this */
#ifndef __UI_PRIVATE_H__
#define __UI_PRIVATE_H__
#define APP_WIDTH 620
#define APP_HEIGHT 470
#define PLAYLIST_WIDTH 500
#define PLAYLIST_HEIGHT 250
#define MSG_WIDTH 250
#define MSG_HEIGHT 160
#define COLORWHEEL_DIAMETER 150
#define PM_ABOUT "about.png"
#ifdef WITH_GUI
GtkWidget * new_button_label_pixbuf ( char * label_text,
int pm_type,
GdkPixbuf **pixbufs);
void switch_page (GtkNotebook *notebook,
GtkWidget *page,
gint page_num,
gpointer user_data);
GtkWidget * make_playlist_view ( GjayApp *gjay );
GtkWidget * make_no_root_view ( GjayApp *gjay );
GtkWidget * make_selection_view ( GjayApp *gjay );
GtkWidget * make_prefs_window ( GjayApp *gjay );
GtkWidget * make_about_view ( void );
void show_about_window ( GtkAction *action, gpointer user_data );
void hide_about_window ( void );
void set_add_files_progress ( char * str,
gint percent );
/* Select file pane */
void set_selected_in_playlist_view ( GjayApp *gjay,
const gboolean in_view );
/* Colorwheel widget (in select file pane) */
GtkWidget * create_colorwheel ( GjayApp *gjay,
const gint diameter,
GList ** list,
GFunc change_func,
gpointer user_data);
HSV get_colorwheel_color ( GtkWidget * colorwheel );
void set_colorwheel_color ( GtkWidget * colorwheel,
HSV color );
/* Menu */
GtkWidget * make_menubar ( GjayApp *gjay );
#endif /* WITH_GUI */
#endif /* _UI_PRIVATE_H_ */