mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-27 15:49:52 -05:00
Trim Heavy Includes From GUI_App.hpp (#16841)
* Trim Heavy Includes from GUI_App.hpp * Include winternl.h in the Windows Troubleshoot Dialog Code The Windows builds failed in TroubleshootDialog.cpp with unknown type name NTSTATUS.
This commit is contained in:
1 parent
0fb11ef556
commit
cbbe590230
15 files changed
+127
-93
No files matched your search
@@ -63,6 +63,7 @@
|
||||
#include "format.hpp"
|
||||
#include "Tab.hpp"
|
||||
#include "ConfigWizard.hpp"
|
||||
#include "ConfigWizardTypes.hpp"
|
||||
#include "../Utils/UndoRedo.hpp"
|
||||
#include "BitmapCache.hpp"
|
||||
#include "SavePresetDialog.hpp"
|
||||
@@ -1005,9 +1006,9 @@ PlaterPresetComboBox::~PlaterPresetComboBox()
|
||||
clr_picker->Destroy();
|
||||
}
|
||||
|
||||
static void run_wizard(ConfigWizard::StartPage sp)
|
||||
static void run_wizard(StartPage sp)
|
||||
{
|
||||
wxGetApp().run_wizard(ConfigWizard::RR_USER, sp);
|
||||
wxGetApp().run_wizard(RunReason::RR_USER, sp);
|
||||
}
|
||||
|
||||
void PlaterPresetComboBox::OnSelect(wxCommandEvent &evt)
|
||||
@@ -1027,11 +1028,11 @@ void PlaterPresetComboBox::OnSelect(wxCommandEvent &evt)
|
||||
//if (marker == LABEL_ITEM_WIZARD_PRINTERS)
|
||||
// show_add_menu();
|
||||
//else {
|
||||
ConfigWizard::StartPage sp = ConfigWizard::SP_WELCOME;
|
||||
StartPage sp = StartPage::SP_WELCOME;
|
||||
switch (marker) {
|
||||
case LABEL_ITEM_WIZARD_PRINTERS: sp = ConfigWizard::SP_PRINTERS; break;
|
||||
case LABEL_ITEM_WIZARD_FILAMENTS: sp = ConfigWizard::SP_FILAMENTS; break;
|
||||
case LABEL_ITEM_WIZARD_MATERIALS: sp = ConfigWizard::SP_MATERIALS; break;
|
||||
case LABEL_ITEM_WIZARD_PRINTERS: sp = StartPage::SP_PRINTERS; break;
|
||||
case LABEL_ITEM_WIZARD_FILAMENTS: sp = StartPage::SP_FILAMENTS; break;
|
||||
case LABEL_ITEM_WIZARD_MATERIALS: sp = StartPage::SP_MATERIALS; break;
|
||||
default: break;
|
||||
}
|
||||
wxTheApp->CallAfter([sp]() { run_wizard(sp); });
|
||||
@@ -1126,7 +1127,7 @@ void PlaterPresetComboBox::show_add_menu()
|
||||
|
||||
append_menu_item(menu, wxID_ANY, _L("Add/Remove presets"), "",
|
||||
[](wxCommandEvent&) {
|
||||
wxTheApp->CallAfter([]() { run_wizard(ConfigWizard::SP_PRINTERS); });
|
||||
wxTheApp->CallAfter([]() { run_wizard(StartPage::SP_PRINTERS); });
|
||||
}, "menu_edit_preset", menu, []() { return true; }, wxGetApp().plater());
|
||||
|
||||
wxGetApp().plater()->PopupMenu(menu);
|
||||
@@ -1151,7 +1152,7 @@ void PlaterPresetComboBox::show_edit_menu()
|
||||
|
||||
append_menu_item(menu, wxID_ANY, _L("Add/Remove presets"), "",
|
||||
[](wxCommandEvent&) {
|
||||
wxTheApp->CallAfter([]() { run_wizard(ConfigWizard::SP_PRINTERS); });
|
||||
wxTheApp->CallAfter([]() { run_wizard(StartPage::SP_PRINTERS); });
|
||||
}, "menu_edit_preset", menu, []() { return true; }, wxGetApp().plater());
|
||||
|
||||
wxGetApp().plater()->PopupMenu(menu);
|
||||
@@ -1678,14 +1679,14 @@ void TabPresetComboBox::OnSelect(wxCommandEvent &evt)
|
||||
if (marker >= LABEL_ITEM_DISABLED && marker < LABEL_ITEM_MAX) {
|
||||
this->SetSelection(m_last_selected);
|
||||
// BBS: Add/Remove filaments
|
||||
ConfigWizard::StartPage sp = ConfigWizard::SP_WELCOME;
|
||||
StartPage sp = StartPage::SP_WELCOME;
|
||||
switch (marker) {
|
||||
case LABEL_ITEM_WIZARD_PRINTERS: sp = ConfigWizard::SP_PRINTERS; break;
|
||||
case LABEL_ITEM_WIZARD_FILAMENTS: sp = ConfigWizard::SP_FILAMENTS; break;
|
||||
case LABEL_ITEM_WIZARD_MATERIALS: sp = ConfigWizard::SP_MATERIALS; break;
|
||||
case LABEL_ITEM_WIZARD_PRINTERS: sp = StartPage::SP_PRINTERS; break;
|
||||
case LABEL_ITEM_WIZARD_FILAMENTS: sp = StartPage::SP_FILAMENTS; break;
|
||||
case LABEL_ITEM_WIZARD_MATERIALS: sp = StartPage::SP_MATERIALS; break;
|
||||
default: break;
|
||||
}
|
||||
if (sp != ConfigWizard::SP_WELCOME) {
|
||||
if (sp != StartPage::SP_WELCOME) {
|
||||
wxTheApp->CallAfter([sp]() {
|
||||
run_wizard(sp);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user