00001 /** 00002 * \file mstatusw.h <mi32/mstatusw.h> 00003 * \brief Include file for "status display" functions that take Widgets 00004 * 00005 * \if NODOC 00006 * $Id: mstatusw.h_v 1.6 2003/09/15 13:49:56 fileserver!dwilliss Exp $ 00007 * 00008 * $Log: mstatusw.h_v $ 00009 * Revision 1.6 2003/09/15 13:49:56 fileserver!dwilliss 00010 * Doxygen 00011 * 00012 * Revision 1.5 2000/06/27 18:35:18 sparsons 00013 * Genitor documentation. 00014 * 00015 * Revision 1.4 2000/06/26 20:43:01 mju 00016 * Include xdefns so compiles in isolation. 00017 * 00018 * Revision 1.3 1999/01/05 19:01:54 scowan 00019 * Swapped multiple keywords 00020 * 00021 * Revision 1.2 1998/12/18 22:42:09 mju 00022 * Move statusCreateDialog() to mstatus.h as macro. 00023 * 00024 * Revision 1.1 1998/09/02 21:18:33 scowan 00025 * Initial revision 00026 * 00027 * \endif 00028 **/ 00029 00030 #ifndef INC_MI32_MSTATUSW_H 00031 #define INC_MI32_MSTATUSW_H 00032 00033 #ifndef INC_MI32_MSTATUS_H 00034 #include <mi32/mstatus.h> 00035 #endif 00036 00037 #ifndef INC_MI32_XDEFNS_H 00038 #include <mi32/xdefns.h> 00039 #endif 00040 00041 #if defined(__cplusplus) 00042 extern "C" { 00043 #endif 00044 00045 //! Return XmForm widget of status dialog (to use as parent for other dialogs). 00046 //! 00047 //! @return XmForm widget. 00048 //! 00049 //! Do not place additional widgets in the form, it should only be used as a parent for other dialogs. 00050 Widget MstatusDialogGetForm ( 00051 MSTATUSHANDLE shandle //!< Handle returned by MstatusDialogCreate() (will ignore if NULL) 00052 ); 00053 00054 //! Create and manage a single line status form. 00055 //! 00056 //! Flags: 00057 //! MSTATUSFLAG_NoCancel No cancel button (supply your own with MstatusSetCancelButton()) 00058 //! 00059 //! This function automatically clears and starts timer 7 which is used by MstatusReportDone(). 00060 //! Note that this function does not return a widget. If you want the form to use for attachments 00061 //! to other widgets, you can call MstatusFormGetForm(). 00062 //! The form created will have a single XeText widget for displaying the one line of status, 00063 //! A short status bar, and an optional cancel button. For an example of this in use, see 00064 //! the status line in SML. 00065 int MstatusFormCreate ( 00066 Widget pwidget, //!< Parent widget for dialog (will use toplevel if NULL) 00067 MSTATUSHANDLE *shandle, //!< Status handle returned 00068 MSTATUSCONTEXT *scontext, //!< Initial status context returned (NULL if don't need one) 00069 UINT32 flags, //!< Flags 00070 Arg *arg, //!< Array of widget arguments 00071 int n //!< Number of arguments in arg 00072 ); 00073 00074 //! Get the XmForm widget of status form (to use for attachments). 00075 //! 00076 //! Do not place additional widgets in the form, it should only be used as a parent for other dialogs 00077 //! or to attach other widgets to. Note that this is really just a macro that calls MstatusDialogGetForm(). 00078 #define MstatusFormGetForm(shandle) MstatusDialogGetForm(shandle) 00079 00080 //! Get the XeText widget from a status form. 00081 Widget MstatusFormGetText ( 00082 MSTATUSHANDLE shandle //!< Handle returned by MstatusFormCreate() (will ignore if NULL) 00083 ); 00084 00085 //! Set the cancel button for a status form. 00086 //! 00087 //! This function allows you to set the cancel button for a status form (don't try it with a 00088 //! status dialog). The button doesn't have to be in the form, it could be part of a toolbar 00089 //! elsewhere on the dialog. If you want to use your own cancel checking function, call 00090 //! MstatusSetCancelFunc(). 00091 void MstatusSetCancelButton ( 00092 MSTATUSHANDLE shandle, //!< Handle returned by MstatusFormCreate() (will ignore if NULL) 00093 Widget button //!< The widget you wish to use as a cancel button 00094 ); 00095 00096 #if defined(__cplusplus) 00097 } 00098 #endif 00099 00100 #endif //!< ifndef INC_MI32_MSTATUSW_H
1.3.8-20040913