1 |
/* |
/* |
2 |
* Copyright (C) 2006-2011 Andreas Persson |
* Copyright (C) 2006-2013 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 <iostream> |
#include <iostream> |
21 |
#include <cstring> |
#include <cstring> |
22 |
|
|
23 |
|
#include <glibmm/convert.h> |
24 |
|
#include <glibmm/dispatcher.h> |
25 |
|
#include <glibmm/miscutils.h> |
26 |
|
#include <glibmm/stringutils.h> |
27 |
#include <gtkmm/aboutdialog.h> |
#include <gtkmm/aboutdialog.h> |
28 |
#include <gtkmm/filechooserdialog.h> |
#include <gtkmm/filechooserdialog.h> |
29 |
#include <gtkmm/messagedialog.h> |
#include <gtkmm/messagedialog.h> |
32 |
#include <gtkmm/main.h> |
#include <gtkmm/main.h> |
33 |
#include <gtkmm/radiomenuitem.h> |
#include <gtkmm/radiomenuitem.h> |
34 |
#include <gtkmm/toggleaction.h> |
#include <gtkmm/toggleaction.h> |
35 |
|
#if GTKMM_MAJOR_VERSION < 3 |
36 |
#include "wrapLabel.hh" |
#include "wrapLabel.hh" |
37 |
|
#endif |
38 |
|
|
39 |
#include "global.h" |
#include "global.h" |
40 |
#include "compat.h" |
#include "compat.h" |
53 |
return ss.str(); |
return ss.str(); |
54 |
} |
} |
55 |
|
|
|
Table::Table(int x, int y) : Gtk::Table(x, y), rowno(0) { } |
|
|
|
|
|
void Table::add(BoolEntry& boolentry) |
|
|
{ |
|
|
attach(boolentry.widget, 0, 2, rowno, rowno + 1, |
|
|
Gtk::FILL, Gtk::SHRINK); |
|
|
rowno++; |
|
|
} |
|
|
|
|
|
void Table::add(BoolEntryPlus6& boolentry) |
|
|
{ |
|
|
attach(boolentry.widget, 0, 2, rowno, rowno + 1, |
|
|
Gtk::FILL, Gtk::SHRINK); |
|
|
rowno++; |
|
|
} |
|
|
|
|
|
void Table::add(LabelWidget& prop) |
|
|
{ |
|
|
attach(prop.label, 1, 2, rowno, rowno + 1, |
|
|
Gtk::FILL, Gtk::SHRINK); |
|
|
attach(prop.widget, 2, 3, rowno, rowno + 1, |
|
|
Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK); |
|
|
rowno++; |
|
|
} |
|
56 |
|
|
57 |
MainWindow::MainWindow() : |
MainWindow::MainWindow() : |
58 |
dimreg_label(_("Changes apply to:")), |
dimreg_label(_("Changes apply to:")), |
155 |
sigc::mem_fun(*this, &MainWindow::on_action_add_instrument) |
sigc::mem_fun(*this, &MainWindow::on_action_add_instrument) |
156 |
); |
); |
157 |
actionGroup->add( |
actionGroup->add( |
158 |
|
Gtk::Action::create("DupInstrument", _("_Duplicate Instrument")), |
159 |
|
sigc::mem_fun(*this, &MainWindow::on_action_duplicate_instrument) |
160 |
|
); |
161 |
|
actionGroup->add( |
162 |
Gtk::Action::create("RemoveInstrument", Gtk::Stock::REMOVE), |
Gtk::Action::create("RemoveInstrument", Gtk::Stock::REMOVE), |
163 |
sigc::mem_fun(*this, &MainWindow::on_action_remove_instrument) |
sigc::mem_fun(*this, &MainWindow::on_action_remove_instrument) |
164 |
); |
); |
216 |
" <popup name='PopupMenu'>" |
" <popup name='PopupMenu'>" |
217 |
" <menuitem action='InstrProperties'/>" |
" <menuitem action='InstrProperties'/>" |
218 |
" <menuitem action='AddInstrument'/>" |
" <menuitem action='AddInstrument'/>" |
219 |
|
" <menuitem action='DupInstrument'/>" |
220 |
" <separator/>" |
" <separator/>" |
221 |
" <menuitem action='RemoveInstrument'/>" |
" <menuitem action='RemoveInstrument'/>" |
222 |
" </popup>" |
" </popup>" |
298 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
299 |
m_DimRegionChooser.signal_region_changed().connect( |
m_DimRegionChooser.signal_region_changed().connect( |
300 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
301 |
instrumentProps.signal_instrument_changed().connect( |
instrumentProps.signal_changed().connect( |
302 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
303 |
propDialog.signal_info_changed().connect( |
propDialog.signal_changed().connect( |
304 |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
sigc::mem_fun(*this, &MainWindow::file_changed)); |
305 |
|
|
306 |
dimreg_edit.signal_dimreg_to_be_changed().connect( |
dimreg_edit.signal_dimreg_to_be_changed().connect( |
448 |
void Loader::progress_callback(float fraction) |
void Loader::progress_callback(float fraction) |
449 |
{ |
{ |
450 |
{ |
{ |
451 |
Glib::Mutex::Lock lock(progressMutex); |
Glib::Threads::Mutex::Lock lock(progressMutex); |
452 |
progress = fraction; |
progress = fraction; |
453 |
} |
} |
454 |
progress_dispatcher(); |
progress_dispatcher(); |
456 |
|
|
457 |
void Loader::thread_function() |
void Loader::thread_function() |
458 |
{ |
{ |
459 |
printf("thread_function self=%x\n", Glib::Thread::self()); |
printf("thread_function self=%x\n", Glib::Threads::Thread::self()); |
460 |
printf("Start %s\n", filename); |
printf("Start %s\n", filename); |
461 |
RIFF::File* riff = new RIFF::File(filename); |
RIFF::File* riff = new RIFF::File(filename); |
462 |
gig = new gig::File(riff); |
gig = new gig::File(riff); |
476 |
|
|
477 |
void Loader::launch() |
void Loader::launch() |
478 |
{ |
{ |
479 |
|
#ifdef OLD_THREADS |
480 |
thread = Glib::Thread::create(sigc::mem_fun(*this, &Loader::thread_function), true); |
thread = Glib::Thread::create(sigc::mem_fun(*this, &Loader::thread_function), true); |
481 |
|
#else |
482 |
|
thread = Glib::Threads::Thread::create(sigc::mem_fun(*this, &Loader::thread_function)); |
483 |
|
#endif |
484 |
printf("launch thread=%x\n", thread); |
printf("launch thread=%x\n", thread); |
485 |
} |
} |
486 |
|
|
488 |
{ |
{ |
489 |
float res; |
float res; |
490 |
{ |
{ |
491 |
Glib::Mutex::Lock lock(progressMutex); |
Glib::Threads::Mutex::Lock lock(progressMutex); |
492 |
res = progress; |
res = progress; |
493 |
} |
} |
494 |
return res; |
return res; |
608 |
if (dialog.run() == Gtk::RESPONSE_OK) { |
if (dialog.run() == Gtk::RESPONSE_OK) { |
609 |
std::string filename = dialog.get_filename(); |
std::string filename = dialog.get_filename(); |
610 |
printf("filename=%s\n", filename.c_str()); |
printf("filename=%s\n", filename.c_str()); |
611 |
printf("on_action_file_open self=%x\n", Glib::Thread::self()); |
printf("on_action_file_open self=%x\n", Glib::Threads::Thread::self()); |
612 |
load_file(filename.c_str()); |
load_file(filename.c_str()); |
613 |
current_gig_dir = Glib::path_get_dirname(filename); |
current_gig_dir = Glib::path_get_dirname(filename); |
614 |
} |
} |
650 |
void MainWindow::on_loader_finished() |
void MainWindow::on_loader_finished() |
651 |
{ |
{ |
652 |
printf("Loader finished!\n"); |
printf("Loader finished!\n"); |
653 |
printf("on_loader_finished self=%x\n", Glib::Thread::self()); |
printf("on_loader_finished self=%x\n", Glib::Threads::Thread::self()); |
654 |
load_gig(loader->gig, loader->filename); |
load_gig(loader->gig, loader->filename); |
655 |
load_dialog->hide(); |
load_dialog->hide(); |
656 |
} |
} |
753 |
descriptionArea.set_spacing(15); |
descriptionArea.set_spacing(15); |
754 |
Gtk::Image warningIcon(Gtk::Stock::DIALOG_WARNING, Gtk::IconSize(Gtk::ICON_SIZE_DIALOG)); |
Gtk::Image warningIcon(Gtk::Stock::DIALOG_WARNING, Gtk::IconSize(Gtk::ICON_SIZE_DIALOG)); |
755 |
descriptionArea.pack_start(warningIcon, Gtk::PACK_SHRINK); |
descriptionArea.pack_start(warningIcon, Gtk::PACK_SHRINK); |
756 |
|
#if GTKMM_MAJOR_VERSION < 3 |
757 |
view::WrapLabel description; |
view::WrapLabel description; |
758 |
|
#else |
759 |
|
Gtk::Label description; |
760 |
|
description.set_line_wrap(); |
761 |
|
#endif |
762 |
description.set_markup( |
description.set_markup( |
763 |
_("\n<b>CAUTION:</b> You <b>MUST</b> use the " |
_("\n<b>CAUTION:</b> You <b>MUST</b> use the " |
764 |
"<span style=\"italic\">\"Save\"</span> dialog instead of " |
"<span style=\"italic\">\"Save\"</span> dialog instead of " |
810 |
SF_INFO info; |
SF_INFO info; |
811 |
info.format = 0; |
info.format = 0; |
812 |
SNDFILE* hFile = sf_open((*iter).sample_path.c_str(), SFM_READ, &info); |
SNDFILE* hFile = sf_open((*iter).sample_path.c_str(), SFM_READ, &info); |
813 |
|
sf_command(hFile, SFC_SET_SCALE_FLOAT_INT_READ, 0, SF_TRUE); |
814 |
try { |
try { |
815 |
if (!hFile) throw std::string(_("could not open file")); |
if (!hFile) throw std::string(_("could not open file")); |
816 |
// determine sample's bit depth |
// determine sample's bit depth |
908 |
dialog.set_name("Gigedit"); |
dialog.set_name("Gigedit"); |
909 |
#endif |
#endif |
910 |
dialog.set_version(VERSION); |
dialog.set_version(VERSION); |
911 |
dialog.set_copyright("Copyright (C) 2006-2011 Andreas Persson"); |
dialog.set_copyright("Copyright (C) 2006-2013 Andreas Persson"); |
912 |
dialog.set_comments(_( |
dialog.set_comments(_( |
913 |
"Released under the GNU General Public License.\n" |
"Released under the GNU General Public License.\n" |
914 |
"\n" |
"\n" |
941 |
eCommissioned(_("Commissioned")), |
eCommissioned(_("Commissioned")), |
942 |
eSubject(_("Subject")), |
eSubject(_("Subject")), |
943 |
quitButton(Gtk::Stock::CLOSE), |
quitButton(Gtk::Stock::CLOSE), |
944 |
table(2, 1), |
table(2, 1) |
|
update_model(0) |
|
945 |
{ |
{ |
946 |
set_title(_("File Properties")); |
set_title(_("File Properties")); |
947 |
eName.set_width_chars(50); |
eName.set_width_chars(50); |
1001 |
|
|
1002 |
void PropDialog::set_info(DLS::Info* info) |
void PropDialog::set_info(DLS::Info* info) |
1003 |
{ |
{ |
1004 |
this->info = info; |
update(info); |
|
update_model++; |
|
|
eName.set_value(info->Name); |
|
|
eCreationDate.set_value(info->CreationDate); |
|
|
eComments.set_value(info->Comments); |
|
|
eProduct.set_value(info->Product); |
|
|
eCopyright.set_value(info->Copyright); |
|
|
eArtists.set_value(info->Artists); |
|
|
eGenre.set_value(info->Genre); |
|
|
eKeywords.set_value(info->Keywords); |
|
|
eEngineer.set_value(info->Engineer); |
|
|
eTechnician.set_value(info->Technician); |
|
|
eSoftware.set_value(info->Software); |
|
|
eMedium.set_value(info->Medium); |
|
|
eSource.set_value(info->Source); |
|
|
eSourceForm.set_value(info->SourceForm); |
|
|
eCommissioned.set_value(info->Commissioned); |
|
|
eSubject.set_value(info->Subject); |
|
|
update_model--; |
|
1005 |
} |
} |
1006 |
|
|
|
sigc::signal<void>& PropDialog::signal_info_changed() |
|
|
{ |
|
|
return info_changed; |
|
|
} |
|
1007 |
|
|
1008 |
void InstrumentProps::set_IsDrum(bool value) |
void InstrumentProps::set_IsDrum(bool value) |
1009 |
{ |
{ |
1010 |
instrument->IsDrum = value; |
m->IsDrum = value; |
1011 |
} |
} |
1012 |
|
|
1013 |
void InstrumentProps::set_MIDIBank(uint16_t value) |
void InstrumentProps::set_MIDIBank(uint16_t value) |
1014 |
{ |
{ |
1015 |
instrument->MIDIBank = value; |
m->MIDIBank = value; |
1016 |
} |
} |
1017 |
|
|
1018 |
void InstrumentProps::set_MIDIProgram(uint32_t value) |
void InstrumentProps::set_MIDIProgram(uint32_t value) |
1019 |
{ |
{ |
1020 |
instrument->MIDIProgram = value; |
m->MIDIProgram = value; |
|
} |
|
|
|
|
|
void InstrumentProps::set_DimensionKeyRange_low(uint8_t value) |
|
|
{ |
|
|
instrument->DimensionKeyRange.low = value; |
|
|
if (value > instrument->DimensionKeyRange.high) { |
|
|
eDimensionKeyRangeHigh.set_value(value); |
|
|
} |
|
1021 |
} |
} |
1022 |
|
|
1023 |
void InstrumentProps::set_DimensionKeyRange_high(uint8_t value) |
InstrumentProps::InstrumentProps() : |
1024 |
{ |
quitButton(Gtk::Stock::CLOSE), |
1025 |
instrument->DimensionKeyRange.high = value; |
table(2,1), |
1026 |
if (value < instrument->DimensionKeyRange.low) { |
eName(_("Name")), |
1027 |
eDimensionKeyRangeLow.set_value(value); |
eIsDrum(_("Is drum")), |
1028 |
} |
eMIDIBank(_("MIDI bank"), 0, 16383), |
1029 |
} |
eMIDIProgram(_("MIDI program")), |
1030 |
|
eAttenuation(_("Attenuation"), 0, 96, 0, 1), |
1031 |
InstrumentProps::InstrumentProps() |
eGainPlus6(_("Gain +6dB"), eAttenuation, -6), |
1032 |
: update_model(0), |
eEffectSend(_("Effect send"), 0, 65535), |
1033 |
quitButton(Gtk::Stock::CLOSE), |
eFineTune(_("Fine tune"), -8400, 8400), |
1034 |
table(2,1), |
ePitchbendRange(_("Pitchbend range"), 0, 12), |
1035 |
eName(_("Name")), |
ePianoReleaseMode(_("Piano release mode")), |
1036 |
eIsDrum(_("Is drum")), |
eDimensionKeyRangeLow(_("Keyswitching range low")), |
1037 |
eMIDIBank(_("MIDI bank"), 0, 16383), |
eDimensionKeyRangeHigh(_("Keyswitching range high")) |
|
eMIDIProgram(_("MIDI program")), |
|
|
eAttenuation(_("Attenuation"), 0, 96, 0, 1), |
|
|
eGainPlus6(_("Gain +6dB"), eAttenuation, -6), |
|
|
eEffectSend(_("Effect send"), 0, 65535), |
|
|
eFineTune(_("Fine tune"), -8400, 8400), |
|
|
ePitchbendRange(_("Pitchbend range"), 0, 12), |
|
|
ePianoReleaseMode(_("Piano release mode")), |
|
|
eDimensionKeyRangeLow(_("Keyswitching range low")), |
|
|
eDimensionKeyRangeHigh(_("Keyswitching range high")) |
|
1038 |
{ |
{ |
1039 |
set_title(_("Instrument Properties")); |
set_title(_("Instrument Properties")); |
1040 |
|
|
1056 |
connect(eFineTune, &gig::Instrument::FineTune); |
connect(eFineTune, &gig::Instrument::FineTune); |
1057 |
connect(ePitchbendRange, &gig::Instrument::PitchbendRange); |
connect(ePitchbendRange, &gig::Instrument::PitchbendRange); |
1058 |
connect(ePianoReleaseMode, &gig::Instrument::PianoReleaseMode); |
connect(ePianoReleaseMode, &gig::Instrument::PianoReleaseMode); |
1059 |
connect(eDimensionKeyRangeLow, |
connect(eDimensionKeyRangeLow, eDimensionKeyRangeHigh, |
1060 |
&InstrumentProps::set_DimensionKeyRange_low); |
&gig::Instrument::DimensionKeyRange); |
|
connect(eDimensionKeyRangeHigh, |
|
|
&InstrumentProps::set_DimensionKeyRange_high); |
|
1061 |
|
|
1062 |
table.set_col_spacings(5); |
table.set_col_spacings(5); |
1063 |
|
|
1096 |
|
|
1097 |
void InstrumentProps::set_instrument(gig::Instrument* instrument) |
void InstrumentProps::set_instrument(gig::Instrument* instrument) |
1098 |
{ |
{ |
1099 |
this->instrument = instrument; |
update(instrument); |
1100 |
|
|
1101 |
update_model++; |
update_model++; |
|
eName.set_value(instrument->pInfo->Name); |
|
1102 |
eIsDrum.set_value(instrument->IsDrum); |
eIsDrum.set_value(instrument->IsDrum); |
1103 |
eMIDIBank.set_value(instrument->MIDIBank); |
eMIDIBank.set_value(instrument->MIDIBank); |
1104 |
eMIDIProgram.set_value(instrument->MIDIProgram); |
eMIDIProgram.set_value(instrument->MIDIProgram); |
|
eAttenuation.set_value(instrument->Attenuation); |
|
|
eGainPlus6.set_value(instrument->Attenuation); |
|
|
eEffectSend.set_value(instrument->EffectSend); |
|
|
eFineTune.set_value(instrument->FineTune); |
|
|
ePitchbendRange.set_value(instrument->PitchbendRange); |
|
|
ePianoReleaseMode.set_value(instrument->PianoReleaseMode); |
|
|
eDimensionKeyRangeLow.set_value(instrument->DimensionKeyRange.low); |
|
|
eDimensionKeyRangeHigh.set_value(instrument->DimensionKeyRange.high); |
|
1105 |
update_model--; |
update_model--; |
1106 |
} |
} |
1107 |
|
|
|
sigc::signal<void>& InstrumentProps::signal_instrument_changed() |
|
|
{ |
|
|
return instrument_changed; |
|
|
} |
|
1108 |
|
|
1109 |
void MainWindow::file_changed() |
void MainWindow::file_changed() |
1110 |
{ |
{ |
1176 |
// select the first instrument |
// select the first instrument |
1177 |
Glib::RefPtr<Gtk::TreeSelection> tree_sel_ref = m_TreeView.get_selection(); |
Glib::RefPtr<Gtk::TreeSelection> tree_sel_ref = m_TreeView.get_selection(); |
1178 |
tree_sel_ref->select(Gtk::TreePath("0")); |
tree_sel_ref->select(Gtk::TreePath("0")); |
1179 |
|
|
1180 |
|
gig::Instrument* instrument = get_instrument(); |
1181 |
|
if (instrument) { |
1182 |
|
instrumentProps.set_instrument(instrument); |
1183 |
|
} |
1184 |
} |
} |
1185 |
|
|
1186 |
void MainWindow::show_instr_props() |
void MainWindow::show_instr_props() |
1260 |
file_changed(); |
file_changed(); |
1261 |
} |
} |
1262 |
|
|
1263 |
|
void MainWindow::on_action_duplicate_instrument() { |
1264 |
|
if (!file) return; |
1265 |
|
|
1266 |
|
// retrieve the currently selected instrument |
1267 |
|
// (being the original instrument to be duplicated) |
1268 |
|
Glib::RefPtr<Gtk::TreeSelection> sel = m_TreeView.get_selection(); |
1269 |
|
Gtk::TreeModel::iterator itSelection = sel->get_selected(); |
1270 |
|
if (!itSelection) return; |
1271 |
|
Gtk::TreeModel::Row row = *itSelection; |
1272 |
|
gig::Instrument* instrOrig = row[m_Columns.m_col_instr]; |
1273 |
|
if (!instrOrig) return; |
1274 |
|
|
1275 |
|
// duplicate the orginal instrument |
1276 |
|
gig::Instrument* instrNew = file->AddDuplicateInstrument(instrOrig); |
1277 |
|
instrNew->pInfo->Name = |
1278 |
|
instrOrig->pInfo->Name + " (" + _("Copy") + ")"; |
1279 |
|
|
1280 |
|
// update instrument tree view |
1281 |
|
Gtk::TreeModel::iterator iterInstr = m_refTreeModel->append(); |
1282 |
|
Gtk::TreeModel::Row rowInstr = *iterInstr; |
1283 |
|
rowInstr[m_Columns.m_col_name] = instrNew->pInfo->Name.c_str(); |
1284 |
|
rowInstr[m_Columns.m_col_instr] = instrNew; |
1285 |
|
file_changed(); |
1286 |
|
} |
1287 |
|
|
1288 |
void MainWindow::on_action_remove_instrument() { |
void MainWindow::on_action_remove_instrument() { |
1289 |
if (!file) return; |
if (!file) return; |
1290 |
if (file_is_shared) { |
if (file_is_shared) { |
1309 |
// remove respective row from instruments tree view |
// remove respective row from instruments tree view |
1310 |
m_refTreeModel->erase(it); |
m_refTreeModel->erase(it); |
1311 |
file_changed(); |
file_changed(); |
1312 |
|
|
1313 |
|
instr = get_instrument(); |
1314 |
|
if (instr) { |
1315 |
|
instrumentProps.set_instrument(instr); |
1316 |
|
} else { |
1317 |
|
instrumentProps.hide(); |
1318 |
|
} |
1319 |
} catch (RIFF::Exception e) { |
} catch (RIFF::Exception e) { |
1320 |
Gtk::MessageDialog msg(*this, e.Message.c_str(), false, Gtk::MESSAGE_ERROR); |
Gtk::MessageDialog msg(*this, e.Message.c_str(), false, Gtk::MESSAGE_ERROR); |
1321 |
msg.run(); |
msg.run(); |
1465 |
{ |
{ |
1466 |
sample->MIDIUnityNote = instrument.basenote; |
sample->MIDIUnityNote = instrument.basenote; |
1467 |
|
|
|
#if HAVE_SF_INSTRUMENT_LOOPS |
|
1468 |
if (instrument.loop_count && instrument.loops[0].mode != SF_LOOP_NONE) { |
if (instrument.loop_count && instrument.loops[0].mode != SF_LOOP_NONE) { |
1469 |
sample->Loops = 1; |
sample->Loops = 1; |
1470 |
|
|
1484 |
sample->LoopPlayCount = instrument.loops[0].count; |
sample->LoopPlayCount = instrument.loops[0].count; |
1485 |
sample->LoopSize = sample->LoopEnd - sample->LoopStart + 1; |
sample->LoopSize = sample->LoopEnd - sample->LoopStart + 1; |
1486 |
} |
} |
|
#endif |
|
1487 |
} |
} |
1488 |
|
|
1489 |
// schedule resizing the sample (which will be done |
// schedule resizing the sample (which will be done |
1526 |
if (!file) return; |
if (!file) return; |
1527 |
Gtk::FileChooserDialog dialog(*this, _("Select Folder"), |
Gtk::FileChooserDialog dialog(*this, _("Select Folder"), |
1528 |
Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER); |
Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER); |
1529 |
view::WrapLabel description( |
const char* str = |
1530 |
_("This is a very specific function. It tries to replace all samples " |
_("This is a very specific function. It tries to replace all samples " |
1531 |
"in the current gig file by samples located in the chosen " |
"in the current gig file by samples located in the chosen " |
1532 |
"directory.\n\n" |
"directory.\n\n" |
1540 |
"the sample in the gig file accordingly. If you don't need an " |
"the sample in the gig file accordingly. If you don't need an " |
1541 |
"extension, blank the field below. Any gig sample where no " |
"extension, blank the field below. Any gig sample where no " |
1542 |
"appropriate sample file could be found will be reported and left " |
"appropriate sample file could be found will be reported and left " |
1543 |
"untouched.\n") |
"untouched.\n"); |
1544 |
); |
#if GTKMM_MAJOR_VERSION < 3 |
1545 |
|
view::WrapLabel description(str); |
1546 |
|
#else |
1547 |
|
Gtk::Label description(str); |
1548 |
|
description.set_line_wrap(); |
1549 |
|
#endif |
1550 |
Gtk::HBox entryArea; |
Gtk::HBox entryArea; |
1551 |
Gtk::Label entryLabel( _("Add filename extension: "), Gtk::ALIGN_START); |
Gtk::Label entryLabel( _("Add filename extension: "), Gtk::ALIGN_START); |
1552 |
Gtk::Entry postfixEntryBox; |
Gtk::Entry postfixEntryBox; |