- Timestamp:
- Feb 28, 2012, 8:34:31 PM (13 years ago)
- Location:
- trunk/IDE
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UCompilersForm.lfm
r37 r41 22 22 item 23 23 Caption = 'Execution path' 24 Width = 2 0024 Width = 247 25 25 end> 26 26 OwnerData = True -
trunk/IDE/Forms/UCompilersForm.pas
r37 r41 31 31 32 32 uses 33 UMainForm, UCompiler, UCompilerSettingsForm, UProducer ;33 UMainForm, UCompiler, UCompilerSettingsForm, UProducer, UTarget; 34 34 35 35 resourcestring … … 46 46 procedure TFormProducers.ListView1Data(Sender: TObject; Item: TListItem); 47 47 begin 48 if (Item.Index >= 0) and (Item.Index < MainForm.Compiler. Producers.Count) then49 with T Producer(MainForm.Compiler.Producers[Item.Index]) do begin48 if (Item.Index >= 0) and (Item.Index < MainForm.Compiler.Targets.Count) then 49 with TTarget(MainForm.Compiler.Targets[Item.Index]) do begin 50 50 Item.Caption := Name; 51 Item.Data := MainForm.Compiler. Producers[Item.Index];52 Item.SubItems.Add( CompilerPath);51 Item.Data := MainForm.Compiler.Targets[Item.Index]; 52 Item.SubItems.Add(Producer.CompilerPath); 53 53 end; 54 54 end; … … 66 66 procedure TFormProducers.ReloadList; 67 67 begin 68 ListView1.Items.Count := MainForm.Compiler. Producers.Count;68 ListView1.Items.Count := MainForm.Compiler.Targets.Count; 69 69 ListView1.Refresh; 70 70 end; -
trunk/IDE/Forms/UMainForm.lfm
r39 r41 472 472 0000000000000000000000000000000000000000000000000000 473 473 } 474 end475 object MenuItemAnalyzer: TMenuItem476 Caption = 'Analyzer'477 474 end 478 475 object MenuItemProducer: TMenuItem -
trunk/IDE/Forms/UMainForm.lrt
r39 r41 11 11 TMAINFORM.MENUITEM12.CAPTION=- 12 12 TMAINFORM.MENUITEM7.CAPTION=Run 13 TMAINFORM.MENUITEMANALYZER.CAPTION=Analyzer14 13 TMAINFORM.MENUITEMPRODUCER.CAPTION=Producer 15 14 TMAINFORM.MENUITEM15.CAPTION=View -
trunk/IDE/Forms/UMainForm.pas
r39 r41 11 11 UCDConjoinForm, UCDWindowList, UCDLayout, UCDCustomize, UCoolTranslator, 12 12 UCompiledForm, UCodeTreeForm, URegistry, ULastOpenedList, UApplicationInfo, 13 UDebugLog , UAnalyzer, UProducer;13 UDebugLog; 14 14 15 15 const … … 68 68 MenuItem23: TMenuItem; 69 69 MenuItem24: TMenuItem; 70 MenuItemAnalyzer: TMenuItem;71 70 MenuItemProducer: TMenuItem; 72 71 MenuItem3: TMenuItem; … … 157 156 uses 158 157 UMessagesForm, UCodeForm, UProjectManager, UCommon, UAboutForm, UFormOptions, 159 UCompilersForm ;158 UCompilersForm, UTarget, UAnalyzer, UProducer; 160 159 161 160 resourcestring … … 171 170 try 172 171 RootKey := Root; 173 for I := 0 to Producers.Count - 1 do174 with T Producer(Producers[I]) do begin175 OpenKey(Key + '\ Producers\' + Name, True);172 for I := 0 to Targets.Count - 1 do 173 with TTarget(Targets[I]) do begin 174 OpenKey(Key + '\Targets\' + Name, True); 176 175 if ValueExists('CompilerPath') then 177 CompilerPath := ReadStringWithDefault('CompilerPath',CompilerPath);176 Producer.CompilerPath := ReadStringWithDefault('CompilerPath', Producer.CompilerPath); 178 177 end; 178 if ValueExists('SelectedTarget') then 179 Target := Targets.SearchBySysName(ReadString('SelectedTarget')) 180 else Target := nil; 179 181 finally 180 182 Free; … … 189 191 try 190 192 RootKey := Root; 191 for I := 0 to Producers.Count - 1 do 192 with TProducer(Producers[I]) do begin 193 OpenKey(Key + '\Producers\' + Name, True); 194 if CompilerPath <> '' then WriteString('CompilerPath', CompilerPath) 195 else DeleteValue('CompilerPath'); 193 for I := 0 to Targets.Count - 1 do 194 with TTarget(Targets[I]) do begin 195 OpenKey(Key + '\Targets\' + Name, True); 196 if Assigned(Producer) then begin 197 if Producer.CompilerPath <> '' then WriteString('CompilerPath', Producer.CompilerPath) 198 else DeleteValue('CompilerPath'); 199 end; 196 200 end; 201 if Assigned(Target) then WriteString('SelectedTarget', Target.SysName) 202 else DeleteValue('SelectedTarget'); 197 203 finally 198 204 Free; … … 207 213 208 214 // Compile project file 209 Compiler.Producer := TProducer(Compiler.Producers[SelectedProducerIndex]);210 Compiler.Analyzer := TAnalyzer(Compiler.Analyzers[SelectedAnalyzerIndex]);211 215 Compiler.Init; 212 216 … … 434 438 NewMenuItem: TMenuItem; 435 439 begin 436 MenuItemAnalyzer.Clear;437 for I := 0 to Compiler.Analyzers.Count - 1 do begin438 NewMenuItem := TMenuItem.Create(MenuItemAnalyzer);439 NewMenuItem.Caption := TAnalyzer(Compiler.Analyzers[I]).Name;440 NewMenuItem.OnClick := MenuItemAnalyzerClick;441 if I = SelectedAnalyzerIndex then NewMenuItem.Checked := True;442 MenuItemAnalyzer.Add(NewMenuItem);443 end;444 440 MenuItemProducer.Clear; 445 for I := 0 to Compiler. Producers.Count - 1 do begin441 for I := 0 to Compiler.Targets.Count - 1 do begin 446 442 NewMenuItem := TMenuItem.Create(MenuItemProducer); 447 NewMenuItem.Caption := T Producer(Compiler.Producers[I]).Name;443 NewMenuItem.Caption := TTarget(Compiler.Targets[I]).Name; 448 444 NewMenuItem.OnClick := MenuItemProducerClick; 449 445 if I = SelectedProducerIndex then NewMenuItem.Checked := True; -
trunk/IDE/Languages/Transpascal.cs.po
r40 r41 229 229 msgstr "Nápověda" 230 230 231 #: tmainform.menuitemanalyzer.caption232 msgid "Analyzer"233 msgstr "Analyzátor"234 235 231 #: tmainform.menuitemopenrecent.caption 236 232 msgid "Open recent" -
trunk/IDE/Languages/Transpascal.po
r40 r41 221 221 msgstr "" 222 222 223 #: tmainform.menuitemanalyzer.caption224 msgid "Analyzer"225 msgstr ""226 227 223 #: tmainform.menuitemopenrecent.caption 228 224 msgid "Open recent" -
trunk/IDE/Transpascal.lpi
r40 r41 90 90 <Item3> 91 91 <PackageName Value="LCLBase"/> 92 <MinVersion Major="1" Valid="True" Release="1"/>92 <MinVersion Major="1" Release="1" Valid="True"/> 93 93 </Item3> 94 94 <Item4> -
trunk/IDE/UApplicationInfo.pas
r38 r41 2 2 3 3 {$MODE Delphi} 4 5 // Date: 2010-06-166 4 7 5 interface … … 55 53 Name := 'Transpascal IDE'; 56 54 Identification := 1; 57 ReleaseDate := EncodeDate(2012, 2, 2 5);55 ReleaseDate := EncodeDate(2012, 2, 28); 58 56 MajorVersion := 0; 59 57 MinorVersion := 1;
Note:
See TracChangeset
for help on using the changeset viewer.