13
0

Keep Dialogs which report process around.

Since 5.8-245-g3e43585fa, a response hides the dialog Window
in ArdourDialog::on_response (to prevent dialogs windows staying
around unresponsively while Ardour does background work).
This logic does not apply to Dialog Windows which implement
ProgressReporter or support dialog responses other than OK, Close.
This commit is contained in:
Robin Gareus 2017-04-20 19:03:52 +02:00
parent b6c222555f
commit 39c2b544f0
8 changed files with 32 additions and 0 deletions

View File

@ -64,6 +64,10 @@ class ExportDialog : public ArdourDialog, public PBD::ScopedConnectionList
protected:
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
typedef boost::shared_ptr<ARDOUR::ExportHandler> HandlerPtr;
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ManagerPtr;

View File

@ -189,6 +189,10 @@ public:
ExportReport (const std::string & title, const ARDOUR::AnalysisResults & ar);
int run ();
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
private:
void init (const ARDOUR::AnalysisResults &, bool);
void draw_waveform (Cairo::RefPtr<Cairo::ImageSurface>& wave,

View File

@ -51,6 +51,10 @@ class ExportVideoDialog : public ArdourDialog , public PBD::ScopedConnectionList
XMLNode& get_state ();
void set_state (const XMLNode &);
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
private:
TimeSelection export_range;

View File

@ -37,6 +37,10 @@ public:
double target_rms () const;
int run ();
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
private:
void update_progress_gui (float);
void button_clicked (int);

View File

@ -45,6 +45,10 @@ public:
void set_encode_option (ARDOUR::Session::ArchiveEncode);
void set_only_used_sources (bool);
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
private:
Gtk::FileChooserButton target_folder_selector;
Gtk::Entry name_entry;

View File

@ -49,6 +49,10 @@ public:
ARDOUR::framecnt_t minimum_length () const;
ARDOUR::framecnt_t fade_length () const;
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
private:
void create_waves ();
void canvas_allocation (Gtk::Allocation &);

View File

@ -74,6 +74,10 @@ class TimeFXDialog : public ArdourDialog, public ProgressReporter
void start_updates ();
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
private:
ARDOUR::framecnt_t original_length;
Gtk::Adjustment pitch_octave_adjustment;

View File

@ -50,6 +50,10 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL
VtlTranscodeOption import_option ();
bool detect_ltc () { return ltc_detect.get_active (); }
void on_response (int response_id) {
Gtk::Dialog::on_response (response_id);
}
private:
void on_show ();
void open_browse_dialog ();