- Timestamp:
- Aug 19, 2024, 10:58:23 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r156 r157 49 49 OptionsFormTabIndex: Integer; 50 50 Optimizations: TOptimizations; 51 ShowToolbar: Boolean; 51 52 procedure Init; 52 53 procedure AddItemToLastOpenedList(FileName: string); … … 179 180 ReadIntegerWithDefault('DPIY', 96)); 180 181 ScaleDPI1.AutoDetect := ReadBoolWithDefault('DPIAuto', True); 182 ShowToolbar := ReadBoolWithDefault('ShowToolbar', True); 181 183 OptimizationLevel := TCompilerOptimization(ReadIntegerWithDefault('OptimizationLevel', Integer(coNormal))); 182 184 MemorySize := ReadIntegerWithDefault('MemorySize', 30000); … … 212 214 WriteBool('OpenProjectOnStart', OpenProjectOnStart); 213 215 WriteBool('DPIAuto', ScaleDPI1.AutoDetect); 216 WriteBool('ShowToolbar', ShowToolbar); 214 217 WriteInteger('DPIX', ScaleDPI1.DPI.X); 215 218 WriteInteger('DPIY', ScaleDPI1.DPI.Y); -
trunk/Forms/FormMain.lfm
r154 r157 331 331 Action = AFullScreen 332 332 end 333 object MenuItemViewToolbar: TMenuItem 334 AutoCheck = True 335 Caption = 'Toolbar' 336 OnClick = MenuItemViewToolbarClick 337 end 333 338 end 334 339 object MenuItem9: TMenuItem -
trunk/Forms/FormMain.lrj
r154 r157 11 11 {"hash":310020,"name":"tformmain.menuitem24.caption","sourcebytes":[69,100,105,116],"value":"Edit"}, 12 12 {"hash":380871,"name":"tformmain.menuitem23.caption","sourcebytes":[86,105,101,119],"value":"View"}, 13 {"hash":191244498,"name":"tformmain.menuitemviewtoolbar.caption","sourcebytes":[84,111,111,108,98,97,114],"value":"Toolbar"}, 13 14 {"hash":22974,"name":"tformmain.menuitem9.caption","sourcebytes":[82,117,110],"value":"Run"}, 14 15 {"hash":94932420,"name":"tformmain.menuitemtarget.caption","sourcebytes":[84,97,114,103,101,116],"value":"Target"}, -
trunk/Forms/FormMain.pas
r156 r157 71 71 MenuItem34: TMenuItem; 72 72 MenuItem35: TMenuItem; 73 MenuItemViewToolbar: TMenuItem; 73 74 MenuItemOpenRecent: TMenuItem; 74 75 MenuItemTarget: TMenuItem; … … 153 154 procedure FormDestroy(Sender: TObject); 154 155 procedure FormShow(Sender: TObject); 156 procedure MenuItemViewToolbarClick(Sender: TObject); 155 157 procedure TimerRefreshTimer(Sender: TObject); 156 158 private … … 172 174 procedure LastOpenedListChange(Sender: TObject); 173 175 procedure CurrentTargetChangeExecute(Sender: TObject); 176 procedure UpdateStatusBarExecute(Sender: TObject); 177 procedure UpdateInterfaceExecute(Sender: TObject); 174 178 public 175 179 procedure MessagesChanged(Sender: TObject); … … 213 217 try 214 218 if Core.Core.LastOpenedList.Items.Count = 0 then 215 Core.Core.LastOpenedList.Items.Add(CombinePaths(Core.Core.DataDir, ExamplesDir + DirectorySeparator + 'Sierpinski.b')); 219 Core.Core.LastOpenedList.Items.Add(CombinePaths(Core.Core.DataDir, ExamplesDir + 220 DirectorySeparator + 'Sierpinski.b')); 216 221 217 222 if Core.Core.OpenProjectOnStart and (Core.Core.LastOpenedList.Items.Count > 0) and … … 230 235 end; 231 236 237 procedure TFormMain.MenuItemViewToolbarClick(Sender: TObject); 238 begin 239 Core.Core.ShowToolbar := MenuItemViewToolbar.Checked; 240 UpdateInterface; 241 end; 242 232 243 procedure TFormMain.TimerRefreshTimer(Sender: TObject); 233 244 begin … … 321 332 begin 322 333 UpdateTargetList; 334 UpdateInterface; 335 end; 336 337 procedure TFormMain.UpdateStatusBarExecute(Sender: TObject); 338 begin 339 UpdateStatusBar; 340 end; 341 342 procedure TFormMain.UpdateInterfaceExecute(Sender: TObject); 343 begin 323 344 UpdateInterface; 324 345 end; … … 357 378 AShowTargetPosition.Enabled := CurrentTarget.Compiled; 358 379 AFullScreen.Checked := FullScreen; 380 MenuItemViewToolbar.Checked := Core.Core.ShowToolbar; 381 ToolBarMain.Visible := Core.Core.ShowToolbar; 359 382 end; 360 383 UpdateStatusBar; … … 387 410 begin 388 411 FormSourceCode := TFormSourceCode.Create(nil); 412 FormSourceCode.OnUpdateStatusBar := UpdateStatusBarExecute; 413 FormSourceCode.OnUpdateInterface := UpdateInterfaceExecute; 389 414 FormCPU := TFormCPU.Create(nil); 390 415 FormInput := TFormInput.Create(nil); -
trunk/Forms/FormTargetCode.lfm
r153 r157 8 8 ClientWidth = 734 9 9 DesignTimePPI = 144 10 OnDestroy = FormDestroy 10 11 LCLVersion = '3.4.0.0' 11 12 inline SynEditTarget: TSynEdit … … 509 510 object PopupMenuTarget: TPopupMenu 510 511 Images = Core.ImageListMain 511 Left = 101512 Top = 1 20512 Left = 239 513 Top = 144 513 514 object MenuItem20: TMenuItem 514 515 Action = AFormatCode -
trunk/Forms/FormTargetCode.pas
r149 r157 23 23 procedure AFormatCodeExecute(Sender: TObject); 24 24 procedure AShrinkCodeExecute(Sender: TObject); 25 procedure FormDestroy(Sender: TObject); 25 26 public 26 27 procedure SetHighlighter(SourceExt: string); … … 80 81 end; 81 82 83 procedure TFormTargetCode.FormDestroy(Sender: TObject); 84 begin 85 if Assigned(SynEditTarget.Highlighter) then 86 SynEditTarget.Highlighter.Free; 87 end; 88 82 89 procedure TFormTargetCode.SetHighlighter(SourceExt: string); 83 90 begin -
trunk/Languages/LazFuck.cs.po
r154 r157 496 496 msgstr "CÃl" 497 497 498 #: tformmain.menuitemviewtoolbar.caption 499 msgid "Toolbar" 500 msgstr "NástrojovÃœ panel" 501 498 502 #: tformmain.tabsheetdebug.caption 499 503 msgid "Debug" -
trunk/Languages/LazFuck.pot
r154 r157 482 482 msgstr "" 483 483 484 #: tformmain.menuitemviewtoolbar.caption 485 msgid "Toolbar" 486 msgstr "" 487 484 488 #: tformmain.tabsheetdebug.caption 485 489 msgid "Debug"
Note:
See TracChangeset
for help on using the changeset viewer.