Changeset 106 for oup/rewrite/Tools


Ignore:
Timestamp:
Feb 21, 2007, 4:09:30 AM (18 years ago)
Author:
alloc
Message:
 
Location:
oup/rewrite/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oup/rewrite/Tools/Template.dfm

    r105 r106  
    308308    Left = 72
    309309    Top = 216
     310    object popup_separator2: TMenuItem
     311      Caption = '-'
     312    end
     313    object popup_linkshere: TMenuItem
     314      Caption = 'What links here?'
     315      Enabled = False
     316      OnClick = popup_linkshereClick
     317    end
    310318    object popup_separator: TMenuItem
    311319      Caption = '-'
  • oup/rewrite/Tools/Template.pas

    r105 r106  
    4141    combo_connection: TComboBox;
    4242    Bevel1: TBevel;
     43    popup_linkshere: TMenuItem;
     44    popup_separator2: TMenuItem;
    4345    procedure RecreateExtList;
    4446    procedure UpdateConList;
     
    6264    procedure FormActivate(Sender: TObject);
    6365    procedure combo_connectionChange(Sender: TObject);
     66    procedure popup_linkshereClick(Sender: TObject);
    6467  private
    6568    FSortBy: TSortType;
     
    9497implementation
    9598{$R *.dfm}
    96 uses Main, ConnectionManager, Exporters, Functions;
     99uses Main, ConnectionManager, Exporters, Functions, WhatLinksHere;
    97100
    98101
     
    258261end;
    259262
     263procedure TForm_ToolTemplate.popup_linkshereClick(Sender: TObject);
     264begin
     265  Form_WhatLinksHere.ConID := FConnectionID;
     266  Form_WhatLinksHere.FileID := FSelectedFile.ID;
     267  Form_WhatLinksHere.SenderForm := Self;
     268  Form_WhatLinksHere.Show;
     269end;
     270
    260271procedure TForm_ToolTemplate.popup_opentool(Sender: TObject);
    261272var
     
    335346        filepopup.Items.Items[i].Enabled := False;
    336347  end;
     348  filepopup.Items.Find('What links here?').Enabled :=
     349      ConManager.Connection[FConnectionID].Backend = DB_ADB;
    337350end;
    338351
     
    386399  pt.X := x;
    387400  pt.Y := y;
    388 //  filelist.ItemIndex := filelist.ItemAtPos(pt, true);
    389 //  Self.listClick(Self);
     401  if Shift = [ssRight] then
     402  begin
     403    filelist.ItemIndex := filelist.ItemAtPos(pt, true);
     404    Self.listClick(Self);
     405  end;
    390406end;
    391407
Note: See TracChangeset for help on using the changeset viewer.