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

TabIface.hpp « GUI « slic3r « src « xs - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f7f4e8e7fc2ddd53a33139471404f8f403badef (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
#ifndef slic3r_TabIface_hpp_
#define slic3r_TabIface_hpp_

#include <vector>
#include <string>

namespace Slic3r {
	class DynamicPrintConfig;
	class PresetCollection;

namespace GUI {
	class Tab;
}

class TabIface {
public:
	TabIface() : m_tab(nullptr) {}
	TabIface(GUI::Tab *tab) : m_tab(tab) {}
//	TabIface(const TabIface &rhs) : m_tab(rhs.m_tab) {}

	void		load_current_preset();
	void		update_tab_ui();
	void		update_ui_from_settings();
	void		select_preset(char* name);
	std::string title();
	void		load_config(DynamicPrintConfig* config);
	void		load_key_value(char* opt_key, char* value);
	bool		current_preset_is_dirty();
	void		OnActivate();
	DynamicPrintConfig*			get_config();
	PresetCollection*			get_presets();
	std::vector<std::string>	get_dependent_tabs();
	size_t						get_selected_preset_item();

protected:
	GUI::Tab   *m_tab;
}; // namespace GUI

}; // namespace Slic3r

#endif /* slic3r_TabIface_hpp_ */