Exemple #1
0
static void init_launch() 
{
	module = pz_register_module ("nano", 0);
	pz_menu_add_stub_group("/Media/nano", "Demos");
	pz_menu_add_action_group("/Media/nano/#FastLaunch", "#FastLaunch", fastlaunch);
	pz_menu_add_action_group("/Media/nano/~ReadMe", "#FastLaunch", readme);
	pz_menu_sort("/Media/nano");
}
static void init_launch() 
{
	module = pz_register_module("Podzilla0-Lite", 0);
	pz_menu_add_stub_group("/Zillae/Podzilla0-Lite", "PZ0 Based");
	pz_menu_add_action_group("/Zillae/Podzilla0-Lite/#FastLaunch", "#FastLaunch", fastlaunch);
	pz_menu_add_action_group("/Zillae/Podzilla0-Lite/~ReadMe", "#FastLaunch", readme);
	pz_menu_sort("/Zillae/Podzilla0-Lite");
}
static void init_launch() 
{
	module = pz_register_module("Floyd2illA", 0);
	pz_menu_add_stub_group("/Zillae/Floyd2illA", "PZ0 Based");
	pz_menu_add_action_group("/Zillae/Floyd2illA/#FastLaunch", "#FastLaunch", fastlaunch);
	pz_menu_add_action_group("/Zillae/Floyd2illA/~ReadMe", "#FastLaunch", readme);
	pz_menu_sort("/Zillae/Floyd2illA");
}
void init_truchet() 
{
	/* internal module name */
	tglob.module = pz_register_module( "truchet", cleanup_truchet );

	pz_menu_add_action_group("/Extras/Demos/Truchet", "Toys", new_truchet_window_common );

	tglob.timer = 0;
	tglob.clicks = 0;
}
static void init_launch() 
{
	module = pz_register_module("Podzilla2-SVN", cleanup);
	path = "/opt/Zillae/Podzilla2-SVN/Launch/Launch.sh";

	config = pz_load_config("/opt/Zillae/Podzilla2-SVN/Conf/Hide.conf");
	if (!pz_get_setting(config, HIDE_ALL)) pz_set_int_setting (config, HIDE_ALL, 0);
	if (!pz_get_setting(config, HIDE_ARCADE)) pz_set_int_setting (config, HIDE_ARCADE, 0);
	if (!pz_get_setting(config, HIDE_DEV)) pz_set_int_setting (config, HIDE_DEV, 0);
	if (!pz_get_setting(config, HIDE_MEDIA)) pz_set_int_setting (config, HIDE_MEDIA, 0);
	if (!pz_get_setting(config, HIDE_MISC)) pz_set_int_setting (config, HIDE_MISC, 0);
	if (!pz_get_setting(config, HIDE_TOOLS)) pz_set_int_setting (config, HIDE_TOOLS, 0);
	if (!pz_get_setting(config, HIDE_UNSORTED)) pz_set_int_setting (config, HIDE_UNSORTED, 0);
	
	pz_menu_add_stub_group("/Zillae/Podzilla2-SVN", "#PZ2 Based");
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/#Fastlaunch",	"#Normal", fastlaunch);
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/~ReadMe",		"#Normal", readme);
	if (pz_get_int_setting(config, HIDE_ALL) == 0)
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/All Modules",	"#Normal", launch_all);
	if (pz_get_int_setting(config, HIDE_ARCADE) == 0)
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/Arcade",	"Lite", launch_arcade);
	if (pz_get_int_setting(config, HIDE_DEV) == 0)
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/Dev",	"Lite", launch_dev);
	if (pz_get_int_setting(config, HIDE_MEDIA) == 0)
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/Media",	"Lite", launch_media);
	if (pz_get_int_setting(config, HIDE_MISC) == 0)
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/Misc",	"Lite", launch_misc);
	if (pz_get_int_setting(config, HIDE_TOOLS) == 0)
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/Tools",	"Lite", launch_tools);
	if (pz_get_int_setting(config, HIDE_UNSORTED) == 0)
		pz_menu_add_action_group("/Zillae/Podzilla2-SVN/Unsorted","Lite", launch_unsorted);
	
	pz_menu_add_stub_group("/Zillae/Podzilla2-SVN/Hide Settings", "~Settings");
	pz_menu_add_setting_group("/Zillae/Podzilla2-SVN/Hide Settings/Hide All Modules",	"#Normal", HIDE_ALL, config, on_off_options);
	pz_menu_add_setting_group("/Zillae/Podzilla2-SVN/Hide Settings/Hide Arcade",	"Lite", HIDE_ARCADE, config, on_off_options);
	pz_menu_add_setting_group("/Zillae/Podzilla2-SVN/Hide Settings/Hide Dev",	"Lite", HIDE_DEV, config, on_off_options);
	pz_menu_add_setting_group("/Zillae/Podzilla2-SVN/Hide Settings/Hide Media",	"Lite", HIDE_MEDIA, config, on_off_options);
	pz_menu_add_setting_group("/Zillae/Podzilla2-SVN/Hide Settings/Hide Misc",	"Lite", HIDE_MISC, config, on_off_options);
	pz_menu_add_setting_group("/Zillae/Podzilla2-SVN/Hide Settings/Hide Tools",	"Lite", HIDE_TOOLS, config, on_off_options);
	pz_menu_add_setting_group("/Zillae/Podzilla2-SVN/Hide Settings/Hide Unsorted",	"Lite", HIDE_UNSORTED, config, on_off_options);
	pz_menu_sort("/Zillae/Podzilla2-SVN");
}
static void Header_init()
{
	module = pz_register_module("Header", NULL);
  	pz_menu_add_action_group("/Setting/Appearance/Header Name", "setting", set_Header);
}