mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
SessionDialog: add methods that can be used in Actions for new/recent/open
This commit is contained in:
parent
39d069a6a2
commit
2301f7c55a
2 changed files with 25 additions and 6 deletions
|
|
@ -586,27 +586,42 @@ SessionDialog::session_selected ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SessionDialog::new_button_choice_action ()
|
||||||
|
{
|
||||||
|
_tabs.set_current_page(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SessionDialog::recent_button_choice_action ()
|
||||||
|
{
|
||||||
|
_tabs.set_current_page(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SessionDialog::existing_button_choice_action ()
|
||||||
|
{
|
||||||
|
_tabs.set_current_page(2);
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SessionDialog::new_button_pressed (GdkEventButton*)
|
SessionDialog::new_button_pressed (GdkEventButton*)
|
||||||
{
|
{
|
||||||
_tabs.set_current_page(0);
|
new_button_choice_action ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SessionDialog::recent_button_pressed (GdkEventButton*)
|
SessionDialog::recent_button_pressed (GdkEventButton*)
|
||||||
{
|
{
|
||||||
_tabs.set_current_page(1);
|
recent_button_choice_action ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
SessionDialog::existing_button_pressed (GdkEventButton*)
|
SessionDialog::existing_button_pressed (GdkEventButton*)
|
||||||
{
|
{
|
||||||
_tabs.set_current_page(2);
|
existing_button_choice_action ();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,10 @@ private:
|
||||||
bool existing_button_pressed (GdkEventButton*);
|
bool existing_button_pressed (GdkEventButton*);
|
||||||
bool prefs_button_pressed (GdkEventButton*);
|
bool prefs_button_pressed (GdkEventButton*);
|
||||||
|
|
||||||
|
void new_button_choice_action ();
|
||||||
|
void recent_button_choice_action ();
|
||||||
|
void existing_button_choice_action ();
|
||||||
|
|
||||||
bool open_button_pressed (GdkEventButton*);
|
bool open_button_pressed (GdkEventButton*);
|
||||||
|
|
||||||
Gtk::HBox _info_box;
|
Gtk::HBox _info_box;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue