mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00

* MSW specific: Dark Mode: First implementation * Use menu instead of NoteBook * Implemented MessageDialog + Fixed DarkMode for all dialogs and ColorPicker * MSW DarkMode: Added missed updates for the switching between modes * MSW DarkMode: Updated all existed context menus after switching of the mode + Added markers for the menu item witch is related to the selected tab * Used wxFrame instead of wxDialog for SettingsDialog (this change allow us to use menu bar in SettingsDialog) + fix for #6548 - Prusa Slicer 2.3.1 not activating non-modal settings window if settings window is minimized * Implemented "Always use Dark mode colors" preference option * Fixes for non_MSW build * Next fixes for non-MSW builds * Preferences: Fixed selection of the Settings Layout for non-MSW platforms + Updated DarkMode for colorpickers * Windows DarkMode next fixes * MSWDarkMode: Suppress to use system color to the PrusaSlicer Select "Preferences -> Use Dark color mode (experimental)" to allow dark mode for the application * Fixed MSW build * MSWDarkMode: Upadteed color mode for ExtruderSequenceDialog and for dialogs related to the DoubleSlider * Implemented Auto recreation of the PrusaSlicer when color mode is changed. * Preferences: Added option "Set settings tabs as menu items (experimental)"
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
#ifndef slic3r_ConfigWizard_hpp_
|
|
#define slic3r_ConfigWizard_hpp_
|
|
|
|
#include <memory>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include "GUI_Utils.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
class PresetBundle;
|
|
class PresetUpdater;
|
|
|
|
namespace GUI {
|
|
|
|
|
|
class ConfigWizard: public DPIDialog
|
|
{
|
|
public:
|
|
// Why is the Wizard run
|
|
enum RunReason {
|
|
RR_DATA_EMPTY, // No or empty datadir
|
|
RR_DATA_LEGACY, // Pre-updating datadir
|
|
RR_DATA_INCOMPAT, // Incompatible datadir - Slic3r downgrade situation
|
|
RR_USER, // User requested the Wizard from the menus
|
|
};
|
|
|
|
// What page should wizard start on
|
|
enum StartPage {
|
|
SP_WELCOME,
|
|
SP_PRINTERS,
|
|
SP_FILAMENTS,
|
|
SP_MATERIALS,
|
|
};
|
|
|
|
ConfigWizard(wxWindow *parent);
|
|
ConfigWizard(ConfigWizard &&) = delete;
|
|
ConfigWizard(const ConfigWizard &) = delete;
|
|
ConfigWizard &operator=(ConfigWizard &&) = delete;
|
|
ConfigWizard &operator=(const ConfigWizard &) = delete;
|
|
~ConfigWizard();
|
|
|
|
// Run the Wizard. Return whether it was completed.
|
|
bool run(RunReason reason, StartPage start_page = SP_WELCOME);
|
|
|
|
static const wxString& name(const bool from_menu = false);
|
|
protected:
|
|
void on_dpi_changed(const wxRect &suggested_rect) override ;
|
|
void on_sys_color_changed() override;
|
|
|
|
private:
|
|
struct priv;
|
|
std::unique_ptr<priv> p;
|
|
|
|
friend struct ConfigWizardPage;
|
|
};
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|