First pass

This commit is contained in:
2011-08-25 17:45:41 +02:00
parent ed6a7a5fef
commit 991486a042
64 changed files with 1257 additions and 8876 deletions

View File

@@ -17,28 +17,22 @@
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
*/
#include <wx/wx.h>
#include <controller/KissCount.hpp>
class MyApp: public wxApp
int main(int argc, char *argv[])
{
virtual bool OnInit()
try
{
try
{
if (argc == 2)
new KissCount(wxString(argv[1]).mb_str());
else
new KissCount(0);
}
catch (std::string s)
{
std::cerr << "Error " << s << "\n";
return false;
}
return true;
}
};
if (argc == 2)
KissCount(wxString(argv[1]).mb_str());
else
KissCount(0);
IMPLEMENT_APP(MyApp);
return KissCount.exec();
}
catch (std::string s)
{
std::cerr << "Error " << s << "\n";
throw;
}
}