Changeset 239 for oup/current/Tools
- Timestamp:
- Jul 14, 2007, 10:22:05 PM (17 years ago)
- Location:
- oup/current/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Tools/MetaEditor.dfm
r238 r239 316 316 object vst_newRoot: TMenuItem 317 317 Caption = 'Set as root element in new window' 318 OnClick = vst_newRootClick 318 319 end 319 320 object vst_setRoot: TMenuItem -
oup/current/Tools/MetaEditor.pas
r238 r239 52 52 var PopupMenu: TPopupMenu); 53 53 procedure vst_setRootClick(Sender: TObject); 54 procedure vst_newRootClick(Sender: TObject); 54 55 private 55 56 root: TTreeElement; … … 62 63 implementation 63 64 {$R *.dfm} 64 uses _MetaManager, _MetaTypes, ConnectionManager, Data, _FileTypes ;65 uses _MetaManager, _MetaTypes, ConnectionManager, Data, _FileTypes, Main; 65 66 66 67 type … … 272 273 end; 273 274 275 procedure TForm_Meta.vst_newRootClick(Sender: TObject); 276 var 277 data: PNodeData; 278 form: TForm_BaseTemplate; 279 begin 280 inherited; 281 data := VST.GetNodeData(VST.FocusedNode); 282 form := nil; 283 form := Form_Main.open_child('meta'); 284 if form is TForm_Meta then 285 TForm_Meta(form).SetRoot(data.Field); 286 end; 287 274 288 procedure TForm_Meta.vst_setRootClick(Sender: TObject); 275 289 var
Note:
See TracChangeset
for help on using the changeset viewer.