dialog.h

Go to the documentation of this file.
00001 #ifndef __DIALOG_H__
00002 #define __DIALOG_H__
00003 
00004 /**
00005  * File Name  : dialog.h
00006  *
00007  * Description: The dialog functions 
00008  */
00009 
00010 /*
00011  * This file is part of popupmenu.
00012  *
00013  * popupmenu is free software: you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published by
00015  * the Free Software Foundation, either version 2 of the License, or
00016  * (at your option) any later version.
00017  *
00018  * popupmenu is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00025  */
00026 
00027 /**
00028  * Copyright (C) 2008 iRex Technologies B.V.
00029  * All rights reserved.
00030  */
00031 
00032 
00033 //----------------------------------------------------------------------------
00034 // Include Files
00035 //----------------------------------------------------------------------------
00036 
00037 #include <liberipc/eripc.h>
00038 
00039 G_BEGIN_DECLS
00040 
00041 
00042 //----------------------------------------------------------------------------
00043 // Definitions
00044 //---------------------------------------------------------------------------- 
00045 
00046 
00047 //----------------------------------------------------------------------------
00048 // Forward Declarations
00049 //----------------------------------------------------------------------------
00050 
00051 
00052 //----------------------------------------------------------------------------
00053 // Type Declarations
00054 //----------------------------------------------------------------------------
00055 
00056 
00057 //----------------------------------------------------------------------------
00058 // Global Constants
00059 //----------------------------------------------------------------------------
00060 
00061 
00062 //============================================================================
00063 // Public Functions
00064 //============================================================================
00065 
00066 /**---------------------------------------------------------------------------
00067  *
00068  * Name : dialog_create
00069  *
00070  * @brief Initialize dialogs for later use
00071  *
00072  * @param  --
00073  *
00074  * @return --
00075  *
00076  *--------------------------------------------------------------------------*/
00077 void dialog_create(void);
00078 
00079 /**---------------------------------------------------------------------------
00080  *
00081  * Name : dialog_wait_show
00082  *
00083  * @brief Show busy/wait popup dialog (with animation)
00084  *
00085  * @param message Text to show in dialog
00086  *
00087  * @return --
00088  *
00089  *--------------------------------------------------------------------------*/
00090 void dialog_wait_show(const char *message);
00091 
00092 /**---------------------------------------------------------------------------
00093  *
00094  * Name : dialog_wait_close
00095  *
00096  * @brief Close busy/wait popup dialog
00097  *
00098  * @param --
00099  *
00100  * @return --
00101  *
00102  *--------------------------------------------------------------------------*/
00103 void dialog_wait_close(void);
00104 
00105 /**---------------------------------------------------------------------------
00106  *
00107  * Name : dialog_message_info
00108  *
00109  * @brief Show popup dialog with message and OK button
00110  *
00111  * @param type The type of message being displayed in the dialog
00112  * @param title Text to show as window title, NULL to leave blank
00113  * @param message Text to show in dialog
00114  * @param context
00115  * @param message_id
00116  *
00117  * @return GtkWidget pointer to dialog
00118  *
00119  *--------------------------------------------------------------------------*/
00120 GtkWidget *dialog_message_info(GtkMessageType type,
00121                                const char *title, 
00122                                const char *message,
00123                                eripc_context_t *context,
00124                                const char *message_id);
00125 
00126 /**---------------------------------------------------------------------------
00127  *
00128  * Name : dialog_message_confirm
00129  *
00130  * @brief Show modal popup dialog with confirmation request (YES/NO)
00131  *
00132  * @param title Text to show as window title, NULL to leave blank
00133  * @param message Text to show in dialog
00134  * @param context
00135  * @param message_id
00136  * @param button_no
00137  * @param button_yes
00138  *
00139  * @return TRUE when confirmed by used, FALSE otherwise
00140  *
00141  *--------------------------------------------------------------------------*/
00142 gboolean dialog_message_confirm(const char *title, 
00143                                 const char *message, 
00144                                 eripc_context_t *context,
00145                                 const char *message_id,
00146                                 const char *button_no,
00147                                 const char *button_yes);
00148 
00149 /**---------------------------------------------------------------------------
00150  *
00151  * Name : dialog_message_confirm_close
00152  *
00153  * @brief Close modal popup dialog with confirmation request (YES/NO)
00154  *
00155  * @param --
00156  *
00157  * @return --
00158  *
00159  *--------------------------------------------------------------------------*/
00160 void dialog_message_confirm_close(void);
00161 
00162 /**---------------------------------------------------------------------------
00163  *
00164  * Name : dialog_splash_remove
00165  *
00166  * @brief Remove the splash screen
00167  *
00168  * @return TRUE for success, FALSE otherwise
00169  *
00170  *--------------------------------------------------------------------------*/
00171 gboolean dialog_splash_remove(void);
00172 
00173 /**---------------------------------------------------------------------------
00174  *
00175  * Name : dialog_splash_show
00176  *
00177  * @brief Show a splash screen
00178  *
00179  * @param type Splash to show ("usbconnect" or "shutdown")
00180  *
00181  * @return TRUE for success, FALSE otherwise
00182  *
00183  *--------------------------------------------------------------------------*/
00184 gboolean dialog_splash_show(const char *type);
00185 
00186 /**---------------------------------------------------------------------------
00187  *
00188  * Name : dialog_message_info_close
00189  *
00190  * @brief Close message info popup dialog
00191  *
00192  * @param --
00193  *
00194  * @return --
00195  *
00196  *--------------------------------------------------------------------------*/
00197 void dialog_message_info_close(void);
00198 
00199 void dialog_rotated(const char *orientation);
00200 
00201 G_END_DECLS
00202 
00203 #endif /* __DIALOG_H__ */
Generated by  doxygen 1.6.2-20100208