101 |
// set_border_width(5); |
// set_border_width(5); |
102 |
|
|
103 |
if (!Settings::singleton()->autoRestoreWindowDimension) { |
if (!Settings::singleton()->autoRestoreWindowDimension) { |
104 |
|
#if GTKMM_MAJOR_VERSION >= 3 |
105 |
|
set_default_size(895, 600); |
106 |
|
#else |
107 |
set_default_size(800, 600); |
set_default_size(800, 600); |
108 |
|
#endif |
109 |
set_position(Gtk::WIN_POS_CENTER); |
set_position(Gtk::WIN_POS_CENTER); |
110 |
} |
} |
111 |
|
|
136 |
m_ScrolledWindowScripts.add(m_TreeViewScripts); |
m_ScrolledWindowScripts.add(m_TreeViewScripts); |
137 |
m_ScrolledWindowScripts.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); |
m_ScrolledWindowScripts.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); |
138 |
|
|
139 |
|
#if GTKMM_MAJOR_VERSION < 3 |
140 |
m_TreeViewNotebook.set_size_request(300); |
m_TreeViewNotebook.set_size_request(300); |
141 |
|
#endif |
142 |
|
|
143 |
m_searchLabel.set_text(Glib::ustring(" ") + _("Filter:")); |
m_searchLabel.set_text(Glib::ustring(" ") + _("Filter:")); |
144 |
m_searchField.pack_start(m_searchLabel, Gtk::PACK_SHRINK); |
m_searchField.pack_start(m_searchLabel, Gtk::PACK_SHRINK); |
1237 |
{ |
{ |
1238 |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
1239 |
uiManager->get_widget("/MenuBar/MenuEdit/CopySampleLoop")); |
uiManager->get_widget("/MenuBar/MenuEdit/CopySampleLoop")); |
1240 |
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.")); |
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 information to be altered by this action.")); |
1241 |
} |
} |
1242 |
{ |
{ |
1243 |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
1252 |
{ |
{ |
1253 |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
1254 |
uiManager->get_widget("/MenuBar/MenuSettings/MoveRootNoteWithRegionMoved")); |
uiManager->get_widget("/MenuBar/MenuSettings/MoveRootNoteWithRegionMoved")); |
1255 |
item->set_tooltip_text(_("If checked, and when a region is moved by dragging it around on the virtual keyboard, the keybord position dependent pitch will move exactly with the amount of semi tones the region was moved around.")); |
item->set_tooltip_text(_("If checked, and when a region is moved by dragging it around on the virtual keyboard, the keyboard position dependent pitch will move exactly with the amount of semi tones the region was moved around.")); |
1256 |
} |
} |
1257 |
{ |
{ |
1258 |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
Gtk::MenuItem* item = dynamic_cast<Gtk::MenuItem*>( |
3988 |
for (std::vector<std::string>::iterator iter = filenames.begin(); |
for (std::vector<std::string>::iterator iter = filenames.begin(); |
3989 |
iter != filenames.end(); ++iter) { |
iter != filenames.end(); ++iter) { |
3990 |
printf("Adding sample %s\n",(*iter).c_str()); |
printf("Adding sample %s\n",(*iter).c_str()); |
3991 |
// use libsndfile to retrieve file informations |
// use libsndfile to retrieve file information |
3992 |
SF_INFO info; |
SF_INFO info; |
3993 |
info.format = 0; |
info.format = 0; |
3994 |
SNDFILE* hFile = sf_open((*iter).c_str(), SFM_READ, &info); |
SNDFILE* hFile = sf_open((*iter).c_str(), SFM_READ, &info); |