mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
Export dialog ready
This commit is contained in:
parent
3efe6675cb
commit
ae682b9cd3
8 changed files with 621 additions and 326 deletions
|
@ -58,11 +58,13 @@ public:
|
|||
void progress_indicator(ProgresIndicatorPtr progrind);
|
||||
|
||||
void progress_indicator(unsigned statenum,
|
||||
const std::string& title,
|
||||
const std::string& firstmsg = "");
|
||||
const std::string& title,
|
||||
const std::string& firstmsg = "");
|
||||
|
||||
ProgresIndicatorPtr progress_indicator();
|
||||
|
||||
bool is_main_thread() const;
|
||||
|
||||
protected:
|
||||
|
||||
ProgresIndicatorPtr create_progress_indicator(
|
||||
|
@ -70,7 +72,6 @@ protected:
|
|||
const std::string& title,
|
||||
const std::string& firstmsg = "") const;
|
||||
|
||||
bool is_main_thread() const;
|
||||
|
||||
ProgresIndicatorPtr global_progressind_;
|
||||
};
|
||||
|
@ -87,6 +88,16 @@ protected:
|
|||
void infill(PrintObject *pobj);
|
||||
void gen_support_material(PrintObject *pobj);
|
||||
|
||||
struct PngExportData {
|
||||
std::string zippath;
|
||||
unsigned long width_px = 1440;
|
||||
unsigned long height_px = 2560;
|
||||
double width_mm = 68.0, height_mm = 120.0;
|
||||
double corr = 1.0;
|
||||
} query_png_export_data();
|
||||
|
||||
PngExportData prev_expdata_;
|
||||
|
||||
public:
|
||||
|
||||
using Ptr = std::unique_ptr<PrintController>;
|
||||
|
@ -103,7 +114,7 @@ public:
|
|||
void slice_to_png();
|
||||
};
|
||||
|
||||
class AppController: protected AppControllerBoilerplate {
|
||||
class AppController: public AppControllerBoilerplate {
|
||||
Model *model_ = nullptr;
|
||||
PrintController::Ptr printctl;
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue