mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-02 07:42:14 +00:00
ENH: [STUDIO-2647] Optimize the interface for selecting part types
Change-Id: Ia277a37ce102708c1c8d535bf323fd58bbd0d230
This commit is contained in:
29
src/slic3r/GUI/SingleChoiceDialog.hpp
Normal file
29
src/slic3r/GUI/SingleChoiceDialog.hpp
Normal 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
|
||||
Reference in New Issue
Block a user