mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 12:47:50 -06:00
File saving to new file fixed.
This commit is contained in:
parent
ae682b9cd3
commit
df625a0c4b
2 changed files with 5 additions and 3 deletions
|
@ -94,7 +94,9 @@ protected:
|
||||||
unsigned long height_px = 2560;
|
unsigned long height_px = 2560;
|
||||||
double width_mm = 68.0, height_mm = 120.0;
|
double width_mm = 68.0, height_mm = 120.0;
|
||||||
double corr = 1.0;
|
double corr = 1.0;
|
||||||
} query_png_export_data();
|
};
|
||||||
|
|
||||||
|
PngExportData query_png_export_data();
|
||||||
|
|
||||||
PngExportData prev_expdata_;
|
PngExportData prev_expdata_;
|
||||||
|
|
||||||
|
@ -105,7 +107,7 @@ public:
|
||||||
explicit inline PrintController(Print *print): print_(print) {}
|
explicit inline PrintController(Print *print): print_(print) {}
|
||||||
|
|
||||||
inline static Ptr create(Print *print) {
|
inline static Ptr create(Print *print) {
|
||||||
return std::make_unique<PrintController>(print);
|
return PrintController::Ptr( new PrintController(print) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void slice(PrintObject *pobj);
|
void slice(PrintObject *pobj);
|
||||||
|
|
|
@ -53,7 +53,7 @@ PngExportDialog::PngExportDialog( wxWindow* parent, wxWindowID id, const wxStrin
|
||||||
wxBoxSizer* filepick_layout_;
|
wxBoxSizer* filepick_layout_;
|
||||||
filepick_layout_ = new wxBoxSizer( wxHORIZONTAL );
|
filepick_layout_ = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
filepick_ctl_ = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select a file"), wxT("*.zip"), wxDefaultPosition, wxSize( 308,-1 ), wxFLP_DEFAULT_STYLE, wxDefaultValidator, wxT("filepick_ctl") );
|
filepick_ctl_ = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select a file"), wxT("*.zip"), wxDefaultPosition, wxSize( 308,-1 ), wxFLP_USE_TEXTCTRL | wxFLP_SAVE | wxFLP_OVERWRITE_PROMPT, wxDefaultValidator, wxT("filepick_ctl") );
|
||||||
filepick_layout_->Add( filepick_ctl_, 0, wxALIGN_CENTER|wxALIGN_LEFT|wxALL, 5 );
|
filepick_layout_->Add( filepick_ctl_, 0, wxALIGN_CENTER|wxALIGN_LEFT|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue