Esempio n. 1
0
void PrintWharfConfig (WharfConfig * config)
{
	show_progress ("WHARF.flags=0x%lX;", config->flags);
	show_progress ("WHARF.set_flags=0x%lX;", config->set_flags);
	if (get_flags (config->set_flags, WHARF_ROWS))
		show_progress ("WHARF.rows=%d;", config->rows);

	if (get_flags (config->set_flags, WHARF_COLUMNS))
		show_progress ("WHARF.columns=%d;", config->columns);

	if (get_flags (config->set_flags, WHARF_GEOMETRY))
		show_progress ("WHARF.geometry=(0x%lx,%dx%d%+d%+d);",
									 config->geometry.flags, config->geometry.width,
									 config->geometry.height, config->geometry.x,
									 config->geometry.y);

	if (get_flags (config->set_flags, WHARF_WITHDRAW_STYLE))
		show_progress ("WHARF.withdraw_style=%d;", config->withdraw_style);

	if (get_flags (config->set_flags, WHARF_FORCE_SIZE))
		show_progress ("WHARF.force_size=(0x%lx,%dx%d%+d%+d);",
									 config->force_size.flags, config->force_size.width,
									 config->force_size.height, config->force_size.x,
									 config->force_size.y);

	if (get_flags (config->set_flags, WHARF_ANIMATE_STEPS))
		show_progress ("WHARF.animate_steps=%d;", config->animate_steps);
	if (get_flags (config->set_flags, WHARF_ANIMATE_STEPS_MAIN))
		show_progress ("WHARF.animate_steps_main=%d;",
									 config->animate_steps_main);
	if (get_flags (config->set_flags, WHARF_ANIMATE_DELAY))
		show_progress ("WHARF.animate_delay=%d;", config->animate_delay);

	if (get_flags (config->set_flags, WHARF_SOUND)) {
		int i;

		for (i = 0; i < WHEV_MAX_EVENTS; ++i)
			show_progress ("WHARF.sounds[%d]=\"%s\";", i, config->sounds[i]);
	}

	ASCF_PRINT_INT_KEYWORD (stderr, WHARF, config, LabelLocation);
	ASCF_PRINT_FLAG_KEYWORD (stderr, WHARF, config, FlipLabel);
	ASCF_PRINT_FLAG_KEYWORD (stderr, WHARF, config, FitContents);
	ASCF_PRINT_FLAG_KEYWORD (stderr, WHARF, config, ShapeToContents);
	ASCF_PRINT_FLAG_KEYWORD (stderr, WHARF, config, StretchBackground);
	ASCF_PRINT_FLAGS_KEYWORD (stderr, WHARF, config, AlignContents);
	ASCF_PRINT_FLAGS_KEYWORD (stderr, WHARF, config, Bevel);
	ASCF_PRINT_FLAGS_KEYWORD (stderr, WHARF, config, ShowHints);
	ASCF_PRINT_INT_KEYWORD (stderr, WHARF, config, CompositionMethod);
	ASCF_PRINT_INT_KEYWORD (stderr, WHARF, config, FolderOffset);
	ASCF_PRINT_INT_KEYWORD (stderr, WHARF, config, OrthogonalFolderOffset);

	print_wharf_folder (config->root_folder, 1);

}
Esempio n. 2
0
void
PrintWinListConfig (WinListConfig * config)
{
	int           i;

	fprintf (stderr, "WinListConfig = %p;\n", config);
	if (config == NULL)
		return;

	fprintf (stderr, "WinListConfig.flags = 0x%lX;\n", config->flags);
	fprintf (stderr, "WinListConfig.set_flags = 0x%lX;\n", config->set_flags);
	ASCF_PRINT_FLAG_KEYWORD(stderr,WINLIST,config,FillRowsFirst);
	ASCF_PRINT_FLAG_KEYWORD(stderr,WINLIST,config,UseSkipList);
	ASCF_PRINT_GEOMETRY_KEYWORD(stderr,WINLIST,config,Geometry);
	ASCF_PRINT_SIZE_KEYWORD(stderr,WINLIST,config,MinSize);
	ASCF_PRINT_SIZE_KEYWORD(stderr,WINLIST,config,MaxSize);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,MaxRows);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,MaxColumns);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,MinColWidth);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,MaxColWidth);

	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,UseName);
	ASCF_PRINT_FLAGS_KEYWORD(stderr,WINLIST,config,Align );
	ASCF_PRINT_FLAGS_KEYWORD(stderr,WINLIST,config,FBevel);
	ASCF_PRINT_FLAGS_KEYWORD(stderr,WINLIST,config,UBevel);
	ASCF_PRINT_FLAGS_KEYWORD(stderr,WINLIST,config,SBevel);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,FCompositionMethod);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,UCompositionMethod);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,SCompositionMethod);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,HSpacing);
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,VSpacing);

	ASCF_PRINT_STRING_KEYWORD(stderr,WINLIST,config,UnfocusedStyle);
	ASCF_PRINT_STRING_KEYWORD(stderr,WINLIST,config,FocusedStyle);
	ASCF_PRINT_STRING_KEYWORD(stderr,WINLIST,config,StickyStyle);
	ASCF_PRINT_STRING_KEYWORD(stderr,WINLIST,config,UrgentStyle);
	
	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,IconLocation);	
	ASCF_PRINT_FLAGS_KEYWORD(stderr,WINLIST,config,IconAlign );
	ASCF_PRINT_SIZE_KEYWORD(stderr,WINLIST,config,IconSize);	
	ASCF_PRINT_FLAGS_KEYWORD(stderr,WINLIST,config,ShowHints );
	
	fprintf (stderr, "WinListConfig.gravity = %d;\n", config->gravity);

	for (i = 0; i < MAX_MOUSE_BUTTONS; ++i)
        ASCF_PRINT_IDX_COMPOUND_STRING_KEYWORD(stderr,WINLIST,config,Action,',',i);

	ASCF_PRINT_INT_KEYWORD(stderr,WINLIST,config,NoCollidesSpacing);	

}