Export dialog ready
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user