mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Moved functions and variables (for fonts and labels color) to GUI_App
+ corrected Sidebar layouts + deleted get_preset_bundle + actions with tabs_list moved to GUI_App
This commit is contained in:
parent
342b584399
commit
08c6905751
17 changed files with 252 additions and 276 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <Geometry.hpp>
|
||||
#include <Model.hpp>
|
||||
#include <Utils.hpp>
|
||||
#include "GUI/GUI_App.hpp"
|
||||
|
||||
|
||||
namespace Slic3r {
|
||||
|
@ -41,9 +42,9 @@ bool AppControllerGui::is_main_thread() const
|
|||
return m_pri_data->ui_thread == std::this_thread::get_id();
|
||||
}
|
||||
|
||||
namespace GUI {
|
||||
PresetBundle* get_preset_bundle();
|
||||
}
|
||||
// namespace GUI {
|
||||
// PresetBundle* get_preset_bundle();
|
||||
// }
|
||||
|
||||
static const PrintObjectStep STEP_SLICE = posSlice;
|
||||
static const PrintObjectStep STEP_PERIMETERS = posPerimeters;
|
||||
|
@ -142,7 +143,7 @@ void PrintController::slice_to_png()
|
|||
using Pointf3 = Vec3d;
|
||||
|
||||
auto ctl = GUI::get_appctl();
|
||||
auto presetbundle = GUI::get_preset_bundle();
|
||||
auto presetbundle = GUI::wxGetApp().preset_bundle;
|
||||
|
||||
assert(presetbundle);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue