summaryrefslogtreecommitdiff
path: root/uidesigner
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2014-09-11 15:45:48 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2014-09-11 15:45:48 +0100
commit1a8ac3cad7f53f6bd62cafbb007cf97e60271f98 (patch)
tree07f087edffc189954ed1b80023e87e4a5dd97e43 /uidesigner
parent4969c972526e0cfab021940614347032154a13dc (diff)
downloadfpGUI-1a8ac3cad7f53f6bd62cafbb007cf97e60271f98.tar.xz
Use the fpGUI versions of RTL file methods - fpgFileExists()
- plus some minor code formatting
Diffstat (limited to 'uidesigner')
-rw-r--r--uidesigner/uidesigner.lpr25
1 files changed, 20 insertions, 5 deletions
diff --git a/uidesigner/uidesigner.lpr b/uidesigner/uidesigner.lpr
index 90da9d39..17d54a24 100644
--- a/uidesigner/uidesigner.lpr
+++ b/uidesigner/uidesigner.lpr
@@ -1,7 +1,7 @@
{
fpGUI - Free Pascal GUI Library
- Copyright (C) 2006 - 2013 See the file AUTHORS.txt, included in this
+ Copyright (C) 2006 - 2014 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
@@ -23,9 +23,24 @@ uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
- Classes, SysUtils, fpg_base, fpg_main, vfdmain, vfdresizer, vfdforms,
- vfdfile, newformdesigner, vfdwidgets, vfdformparser, vfdeditors,
- vfdwidgetclass, vfdutils, vfdprops, vfddesigner, vfdpropeditgrid,
+ Classes,
+ SysUtils,
+ fpg_base,
+ fpg_main,
+ fpg_utils,
+ vfdmain,
+ vfdresizer,
+ vfdforms,
+ vfdfile,
+ newformdesigner,
+ vfdwidgets,
+ vfdformparser,
+ vfdeditors,
+ vfdwidgetclass,
+ vfdutils,
+ vfdprops,
+ vfddesigner,
+ vfdpropeditgrid,
vfd_constants;
@@ -43,7 +58,7 @@ begin
{ If a file is passed in as a parameter, then load it }
maindsgn.EditedFileName := ParamStr(1);
- if FileExists(maindsgn.EditedFileName) then
+ if fpgFileExists(maindsgn.EditedFileName) then
maindsgn.OnLoadFile(maindsgn);
fpgApplication.Run;