Console: rename PascalCase named methods to camelCase
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user