Changeset 157 for trunk/Forms/FormMain.pas
- Timestamp:
- Aug 19, 2024, 10:58:23 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.