Possibility pass bdd file to load at startup
This commit is contained in:
30
src/main.cpp
30
src/main.cpp
@@ -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;
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user