mp3splt-gtk
ui_manager.h
1 /**********************************************************
2  *
3  * mp3splt-gtk -- utility based on mp3splt,
4  * for mp3/ogg splitting without decoding
5  *
6  * Copyright: (C) 2005-2012 Alexandru Munteanu
7  * Contact: io_fx@yahoo.fr
8  *
9  * http://mp3splt.sourceforge.net/
10  *
11  *********************************************************/
12 
13 /**********************************************************
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
28  * USA.
29  *
30  *********************************************************/
31 
32 #ifndef _UI_MANAGER_H
33 
34 #define UI_DEFAULT_WIDTH 550
35 #define UI_DEFAULT_HEIGHT 420
36 
37 typedef struct {
38  gint root_x_pos;
39  gint root_y_pos;
40  gint width;
41  gint height;
43 
44 typedef struct {
45  gchar *browser_directory;
46  ui_main_window *main_win;
47 } ui_infos;
48 
49 typedef struct {
50  ui_infos *infos;
51 } ui_state;
52 
53 ui_state *ui_state_new();
54 void ui_state_free(ui_state *ui);
55 
56 void ui_set_browser_directory(ui_state *ui, const gchar *directory);
57 const gchar *ui_get_browser_directory(ui_state *ui);
58 
59 void ui_set_main_win_position(ui_state *ui, gint x, gint y);
60 void ui_set_main_win_size(ui_state *ui, gint width, gint height);
61 const ui_main_window *ui_get_main_window_infos(ui_state *ui);
62 
63 #define _UI_MANAGER_H
64 #endif
65