Files
OrcaSlicer/src/slic3r/GUI/ParamsDialog.hpp
T

55 lines
1.1 KiB
C++

#ifndef slic3r_GUI_ParamsDialog_hpp_
#define slic3r_GUI_ParamsDialog_hpp_
#include <wx/event.h>
#include "slic3r/GUI/Event.hpp"
#include <wx/object.h>
#include <string>
#include <wx/utils.h>
#include <wx/wx.h>
#include <wx/intl.h>
#include <wx/collpane.h>
#include "GUI_Utils.hpp"
#include "wxExtensions.hpp"
namespace Slic3r {
namespace GUI {
wxDECLARE_EVENT(EVT_MODIFY_FILAMENT, SimpleEvent);
class Filamentinformation : public wxObject
{
public:
std::string filament_id;
std::string filament_name;
};
class ParamsPanel;
class ParamsDialog : public DPIDialog
{
public:
ParamsDialog(wxWindow * parent);
ParamsPanel * panel() { return m_panel; }
void Popup();
void set_editing_filament_id(std::string id) { m_editing_filament_id = id; }
protected:
void on_dpi_changed(const wxRect& suggested_rect) override;
private:
std::string m_editing_filament_id;
bool m_initial_multi_bed_types = false;
ParamsPanel * m_panel;
wxWindowDisabler *m_winDisabler = nullptr;
};
} // namespace GUI
} // namespace Slic3r
#endif