This commit is contained in:
QIDI TECH
2024-09-03 09:34:33 +08:00
parent 27f34aa3e8
commit 585146181b
5147 changed files with 1734881 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#ifndef slic3r_GUI_SingleChoice_hpp_
#define slic3r_GUI_SingleChoice_hpp_
#include "GUI_Utils.hpp"
#include "Widgets/Button.hpp"
#include "Widgets/ComboBox.hpp"
namespace Slic3r { namespace GUI {
class SingleChoiceDialog : public DPIDialog
{
public:
SingleChoiceDialog(const wxString &message, const wxString &caption, const wxArrayString &choices, int initialSelectionwx, wxWindow *parent = nullptr);
~SingleChoiceDialog();
int GetSingleChoiceIndex();
ComboBox *GetTypeComboBox() { return type_comboBox; };
void on_dpi_changed(const wxRect &suggested_rect) override;
protected:
ComboBox *type_comboBox = nullptr;
Button * m_button_ok = nullptr;
Button * m_button_cancel = nullptr;
};
}} // namespace Slic3r::GUI
#endif