Ignore:
Timestamp:
Nov 30, 2017, 12:02:32 AM (7 years ago)
Author:
chronos
Message:
  • Added: New project Close action.
  • Added: Track project Modified flag and offer project save if modified project is closed.
  • Added: Remember last opened project file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/Forms/UFormMain.lfm

    r124 r126  
    55  Width = 1050
    66  Caption = 'Language generator'
    7   ClientHeight = 653
     7  ClientHeight = 644
    88  ClientWidth = 1050
    99  Menu = MainMenu1
    1010  OnClose = FormClose
     11  OnCloseQuery = FormCloseQuery
    1112  OnShow = FormShow
    12   LCLVersion = '1.6.4.0'
     13  LCLVersion = '1.8.0.4'
    1314  object MemoBNF: TMemo
    1415    Left = 0
    15     Height = 618
     16    Height = 609
    1617    Top = 35
    1718    Width = 1050
    1819    Align = alClient
     20    ReadOnly = True
    1921    ScrollBars = ssAutoBoth
    2022    TabOrder = 0
     
    6971      Caption = 'File'
    7072      object MenuItem11: TMenuItem
    71         Action = ANew
     73        Action = AProjectNew
    7274      end
    7375      object MenuItem4: TMenuItem
    74         Action = AOpen
     76        Action = AProjectOpen
    7577      end
    7678      object MenuItem10: TMenuItem
    77         Action = ASave
     79        Action = AProjectSave
    7880      end
    7981      object MenuItem5: TMenuItem
    80         Action = ASaveAs
     82        Action = AProjectSaveAs
     83      end
     84      object MenuItem13: TMenuItem
     85        Action = AProjectClose
    8186      end
    8287      object MenuItem12: TMenuItem
     
    119124      OnExecute = AExitExecute
    120125    end
    121     object AOpen: TAction
     126    object AProjectOpen: TAction
    122127      Caption = 'Open...'
    123128      Hint = 'Open...'
    124129      ImageIndex = 4
    125       OnExecute = AOpenExecute
     130      OnExecute = AProjectOpenExecute
    126131    end
    127     object ASaveAs: TAction
     132    object AProjectSaveAs: TAction
    128133      Caption = 'Save as...'
    129134      Hint = 'Save as...'
    130135      ImageIndex = 5
    131       OnExecute = ASaveAsExecute
     136      OnExecute = AProjectSaveAsExecute
    132137    end
    133138    object ABuildCompiler: TAction
     
    136141      OnExecute = ABuildCompilerExecute
    137142    end
    138     object ASave: TAction
     143    object AProjectSave: TAction
    139144      Caption = 'Save'
    140145      ImageIndex = 5
    141       OnExecute = ASaveExecute
     146      OnExecute = AProjectSaveExecute
    142147    end
    143     object ANew: TAction
     148    object AProjectNew: TAction
    144149      Caption = 'New'
    145150      ImageIndex = 10
    146       OnExecute = ANewExecute
     151      OnExecute = AProjectNewExecute
    147152    end
    148153    object AGrammerSettings: TAction
    149154      Caption = 'Settings'
    150155      OnExecute = AGrammerSettingsExecute
     156    end
     157    object AProjectClose: TAction
     158      Caption = 'Close'
     159      OnExecute = AProjectCloseExecute
    151160    end
    152161  end
Note: See TracChangeset for help on using the changeset viewer.