Possibility pass bdd file to load at startup

This commit is contained in:
2010-08-22 16:35:12 +02:00
parent 9f7d858bc3
commit fb1007bfcb
10 changed files with 80 additions and 51 deletions

View File

@@ -25,7 +25,10 @@ class MyApp: public wxApp
{
try
{
new KissCount();
if (argc == 2)
new KissCount(wxString(argv[1]).mb_str());
else
new KissCount(NULL);
}
catch (std::string s)
{
@@ -38,28 +41,3 @@ class MyApp: public wxApp
};
IMPLEMENT_APP(MyApp);
// bool MyApp::OnInit()
// {
// Main app;
// MyFrame *frame = new MyFrame( _("Hello World"), wxPoint(50, 50), wxSize(1024, 768) );
// AccountPanel* f = new AccountPanel(frame);
// frame->Show(true);
// SetTopWindow(frame);
// frame->Centre();
// frame->Disable();
// try
// {
// app.Init();
// }
// catch (std::string s)
// {
// std::cout << "Error " << s << "\n";
// frame->Close(true);
// }
// frame->Enable();
// return true;
// }