OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::CheckboxFileDialog Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Utils.hpp>

Inheritance diagram for Slic3r::GUI::CheckboxFileDialog:
Collaboration diagram for Slic3r::GUI::CheckboxFileDialog:

Classes

struct  ExtraPanel

Public Member Functions

 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 Attributes

wxString checkbox_label

Detailed Description

Constructor & Destructor Documentation

◆ CheckboxFileDialog()

Slic3r::GUI::CheckboxFileDialog::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 )
382 : wxFileDialog(parent, message, default_dir, default_file, wildcard, style, pos, size, name)
384{
385 if (checkbox_label.IsEmpty()) {
386 return;
387 }
388
389 SetExtraControlCreator(ExtraPanel::ctor);
390}
#define style
Definition WipeTowerDialog.cpp:101
wxString checkbox_label
Definition GUI_Utils.hpp:427
static wxWindow * ctor(wxWindow *parent)
Definition GUI_Utils.cpp:366

References checkbox_label, Slic3r::GUI::CheckboxFileDialog::ExtraPanel::ctor(), and style.

Referenced by Slic3r::GUI::CheckboxFileDialog::ExtraPanel::ExtraPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ get_checkbox_value()

bool Slic3r::GUI::CheckboxFileDialog::get_checkbox_value ( ) const
393{
394 auto *extra_panel = dynamic_cast<ExtraPanel*>(GetExtraControl());
395 return extra_panel != nullptr ? extra_panel->cbox->GetValue() : false;
396}
wxCheckBox * cbox
Definition GUI_Utils.hpp:421

References Slic3r::GUI::CheckboxFileDialog::ExtraPanel::cbox.

Member Data Documentation

◆ checkbox_label

wxString Slic3r::GUI::CheckboxFileDialog::checkbox_label
private

The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Utils.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Utils.cpp