summaryrefslogtreecommitdiff
path: root/uidesigner/uidesigner.lpr
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-12-20 23:04:35 +0000
committerGraeme Geldenhuys <graemeg@gmail.com>2013-12-20 23:04:35 +0000
commit275addbe8d3581aa5ff0aff9232169c37838dffc (patch)
tree1946e8e0b0cac1d036bc5a20fd43f08824239f39 /uidesigner/uidesigner.lpr
parent3b52cbcb4decd7ea192d69bc2d3ebfe53a324c72 (diff)
downloadfpGUI-275addbe8d3581aa5ff0aff9232169c37838dffc.tar.xz
uidesigner: Started enabling localisation
- Started extracting string values to resourcestring constants. - Introduced a new vfd_constants unit for all constants and resourcestring constants Still need lots to do.
Diffstat (limited to 'uidesigner/uidesigner.lpr')
-rw-r--r--uidesigner/uidesigner.lpr9
1 files changed, 5 insertions, 4 deletions
diff --git a/uidesigner/uidesigner.lpr b/uidesigner/uidesigner.lpr
index 968a45dc..90da9d39 100644
--- a/uidesigner/uidesigner.lpr
+++ b/uidesigner/uidesigner.lpr
@@ -1,7 +1,7 @@
{
fpGUI - Free Pascal GUI Library
- Copyright (C) 2006 - 2010 See the file AUTHORS.txt, included in this
+ Copyright (C) 2006 - 2013 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
@@ -25,7 +25,8 @@ uses
{$ENDIF}{$ENDIF}
Classes, SysUtils, fpg_base, fpg_main, vfdmain, vfdresizer, vfdforms,
vfdfile, newformdesigner, vfdwidgets, vfdformparser, vfdeditors,
- vfdwidgetclass, vfdutils, vfdprops, vfddesigner, vfdpropeditgrid;
+ vfdwidgetclass, vfdutils, vfdprops, vfddesigner, vfdpropeditgrid,
+ vfd_constants;
procedure MainProc;
@@ -37,10 +38,10 @@ begin
maindsgn := TMainDesigner.Create;
maindsgn.CreateWindows;
- // Note: This needs improving!!
+ // Making sure the correct form is set as the MainForm
fpgApplication.MainForm := frmMain;
- { If file passed in as param, load it! }
+ { If a file is passed in as a parameter, then load it }
maindsgn.EditedFileName := ParamStr(1);
if FileExists(maindsgn.EditedFileName) then
maindsgn.OnLoadFile(maindsgn);