From d43434e463f5ef76ee448046ffb09ffe4b05ea8d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 6 Jan 2019 19:49:37 +0000 Subject: Improve hints dialog in various ways, especially with long projects (#1439). --- src/wx/hints_dialog.cc | 10 +++++++++- src/wx/hints_dialog.h | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/wx') diff --git a/src/wx/hints_dialog.cc b/src/wx/hints_dialog.cc index 099b31327..18e8a6f9e 100644 --- a/src/wx/hints_dialog.cc +++ b/src/wx/hints_dialog.cc @@ -41,6 +41,7 @@ HintsDialog::HintsDialog (wxWindow* parent, boost::weak_ptr film, bool ok) : wxDialog (parent, wxID_ANY, _("Hints")) , _film (film) , _hints (new Hints (film)) + , _finished (false) { wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL); @@ -109,6 +110,7 @@ HintsDialog::film_change (ChangeType type) Layout (); _gauge->SetValue (0); update (); + _finished = false; _hints->start (); } @@ -123,7 +125,11 @@ HintsDialog::update () { _text->Clear (); if (_current.empty ()) { - _text->WriteText (_("There are no hints: everything looks good!")); + if (_finished) { + _text->WriteText (_("There are no hints: everything looks good!")); + } else { + _text->WriteText (_("There are no hints yet: project check in progress.")); + } } else { _text->BeginStandardBullet (N_("standard/circle"), 1, 50); BOOST_FOREACH (string i, _current) { @@ -156,6 +162,8 @@ HintsDialog::pulse () void HintsDialog::finished () { + _finished = true; + update (); _gauge->Hide (); _gauge_message->Hide (); Layout (); diff --git a/src/wx/hints_dialog.h b/src/wx/hints_dialog.h index 2755c70fd..709587ac9 100644 --- a/src/wx/hints_dialog.h +++ b/src/wx/hints_dialog.h @@ -48,6 +48,7 @@ private: wxRichTextCtrl* _text; boost::shared_ptr _hints; std::list _current; + bool _finished; boost::signals2::scoped_connection _film_change_connection; boost::signals2::scoped_connection _film_content_change_connection; -- cgit v1.2.3