mp3splt-gtk: src/widgets_helper.h Source File

mp3splt-gtk 0.9.3.1519

Loading...
Searching...
No Matches
widgets_helper.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#ifndef WIDGETS_HELPER_H
33
34#define WIDGETS_HELPER_H
35
36#include "ui_manager.h"
37
38GtkWidget *wh_set_title_and_get_vbox(GtkWidget *widget, const gchar *title);
39
40void wh_put_in_hbox_and_attach_to_vbox(GtkWidget *widget, GtkWidget *vbox, gint vertical_margin);
41GtkWidget *wh_put_in_new_hbox_with_margin_level(GtkWidget *widget, gint margin_level);
42GtkWidget *wh_put_in_new_hbox(GtkWidget *widget, gint margin, gboolean expand, gboolean fill);
43void wh_put_in_hbox_and_attach_to_vbox_with_bottom_margin(GtkWidget *widget, GtkWidget *vbox,
44 gint vertical_margin, gint bottom_margin);
45
46void wh_add_box_to_scrolled_window(GtkWidget *box, GtkWidget *scrolled_window);
47
48GtkWidget *wh_new_table();
49void wh_add_in_table(GtkWidget *table, GtkWidget *widget);
50void wh_add_in_table_with_label(GtkWidget *table, const gchar *label_text,
51 GtkWidget *widget);
52void wh_add_in_table_with_label_expand(GtkWidget *table, const gchar *label_text,
53 GtkWidget *widget);
54
55GtkWidget *wh_new_entry(gpointer callback, ui_state *ui);
56
57GtkWidget *wh_new_button(const gchar *button_label);
58
59void wh_get_widget_size(GtkWidget *widget, gint *width, gint *height);
60
61void wh_set_browser_directory_handler(ui_state *ui, GtkWidget* dialog);
62
63GtkWidget *wh_create_int_spinner_in_box(gchar *before_label, gchar *after_label,
64 gdouble initial_value,
65 gdouble minimum_value, gdouble maximum_value,
66 gdouble step_increment, gdouble page_increment,
67 gchar *after_newline_label,
68 void (*spinner_callback)(GtkWidget *spinner, ui_state *ui),
69 ui_state *ui,
70 GtkWidget *box);
71
72GtkWidget *wh_create_int_spinner_in_box_with_top_width(gchar *before_label, gchar *after_label,
73 gdouble initial_value,
74 gdouble minimum_value, gdouble maximum_value,
75 gdouble step_increment, gdouble page_increment,
76 gchar *after_newline_label,
77 void (*spinner_callback)(GtkWidget *spinner, ui_state *ui),
78 ui_state *ui,
79 GtkWidget *box, gint top_width);
80
81GtkWidget *wh_hbox_new();
82GtkWidget *wh_vbox_new();
83GtkWidget *wh_hscale_new(GtkAdjustment *adjustment);
84GtkWidget *wh_hscale_new_with_range(gdouble min, gdouble max, gdouble step);
85void wh_get_pointer(GdkEventMotion *event, gint *x, gint *y, GdkModifierType *state);
86
87GtkWidget *wh_create_scrolled_window();
88
89gboolean wh_container_has_child(GtkContainer *cont, GtkWidget *my_child);
90
91GtkWidget *wh_create_cool_button(gchar *stock_id, gchar *label_text,
92 gint toggle_or_not);
93GtkWidget *wh_create_cool_label(gchar *stock_id, gchar *label_text);
94
95void wh_set_image_on_button(GtkButton *button, GtkWidget *image);
96
97GtkWidget *wh_create_window_with_close_button(gchar *title, gint width, gint height,
98 GtkWindowPosition position, GtkWindow *parent_window,
99 GtkWidget *main_area_widget, GtkWidget *bottom_widget, ...);
100void wh_show_window(GtkWidget *window);
101
102#endif
103
ui_state
Definition ui_types.h:509
wh_container_has_child
gboolean wh_container_has_child(GtkContainer *container, GtkWidget *my_child)
Does this GtkContainer contain that object?
Definition widgets_helper.c:273
wh_set_title_and_get_vbox
GtkWidget * wh_set_title_and_get_vbox(GtkWidget *widget, const gchar *title)
Generates a window portion containing a caption and a vbox.
Definition widgets_helper.c:56
wh_create_scrolled_window
GtkWidget * wh_create_scrolled_window()
creates a scrolled window
Definition widgets_helper.c:250