mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-18 10:32:31 -07:00
* Add button styling * Fix dark mode compability * printable area button * Connection dialog icons * Add aligment control * Fix alignment * add new styles * Update BedShapeDialog.cpp * Use darker text color on dark mode * update code * Update * update * Update * Update WipeTowerDialog.cpp * update * Update Button.cpp * update * Update Button.cpp * add enums for style and type * update * Update Button.cpp * fix * update * Update DialogButtons.cpp * Update UnsavedChangesDialog.cpp * update * update * update * Update Button.cpp * cleanup --------- Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
78 lines
2.1 KiB
C++
78 lines
2.1 KiB
C++
#ifndef slic3r_PhysicalPrinterDialog_hpp_
|
|
#define slic3r_PhysicalPrinterDialog_hpp_
|
|
|
|
#include <vector>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#include "libslic3r/Preset.hpp"
|
|
#include "GUI_Utils.hpp"
|
|
#include "Widgets/RoundedRectangle.hpp"
|
|
#include "Widgets/Button.hpp"
|
|
|
|
class wxTextCtrl;
|
|
class wxStaticText;
|
|
class Button;
|
|
class wxBoxSizer;
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
//------------------------------------------
|
|
// PhysicalPrinterDialog
|
|
//------------------------------------------
|
|
|
|
class ConfigOptionsGroup;
|
|
class PhysicalPrinterDialog : public DPIDialog
|
|
{
|
|
DynamicPrintConfig* m_config { nullptr };
|
|
ConfigOptionsGroup* m_optgroup { nullptr };
|
|
|
|
Button* m_printhost_browse_btn {nullptr};
|
|
Button* m_printhost_test_btn {nullptr};
|
|
Button* m_printhost_logout_btn {nullptr};
|
|
Button* m_printhost_cafile_browse_btn {nullptr};
|
|
Button* m_printhost_client_cert_browse_btn {nullptr};
|
|
Button* m_printhost_port_browse_btn {nullptr};
|
|
|
|
RoundedRectangle* m_input_area {nullptr};
|
|
wxStaticText* m_valid_label {nullptr};
|
|
wxTextCtrl* m_input_ctrl {nullptr};
|
|
Button* btnOK {nullptr};
|
|
|
|
void build_printhost_settings(ConfigOptionsGroup* optgroup);
|
|
void OnOK(wxEvent& event);
|
|
|
|
public:
|
|
PhysicalPrinterDialog(wxWindow* parent);
|
|
~PhysicalPrinterDialog();
|
|
|
|
enum ValidationType
|
|
{
|
|
Valid,
|
|
NoValid,
|
|
Warning
|
|
};
|
|
PresetCollection* m_presets {nullptr};
|
|
ValidationType m_valid_type;
|
|
std::string m_preset_name;
|
|
|
|
void update(bool printer_change = false);
|
|
void update_host_type(bool printer_change);
|
|
void update_preset_input();
|
|
void update_printhost_buttons();
|
|
void update_printers();
|
|
void update_ports();
|
|
void update_webui();
|
|
|
|
protected:
|
|
void on_dpi_changed(const wxRect& suggested_rect) override;
|
|
void on_sys_color_changed() override {};
|
|
};
|
|
|
|
|
|
} // namespace GUI
|
|
} // namespace Slic3r
|
|
|
|
#endif
|