Debian Codegraph @

src/modules/frontend/gtk/ui.h

raw
1 /*****************************************************************************
2 *
3 * cdebconf - An implementation of the Debian Configuration Management
4 * System
5 *
6 * cdebconf is (c) 2000-2007 Randolph Chung and others under the following
7 * license.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 *
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 *
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 *****************************************************************************/
33
34 /** @file ui.h
35 * Common user interface related functions for the GTK+ frontend of cdebconf
36 * (header)
37 */
38
39 #ifndef _UI_H_
40 #define _UI_H_
41
42 #include <gtk/gtk.h>
43
44 #include "frontend.h"
45 #include "question.h"
46
47 gboolean cdebconf_gtk_create_main_window(struct frontend * fe);
48
49 void cdebconf_gtk_destroy_main_window(struct frontend * fe);
50
51 void cdebconf_gtk_update_frontend_title(struct frontend * fe);
52
53 void cdebconf_gtk_show_buttons(struct frontend * fe);
54
55 void cdebconf_gtk_show_target_box(struct frontend * fe);
56
57 void cdebconf_gtk_hide_target_box(struct frontend * fe);
58
59 void cdebconf_gtk_empty_target_box(struct frontend * fe);
60
61 gint cdebconf_gtk_get_text_width(GtkWidget * widget, gchar * text);
62
63 void cdebconf_gtk_callback_widget_destroy(GtkWidget *widget, gpointer data);
64
65 #endif /* !_UI_H_ */
66
67 /* vim: et sw=4 si
68 */