161 |
//TODO: the following would break drag&drop: wSample->property_editable().set_value(false); or this: wSample->set_editable(false); |
//TODO: the following would break drag&drop: wSample->property_editable().set_value(false); or this: wSample->set_editable(false); |
162 |
tooltips.set_tip(*wSample, _("Drop a sample here")); |
tooltips.set_tip(*wSample, _("Drop a sample here")); |
163 |
addProp(eUnityNote); |
addProp(eUnityNote); |
|
// prop_table.addProp(eUnityNote); |
|
164 |
addHeader(_("Optional Settings")); |
addHeader(_("Optional Settings")); |
165 |
addProp(eSampleStartOffset); |
addProp(eSampleStartOffset); |
166 |
addProp(eChannelOffset); |
addProp(eChannelOffset); |
181 |
addProp(eSampleLoopInfinite); |
addProp(eSampleLoopInfinite); |
182 |
addProp(eSampleLoopPlayCount); |
addProp(eSampleLoopPlayCount); |
183 |
|
|
|
Gtk::Requisition req = table[0]->size_request(); |
|
|
printf("w=%d h=%d\n", req.width, req.height); |
|
|
req = eCrossfade_out_end.widget.size_request(); |
|
|
printf("widget: w=%d h=%d\n", req.width, req.height); |
|
|
|
|
|
Gtk::Allocation all = table[0]->get_allocation(); |
|
|
printf("allocation: w=%d h=%d\n", all.get_width(), all.get_height()); |
|
|
|
|
184 |
nextPage(); |
nextPage(); |
185 |
|
|
186 |
addHeader(_("General Amplitude Settings")); |
addHeader(_("General Amplitude Settings")); |
501 |
rowno++; |
rowno++; |
502 |
} |
} |
503 |
|
|
|
void DimRegionEdit::addProp(BoolEntryPlus6& boolentry) |
|
|
{ |
|
|
table[pageno]->attach(boolentry.widget, 1, 3, rowno, rowno + 1, |
|
|
Gtk::FILL, Gtk::SHRINK); |
|
|
rowno++; |
|
|
} |
|
|
|
|
|
PropTable::PropTable() |
|
|
{ |
|
|
rowno = 0; |
|
|
firstRowInBlock = 0; |
|
|
|
|
|
table = new Gtk::Table(3, 1); |
|
|
table->set_col_spacings(7); |
|
|
tables.push_back(table); |
|
|
} |
|
|
|
|
|
void PropTable::addProp(LabelWidget& prop) |
|
|
{ |
|
|
table->attach(prop.label, 1, 2, rowno, rowno + 1, |
|
|
Gtk::FILL, Gtk::SHRINK); |
|
|
table->attach(prop.widget, 2, 3, rowno, rowno + 1, |
|
|
Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK); |
|
|
rowno++; |
|
|
} |
|
|
|
|
|
void PropTable::nextPage() |
|
|
{ |
|
|
if (firstRowInBlock < rowno - 1) |
|
|
{ |
|
|
Gtk::Label* filler = new Gtk::Label(" "); |
|
|
table->attach(*filler, 0, 1, firstRowInBlock, rowno, |
|
|
Gtk::FILL, Gtk::SHRINK); |
|
|
} |
|
|
table = new Gtk::Table(3, 1); |
|
|
table->set_col_spacings(7); |
|
|
tables.push_back(table); |
|
|
rowno = 0; |
|
|
firstRowInBlock = 0; |
|
|
} |
|
|
|
|
504 |
void DimRegionEdit::addProp(LabelWidget& prop) |
void DimRegionEdit::addProp(LabelWidget& prop) |
505 |
{ |
{ |
506 |
table[pageno]->attach(prop.label, 1, 2, rowno, rowno + 1, |
table[pageno]->attach(prop.label, 1, 2, rowno, rowno + 1, |