// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
-// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+// with Xestia Calendar. If not, see <http://www.gnu.org/licenses/>
#include <stdlib.h>
#include <curl/curl.h>
#include "version.h"
+#include "bitmaps.h"
#include "forms/main/frmMain.h"
+#include "defaults.h"
class XestiaCALApp: public wxApp
{
bool XestiaCALApp::OnInit()
{
+ wxInitAllImageHandlers();
+
static const wxCmdLineEntryDesc g_cmdLineDesc [] =
{
{ wxCMD_LINE_SWITCH, "h", "help", "Displays help on command line parameters",
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.
}
+ // Setup the default accounts.
+
+ SetupDirectories();
+ SetupDefaultSettings();
+ SetupDefaultCalendar();
+
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);
- //frmActivityMgr *frameActMgr = new frmActivityMgr ( frame );
- //frame->SetupPointers(frameActMgr);
- //frame->SetupForm();
- //frame->SetIcon(appicon);
SetTopWindow(frame);