mp3splt-gtk 0.9.3.1519
Loading...
Searching...
No Matches
main_window.h
1/**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright: (C) 2005-2014 Alexandru Munteanu
7 * Contact: m@ioalex.net
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
28 * USA.
29 *
30 *********************************************************/
31
32/**********************************************************
33 * Filename: main_window.h
34 *
35 * header of main_window.c
36 *
37 *********************************************************/
38
39#ifndef MAIN_WINDOW_H
40
41#define MAIN_WINDOW_H
42
43#include "all_includes.h"
44
45#ifdef __WIN32__
46#define PIXMAP_PATH ""
47#define IMAGEDIR ""
48#endif
49
50#ifndef GDK_Left
51#define GDK_Left GDK_KEY_Left
52#endif
53
54#ifndef GDK_Right
55#define GDK_Right GDK_KEY_Right
56#endif
57
59void put_status_message(const gchar *text, ui_state *ui);
60void put_status_message_with_type(const gchar *text, splt_message_type mess_type,
61 ui_state *ui);
62void put_status_message_in_idle(const gchar *text, ui_state *ui);
63
64void create_application(ui_state *ui);
65void print_status_bar_confirmation(gint error, ui_state *ui);
66void cancel_button_event(GtkWidget *widget, ui_state *ui);
67
68gchar* get_input_filename(gui_state *gui);
69void set_input_filename(const gchar *filename, ui_state *ui);
70void add_filters_to_file_chooser(GtkWidget *file_chooser);
71
72void split_button_event(GtkWidget *widget, ui_state *ui);
73
74void print_status_bar_confirmation_in_idle(gint error, ui_state *ui);
75
76void set_stop_split_safe(gboolean value, ui_state *ui);
77
78gint get_is_splitting_safe(ui_state *ui);
79void set_is_splitting_safe(gboolean value, ui_state *ui);
80
81void set_split_file_mode(gint file_mode, ui_state *ui);
82gint get_split_file_mode(ui_state *ui);
83
84void set_process_in_progress_and_wait_safe(gboolean value, ui_state *ui);
85void set_process_in_progress_safe(gboolean value, ui_state *ui);
86gint get_process_in_progress_safe(ui_state *ui);
87
88#endif
89
void print_status_bar_confirmation(gint error, ui_state *ui)
Output an error message from libmp3splt to the status bar.
void set_input_filename(const gchar *filename, ui_state *ui)
Set the name of the input file.
Definition main_window.c:44
void put_status_message_with_type(const gchar *text, splt_message_type mess_type, ui_state *ui)
Output a message to the status message bar.
void cancel_button_event(GtkWidget *widget, ui_state *ui)
event for the cancel button
void remove_status_message(gui_state *gui)
Removes status bar message.
void split_button_event(GtkWidget *widget, ui_state *ui)
event for the split button
gchar * get_input_filename(gui_state *gui)
Get the name of the input file.
Definition main_window.c:73
void put_status_message(const gchar *text, ui_state *ui)
Output a info message to the status message bar.