Add tooltip to player DCP name with path details.
authorCarl Hetherington <cth@carlh.net>
Thu, 27 Oct 2022 08:54:27 +0000 (10:54 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 27 Oct 2022 08:54:27 +0000 (10:54 +0200)
src/wx/player_information.cc

index 279ff08609b97b9ecd5b12510f5878603690fdb1..4e95e0956fb208de2e17b57553923beb2f1744ce 100644 (file)
@@ -139,7 +139,15 @@ PlayerInformation::triggered_update ()
        }
 
        int r = 0;
-       checked_set (_dcp[r++], std_to_wx(dcp->name()));
+       checked_set(_dcp[r], std_to_wx(dcp->name()));
+       wxString tooltip;
+       for (auto directory: dcp->directories()) {
+               tooltip += std_to_wx(directory.string()) + "\n";
+       }
+       if (!tooltip.empty()) {
+               _dcp[r]->SetToolTip(tooltip.substr(0, tooltip.length() - 1));
+       }
+       ++r;
 
        if (dcp->needs_assets()) {
                checked_set (_dcp[r], _("Needs OV"));