mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
[Summary] Message dialog rework
[Feature Reviewed] Igor Maximenko
This commit is contained in:
parent
90f219bf85
commit
27ddf9efba
3 changed files with 12 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue