71{
72 try {
73 g.setColour(juce::Colours::black);
74 g.setFont(std::min(16.0F, static_cast<float>(height) * 0.7F));
75 if (column_id != 1) { return; }
77 std::cmp_less_equal(profile_size, row_number)) {
78 g.drawText("Unknown control", 0, 0, width, height, juce::Justification::centred);
79 rsj::Log(fmt::format(FMT_STRING(
"Unknown control CommandTableModel::paintCell. {} rows in "
80 "profile, row number to be painted is {}."),
81 profile_size, row_number),
82 std::source_location::current());
83 return;
84 }
86 const auto messageText {FormatMessageText(cmd)};
87 g.drawText(messageText, 0, 0, width, height, juce::Justification::centredLeft);
88 }
89 catch (const std::exception& e) {
91 throw;
92 }
93}
void ExceptionResponse(gsl::czstring id, gsl::czstring fu, const std::exception &e) noexcept
void Log(const juce::String &info, const std::source_location &location=std::source_location::current()) noexcept
Definition Misc.cpp:113