Changeset 239
- Timestamp:
- Jul 14, 2007, 10:22:05 PM (17 years ago)
- Location:
- oup/current
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Main.pas
r227 r239 813 813 function TForm_Main.open_child(window_context: String; Connection: Integer): TForm_BaseTemplate; 814 814 begin 815 open_child(window_context, Connection, -1);815 Result := open_child(window_context, Connection, -1); 816 816 end; 817 817 818 818 function TForm_Main.open_child(window_context: String): TForm_BaseTemplate; 819 819 begin 820 open_child(window_context, -1, -1);820 Result := open_child(window_context, -1, -1); 821 821 end; 822 822 -
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.