00001 /* $Id: stddialog.h 3806 2003-05-04 06:11:21Z micah $ 00002 * 00003 * picogui/stddialog.h - Various preconstructed dialog boxes the application 00004 * may use. These are implemented 100% client-side using 00005 * the normal C client API. 00006 * 00007 * PicoGUI small and efficient client/server GUI 00008 * Copyright (C) 2000-2003 Micah Dowty <micahjd@users.sourceforge.net> 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2.1 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 * 00024 * Contributors: 00025 * 00026 * 00027 * 00028 */ 00029 00030 #ifndef _H_PG_STDDIALOG 00031 #define _H_PG_STDDIALOG 00032 00063 pghandle pgDialogBox(const char *title); 00064 00083 int pgMessageDialog(const char *title,const char *text,u32 flags); 00084 00092 int pgMessageDialogFmt(const char *title,u32 flags,const char *fmt, ...); 00093 00105 int pgMenuFromString(char *items); 00106 00125 int pgMenuFromArray(pghandle *items,int numitems); 00126 00145 int pgDatePicker(int *year, int *month, int *day, const char *title); 00146 00161 pghandle pgInputDialog(const char *title, const char *message, 00162 pghandle deftxt); 00163 00176 pghandle pgFontPicker(const char *title); 00177 00193 const char *pgFilePicker(pgfilter filefilter, const char *pattern, 00194 const char *deffile,int flags, const char *title); 00195 00205 int pgColorPicker(pgcolor *c, const char *title); 00206 00208 00209 #endif /* __H_STDDIALOG */ 00210 /* The End */
1.3-rc3