Exemplo n.º 1
0
static void _on_crash()
{
	int res = IupAlarm("Pic2MCMap has Crashed!", "Unfortunately, the program has crashed.\nIf this is the first time you see this message, trying repeating the same steps you made to get this "
			"message.\nIf this message reappears, please submit an issue to the project's GitHub page.\n\nThe program will now close.", "Open GitHub Page", "Exit", NULL);
	if(res == 1)
		IupHelp("https://github.com/wooky/pic2mcmap/issues");

	exit(-1);
}
Exemplo n.º 2
0
static int iLinkButton_CB(Ihandle* ih, int button, int pressed, int x, int y, char* status)
{
  if (button==IUP_BUTTON1 && pressed)
  {
    IFns cb = (IFns)IupGetCallback(ih, "ACTION");
    char* url = iupAttribGetStr(ih, "URL");
    if (cb)
    {
      int ret = cb(ih, url);
      if (ret == IUP_CLOSE) 
        IupExitLoop();
      else if (ret == IUP_DEFAULT && url)
        IupHelp(url);
    }
    else
      IupHelp(url);
  }

  (void)x;
  (void)y;
  (void)status;
  return IUP_DEFAULT;
}
Exemplo n.º 3
0
int item_help_action_cb(void)
{
  IupHelp("http://www.tecgraf.puc-rio.br/iup");
  return IUP_DEFAULT;
}
Exemplo n.º 4
0
//Open up the wiki page
int _wiki(Ihandle* self)
{
#define WIKI_URL "https://github.com/wooky/pic2mcmap/wiki"
	IupHelp(WIKI_URL);
	return IUP_DEFAULT;
}
Exemplo n.º 5
0
static int Help(lua_State *L)
{
  const char *url = luaL_checkstring(L,1);
  IupHelp(url);
  return 0;
}
Exemplo n.º 6
0
void HelpTest(void)
{
  IupHelp("http://www.tecgraf.puc-rio.br/iup");
  //IupHelp("..\\html\\index.html");
}
Exemplo n.º 7
0
static void Help(void)
{
  IupHelp(luaL_check_string(1));
}