CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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 "csutil/scf.h"
00032 #define CSWS_INTERNAL
00033 #include "csws.h"
00034 
00041 
00042 #define CSMBS_NOTYPE            0x00000000
00043 
00044 #define CSMBS_INFORMATION       0x00000001
00045 
00046 #define CSMBS_INFO              CSMBS_INFORMATION
00047 
00048 #define CSMBS_WARNING           0x00000002
00049 
00050 #define CSMBS_WARN              CSMBS_WARNING
00051 
00052 #define CSMBS_QUESTION          0x00000003
00053 
00054 #define CSMBS_ERROR             0x00000004
00055 
00056 #define CSMBS_STOP              0x00000005
00057 
00058 #define CSMBS_CUSTOMICON        0x0000000f
00059 
00060 #define CSMBS_TYPEMASK          0x0000000f
00061 
00063 #define CSMBS_OK                0x00000010
00064 
00065 #define CSMBS_CANCEL            0x00000020
00066 
00067 #define CSMBS_ABORT             0x00000040
00068 
00069 #define CSMBS_RETRY             0x00000080
00070 
00071 #define CSMBS_IGNORE            0x00000100
00072 
00073 #define CSMBS_OKCANCEL          (CSMBS_OK | CSMBS_CANCEL)
00074 
00075 #define CSMBS_ABORTRETRYIGNORE  (CSMBS_ABORT | CSMBS_RETRY | CSMBS_IGNORE)
00076 
00078 #define CSMBS_NONMODAL          0x80000000
00079 
00080 #define CSMBS_USEHEIGHT         0x40000000
00081 
00082 #define CSMBS_CENTER            0x20000000
00083 
00085 SCF_VERSION (iMessageBoxData, 0, 0, 1);
00086 
00092 struct iMessageBoxData : public iBase
00093 {
00095   virtual iBase* GetUserData () = 0;
00096 };
00097 
00105 extern void csMessageBox (csComponent *iParent, const char *iTitle,
00106         const char *iMessage, iBase* userdata,
00107         int iFlags = CSMBS_INFO | CSMBS_OK, ...) CS_GNUC_PRINTF (3, 6);
00108 
00110 #define CSWID_FILENAME          0xC509
00111 
00112 #define CSWID_PATHNAME          0xC50A
00113 
00114 #define CSWID_DIRLIST           0xC50B
00115 
00116 #define CSWID_FILELIST          0xC50C
00117 
00119 extern csWindow *csFileDialog (csComponent *iParent, const char *iTitle,
00120   const char *iFileName = "./", const char *iOpenButtonText = "~Load",
00121   bool vfspaths=false);
00123 extern void csQueryFileDialog (csWindow *iFileDialog, char *iFileName,
00124   size_t iFileNameSize);
00125 
00127 #define CSWID_COLORWHEEL        0xC50D
00128 
00129 #define CSWID_COLORHR           0xC50E
00130 
00131 #define CSWID_COLORLG           0xC50F
00132 
00133 #define CSWID_COLORSB           0xC510
00134 
00135 #define CSWID_COLORSAMPLE       0xC511
00136 
00137 #define CSWID_COLORHLS          0xC512
00138 
00139 #define CSWID_COLORRGB          0xC513
00140 
00142 extern csWindow *csColorDialog (csComponent *iParent, const char *iTitle, int iColor = 0);
00144 csWindow *csColorDialog (csComponent *iParent, const char *iTitle,
00145   float iR, float iG, float iB);
00147 extern void csQueryColorDialog (csWindow *iColorDialog, int &oColor);
00149 extern void csQueryColorDialog (csWindow *iColorDialog, float &oR, float &oG, float &oB);
00150 
00153 #endif // __CS_CSSTDDLG_H__

Generated for Crystal Space by doxygen 1.2.14