2018-01-25 12:46:04 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2018-01-23 10:37:45 +00:00
|
|
|
namespace Slic3r {
|
2018-01-25 12:46:04 +00:00
|
|
|
class DynamicPrintConfig;
|
|
|
|
class PresetCollection;
|
2018-01-23 10:37:45 +00:00
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
class Tab;
|
2018-01-25 12:46:04 +00:00
|
|
|
}
|
2018-01-23 10:37:45 +00:00
|
|
|
|
|
|
|
class TabIface {
|
|
|
|
public:
|
|
|
|
TabIface() : m_tab(nullptr) {}
|
|
|
|
TabIface(GUI::Tab *tab) : m_tab(tab) {}
|
|
|
|
// TabIface(const TabIface &rhs) : m_tab(rhs.m_tab) {}
|
2018-01-25 12:46:04 +00:00
|
|
|
|
|
|
|
void load_current_preset();
|
|
|
|
void update_tab_ui();
|
|
|
|
void update_ui_from_settings();
|
|
|
|
void select_preset(char* name);
|
|
|
|
char* title();
|
|
|
|
void load_config(DynamicPrintConfig* config);
|
2018-01-26 00:44:34 +00:00
|
|
|
void load_key_value(char* opt_key, char* value);
|
2018-01-25 12:46:04 +00:00
|
|
|
bool current_preset_is_dirty();
|
|
|
|
DynamicPrintConfig* get_config();
|
|
|
|
PresetCollection* TabIface::get_presets();
|
|
|
|
std::vector<std::string> TabIface::get_dependent_tabs();
|
|
|
|
|
2018-01-23 10:37:45 +00:00
|
|
|
protected:
|
|
|
|
GUI::Tab *m_tab;
|
|
|
|
};
|
|
|
|
|
|
|
|
}; // namespace Slic3r
|