mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-28 05:12:27 +00:00
NEW: Add FilamentMapDialog
support drag drop to modify the filament map jira: none Change-Id: I0ed3180a0fa8e95e7c871bb039eb844faccd1344 (cherry picked from commit 67f67d76889668fdd80ae5e496b6cbca5f771a43)
This commit is contained in:
40
src/slic3r/GUI/FilamentMapDialog.hpp
Normal file
40
src/slic3r/GUI/FilamentMapDialog.hpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#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>
|
||||
|
||||
namespace Slic3r {
|
||||
class DynamicPrintConfig;
|
||||
|
||||
namespace GUI {
|
||||
class DragDropPanel;
|
||||
class FilamentMapDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
FilamentMapDialog(wxWindow *parent, const DynamicPrintConfig *config, const std::vector<int> &filament_map, bool is_auto);
|
||||
|
||||
bool is_auto() const;
|
||||
const std::vector<int>& get_filament_maps() { return m_filament_map; }
|
||||
|
||||
private:
|
||||
void on_ok(wxCommandEvent &event);
|
||||
void on_cancle(wxCommandEvent &event);
|
||||
|
||||
private:
|
||||
wxRadioButton* m_auto_radio;
|
||||
wxRadioButton* m_manual_radio;
|
||||
DragDropPanel* m_left_panel;
|
||||
DragDropPanel* m_right_panel;
|
||||
|
||||
private:
|
||||
const DynamicPrintConfig* m_config;
|
||||
std::vector<int> m_filament_map;
|
||||
};
|
||||
|
||||
}} // namespace Slic3r::GUI
|
||||
|
||||
#endif /* slic3r_FilamentMapDialog_hpp_ */
|
||||
Reference in New Issue
Block a user