Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
csstddlg.h
Go to the documentation of this file.00001 /* 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 __CS_CSSTDDLG_H__ 00021 #define __CS_CSSTDDLG_H__ 00022 00031 #include "csextern.h" 00032 00033 #include "csutil/scf.h" 00034 #define CSWS_INTERNAL 00035 #include "csws.h" 00036 00043 00044 #define CSMBS_NOTYPE 0x00000000 00045 00046 #define CSMBS_INFORMATION 0x00000001 00047 00048 #define CSMBS_INFO CSMBS_INFORMATION 00049 00050 #define CSMBS_WARNING 0x00000002 00051 00052 #define CSMBS_WARN CSMBS_WARNING 00053 00054 #define CSMBS_QUESTION 0x00000003 00055 00056 #define CSMBS_ERROR 0x00000004 00057 00058 #define CSMBS_STOP 0x00000005 00059 00060 #define CSMBS_CUSTOMICON 0x0000000f 00061 00062 #define CSMBS_TYPEMASK 0x0000000f 00063 00065 #define CSMBS_OK 0x00000010 00066 00067 #define CSMBS_CANCEL 0x00000020 00068 00069 #define CSMBS_ABORT 0x00000040 00070 00071 #define CSMBS_RETRY 0x00000080 00072 00073 #define CSMBS_IGNORE 0x00000100 00074 00075 #define CSMBS_OKCANCEL (CSMBS_OK | CSMBS_CANCEL) 00076 00077 #define CSMBS_ABORTRETRYIGNORE (CSMBS_ABORT | CSMBS_RETRY | CSMBS_IGNORE) 00078 00080 #define CSMBS_NONMODAL 0x80000000 00081 00082 #define CSMBS_USEHEIGHT 0x40000000 00083 00084 #define CSMBS_CENTER 0x20000000 00085 00087 SCF_VERSION (iMessageBoxData, 0, 0, 1); 00088 00094 struct iMessageBoxData : public iBase 00095 { 00097 virtual iBase* GetUserData () = 0; 00098 }; 00099 00107 extern CS_CSWS_EXPORT void csMessageBox (csComponent *iParent, 00108 const char *iTitle, const char *iMessage, iBase* userdata, 00109 int iFlags = CSMBS_INFO | CSMBS_OK, ...) CS_GNUC_PRINTF (3, 6); 00110 00112 #define CSWID_FILENAME 0xC509 00114 #define CSWID_PATHNAME 0xC50A 00116 #define CSWID_DIRLIST 0xC50B 00118 #define CSWID_FILELIST 0xC50C 00119 00121 extern CS_CSWS_EXPORT csWindow *csFileDialog (csComponent *iParent, 00122 const char *iTitle, const char *iFileName = "./", 00123 const char *iOpenButtonText = "~Load", bool vfspaths=false); 00124 00126 extern CS_CSWS_EXPORT void csQueryFileDialog (csWindow *iFileDialog, 00127 char *iFileName, size_t iFileNameSize); 00128 00130 #define CSWID_COLORWHEEL 0xC50D 00132 #define CSWID_COLORHR 0xC50E 00134 #define CSWID_COLORLG 0xC50F 00136 #define CSWID_COLORSB 0xC510 00138 #define CSWID_COLORSAMPLE 0xC511 00140 #define CSWID_COLORHLS 0xC512 00142 #define CSWID_COLORRGB 0xC513 00143 00145 extern CS_CSWS_EXPORT csWindow *csColorDialog (csComponent *iParent, 00146 const char *iTitle, int iColor = 0); 00148 extern CS_CSWS_EXPORT csWindow *csColorDialog (csComponent *iParent, 00149 const char *iTitle, float iR, float iG, float iB); 00151 extern CS_CSWS_EXPORT void csQueryColorDialog (csWindow *iColorDialog, 00152 int &oColor); 00154 extern CS_CSWS_EXPORT void csQueryColorDialog (csWindow *iColorDialog, 00155 float &oR, float &oG, float &oB); 00156 00159 #endif // __CS_CSSTDDLG_H__
Generated for Crystal Space by doxygen 1.3.9.1