Changeset 50 for trunk/IDE/UProject.pas


Ignore:
Timestamp:
Apr 5, 2012, 2:03:52 PM (13 years ago)
Author:
chronos
Message:
  • Modified: Interpretter execution partial implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/UProject.pas

    r49 r50  
    8383    Packages: TProjectPackageList;
    8484    BuildConfigs: TProjectBuildConfigList;
     85    MainSource: TProjectFile;
    8586    procedure LoadFromFile(FileName: string);
    8687    procedure SaveToFile(FileName: string);
     
    343344  I: Integer;
    344345  Text: string;
     346  MainSourceName: string;
    345347begin
    346348  try
     
    352354    if Assigned(NewNode) then
    353355      Files.LoadFromXMLNode(NewNode);
     356
     357    NewNode := Doc.DocumentElement.FindNode('MainSource');
     358    if Assigned(NewNode) then begin
     359      MainSourceName := UTF8Encode(NewNode.TextSource);
     360
     361    end;
     362
    354363    NewNode := Doc.DocumentElement.FindNode('Packages');
    355364    if Assigned(NewNode) then
     
    375384    AppendChild(RootNode);
    376385    with RootNode do begin
     386      NewNode := CreateElement('MainSource');
     387      NewNode.TextContent := UTF8Decode(MainSource.FileName);
     388      AppendChild(NewNode);
     389
    377390      NewNode := CreateElement('Files');
    378391      Files.SaveToXMLNode(NewNode);
Note: See TracChangeset for help on using the changeset viewer.