Changeset 21 for trunk/IDE/Forms


Ignore:
Timestamp:
Nov 9, 2010, 2:08:55 PM (14 years ago)
Author:
george
Message:
  • Modified: Project saving.
Location:
trunk/IDE/Forms
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/Forms/UCodeForm.lfm

    r2 r21  
    618618    )
    619619    BracketHighlightStyle = sbhsBoth
     620    OnChange = SynEditSourceChange
    620621    inline SynGutterPartList1: TSynGutterPartList
    621622      object SynGutterMarks1: TSynGutterMarks
     
    725726      end
    726727    end
    727     inline SynRightGutterPartList1: TSynRightGutterPartList
    728     end
    729728  end
    730729  object CoolDockClient1: TCoolDockClient
     
    735734  end
    736735  object SynPasSyn1: TSynPasSyn
     736    Enabled = False
     737    AsmAttri.FrameEdges = sfeAround
     738    CommentAttri.FrameEdges = sfeAround
     739    IdentifierAttri.FrameEdges = sfeAround
     740    KeyAttri.FrameEdges = sfeAround
     741    NumberAttri.FrameEdges = sfeAround
     742    SpaceAttri.FrameEdges = sfeAround
     743    StringAttri.FrameEdges = sfeAround
     744    SymbolAttri.FrameEdges = sfeAround
     745    CaseLabelAttri.FrameEdges = sfeAround
     746    DirectiveAttri.FrameEdges = sfeAround
    737747    CompilerMode = pcmDelphi
    738748    NestedComments = False
  • trunk/IDE/Forms/UCodeForm.pas

    r2 r21  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, UCoolDocking,
    9   SynEdit, SynHighlighterPas;
     9  SynEdit, SynHighlighterPas, UProject;
    1010
    1111type
     
    1717    SynEditSource: TSynEdit;
    1818    SynPasSyn1: TSynPasSyn;
     19    procedure SynEditSourceChange(Sender: TObject);
    1920  private
    2021    { private declarations }
    2122  public
    22     { public declarations }
     23    ProjectFile: TProjectFile;
    2324  end;
    2425
     
    2829implementation
    2930
     31uses
     32  UMainForm;
     33
    3034{$R *.lfm}
     35
     36{ TCodeForm }
     37
     38procedure TCodeForm.SynEditSourceChange(Sender: TObject);
     39begin
     40  ProjectFile.Modified := True;
     41end;
    3142
    3243end.
  • trunk/IDE/Forms/UMainForm.lfm

    r12 r21  
    163163      Caption = 'Save'
    164164      Hint = 'Save project to disk'
     165      OnExecute = AProjectSaveExecute
    165166    end
    166167    object AProjectSaveAs: TAction
  • trunk/IDE/Forms/UMainForm.pas

    r20 r21  
    5454    procedure AProjectOpenExecute(Sender: TObject);
    5555    procedure AProjectSaveAsExecute(Sender: TObject);
     56    procedure AProjectSaveExecute(Sender: TObject);
    5657    procedure ComboBox1Change(Sender: TObject);
    5758    procedure ComboBoxProducerChange(Sender: TObject);
     
    292293  if SaveDialog1.Execute then begin
    293294    Project.SaveToFile(SaveDialog1.FileName);
    294   end;
     295    Project.Save;
     296  end;
     297end;
     298
     299procedure TMainForm.AProjectSaveExecute(Sender: TObject);
     300begin
     301  Project.Save;
    295302end;
    296303
Note: See TracChangeset for help on using the changeset viewer.