mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 22:56:32 +01:00
[Summary]: ProgressDialog for Tracks creation and removal
This commit is contained in:
parent
7274155288
commit
dbb0a6385b
12 changed files with 115 additions and 27 deletions
|
|
@ -34,7 +34,13 @@ public:
|
|||
void set_top_label (std::string message);
|
||||
void set_progress_label (std::string message);
|
||||
void set_bottom_label (std::string message);
|
||||
// initialize num of processing steps (thread-unsafe method)
|
||||
void set_num_of_steps (unsigned int, bool hide_automatically = false);
|
||||
// increment cur_step of progress process (thread-safe method)
|
||||
// it's expected that set_num_of_steps () was called previously
|
||||
void add_progress_step ();
|
||||
void update_info (double new_progress, const char* top_message, const char* progress_message, const char* bottom_message);
|
||||
void show ();
|
||||
|
||||
private:
|
||||
ProgressDialog (const std::string& title="",
|
||||
|
|
@ -48,10 +54,13 @@ private:
|
|||
const std::string& progress_message,
|
||||
const std::string& bottom_message);
|
||||
|
||||
|
||||
mutable std::mutex _m;
|
||||
Gtk::Label& _top_label;
|
||||
Gtk::Label& _bottom_label;
|
||||
Gtk::ProgressBar& _progress_bar;
|
||||
unsigned int num_of_steps;
|
||||
unsigned int cur_step;
|
||||
bool hide_automatically;
|
||||
};
|
||||
|
||||
#endif /* __progress_dialog_h__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue