X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Fmain.cpp;h=2faffa9755a8914cdd006311004f9f9c41fa705f;hp=849a52c335c4aa80db6d0db105abdfb19b1eff07;hb=318513b721b9794b6a91b880b75e5a00be039ded;hpb=f0e33272a74b18dfb7262cddb8e0a76ac5a9be8b diff --git a/source/main.cpp b/source/main.cpp index 849a52c..2faffa9 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -27,6 +27,7 @@ #include #include "version.h" +#include "bitmaps.h" #include "forms/main/frmMain.h" class XestiaCALApp: public wxApp @@ -39,6 +40,8 @@ IMPLEMENT_APP(XestiaCALApp); bool XestiaCALApp::OnInit() { + wxInitAllImageHandlers(); + static const wxCmdLineEntryDesc g_cmdLineDesc [] = { { wxCMD_LINE_SWITCH, "h", "help", "Displays help on command line parameters", @@ -56,6 +59,14 @@ bool XestiaCALApp::OnInit() wxCmdLineParser XCALArgs (g_cmdLineDesc, argc, argv); XCALArgs.Parse(); + if (XCALArgs.Found(wxT("h"))){ + + // Print out the list of help commands. + + return false; + + } + if (XCALArgs.Found(wxT("v"))){ // Print out the version number. @@ -66,6 +77,15 @@ bool XestiaCALApp::OnInit() } frmMain *frame = new frmMain( NULL ); + + wxMemoryInputStream istream(bigimgs_appicon48_png, sizeof(bigimgs_appicon48_png)); + wxImage bigimgs_appicon48i(istream, wxBITMAP_TYPE_PNG); + wxBitmap appiconbmp(bigimgs_appicon48i, -1); + wxIcon appicon; + + appicon.CopyFromBitmap(appiconbmp); + + frame->SetIcon(appicon); frame->Show(true); SetTopWindow(frame);