Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ConfigWizard.hpp « GUI « slic3r « src « xs - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73fce7cd212c2007eebfeded453dd9a914d5d1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef slic3r_ConfigWizard_hpp_
#define slic3r_ConfigWizard_hpp_

#include <memory>

#include <wx/dialog.h>

namespace Slic3r {

class PresetBundle;
class PresetUpdater;

namespace GUI {


class ConfigWizard: public wxDialog
{
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
	};

	ConfigWizard(wxWindow *parent, RunReason run_reason);
	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(PresetBundle *preset_bundle, const PresetUpdater *updater);

	static const wxString& name();
private:
	struct priv;
	std::unique_ptr<priv> p;

	friend class ConfigWizardPage;
};



}
}

#endif