00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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, ...);
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");
00113 extern void csQueryFileDialog (csWindow *iFileDialog, char *iFileName,
00114 size_t iFileNameSize);
00115
00117 #define CSWID_COLORWHEEL 0xC50D
00118
00119 #define CSWID_COLORHR 0xC50E
00120
00121 #define CSWID_COLORLG 0xC50F
00122
00123 #define CSWID_COLORSB 0xC510
00124
00125 #define CSWID_COLORSAMPLE 0xC511
00126
00127 #define CSWID_COLORHLS 0xC512
00128
00129 #define CSWID_COLORRGB 0xC513
00130
00132 extern csWindow *csColorDialog (csComponent *iParent, const char *iTitle, int iColor = 0);
00134 csWindow *csColorDialog (csComponent *iParent, const char *iTitle,
00135 float iR, float iG, float iB);
00137 extern void csQueryColorDialog (csWindow *iColorDialog, int &oColor);
00139 extern void csQueryColorDialog (csWindow *iColorDialog, float &oR, float &oG, float &oB);
00140
00141 #endif // __CSSTDDLG_H__