e62c17bddf
It's need to think about config->set_key_value(...): at cpp side it's non-trivial.
47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
#ifndef slic3r_GUI_hpp_
|
|
#define slic3r_GUI_hpp_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class wxApp;
|
|
class wxFrame;
|
|
class wxWindow;
|
|
class wxMenuBar;
|
|
class wxNotebook;
|
|
|
|
namespace Slic3r {
|
|
|
|
class PresetBundle;
|
|
class PresetCollection;
|
|
class AppConfig;
|
|
|
|
namespace GUI {
|
|
|
|
class Tab;
|
|
|
|
void disable_screensaver();
|
|
void enable_screensaver();
|
|
std::vector<std::string> scan_serial_ports();
|
|
bool debugged();
|
|
void break_to_debugger();
|
|
|
|
// 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);
|
|
// Create a new preset tab (print, filament and printer),
|
|
void create_preset_tabs(PresetBundle *preset_bundle, AppConfig *app_config);
|
|
// add it at the end of the tab panel.
|
|
void add_created_tab(Tab* panel, PresetBundle *preset_bundle, AppConfig *app_config);
|
|
|
|
void show_error(wxWindow* parent, std::string message);
|
|
void show_info(wxWindow* parent, std::string message, std::string title);
|
|
|
|
|
|
} }
|
|
|
|
#endif
|