mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH: refine UI of sending 3rd-party printer task
Change-Id: I47cd1682a495eb7aa6f230dfa41ee4f5c321fc72 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
3992e25c93
commit
a84cf46699
11 changed files with 217 additions and 37 deletions
|
@ -168,18 +168,6 @@ class MainFrame : public DPIFrame
|
|||
|
||||
ESettingsLayout m_layout{ ESettingsLayout::Unknown };
|
||||
|
||||
//BBS GUI refactor
|
||||
enum PrintSelectType
|
||||
{
|
||||
ePrintAll = 0,
|
||||
ePrintPlate = 1,
|
||||
eExportSlicedFile = 2,
|
||||
eExportGcode = 3,
|
||||
eSendGcode = 4,
|
||||
eSendToPrinter = 5,
|
||||
eUploadGcode = 6
|
||||
};
|
||||
|
||||
enum SliceSelectType
|
||||
{
|
||||
eSliceAll = 0,
|
||||
|
@ -195,7 +183,6 @@ protected:
|
|||
#endif
|
||||
|
||||
public:
|
||||
|
||||
MainFrame();
|
||||
~MainFrame() = default;
|
||||
|
||||
|
@ -210,6 +197,18 @@ public:
|
|||
tpProject = 4,
|
||||
};
|
||||
|
||||
//BBS GUI refactor
|
||||
enum PrintSelectType
|
||||
{
|
||||
ePrintAll = 0,
|
||||
ePrintPlate = 1,
|
||||
eExportSlicedFile = 2,
|
||||
eExportGcode = 3,
|
||||
eSendGcode = 4,
|
||||
eSendToPrinter = 5,
|
||||
eUploadGcode = 6
|
||||
};
|
||||
|
||||
//BBS: add slice&&print status update logic
|
||||
enum SlicePrintEventType
|
||||
{
|
||||
|
@ -290,6 +289,7 @@ public:
|
|||
void select_view(const std::string& direction);
|
||||
// Propagate changed configuration from the Tab to the Plater and save changes to the AppConfig
|
||||
void on_config_changed(DynamicPrintConfig* cfg) const ;
|
||||
void set_print_button_to_default(PrintSelectType select_type);
|
||||
|
||||
bool can_save() const;
|
||||
bool can_save_as() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue