1 |
/* |
/* |
2 |
* Copyright (C) 2006-2009 Andreas Persson |
* Copyright (C) 2006-2011 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
20 |
#include "dimregionedit.h" |
#include "dimregionedit.h" |
21 |
|
|
22 |
#include "global.h" |
#include "global.h" |
23 |
|
#include "compat.h" |
24 |
|
|
25 |
DimRegionEdit::DimRegionEdit() : |
DimRegionEdit::DimRegionEdit() : |
26 |
eEG1PreAttack(_("Pre-attack"), 0, 100, 2), |
eEG1PreAttack(_("Pre-attack"), 0, 100, 2), |
268 |
addHeader(_("Mandatory Settings")); |
addHeader(_("Mandatory Settings")); |
269 |
addString(_("Sample"), lSample, wSample); |
addString(_("Sample"), lSample, wSample); |
270 |
//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); |
271 |
|
#ifdef OLD_TOOLTIPS |
272 |
tooltips.set_tip(*wSample, _("Drop a sample here")); |
tooltips.set_tip(*wSample, _("Drop a sample here")); |
273 |
|
#else |
274 |
|
wSample->set_tooltip_text(_("Drop a sample here")); |
275 |
|
#endif |
276 |
addProp(eUnityNote); |
addProp(eUnityNote); |
277 |
addHeader(_("Optional Settings")); |
addHeader(_("Optional Settings")); |
278 |
addProp(eSampleStartOffset); |
addProp(eSampleStartOffset); |
561 |
Gtk::Entry*& widget) |
Gtk::Entry*& widget) |
562 |
{ |
{ |
563 |
label = new Gtk::Label(Glib::ustring(labelText) + ":"); |
label = new Gtk::Label(Glib::ustring(labelText) + ":"); |
564 |
label->set_alignment(Gtk::ALIGN_LEFT); |
label->set_alignment(Gtk::ALIGN_START); |
565 |
|
|
566 |
table[pageno]->attach(*label, 1, 2, rowno, rowno + 1, |
table[pageno]->attach(*label, 1, 2, rowno, rowno + 1, |
567 |
Gtk::FILL, Gtk::SHRINK); |
Gtk::FILL, Gtk::SHRINK); |
587 |
str += "</b>"; |
str += "</b>"; |
588 |
Gtk::Label* label = new Gtk::Label(str); |
Gtk::Label* label = new Gtk::Label(str); |
589 |
label->set_use_markup(); |
label->set_use_markup(); |
590 |
label->set_alignment(Gtk::ALIGN_LEFT); |
label->set_alignment(Gtk::ALIGN_START); |
591 |
table[pageno]->attach(*label, 0, 3, rowno, rowno + 1, |
table[pageno]->attach(*label, 0, 3, rowno, rowno + 1, |
592 |
Gtk::FILL, Gtk::SHRINK); |
Gtk::FILL, Gtk::SHRINK); |
593 |
rowno++; |
rowno++; |