|
csstddlg.h00001 /* 00002 Crystal Space Windowing System: Standard dialogs 00003 Copyright (C) 1998,1999 by Andrew Zabolotny <bit@eltech.ru> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CSSTDDLG_H__ 00021 #define __CSSTDDLG_H__ 00022 00023 #include "csutil/scf.h" 00024 #define CSWS_INTERNAL 00025 #include "csws.h" 00026 00033 00034 #define CSMBS_NOTYPE 0x00000000 00035 00036 #define CSMBS_INFORMATION 0x00000001 00037 00038 #define CSMBS_INFO CSMBS_INFORMATION 00039 00040 #define CSMBS_WARNING 0x00000002 00041 00042 #define CSMBS_WARN CSMBS_WARNING 00043 00044 #define CSMBS_QUESTION 0x00000003 00045 00046 #define CSMBS_ERROR 0x00000004 00047 00048 #define CSMBS_STOP 0x00000005 00049 00050 #define CSMBS_CUSTOMICON 0x0000000f 00051 00052 #define CSMBS_TYPEMASK 0x0000000f 00053 00055 #define CSMBS_OK 0x00000010 00056 00057 #define CSMBS_CANCEL 0x00000020 00058 00059 #define CSMBS_ABORT 0x00000040 00060 00061 #define CSMBS_RETRY 0x00000080 00062 00063 #define CSMBS_IGNORE 0x00000100 00064 00065 #define CSMBS_OKCANCEL (CSMBS_OK | CSMBS_CANCEL) 00066 00067 #define CSMBS_ABORTRETRYIGNORE (CSMBS_ABORT | CSMBS_RETRY | CSMBS_IGNORE) 00068 00070 #define CSMBS_NONMODAL 0x80000000 00071 00072 #define CSMBS_USEHEIGHT 0x40000000 00073 00074 #define CSMBS_CENTER 0x20000000 00075 00076 SCF_VERSION (iMessageBoxData, 0, 0, 1); 00077 00083 struct iMessageBoxData : public iBase 00084 { 00086 virtual iBase* GetUserData () = 0; 00087 }; 00088 00096 extern void csMessageBox (csComponent *iParent, const char *iTitle, 00097 const char *iMessage, iBase* userdata, 00098 int iFlags = CSMBS_INFO | CSMBS_OK, ...) CS_GNUC_PRINTF (3, 6); 00099 00101 #define CSWID_FILENAME 0xC509 00102 00103 #define CSWID_PATHNAME 0xC50A 00104 00105 #define CSWID_DIRLIST 0xC50B 00106 00107 #define CSWID_FILELIST 0xC50C 00108 00110 extern csWindow *csFileDialog (csComponent *iParent, const char *iTitle, 00111 const char *iFileName = "./", const char *iOpenButtonText = "~Load", 00112 bool vfspaths=false); 00114 extern void csQueryFileDialog (csWindow *iFileDialog, char *iFileName, 00115 size_t iFileNameSize); 00116 00118 #define CSWID_COLORWHEEL 0xC50D 00119 00120 #define CSWID_COLORHR 0xC50E 00121 00122 #define CSWID_COLORLG 0xC50F 00123 00124 #define CSWID_COLORSB 0xC510 00125 00126 #define CSWID_COLORSAMPLE 0xC511 00127 00128 #define CSWID_COLORHLS 0xC512 00129 00130 #define CSWID_COLORRGB 0xC513 00131 00133 extern csWindow *csColorDialog (csComponent *iParent, const char *iTitle, int iColor = 0); 00135 csWindow *csColorDialog (csComponent *iParent, const char *iTitle, 00136 float iR, float iG, float iB); 00138 extern void csQueryColorDialog (csWindow *iColorDialog, int &oColor); 00140 extern void csQueryColorDialog (csWindow *iColorDialog, float &oR, float &oG, float &oB); 00141 00142 #endif // __CSSTDDLG_H__ Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000 |