Changeset 106 for oup/rewrite/Tools
- Timestamp:
- Feb 21, 2007, 4:09:30 AM (18 years ago)
- Location:
- oup/rewrite/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/rewrite/Tools/Template.dfm
r105 r106 308 308 Left = 72 309 309 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 310 318 object popup_separator: TMenuItem 311 319 Caption = '-' -
oup/rewrite/Tools/Template.pas
r105 r106 41 41 combo_connection: TComboBox; 42 42 Bevel1: TBevel; 43 popup_linkshere: TMenuItem; 44 popup_separator2: TMenuItem; 43 45 procedure RecreateExtList; 44 46 procedure UpdateConList; … … 62 64 procedure FormActivate(Sender: TObject); 63 65 procedure combo_connectionChange(Sender: TObject); 66 procedure popup_linkshereClick(Sender: TObject); 64 67 private 65 68 FSortBy: TSortType; … … 94 97 implementation 95 98 {$R *.dfm} 96 uses Main, ConnectionManager, Exporters, Functions ;99 uses Main, ConnectionManager, Exporters, Functions, WhatLinksHere; 97 100 98 101 … … 258 261 end; 259 262 263 procedure TForm_ToolTemplate.popup_linkshereClick(Sender: TObject); 264 begin 265 Form_WhatLinksHere.ConID := FConnectionID; 266 Form_WhatLinksHere.FileID := FSelectedFile.ID; 267 Form_WhatLinksHere.SenderForm := Self; 268 Form_WhatLinksHere.Show; 269 end; 270 260 271 procedure TForm_ToolTemplate.popup_opentool(Sender: TObject); 261 272 var … … 335 346 filepopup.Items.Items[i].Enabled := False; 336 347 end; 348 filepopup.Items.Find('What links here?').Enabled := 349 ConManager.Connection[FConnectionID].Backend = DB_ADB; 337 350 end; 338 351 … … 386 399 pt.X := x; 387 400 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; 390 406 end; 391 407
Note:
See TracChangeset
for help on using the changeset viewer.