mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-15 08:59:39 -07:00
support drag drop to modify the filament map jira: none Change-Id: I0ed3180a0fa8e95e7c871bb039eb844faccd1344 (cherry picked from commit 67f67d76889668fdd80ae5e496b6cbca5f771a43)
40 lines
951 B
C++
40 lines
951 B
C++
#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_ */
|