[Summary] Message dialog rework

[Feature Reviewed] Igor Maximenko
This commit is contained in:
Nikolay 2015-02-04 18:02:56 +02:00
parent 90f219bf85
commit 27ddf9efba
3 changed files with 12 additions and 11 deletions

View file

@ -309,17 +309,9 @@ WavesExportDialog::update_warnings_and_example_filename ()
void
WavesExportDialog::show_conflicting_files (WavesButton*)
{
ArdourDialog dialog (_("Files that will be overwritten"), true);
Gtk::Label label ("", Gtk::ALIGN_LEFT);
label.set_use_markup (true);
label.set_markup (list_files_string);
dialog.get_vbox()->pack_start (label);
dialog.add_button ("OK", 0);
dialog.show_all_children ();
dialog.run();
WavesMessageDialog message_dialog ("", "");
message_dialog.set_markup ("Files that will be overwritten\n" + list_files_string);
message_dialog.run();
}
void

View file

@ -99,3 +99,10 @@ WavesMessageDialog::_on_button_clicked (WavesButton* clicked_button)
response (Gtk::RESPONSE_NO);
}
}
void
WavesMessageDialog::set_markup (std::string markup)
{
_message_label.set_use_markup (true);
_message_label.set_markup (markup);
}

View file

@ -42,6 +42,8 @@ public:
BUTTON_YES = 1 << 6,
BUTTON_NO = 1 << 7,
};
void set_markup (std::string markup);
protected:
void init (const std::string& title,