2024-07-17 02:51:02 +00:00
|
|
|
#ifndef slic3r_FilamentMapDialog_hpp_
|
|
|
|
#define slic3r_FilamentMapDialog_hpp_
|
|
|
|
|
|
|
|
#include "GUI.hpp"
|
|
|
|
#include <wx/simplebook.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include <wx/timer.h>
|
|
|
|
#include <vector>
|
|
|
|
|
2024-09-23 03:38:10 +00:00
|
|
|
class SwitchButton;
|
2024-10-15 11:40:04 +00:00
|
|
|
class ScalableButton;
|
2024-09-23 03:38:10 +00:00
|
|
|
class Button;
|
|
|
|
class wxStaticText;
|
|
|
|
|
2024-07-17 02:51:02 +00:00
|
|
|
namespace Slic3r {
|
|
|
|
class DynamicPrintConfig;
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
class DragDropPanel;
|
|
|
|
class FilamentMapDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
2024-07-25 09:03:01 +00:00
|
|
|
FilamentMapDialog(wxWindow *parent,
|
|
|
|
const DynamicPrintConfig *config,
|
|
|
|
const std::vector<int> &filament_map,
|
|
|
|
const std::vector<int> &extruders,
|
2024-08-09 09:46:11 +00:00
|
|
|
bool is_auto,
|
|
|
|
bool has_auto_result
|
|
|
|
);
|
2024-07-17 02:51:02 +00:00
|
|
|
|
|
|
|
bool is_auto() const;
|
2024-08-09 09:46:11 +00:00
|
|
|
const std::vector<int>& get_filament_maps() const { return m_filament_map; }
|
2024-07-17 02:51:02 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void on_ok(wxCommandEvent &event);
|
|
|
|
void on_cancle(wxCommandEvent &event);
|
2024-09-23 03:38:10 +00:00
|
|
|
void on_switch_mode(wxCommandEvent &event);
|
|
|
|
void on_switch_filaments(wxCommandEvent &event);
|
2024-07-17 02:51:02 +00:00
|
|
|
|
|
|
|
private:
|
2024-09-23 03:38:10 +00:00
|
|
|
wxStaticText * m_tip_text;
|
2024-10-16 03:33:25 +00:00
|
|
|
wxStaticText * m_below_tip_text;
|
2024-09-23 03:38:10 +00:00
|
|
|
SwitchButton * m_mode_switch_btn;
|
2024-08-09 09:46:11 +00:00
|
|
|
wxBoxSizer * m_extruder_panel_sizer;
|
|
|
|
DragDropPanel* m_manual_left_panel;
|
|
|
|
DragDropPanel* m_manual_right_panel;
|
|
|
|
DragDropPanel* m_auto_left_panel;
|
|
|
|
DragDropPanel* m_auto_right_panel;
|
2024-10-15 11:40:04 +00:00
|
|
|
ScalableButton* m_switch_filament_btn;
|
|
|
|
ScalableButton* m_switch_filament_btn_auto; // for placeholder
|
2024-07-17 02:51:02 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
const DynamicPrintConfig* m_config;
|
|
|
|
std::vector<int> m_filament_map;
|
2024-08-09 09:46:11 +00:00
|
|
|
bool m_has_auto_result;
|
2024-07-17 02:51:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}} // namespace Slic3r::GUI
|
|
|
|
|
|
|
|
#endif /* slic3r_FilamentMapDialog_hpp_ */
|