iceWing
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Gdialog.h
Go to the documentation of this file.
1 /* -*- mode: C; tab-width: 4; c-basic-offset: 4; -*- */
2 
3 /*
4  * Author: Frank Loemker
5  *
6  * Copyright (C) 1999-2009
7  * Frank Loemker, Applied Computer Science, Faculty of Technology,
8  * Bielefeld University, Germany
9  *
10  * This file is part of iceWing, a graphical plugin shell.
11  *
12  * iceWing is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * iceWing is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25  */
26 
27 #ifndef iw_Gdialog_H
28 #define iw_Gdialog_H
29 
30 #include <gtk/gtk.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /*********************************************************************
37  Hide window and remember its position. So after showing it again the
38  position is restored.
39 *********************************************************************/
40 void gui_dialog_hide_window (GtkWidget *window);
41 
42 /*********************************************************************
43  Display a message box.
44 *********************************************************************/
45 void gui_message_show (const char *title, const char *message, ...) G_GNUC_PRINTF(2, 3);
46 /*********************************************************************
47  PRIVATE: Display a message box. Never lock the gdk mutex.
48 *********************************************************************/
49 void gui_message_show__nl (const char *title, const char *message, ...) G_GNUC_PRINTF(2, 3);
50 
51 /*********************************************************************
52  If !*window open a new file selection window, otherwise map the
53  before opened window.
54 *********************************************************************/
55 void gui_file_selection_open (GtkWidget **window, const char *title,
56  const char *file, GtkSignalFunc func_okbut);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* iw_Gdialog_H */