I am working on a plugin for codelite that works a little bit like a project wizard. To do so, I have created a custom dialog that extends wxDialog.
And then when selected in the menu, I am showing it like this:
Code: Select all
void ofMaker::onNewOf(wxCommandEvent& e)
{
//but its a modal dialogue for now
OfDialog* ofDialog=new OfDialog(m_mgr->GetTheApp()->GetTopWindow());
ofDialog->Show();
}
Code: Select all
codelite: symbol lookup error: /usr/lib/codelite/OfProjectMaker.so: undefined symbol: _ZN8OfDialogC1EP8wxWindow
Code: Select all
#include <wx/wx.h>
#include "ofdialog.h"
// application class
class wxMiniApp : public wxApp
{
public:
// function called at the application initialization
virtual bool OnInit();
// event handler for button click
void OnClick(wxCommandEvent& event) { GetTopWindow()->Close(); }
};
IMPLEMENT_APP(wxMiniApp);
bool wxMiniApp::OnInit()
{
OfDialog ofDialog(NULL);
ofDialog.Show();
// enter the application's main loop
return true;
}
philip