예제 #1
0
int  main()
{

   //  make sure config data can be read before setting up main window
   config_data_init();

   //  want to have messaging up for whichever window needs it.
   app_msg_init(coords_recvd_callback, coords_failed_callback);

   sunclock_handle_init();

   message_window_init();

   //  NB: for iOS it may be important to not block application execution
   //      before hitting the main event loop.  So we now defer the check
   //      for available location data until we hit our first ("nighttime")
   //      layer's drawing routine.  No better "message pump running" proxy
   //      that I'm aware of.
   app_event_loop(); 

   app_msg_deinit();

   message_window_deinit();

   sunclock_handle_deinit();

}  /* end of main() */
예제 #2
0
popmsg_ret pop_rss_msg(char *context,int YesorNo)
{

	GUI_CreateDialog("wnd_rss_dialog");
	if(YesorNo)
		GUI_SetFocusWidget("wnd_button_yes");
	else
		GUI_SetFocusWidget("wnd_button_no");
	GUI_SetProperty("wnd_text", "string", (void*)context);
	app_msg_destroy(g_app_msg_self);
#if 0
	while(POPMSG_RET_NONE == popmsg_result)
	{
		GUI_Exec();
		GxCore_ThreadDelay(50);
	}
#endif
	while(POPMSG_RET_NONE == popmsg_result)
	{
	   GUI_Loop();
	   GxCore_ThreadDelay(50);
	}
	GUI_StartSchedule();
	GUI_EndDialog("wnd_rss_dialog");
	//GUI_Exec();
	GUI_SetInterface("flush",NULL);
	app_msg_init(g_app_msg_self);
	return popmsg_result;
}