OrcaSlicer/src/slic3r/GUI/SingleChoiceDialog.hpp
yw4z 0999cb057d
DialogButtons fixes and apply to more windows (#9809)
* step import dialog

* update

* update

* drop file dialog

* Update UnsavedChangesDialog.cpp

* update

* fix focus

* Update CreatePresetsDialog.cpp

* improve usage of return button

* fix first button not getting hover effects

* update

* update

* improve button styles

* update button events

* update button events

* update button events

* remove Raise()
2025-06-14 10:27:10 +08:00

27 lines
No EOL
691 B
C++

#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;
};
}} // namespace Slic3r::GUI
#endif