mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
[Summary] Allow to open preferences on the concrete tab.
[Reviewed] VKamyshniy
This commit is contained in:
parent
c716ad9aa6
commit
20d503bcfa
2 changed files with 29 additions and 0 deletions
|
|
@ -1509,6 +1509,28 @@ TracksControlPanel::on_a_settings_tab_button_clicked (WavesButton* clicked_butto
|
|||
_general_settings_tab_button.set_active(visible);
|
||||
}
|
||||
|
||||
void
|
||||
TracksControlPanel::show_and_open_tab (int tab_id)
|
||||
{
|
||||
show ();
|
||||
|
||||
bool visible = (tab_id == MIDISystemSettingsTab);
|
||||
_midi_settings_tab.set_visible (visible);
|
||||
_midi_settings_tab_button.set_active(visible);
|
||||
|
||||
visible = (tab_id == SessionSettingsTab);
|
||||
_session_settings_tab.set_visible (visible);;
|
||||
_session_settings_tab_button.set_active(visible);
|
||||
|
||||
visible = (tab_id == AudioSystemSettingsTab);
|
||||
_audio_settings_tab.set_visible (visible);
|
||||
_audio_settings_tab_button.set_active(visible);
|
||||
|
||||
visible = (tab_id == PreferencesTab);
|
||||
_general_settings_tab.set_visible (visible);
|
||||
_general_settings_tab_button.set_active(visible);
|
||||
}
|
||||
|
||||
void
|
||||
TracksControlPanel::on_device_error ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,6 +20,13 @@
|
|||
// class TracksControlPanel : public WavesDialog {
|
||||
public:
|
||||
void refresh_session_settings_info ();
|
||||
enum {
|
||||
AudioSystemSettingsTab,
|
||||
MIDISystemSettingsTab,
|
||||
SessionSettingsTab,
|
||||
PreferencesTab
|
||||
};
|
||||
void show_and_open_tab (int);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue