mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-02 19:44:00 -06:00
ENH: [STUDIO-2647] Optimize the interface for selecting part types
Change-Id: Ia277a37ce102708c1c8d535bf323fd58bbd0d230
This commit is contained in:
parent
33ae019a95
commit
238080e0ab
4 changed files with 103 additions and 1 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue