29 #include "../../idlib/precompiled.h"
48 SetCursor ( LoadCursor (
NULL, MAKEINTRESOURCE(IDC_WAIT ) ) );
56 tempfile =
"guis/temp.guied";
62 int error = GetLastError ( );
63 SetCursor ( LoadCursor (
NULL, MAKEINTRESOURCE(IDC_ARROW ) ) );
73 if ( !CopyFile ( ospath, filename,
FALSE ) )
75 DeleteFile ( ospath );
76 SetCursor ( LoadCursor (
NULL, MAKEINTRESOURCE(IDC_ARROW ) ) );
80 DeleteFile ( ospath );
87 SetCursor ( LoadCursor (
NULL, MAKEINTRESOURCE(IDC_ARROW ) ) );
103 for ( i = 0; i <
depth; i ++ )
105 file->
Write (
"\t", 1 );
142 file->
Write (
"\r\n", 2 );
172 file->
Write (
"\\n", 2 );
176 file->
Write ( p, 1 );
181 file->
Write (
"\r\n", 2 );
200 file->
Write (
"\r\n", 2 );
210 file->
Write (
" ", 1 );
213 src.ParseBracedSectionExact ( out, depth + 1);
216 file->
Write (
"\r\n", 2 );
217 file->
Write (
"\r\n", 2 );
253 DeleteFile ( ospath );
261 empty =
"windowDef Desktop { rect 0,0,640,480 }";
269 DeleteFile ( ospath );
276 DeleteFile ( ospath );
302 tempfile =
"guis/temp.guied";
306 idStr createDir = ospath;
308 CreateDirectory ( createDir,
NULL );
310 SetFileAttributes ( ospath, FILE_ATTRIBUTE_NORMAL );
311 DeleteFile ( ospath );
312 if ( !CopyFile ( filename, ospath,
FALSE ) )
316 *error =
"File not found";
321 SetFileAttributes ( ospath, FILE_ATTRIBUTE_NORMAL );
334 *error =
"File not found";
353 DeleteFile ( ospath );
bool SaveFile(const char *filename)
virtual void ForceFlush(void)
const idStr & GetKey(void) const
bool LoadFile(const char *filename, idStr *error=NULL)
void WriteTabs(idFile *file, int depth)
EWindowType GetWindowType(void)
idFileSystem * fileSystem
GLint GLint GLsizei GLsizei GLsizei depth
static const char * WindowTypeToString(EWindowType type)
idUserInterfaceManager * uiManager
bool GECheckInDlg_DoModal(HWND parent, const char *filename, idStr *comment)
int Icmp(const char *text) const
idDict & GetStateDict(void)
virtual idUserInterface * FindGui(const char *qpath, bool autoLoad=false, bool needUnique=false, bool forceUnique=false)=0
idWindow * GetChild(int index)
idStr & StripFileExtension(void)
idDict & GetScriptDict(void)
idDict & GetVariableDict(void)
virtual idFile * OpenFileWrite(const char *relativePath, const char *basePath="fs_savepath")=0
const idStr & GetValue(void) const
bool WriteWindow(idFile *file, int depth, idWindow *window)
idWindow * GetDesktop() const
virtual const char * RelativePathToOSPath(const char *relativePath, const char *basePath="fs_devpath")=0
static rvGEWindowWrapper * GetWrapper(idWindow *window)
void Append(const char a)
char error[MAX_STRING_CHARS]
virtual int Write(const void *buffer, int len)
const char * c_str(void) const
const idKeyValue * GetKeyVal(int index) const
virtual void CloseFile(idFile *f)=0
int GetNumKeyVals(void) const
idStr & StripFilename(void)
idUserInterfaceLocal * mInterface