89 |
dimreg_vbox.pack_start(dimreg_hbox, Gtk::PACK_SHRINK); |
dimreg_vbox.pack_start(dimreg_hbox, Gtk::PACK_SHRINK); |
90 |
m_HPaned.add2(dimreg_vbox); |
m_HPaned.add2(dimreg_vbox); |
91 |
|
|
92 |
|
dimreg_label.set_tooltip_text(_("To automatically apply your changes above globally to the entire instrument, check all 3 check boxes on the right.")); |
93 |
|
dimreg_all_regions.set_tooltip_text(_("If checked: all changes you perform above will automatically be applied to all regions of this instrument as well.")); |
94 |
|
dimreg_all_dimregs.set_tooltip_text(_("If checked: all changes you perform above will automatically be applied as well to all dimension splits of the region selected below.")); |
95 |
|
dimreg_stereo.set_tooltip_text(_("If checked: all changes you perform above will automatically be applied to both audio channel splits (only if a \"stereo\" dimension is defined below).")); |
96 |
|
|
97 |
m_TreeViewNotebook.append_page(m_ScrolledWindowSamples, _("Samples")); |
m_TreeViewNotebook.append_page(m_ScrolledWindowSamples, _("Samples")); |
98 |
m_TreeViewNotebook.append_page(m_ScrolledWindow, _("Instruments")); |
m_TreeViewNotebook.append_page(m_ScrolledWindow, _("Instruments")); |
140 |
actionGroup->add(Gtk::Action::create("MenuEdit", _("_Edit"))); |
actionGroup->add(Gtk::Action::create("MenuEdit", _("_Edit"))); |
141 |
|
|
142 |
Glib::RefPtr<Gtk::ToggleAction> toggle_action = |
Glib::RefPtr<Gtk::ToggleAction> toggle_action = |
143 |
Gtk::ToggleAction::create("CopySampleUnity", _("Copy Sample's _Unity Note"), "ffaga"); |
Gtk::ToggleAction::create("CopySampleUnity", _("Copy Sample's _Unity Note")); |
144 |
toggle_action->set_active(true); |
toggle_action->set_active(true); |
|
//FIXME: doesn't work, why? |
|
|
toggle_action->set_tooltip(_("Used when dragging a sample to a region's sample reference field.")); |
|
145 |
actionGroup->add(toggle_action); |
actionGroup->add(toggle_action); |
146 |
|
|
147 |
toggle_action = |
toggle_action = |
148 |
Gtk::ToggleAction::create("CopySampleTune", _("Copy Sample's _Fine Tune")); |
Gtk::ToggleAction::create("CopySampleTune", _("Copy Sample's _Fine Tune")); |
149 |
toggle_action->set_active(true); |
toggle_action->set_active(true); |
|
//FIXME: doesn't work, why? |
|
|
toggle_action->set_tooltip(_("Used when dragging a sample to a region's sample reference field.")); |
|
150 |
actionGroup->add(toggle_action); |
actionGroup->add(toggle_action); |
151 |
|
|
152 |
toggle_action = |
toggle_action = |
153 |
Gtk::ToggleAction::create("CopySampleLoop", _("Copy Sample's _Loop Points")); |
Gtk::ToggleAction::create("CopySampleLoop", _("Copy Sample's _Loop Points")); |
154 |
toggle_action->set_active(true); |
toggle_action->set_active(true); |
|
//FIXME: doesn't work, why? |
|
|
toggle_action->set_tooltip(_("Used when dragging a sample to a region's sample reference field.")); |
|
155 |
actionGroup->add(toggle_action); |
actionGroup->add(toggle_action); |
156 |
|
|
157 |
|
|
257 |
uiManager->add_ui_from_string(ui_info); |
uiManager->add_ui_from_string(ui_info); |
258 |
|
|
259 |
popup_menu = dynamic_cast<Gtk::Menu*>(uiManager->get_widget("/PopupMenu")); |
popup_menu = dynamic_cast<Gtk::Menu*>(uiManager->get_widget("/PopupMenu")); |
260 |
|
|
261 |
|
// Set tooltips for menu items (for some reason, setting a tooltip on the |
262 |
|
// respective Gtk::Action objects above will simply be ignored, no matter |
263 |
|
// if using Gtk::Action::set_tooltip() or passing the tooltip string on |
264 |
|
// Gtk::Action::create()). |
265 |
|
{ |
266 |
|
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
267 |
|
uiManager->get_widget("/MenuBar/MenuEdit/CopySampleUnity")); |
268 |
|
item->set_tooltip_text(_("Used when dragging a sample to a region's sample reference field. You may disable this for example if you want to replace an existing sample in a region with a new sample, but don't want that the region's current unity note setting will be altered by this action.")); |
269 |
|
} |
270 |
|
{ |
271 |
|
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
272 |
|
uiManager->get_widget("/MenuBar/MenuEdit/CopySampleTune")); |
273 |
|
item->set_tooltip_text(_("Used when dragging a sample to a region's sample reference field. You may disable this for example if you want to replace an existing sample in a region with a new sample, but don't want that the region's current sample playback tuning will be altered by this action.")); |
274 |
|
} |
275 |
|
{ |
276 |
|
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
277 |
|
uiManager->get_widget("/MenuBar/MenuEdit/CopySampleLoop")); |
278 |
|
item->set_tooltip_text(_("Used when dragging a sample to a region's sample reference field. You may disable this for example if you want to replace an existing sample in a region with a new sample, but don't want that the region's current loop informations to be altered by this action.")); |
279 |
|
} |
280 |
|
|
281 |
instrument_menu = static_cast<Gtk::MenuItem*>( |
instrument_menu = static_cast<Gtk::MenuItem*>( |
282 |
uiManager->get_widget("/MenuBar/MenuInstrument"))->get_submenu(); |
uiManager->get_widget("/MenuBar/MenuInstrument"))->get_submenu(); |
305 |
// Create the Tree model: |
// Create the Tree model: |
306 |
m_refTreeModel = Gtk::ListStore::create(m_Columns); |
m_refTreeModel = Gtk::ListStore::create(m_Columns); |
307 |
m_TreeView.set_model(m_refTreeModel); |
m_TreeView.set_model(m_refTreeModel); |
308 |
|
m_TreeView.set_tooltip_text(_("Right click here for actions on instruments & MIDI Rules.")); |
309 |
instrument_name_connection = m_refTreeModel->signal_row_changed().connect( |
instrument_name_connection = m_refTreeModel->signal_row_changed().connect( |
310 |
sigc::mem_fun(*this, &MainWindow::instrument_name_changed) |
sigc::mem_fun(*this, &MainWindow::instrument_name_changed) |
311 |
); |
); |
317 |
// create samples treeview (including its data model) |
// create samples treeview (including its data model) |
318 |
m_refSamplesTreeModel = SamplesTreeStore::create(m_SamplesModel); |
m_refSamplesTreeModel = SamplesTreeStore::create(m_SamplesModel); |
319 |
m_TreeViewSamples.set_model(m_refSamplesTreeModel); |
m_TreeViewSamples.set_model(m_refSamplesTreeModel); |
320 |
|
m_TreeViewSamples.set_tooltip_text(_("To actually use a sample, drag it from this list view to \"Sample\" -> \"Sample:\" on the region's settings pane on the right.\n\nRight click here for more actions on samples.")); |
321 |
// m_TreeViewSamples.set_reorderable(); |
// m_TreeViewSamples.set_reorderable(); |
322 |
m_TreeViewSamples.append_column_editable("Samples", m_SamplesModel.m_col_name); |
m_TreeViewSamples.append_column_editable("Samples", m_SamplesModel.m_col_name); |
323 |
m_TreeViewSamples.set_headers_visible(false); |
m_TreeViewSamples.set_headers_visible(false); |