summaryrefslogtreecommitdiff
path: root/gtk2_ardour/add_route_dialog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-07-17 11:49:00 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-07-17 11:57:33 -0400
commit4f4ed8e1942fa0c4540facbd4271b301b90b29a3 (patch)
treef745c9bdf76d77da1d34d7e5d6617b0dbc5d7ce5 /gtk2_ardour/add_route_dialog.h
parent2ed15cfc7e22bf78e47a9aee2b0cbd8459beec6c (diff)
if user has edited name entry in add route dialog, type changes should not reset it.
But using a response button should
Diffstat (limited to 'gtk2_ardour/add_route_dialog.h')
-rw-r--r--gtk2_ardour/add_route_dialog.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/add_route_dialog.h b/gtk2_ardour/add_route_dialog.h
index cb6ed66812..718df8842d 100644
--- a/gtk2_ardour/add_route_dialog.h
+++ b/gtk2_ardour/add_route_dialog.h
@@ -80,10 +80,6 @@ public:
RouteDialogs::InsertAt insert_at();
bool use_strict_io();
- void on_response (int response_id) {
- Gtk::Dialog::on_response (response_id);
- }
-
private:
Gtk::Entry name_template_entry;
Gtk::ComboBoxText track_bus_combo;
@@ -115,6 +111,7 @@ private:
void reset_template_option_visibility ();
void new_group_dialog_finished (int, RouteGroupDialog*);
void on_show ();
+ void on_response (int);
struct ChannelSetup {
std::string name;
@@ -127,6 +124,10 @@ private:
static std::vector<std::string> channel_combo_strings;
static std::vector<std::string> bus_mode_strings;
+
+ bool name_edited_by_user;
+ void name_template_entry_insertion (Glib::ustring const &,int*);
+ void name_template_entry_deletion (int, int);
};
#endif /* __gtk_ardour_add_route_dialog_h__ */