Console: rename PascalCase named methods to camelCase

This commit is contained in:
bofdahof
2025-03-30 00:50:27 +10:00
committed by Kacper Donat
parent 1dbc0638c3
commit ba2c2ca5ad
497 changed files with 2423 additions and 2425 deletions

View File

@@ -164,27 +164,27 @@ inline void Gui::Notify(TNotifier && notifier, TCaption && caption, TMessage &&
auto msg = std::string(message).append("\n"); // use untranslated message
if constexpr( std::is_base_of_v<App::DocumentObject, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type,
Base::Console().send<type,
Base::IntendedRecipient::Developer,
Base::ContentType::Untranslated>(notifier->getFullLabel(), msg.c_str());
}
else if constexpr( std::is_base_of_v<Gui::ViewProviderDocumentObject, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type,
Base::Console().send<type,
Base::IntendedRecipient::Developer,
Base::ContentType::Untranslated>(notifier->getObject()->getFullLabel(), msg.c_str());
}
else if constexpr( std::is_base_of_v<Gui::Document, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type,
Base::Console().send<type,
Base::IntendedRecipient::Developer,
Base::ContentType::Untranslated>(notifier->getDocument()->Label.getStrValue(), msg.c_str());
}
else if constexpr( std::is_base_of_v<App::Document, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type,
Base::Console().send<type,
Base::IntendedRecipient::Developer,
Base::ContentType::Untranslated>(notifier->Label.getStrValue(), msg.c_str());
}
else {
Base::Console().Send<type,
Base::Console().send<type,
Base::IntendedRecipient::Developer,
Base::ContentType::Untranslated>(notifier, msg.c_str());
}
@@ -234,19 +234,19 @@ inline void Gui::Notify(TNotifier && notifier, TCaption && caption, TMessage &&
auto msg = QStringLiteral("%1. %2").arg(caption).arg(message); // QString
if constexpr( std::is_base_of_v<App::DocumentObject, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->getFullLabel(), msg.toUtf8());
Base::Console().send<type, recipient, content>(notifier->getFullLabel(), msg.toUtf8());
}
else if constexpr( std::is_base_of_v<Gui::ViewProviderDocumentObject, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->getObject()->getFullLabel(), msg.toUtf8());
Base::Console().send<type, recipient, content>(notifier->getObject()->getFullLabel(), msg.toUtf8());
}
else if constexpr( std::is_base_of_v<Gui::Document, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->getDocument()->Label.getStrValue(), msg.toUtf8());
Base::Console().send<type, recipient, content>(notifier->getDocument()->Label.getStrValue(), msg.toUtf8());
}
else if constexpr( std::is_base_of_v<App::Document, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->Label.getStrValue(), msg.toUtf8());
Base::Console().send<type, recipient, content>(notifier->Label.getStrValue(), msg.toUtf8());
}
else {
Base::Console().Send<type, recipient, content>(notifier, msg.toUtf8());
Base::Console().send<type, recipient, content>(notifier, msg.toUtf8());
}
}
else {
@@ -254,19 +254,19 @@ inline void Gui::Notify(TNotifier && notifier, TCaption && caption, TMessage &&
auto msg = std::string(message).append("\n");
if constexpr( std::is_base_of_v<App::DocumentObject, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->getFullLabel(), msg.c_str());
Base::Console().send<type, recipient, content>(notifier->getFullLabel(), msg.c_str());
}
else if constexpr( std::is_base_of_v<Gui::ViewProviderDocumentObject, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->getObject()->getFullLabel(), msg.c_str());
Base::Console().send<type, recipient, content>(notifier->getObject()->getFullLabel(), msg.c_str());
}
else if constexpr( std::is_base_of_v<Gui::Document, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->getDocument()->Label.getStrValue(), msg.c_str());
Base::Console().send<type, recipient, content>(notifier->getDocument()->Label.getStrValue(), msg.c_str());
}
else if constexpr( std::is_base_of_v<App::Document, std::remove_pointer_t<typename std::decay<TNotifier>::type>> ) {
Base::Console().Send<type, recipient, content>(notifier->Label.getStrValue(), msg.c_str());
Base::Console().send<type, recipient, content>(notifier->Label.getStrValue(), msg.c_str());
}
else {
Base::Console().Send<type, recipient, content>(notifier, msg.c_str());
Base::Console().send<type, recipient, content>(notifier, msg.c_str());
}
}
}