1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : newinheritancedlg.cpp
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
18
// This program is free software; you can redistribute it and/or modify
19
// it under the terms of the GNU General Public License as published by
20
// the Free Software Foundation; either version 2 of the License, or
21
// (at your option) any later version.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
25
#include "newinheritancedlg.h"
26
#include "open_type_dlg.h"
29
NewIneritanceDlg::NewIneritanceDlg( wxWindow* parent, IManager *mgr, const wxString &parentName, const wxString &access )
30
: NewIneritanceBaseDlg( parent, wxID_ANY, wxT("New Inheritance"), wxDefaultPosition, wxSize( 505,196 ), wxDEFAULT_DIALOG_STYLE)
34
m_choiceAccess->Select(0);
35
if(access.IsEmpty() == false){
36
m_choiceAccess->SetStringSelection(access);
38
m_textCtrlInhertiance->SetValue(parentName);
42
void NewIneritanceDlg::OnButtonMore( wxCommandEvent& event )
44
OpenTypeDlg *dlg = new OpenTypeDlg(this, m_mgr->GetTagsManager());
45
if(dlg->ShowModal() == wxID_OK){
47
if( dlg->GetSelectedTag()->GetScope().IsEmpty() == false &&
48
dlg->GetSelectedTag()->GetScope() != wxT("<global>"))
50
parentName << dlg->GetSelectedTag()->GetScope() << wxT("::");
52
parentName << dlg->GetSelectedTag()->GetName();
53
m_textCtrlInhertiance->SetValue(parentName);