mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
NEW:new sending page layout(for top area)
jira:[none] Change-Id: I359476fd80cd3fb3e55f071bf0e649e57e93ef2d (cherry picked from commit aa3e21dc5bbb428ca5597d617f11400280de5d75)
This commit is contained in:
@@ -120,7 +120,7 @@ enum class ConfigNozzleIdx : int
|
||||
|
||||
WX_DECLARE_HASH_MAP(int, Material *, wxIntegerHash, wxIntegerEqual, MaterialHash);
|
||||
|
||||
#define SELECT_MACHINE_DIALOG_BUTTON_SIZE wxSize(FromDIP(68), FromDIP(23))
|
||||
#define SELECT_MACHINE_DIALOG_BUTTON_SIZE wxSize(FromDIP(57), FromDIP(32))
|
||||
#define SELECT_MACHINE_DIALOG_SIMBOOK_SIZE wxSize(FromDIP(370), FromDIP(64))
|
||||
#define LIST_REFRESH_INTERVAL 200
|
||||
static int get_brightness_value(wxImage image) {
|
||||
@@ -223,6 +223,25 @@ private:
|
||||
int m_brightness_value{-1};
|
||||
};
|
||||
|
||||
|
||||
class SendModeSwitchButton : public wxPanel
|
||||
{
|
||||
public:
|
||||
SendModeSwitchButton(wxWindow *parent, wxString mode, bool sel);
|
||||
~SendModeSwitchButton(){};
|
||||
void OnPaint(wxPaintEvent &event);
|
||||
void render(wxDC &dc);
|
||||
void on_left_down(wxMouseEvent &evt);
|
||||
void doRender(wxDC &dc);
|
||||
void setSelected(bool selected);
|
||||
bool isSelected(){return is_selected;};
|
||||
bool is_selected {false};
|
||||
ScalableBitmap m_img_selected;
|
||||
ScalableBitmap m_img_unselected;
|
||||
ScalableBitmap m_img_selected_tag;
|
||||
ScalableBitmap m_img_unselected_tag;
|
||||
};
|
||||
|
||||
class SelectMachineDialog : public DPIDialog
|
||||
{
|
||||
private:
|
||||
@@ -260,6 +279,11 @@ private:
|
||||
std::shared_ptr<BBLStatusBarSend> m_status_bar;
|
||||
std::unique_ptr<Worker> m_worker;
|
||||
|
||||
SendModeSwitchButton* m_mode_print {nullptr};
|
||||
SendModeSwitchButton* m_mode_send {nullptr};
|
||||
wxStaticBitmap* m_printer_image{nullptr};
|
||||
wxStaticBitmap* m_bed_image{nullptr};
|
||||
|
||||
Slic3r::DynamicPrintConfig m_required_data_config;
|
||||
Slic3r::Model m_required_data_model;
|
||||
Slic3r::PlateDataPtrs m_required_data_plate_data_list;
|
||||
@@ -284,7 +308,7 @@ protected:
|
||||
wxBoxSizer* rename_sizer_v{ nullptr };
|
||||
wxBoxSizer* rename_sizer_h{ nullptr };
|
||||
wxBoxSizer* m_sizer_autorefill{ nullptr };
|
||||
Button* m_button_refresh{ nullptr };
|
||||
ScalableButton* m_button_refresh{ nullptr };
|
||||
Button* m_button_ensure{ nullptr };
|
||||
wxStaticBitmap * m_rename_button{nullptr};
|
||||
ComboBox* m_comboBox_printer{ nullptr };
|
||||
|
||||
Reference in New Issue
Block a user