Esempio n. 1
0
void SpinOptionView::_createItem() {
	ZLSpinOptionEntry &option = (ZLSpinOptionEntry&)*myOption;

	myLabel = gtkLabel(name());

	mySpinBox = HILDON_NUMBER_EDITOR(hildon_number_editor_new(option.minValue(), option.maxValue()));
	hildon_number_editor_set_value(mySpinBox, option.initialValue());

	myHolder.attachWidgets(*this, GTK_WIDGET(myLabel), 1, GTK_WIDGET(mySpinBox), 1);
}
Esempio n. 2
0
void SpinOptionView::_createItem() {
	ZLSpinOptionEntry *tempo = (ZLSpinOptionEntry*)myOption;

	myLabel = labelWithMyParams(myOption->name().c_str());

	mySpinBox = hildon_number_editor_new(tempo->minValue(), tempo->maxValue());
	hildon_number_editor_set_value(HILDON_NUMBER_EDITOR(mySpinBox), tempo->initialValue());

	int midColumn = (myFromColumn + myToColumn)/2;

	myTab->addItem(myLabel, myRow, myFromColumn, midColumn);
	myTab->addItem(mySpinBox, myRow, midColumn, myToColumn);
}
Esempio n. 3
0
void SpinOptionView::_onAccept() const {
	((ZLSpinOptionEntry*)myOption)->onAccept(hildon_number_editor_get_value(HILDON_NUMBER_EDITOR(mySpinBox)));
}