mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
Add select all / deselect all to timespan section of export dialogue (#4273).
git-svn-id: svn://localhost/ardour2/branches/3.0@10994 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1deb4fd7ad
commit
6aaf4ea17a
2 changed files with 26 additions and 0 deletions
|
|
@ -51,6 +51,22 @@ ExportTimespanSelector::ExportTimespanSelector (ARDOUR::Session * session, Profi
|
||||||
option_hbox.pack_start (time_format_label, false, false, 0);
|
option_hbox.pack_start (time_format_label, false, false, 0);
|
||||||
option_hbox.pack_start (time_format_combo, false, false, 6);
|
option_hbox.pack_start (time_format_combo, false, false, 6);
|
||||||
|
|
||||||
|
Gtk::Button* b = manage (new Gtk::Button (_("Select All")));
|
||||||
|
b->signal_clicked().connect (
|
||||||
|
sigc::bind (
|
||||||
|
sigc::mem_fun (*this, &ExportTimespanSelector::set_selection_state_of_all_timespans), true
|
||||||
|
)
|
||||||
|
);
|
||||||
|
option_hbox.pack_start (*b, false, false, 6);
|
||||||
|
|
||||||
|
b = manage (new Gtk::Button (_("Deselect All")));
|
||||||
|
b->signal_clicked().connect (
|
||||||
|
sigc::bind (
|
||||||
|
sigc::mem_fun (*this, &ExportTimespanSelector::set_selection_state_of_all_timespans), false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
option_hbox.pack_start (*b, false, false, 6);
|
||||||
|
|
||||||
range_scroller.add (range_view);
|
range_scroller.add (range_view);
|
||||||
|
|
||||||
pack_start (option_hbox, false, false, 0);
|
pack_start (option_hbox, false, false, 0);
|
||||||
|
|
@ -317,6 +333,14 @@ ExportTimespanSelector::update_range_name (std::string const & path, std::string
|
||||||
CriticalSelectionChanged();
|
CriticalSelectionChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ExportTimespanSelector::set_selection_state_of_all_timespans (bool s)
|
||||||
|
{
|
||||||
|
for (Gtk::ListStore::Children::iterator it = range_list->children().begin(); it != range_list->children().end(); ++it) {
|
||||||
|
it->set_value (range_cols.selected, s);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*** ExportTimespanSelectorSingle ***/
|
/*** ExportTimespanSelectorSingle ***/
|
||||||
|
|
||||||
ExportTimespanSelectorSingle::ExportTimespanSelectorSingle (ARDOUR::Session * session, ProfileManagerPtr manager, std::string range_id) :
|
ExportTimespanSelectorSingle::ExportTimespanSelectorSingle (ARDOUR::Session * session, ProfileManagerPtr manager, std::string range_id) :
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,8 @@ class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
void update_range_name (std::string const & path, std::string const & new_text);
|
void update_range_name (std::string const & path, std::string const & new_text);
|
||||||
|
|
||||||
|
void set_selection_state_of_all_timespans (bool);
|
||||||
|
|
||||||
/*** GUI components ***/
|
/*** GUI components ***/
|
||||||
|
|
||||||
Gtk::HBox option_hbox;
|
Gtk::HBox option_hbox;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue