mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
WIP: Plater, build fixes
This commit is contained in:
parent
99fe5761d8
commit
1f926964ee
15 changed files with 511 additions and 143 deletions
41
src/slic3r/GUI/GUI_Utils.hpp
Normal file
41
src/slic3r/GUI/GUI_Utils.hpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef slic3r_GUI_Utils_hpp_
|
||||
#define slic3r_GUI_Utils_hpp_
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include <wx/filedlg.h>
|
||||
|
||||
class wxCheckBox;
|
||||
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
|
||||
class CheckboxFileDialog : public wxFileDialog
|
||||
{
|
||||
public:
|
||||
CheckboxFileDialog(wxWindow *parent,
|
||||
const wxString &checkbox_label,
|
||||
bool checkbox_value,
|
||||
const wxString &message = wxFileSelectorPromptStr,
|
||||
const wxString &default_dir = wxEmptyString,
|
||||
const wxString &default_file = wxEmptyString,
|
||||
const wxString &wildcard = wxFileSelectorDefaultWildcardStr,
|
||||
long style = wxFD_DEFAULT_STYLE,
|
||||
const wxPoint &pos = wxDefaultPosition,
|
||||
const wxSize &size = wxDefaultSize,
|
||||
const wxString &name = wxFileDialogNameStr
|
||||
);
|
||||
|
||||
bool get_checkbox_value() const;
|
||||
|
||||
private:
|
||||
std::function<wxWindow*(wxWindow*)> extra_control_creator;
|
||||
wxCheckBox *cbox;
|
||||
};
|
||||
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue