home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk22
/
dir04
/
f011070.re_
/
f011070.re
Wrap
Text File
|
1996-04-02
|
7KB
|
188 lines
/*----------------------------------------------------------------------+
| |
| Copyright (c) 1985-93; Bentley Systems, Inc., All rights reserved. |
| |
| "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley |
| Systems, Inc. |
| |
| Limited permission is hereby granted to reproduce and modify this |
| copyrighted material provided that the resulting code is used only |
| in conjunction with Bentley Systems products under the terms of the |
| license agreement provided therein, and that this notice is retained |
| in its entirety in any such reproduction or modification. |
| |
+----------------------------------------------------------------------*/
/*----------------------------------------------------------------------+
| |
| $Workfile: filelist.h $
| $Revision: 6.9 $
| $Date: 19 Sep 1995 14:01:46 $
| |
+----------------------------------------------------------------------*/
#ifndef __filelistH__
#define __filelistH__
#if !defined (__rscdefsH__)
# include <rscdefs.h>
#endif
/*----------------------------------------------------------------------+
| |
| File User Message Constants |
| |
+----------------------------------------------------------------------*/
#define FILELISTTYPE_UPDATE 1
#define FILELISTTYPE_SETFILENAME 2
#define FILELISTTYPE_SETFILTER 3
#define FILELISTTYPE_CLEARFILENAME 4
#define FILELISTTYPE_SETDIRECTORY 5
#define FILELISTDATA_DRIVES 1
#define FILELISTDATA_DIRECTORIES 2
#define FILELISTDATA_FILES 3
/*----------------------------------------------------------------------+
| |
| File List Attributes Constants |
| |
+----------------------------------------------------------------------*/
#define FILELISTATTR_SORT 0x00000001
#define FILELISTATTR_UNIQUE 0x00000002
#define FILELISTATTR_CASESENSITIVE 0x00000004
#define FILELISTATTR_MULTIPLE 0x00000008
#define FILELISTATTR_CANSELECTEXISTING 0x00000010
#define FILELISTATTR_CANSELECTNEW 0x00000020
#define FILELISTATTR_DRIVES 0x00000040
#define FILELISTATTR_DIRECTORIES 0x00000080
#define FILELISTATTR_FILES 0x00000100
/*----------------------------------------------------------------------+
| |
| FILELISTATTR_REPLACEDIRDOTS will return the names of the current and |
| parent directories. It will also replace ".." and "." with the |
| actual directory names. Note that this is only valid in |
| combination with FILELISTATTR_DIRECTORIES |
| |
+----------------------------------------------------------------------*/
#define FILELISTATTR_REPLACEDIRDOTS 0x00000200
/*----------------------------------------------------------------------+
| |
| If FILELISTATTR_DRIVES is set FILELISTATTR_NODRIVEBRACKETS will |
| return a drive list (on DOS & NT) without the enclosing "[]". |
| |
+----------------------------------------------------------------------*/
#define FILELISTATTR_NODRIVEBRACKETS 0x00000400
/*----------------------------------------------------------------------+
| |
| If FILELISTATTR_DIRECTORIES is set FILELISTATTR_NOPARENTDIR |
| will keep parent directory out of list. |
| |
+----------------------------------------------------------------------*/
#define FILELISTATTR_NOPARENTDIR 0x00000800
/*----------------------------------------------------------------------+
| |
| If you are doing a create and the file to be created already exists, |
| specifying the following attribute will put up an alert asking you |
| to confirm that choice. Choosing OK will overwrite the existing file, |
| Cancel will allow you to choose another file to create. |
| Ignored for FILELISTATTR_MULTIPLE. |
| |
+----------------------------------------------------------------------*/
#define FILELISTATTR_ALERTONCREATEEXIST 0x00001000
/*----------------------------------------------------------------------+
| |
| Part of FILELISTATTR_CREATEFROMSEED. |
| |
+----------------------------------------------------------------------*/
#define FILELISTATTR_SEEDFILESPECIFIED 0x00002000
/*----------------------------------------------------------------------+
| |
| Common attribute sets |
| |
+----------------------------------------------------------------------*/
#define FILELISTATTR_OPEN FILELISTATTR_CANSELECTEXISTING
#define FILELISTATTR_CREATE (FILELISTATTR_CANSELECTNEW | \
FILELISTATTR_ALERTONCREATEEXIST)
#define FILELISTATTR_CREATEFROMSEED (FILELISTATTR_CREATE | \
FILELISTATTR_SEEDFILESPECIFIED)
#define FILELISTATTR_OPENCREATE (FILELISTATTR_CANSELECTEXISTING | \
FILELISTATTR_CANSELECTNEW | \
FILELISTATTR_ALERTONCREATEEXIST)
#define FILELISTATTR_DEFAULT (FILELISTATTR_SORT | \
FILELISTATTR_UNIQUE | \
FILELISTATTR_MULTIPLE | \
FILELISTATTR_OPEN | \
FILELISTATTR_FILES)
typedef struct filelistinfo
{
int lastAction;
char lastDirectory[MAXFILELENGTH];
char lastFilter[MAXEXTENSIONLENGTH];
} FileListInfo;
/*----------------------------------------------------------------------+
| |
| Possible attributes for mdlDialog_fileOpenExt |
| |
+----------------------------------------------------------------------*/
#define FILEOPENEXTATTR_CENTERONSCREEN 0x00000001
/*----------------------------------------------------------------------+
| |
| Structure used with mdlDialog_fileOpenExt |
| |
+----------------------------------------------------------------------*/
typedef struct fileopenparams
{
RscFileHandle dialogRscH;
int dialogId;
int openCreate;
char *suggestedFileNameP;
char *defaultFilterP;
char *filterInfoStrP;
char *defaultDirP;
char *dirCfgVarP;
char *titleP;
int defFileId;
RscFileHandle defFileRscH;
void *dialogOwnerMD; /* no longer used */
/* only valid for FILELISTATTR_CREATEFROMSEED */
char *defSeedFileNameP;
char *defSeedDirP;
char *defSeedFilterP;
int defSeedFileId;
/* future use */
int futureUse[7];
char *futureUseCharP[4];
} FileOpenParams;
/*----------------------------------------------------------------------+
| |
| Structure returned by mdlDialog_fileOpenExt |
| |
+----------------------------------------------------------------------*/
typedef struct fileopenextrainfo
{
char dirCfgVar[MAXNAMELENGTH]; /* name of cfg var used to select dir */
char seedFileName[MAXFILELENGTH]; /* seed file used to create new file */
} FileOpenExtraInfo;
#endif