Changeset 13 for trunk/UFormMain.pas


Ignore:
Timestamp:
May 9, 2014, 12:37:10 AM (10 years ago)
Author:
chronos
Message:
  • Added: Basic parsing of "Depends on" expressions.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        33LinuxBuilder.lps
        44LinuxBuilder.res
         5backup
  • trunk/UFormMain.pas

    r12 r13  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
    9   ActnList, ComCtrls, StdCtrls, UKConfig, ULastOpenedList, URegistry, Registry;
     9  ActnList, ComCtrls, StdCtrls, UKConfig, ULastOpenedList, URegistry, Registry2;
    1010
    1111const
     
    6767    procedure LastOpenedListCompareChange(Sender: TObject);
    6868    procedure LastOpenedListOpenChange(Sender: TObject);
    69     procedure MenuItemOpenRecentClick(Sender: TObject);
    7069    procedure TreeView1SelectionChanged(Sender: TObject);
    7170  private
     
    9594begin
    9695  AutoOpen := True;
    97   LastOpenedListOpen.LoadFromRegistry(RegContext(RootKey, RootPath + '/OpenRecent'));
    98   LastOpenedListCompare.LoadFromRegistry(RegContext(RootKey, RootPath + '/CompareRecent'));
     96  LastOpenedListOpen.LoadFromRegistry(RegContext(RootKey, RootPath + '\OpenRecent'));
     97  LastOpenedListCompare.LoadFromRegistry(RegContext(RootKey, RootPath + '\CompareRecent'));
    9998  if AutoOpen and (LastOpenedListOpen.Items.Count > 0) then
    10099    OpenDir(LastOpenedListOpen.Items[0])
     
    112111  LastOpenedListOpen.LoadToMenuItem(MenuItemOpenRecent, AOpenDirExecute);
    113112  LastOpenedListOpen.LoadToMenuItem(PopupMenuOpenRecent.Items, AOpenDirExecute);
    114 end;
    115 
    116 procedure TFormMain.MenuItemOpenRecentClick(Sender: TObject);
    117 begin
    118 
    119113end;
    120114
     
    254248procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    255249begin
    256   LastOpenedListOpen.SaveToRegistry(RegContext(RootKey, RootPath + '/OpenRecent'));
    257   LastOpenedListCompare.SaveToRegistry(RegContext(RootKey, RootPath + '/CompareRecent'));
     250  LastOpenedListOpen.SaveToRegistry(RegContext(RootKey, RootPath + '\OpenRecent'));
     251  LastOpenedListCompare.SaveToRegistry(RegContext(RootKey, RootPath + '\CompareRecent'));
    258252end;
    259253
Note: See TracChangeset for help on using the changeset viewer.