I am playing with my new plugin UML::Blocks and I run into a problem...
I made a new tab in the editor like this(this is the whole source of the BaseView class header file):
class BaseView : public EditorBase
{
public:
BaseView(wxWindow* parent, const wxString& title);
virtual ~BaseView();
virtual bool Close();
protected:
private:
};
I throw the parameters of the constructor to EditorBase.
I can open this tab by creating a new instance of BaseView. But I can't close this tab. Howto do this?[/code]
EditorBase has this:
bool EditorBase::Close()
{
Destroy();
return true;
}
Or you could call Manager::Get()->GetEditorManager()->Close(EditorBase*). EditorManager is responsible for all editors after all...
Yiannis.