Exemplo n.º 1
0
static void attachColorLabel(GtkTable *table, const ZLResource &colorResource, int row) {
	gtk_table_attach(
		table,
		gtk_label_new(colorResource.value().c_str()),
		0, 1, row, row + 1,
		(GtkAttachOptions)(GTK_FILL | GTK_SHRINK), (GtkAttachOptions)(GTK_FILL | GTK_EXPAND), 0, 0
	);
}
ZLDesktopOptionsDialog::ZLDesktopOptionsDialog(const ZLResource &resource, shared_ptr<ZLRunnable> applyAction) : ZLOptionsDialog(resource, applyAction), WidthOption(ZLCategoryKey::LOOK_AND_FEEL, resource.name(), "Width", 10, 2000, 400), HeightOption(ZLCategoryKey::LOOK_AND_FEEL, resource.name(), "Height", 10, 2000, 300) {
}
Exemplo n.º 3
0
SortedCatalogItem::SortedCatalogItem(const NetworkCatalogItem &parent, const ZLResource &resource,
									 const NetworkItem::List &children, int flags)
	: NetworkCatalogItem(parent.Link, resource.value(), resource["summary"].value(), parent.URLByType, ALWAYS, flags) {
	myChildren = children;
}
Exemplo n.º 4
0
ZLOptionsDialog::ZLOptionsDialog(const ZLResource &resource, shared_ptr<ZLRunnable> applyAction) : TabOption(ZLCategoryKey::LOOK_AND_FEEL, resource.name(), "SelectedTab", ""), myResource(resource), myApplyAction(applyAction) {
}