1 |
/* |
/* |
2 |
Copyright (c) 2014-2017 Christian Schoenebeck |
Copyright (c) 2014-2018 Christian Schoenebeck |
3 |
|
|
4 |
This file is part of "gigedit" and released under the terms of the |
This file is part of "gigedit" and released under the terms of the |
5 |
GNU General Public License version 2. |
GNU General Public License version 2. |
966 |
show_all_children(); |
show_all_children(); |
967 |
#endif |
#endif |
968 |
|
|
969 |
|
Settings::singleton()->showTooltips.get_proxy().signal_changed().connect( |
970 |
|
sigc::mem_fun(*this, &CombineInstrumentsDialog::on_show_tooltips_changed) |
971 |
|
); |
972 |
|
on_show_tooltips_changed(); |
973 |
|
|
974 |
// show a warning to user if he uses a .gig in v2 format |
// show a warning to user if he uses a .gig in v2 format |
975 |
if (gig->pVersion->major < 3) { |
if (gig->pVersion->major < 3) { |
976 |
Glib::ustring txt = _( |
Glib::ustring txt = _( |
1254 |
} |
} |
1255 |
} |
} |
1256 |
|
|
1257 |
|
void CombineInstrumentsDialog::on_show_tooltips_changed() { |
1258 |
|
const bool b = Settings::singleton()->showTooltips; |
1259 |
|
|
1260 |
|
m_treeView.set_has_tooltip(b); |
1261 |
|
m_iconView.set_has_tooltip(b); |
1262 |
|
|
1263 |
|
set_has_tooltip(b); |
1264 |
|
} |
1265 |
|
|
1266 |
bool CombineInstrumentsDialog::fileWasChanged() const { |
bool CombineInstrumentsDialog::fileWasChanged() const { |
1267 |
return m_fileWasChanged; |
return m_fileWasChanged; |
1268 |
} |
} |