2015-12-04 20:25:45 +00:00
|
|
|
#ifndef slic3r_GUI_hpp_
|
|
|
|
#define slic3r_GUI_hpp_
|
|
|
|
|
2017-11-02 15:21:34 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2018-01-07 17:41:40 +00:00
|
|
|
#include "Config.hpp"
|
2017-11-02 15:21:34 +00:00
|
|
|
|
2017-12-04 09:48:40 +00:00
|
|
|
class wxApp;
|
|
|
|
class wxFrame;
|
2017-12-22 10:50:28 +00:00
|
|
|
class wxWindow;
|
2017-12-04 09:48:40 +00:00
|
|
|
class wxMenuBar;
|
|
|
|
class wxNotebook;
|
|
|
|
|
2017-12-22 10:50:28 +00:00
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
class PresetBundle;
|
2018-01-05 14:11:33 +00:00
|
|
|
class PresetCollection;
|
2018-01-03 09:12:42 +00:00
|
|
|
class AppConfig;
|
2018-01-07 17:41:40 +00:00
|
|
|
class DynamicPrintConfig;
|
2018-01-23 10:37:19 +00:00
|
|
|
class TabIface;
|
2017-12-22 10:50:28 +00:00
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
2018-01-05 14:11:33 +00:00
|
|
|
class Tab;
|
2015-12-04 20:25:45 +00:00
|
|
|
|
|
|
|
void disable_screensaver();
|
|
|
|
void enable_screensaver();
|
2017-11-02 15:21:34 +00:00
|
|
|
std::vector<std::string> scan_serial_ports();
|
2016-04-13 18:45:44 +00:00
|
|
|
bool debugged();
|
|
|
|
void break_to_debugger();
|
2015-12-04 20:25:45 +00:00
|
|
|
|
2017-12-04 09:48:40 +00:00
|
|
|
// Passing the wxWidgets GUI classes instantiated by the Perl part to C++.
|
|
|
|
void set_wxapp(wxApp *app);
|
|
|
|
void set_main_frame(wxFrame *main_frame);
|
|
|
|
void set_tab_panel(wxNotebook *tab_panel);
|
|
|
|
|
|
|
|
void add_debug_menu(wxMenuBar *menu);
|
2017-12-22 10:50:28 +00:00
|
|
|
// Create a new preset tab (print, filament and printer),
|
2018-01-21 22:35:00 +00:00
|
|
|
void create_preset_tabs(PresetBundle *preset_bundle, AppConfig *app_config, int event_value_change, int event_presets_changed);
|
2018-01-23 10:37:19 +00:00
|
|
|
TabIface* get_preset_tab_iface(char *name);
|
|
|
|
|
2017-12-04 09:48:40 +00:00
|
|
|
// add it at the end of the tab panel.
|
2018-01-05 14:11:33 +00:00
|
|
|
void add_created_tab(Tab* panel, PresetBundle *preset_bundle, AppConfig *app_config);
|
2018-01-07 17:41:40 +00:00
|
|
|
// Change option value in config
|
|
|
|
void change_opt_value(DynamicPrintConfig& config, t_config_option_key opt_key, boost::any value);
|
2017-12-22 10:50:28 +00:00
|
|
|
|
|
|
|
void show_error(wxWindow* parent, std::string message);
|
|
|
|
void show_info(wxWindow* parent, std::string message, std::string title);
|
|
|
|
|
2017-12-04 09:48:40 +00:00
|
|
|
|
2015-12-04 20:25:45 +00:00
|
|
|
} }
|
|
|
|
|
|
|
|
#endif
|