Changeset 21 for trunk/IDE/Forms
- Timestamp:
- Nov 9, 2010, 2:08:55 PM (14 years ago)
- Location:
- trunk/IDE/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UCodeForm.lfm
r2 r21 618 618 ) 619 619 BracketHighlightStyle = sbhsBoth 620 OnChange = SynEditSourceChange 620 621 inline SynGutterPartList1: TSynGutterPartList 621 622 object SynGutterMarks1: TSynGutterMarks … … 725 726 end 726 727 end 727 inline SynRightGutterPartList1: TSynRightGutterPartList728 end729 728 end 730 729 object CoolDockClient1: TCoolDockClient … … 735 734 end 736 735 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 737 747 CompilerMode = pcmDelphi 738 748 NestedComments = False -
trunk/IDE/Forms/UCodeForm.pas
r2 r21 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, UCoolDocking, 9 SynEdit, SynHighlighterPas ;9 SynEdit, SynHighlighterPas, UProject; 10 10 11 11 type … … 17 17 SynEditSource: TSynEdit; 18 18 SynPasSyn1: TSynPasSyn; 19 procedure SynEditSourceChange(Sender: TObject); 19 20 private 20 21 { private declarations } 21 22 public 22 { public declarations }23 ProjectFile: TProjectFile; 23 24 end; 24 25 … … 28 29 implementation 29 30 31 uses 32 UMainForm; 33 30 34 {$R *.lfm} 35 36 { TCodeForm } 37 38 procedure TCodeForm.SynEditSourceChange(Sender: TObject); 39 begin 40 ProjectFile.Modified := True; 41 end; 31 42 32 43 end. -
trunk/IDE/Forms/UMainForm.lfm
r12 r21 163 163 Caption = 'Save' 164 164 Hint = 'Save project to disk' 165 OnExecute = AProjectSaveExecute 165 166 end 166 167 object AProjectSaveAs: TAction -
trunk/IDE/Forms/UMainForm.pas
r20 r21 54 54 procedure AProjectOpenExecute(Sender: TObject); 55 55 procedure AProjectSaveAsExecute(Sender: TObject); 56 procedure AProjectSaveExecute(Sender: TObject); 56 57 procedure ComboBox1Change(Sender: TObject); 57 58 procedure ComboBoxProducerChange(Sender: TObject); … … 292 293 if SaveDialog1.Execute then begin 293 294 Project.SaveToFile(SaveDialog1.FileName); 294 end; 295 Project.Save; 296 end; 297 end; 298 299 procedure TMainForm.AProjectSaveExecute(Sender: TObject); 300 begin 301 Project.Save; 295 302 end; 296 303
Note:
See TracChangeset
for help on using the changeset viewer.