mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
Update the codes to 01.01.00.10 for the formal release
1. first formal version of macos 2. add the bambu networking plugin install logic 3. auto compute the wipe volume when filament change 4. add the logic of wiping into support 5. refine the GUI layout and icons, improve the gui apperance in lots of small places 6. serveral improve to support 7. support AMS auto-mapping 8. disable lots of unstable features: such as params table, media file download, HMS 9. fix serveral kinds of bugs 10. update the document of building 11. ...
This commit is contained in:
parent
e1528e4299
commit
e9e4d75877
267 changed files with 10326 additions and 32228 deletions
|
@ -2050,7 +2050,7 @@ size_t NotificationManager::get_notification_count() const
|
|||
|
||||
void NotificationManager::bbl_show_plateinfo_notification(const std::string &text)
|
||||
{
|
||||
NotificationData data{NotificationType::BBLPlateInfo, NotificationLevel::PrintInfoNotificationLevel, 86400 * 10, text};
|
||||
NotificationData data{NotificationType::BBLPlateInfo, NotificationLevel::PrintInfoNotificationLevel, BBL_NOTICE_MAX_INTERVAL, text};
|
||||
|
||||
for (std::unique_ptr<PopNotification> ¬ification : m_pop_notifications) {
|
||||
if (notification->get_type() == NotificationType::BBLPlateInfo) {
|
||||
|
@ -2072,6 +2072,30 @@ void NotificationManager::bbl_close_plateinfo_notification()
|
|||
}
|
||||
}
|
||||
|
||||
void NotificationManager::bbl_show_preview_only_notification(const std::string &text)
|
||||
{
|
||||
NotificationData data{NotificationType::BBLPreviewOnlyMode, NotificationLevel::WarningNotificationLevel, 0, text};
|
||||
|
||||
for (std::unique_ptr<PopNotification> ¬ification : m_pop_notifications) {
|
||||
if (notification->get_type() == NotificationType::BBLPreviewOnlyMode) {
|
||||
notification->reinit();
|
||||
notification->update(data);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
auto notification = std::make_unique<NotificationManager::PopNotification>(data, m_id_provider, m_evt_handler);
|
||||
push_notification_data(std::move(notification), 0);
|
||||
}
|
||||
|
||||
void NotificationManager::bbl_close_preview_only_notification()
|
||||
{
|
||||
for (std::unique_ptr<PopNotification> ¬ification : m_pop_notifications)
|
||||
if (notification->get_type() == NotificationType::BBLPreviewOnlyMode) {
|
||||
notification->close();
|
||||
}
|
||||
}
|
||||
|
||||
void NotificationManager::bbl_show_objectsinfo_notification(const std::string &text, bool is_warning, bool is_hidden)
|
||||
{
|
||||
std::string hyper_text;
|
||||
|
@ -2084,7 +2108,7 @@ void NotificationManager::bbl_show_objectsinfo_notification(const std::string &t
|
|||
};
|
||||
hyper_text = _u8L(" (Repair)");
|
||||
}
|
||||
NotificationData data{NotificationType::BBLObjectInfo, NotificationLevel::PrintInfoNotificationLevel, 86400 * 10, text, hyper_text, callback};
|
||||
NotificationData data{NotificationType::BBLObjectInfo, NotificationLevel::PrintInfoNotificationLevel, BBL_NOTICE_MAX_INTERVAL, text, hyper_text, callback};
|
||||
if (is_warning)
|
||||
data.use_warn_color = true;
|
||||
|
||||
|
@ -2113,7 +2137,7 @@ void NotificationManager::bbl_close_objectsinfo_notification()
|
|||
|
||||
void NotificationManager::bbl_show_seqprintinfo_notification(const std::string &text)
|
||||
{
|
||||
NotificationData data{NotificationType::BBLSeqPrintInfo, NotificationLevel::PrintInfoNotificationLevel, 86400 * 10, text};
|
||||
NotificationData data{NotificationType::BBLSeqPrintInfo, NotificationLevel::PrintInfoNotificationLevel, BBL_NOTICE_MAX_INTERVAL, text};
|
||||
|
||||
for (std::unique_ptr<PopNotification> ¬ification : m_pop_notifications) {
|
||||
if (notification->get_type() == NotificationType::BBLSeqPrintInfo) {
|
||||
|
@ -2134,6 +2158,36 @@ void NotificationManager::bbl_close_seqprintinfo_notification()
|
|||
if (notification->get_type() == NotificationType::BBLSeqPrintInfo) { notification->close(); }
|
||||
}
|
||||
|
||||
void NotificationManager::bbl_show_plugin_install_notification(const std::string &text)
|
||||
{
|
||||
std::string hyper_text;
|
||||
auto callback = [](wxEvtHandler *) {
|
||||
wxCommandEvent *evt = new wxCommandEvent(EVT_INSTALL_PLUGIN_NETWORKING);
|
||||
wxQueueEvent(wxGetApp().plater(), evt);
|
||||
return false;
|
||||
};
|
||||
hyper_text = _u8L(" Click here to install it.");
|
||||
NotificationData data{NotificationType::BBLPluginInstallHint, NotificationLevel::WarningNotificationLevel, 0, text, hyper_text, callback};
|
||||
|
||||
for (std::unique_ptr<PopNotification> ¬ification : m_pop_notifications) {
|
||||
if (notification->get_type() == NotificationType::BBLPluginInstallHint) {
|
||||
notification->reinit();
|
||||
notification->update(data);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
auto notification = std::make_unique<NotificationManager::PopNotification>(data, m_id_provider, m_evt_handler);
|
||||
notification->set_Multiline(true);
|
||||
push_notification_data(std::move(notification), 0);
|
||||
}
|
||||
|
||||
void NotificationManager::bbl_close_plugin_install_notification()
|
||||
{
|
||||
for (std::unique_ptr<PopNotification> ¬ification : m_pop_notifications)
|
||||
if (notification->get_type() == NotificationType::BBLPluginInstallHint) { notification->close(); }
|
||||
}
|
||||
|
||||
void NotificationManager::bbl_show_slice_emptylayer_notification(const std::string &text, bool bOverride)
|
||||
{
|
||||
NotificationData data{NotificationType::BBLSliceEmptyLayer, NotificationLevel::WarningNotificationLevel, 0, _u8L("WARNING:") + "\n" + text};
|
||||
|
@ -2225,7 +2279,7 @@ void NotificationManager::bbl_show_sole_text_notification(NotificationType sType
|
|||
default:
|
||||
nlevel = NotificationLevel::PrintInfoNotificationLevel;
|
||||
|
||||
if (autohide == false) nHideTime = 86400 * 10;
|
||||
if (autohide == false) nHideTime = BBL_NOTICE_MAX_INTERVAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue