{ fpGUI - Free Pascal GUI Library 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, for details about redistributing fpGUI. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Description: The starting unit for the UI Designer project. } program uidesigner; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils, fpg_base, fpg_main, fpg_utils, vfdmain, vfdresizer, vfdforms, vfdfile, newformdesigner, vfdwidgets, vfdformparser, vfdeditors, vfdwidgetclass, vfdutils, vfdprops, vfddesigner, vfdpropeditgrid, vfd_constants; procedure MainProc; begin fpgApplication.Initialize; try RegisterWidgets; PropList := TPropertyList.Create; maindsgn := TMainDesigner.Create; maindsgn.CreateWindows; // Making sure the correct form is set as the MainForm fpgApplication.MainForm := frmMain; { If a file is passed in as a parameter, then load it } maindsgn.EditedFileName := ParamStr(1); if fpgFileExists(maindsgn.EditedFileName) then maindsgn.OnLoadFile(maindsgn); fpgApplication.Run; PropList.Free; finally maindsgn.Free; end; end; begin MainProc; end.