-
- frmMain *frmMainPtrProc = static_cast<frmMain*>(frmMainPtr);
-
- wxCommandEvent shuffleevent(ACTMGR_SHUFFLE);
-
- if (intActivityProgress == 0){
-
- wxMemoryInputStream istream(misc_activity1_png, sizeof(misc_activity1_png));
- wxImage misc_activity1_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity1_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 1){
-
- wxMemoryInputStream istream(misc_activity2_png, sizeof(misc_activity2_png));
- wxImage misc_activity2_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity2_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 2){
-
- wxMemoryInputStream istream(misc_activity3_png, sizeof(misc_activity3_png));
- wxImage misc_activity3_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity3_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 3){
-
- wxMemoryInputStream istream(misc_activity4_png, sizeof(misc_activity4_png));
- wxImage misc_activity4_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity4_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 4){
-
- wxMemoryInputStream istream(misc_activity5_png, sizeof(misc_activity5_png));
- wxImage misc_activity5_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity5_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 5){
-
- wxMemoryInputStream istream(misc_activity6_png, sizeof(misc_activity6_png));
- wxImage misc_activity6_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity6_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 6){
-
- wxMemoryInputStream istream(misc_activity7_png, sizeof(misc_activity7_png));
- wxImage misc_activity7_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity7_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 7){
-
- wxMemoryInputStream istream(misc_activity8_png, sizeof(misc_activity8_png));
- wxImage misc_activity8_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity8_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 8){
-
- wxMemoryInputStream istream(misc_activity9_png, sizeof(misc_activity9_png));
- wxImage misc_activity9_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity9_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 9){
-
- wxMemoryInputStream istream(misc_activity10_png, sizeof(misc_activity10_png));
- wxImage misc_activity10_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity10_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 10){
-
- wxMemoryInputStream istream(misc_activity11_png, sizeof(misc_activity11_png));
- wxImage misc_activity11_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity11_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress++;
-
- } else if (intActivityProgress == 11){
-
- wxMemoryInputStream istream(misc_activity12_png, sizeof(misc_activity12_png));
- wxImage misc_activity12_pngi(istream, wxBITMAP_TYPE_PNG);
- wxBitmap activityiconbmp(misc_activity12_pngi, -1);
- bmpActivity->SetBitmap(activityiconbmp);
-
- intActivityProgress = 0;
-
- }
-
- wxPostEvent(frmMainPtrProc, shuffleevent);
+
+ // Notify function for wxActTimer.
+
+ frmMain *frmMainPtrProc = static_cast<frmMain*>(frmMainPtr);
+
+ wxCommandEvent shuffleevent(ACTMGR_SHUFFLE);
+
+ if (intActivityProgress == 0){
+
+ wxMemoryInputStream istream(misc_activity1_png, sizeof(misc_activity1_png));
+ wxImage misc_activity1_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity1_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 1){
+
+ wxMemoryInputStream istream(misc_activity2_png, sizeof(misc_activity2_png));
+ wxImage misc_activity2_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity2_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 2){
+
+ wxMemoryInputStream istream(misc_activity3_png, sizeof(misc_activity3_png));
+ wxImage misc_activity3_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity3_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 3){
+
+ wxMemoryInputStream istream(misc_activity4_png, sizeof(misc_activity4_png));
+ wxImage misc_activity4_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity4_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 4){
+
+ wxMemoryInputStream istream(misc_activity5_png, sizeof(misc_activity5_png));
+ wxImage misc_activity5_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity5_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 5){
+
+ wxMemoryInputStream istream(misc_activity6_png, sizeof(misc_activity6_png));
+ wxImage misc_activity6_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity6_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 6){
+
+ wxMemoryInputStream istream(misc_activity7_png, sizeof(misc_activity7_png));
+ wxImage misc_activity7_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity7_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 7){
+
+ wxMemoryInputStream istream(misc_activity8_png, sizeof(misc_activity8_png));
+ wxImage misc_activity8_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity8_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 8){
+
+ wxMemoryInputStream istream(misc_activity9_png, sizeof(misc_activity9_png));
+ wxImage misc_activity9_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity9_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 9){
+
+ wxMemoryInputStream istream(misc_activity10_png, sizeof(misc_activity10_png));
+ wxImage misc_activity10_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity10_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 10){
+
+ wxMemoryInputStream istream(misc_activity11_png, sizeof(misc_activity11_png));
+ wxImage misc_activity11_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity11_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress++;
+
+ } else if (intActivityProgress == 11){
+
+ wxMemoryInputStream istream(misc_activity12_png, sizeof(misc_activity12_png));
+ wxImage misc_activity12_pngi(istream, wxBITMAP_TYPE_PNG);
+ wxBitmap activityiconbmp(misc_activity12_pngi, -1);
+ bmpActivity->SetBitmap(activityiconbmp);
+
+ intActivityProgress = 0;
+
+ }
+
+ wxPostEvent(frmMainPtrProc, shuffleevent);