mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-20 02:43:02 +00:00
MultiChooseDialog & CheckList class & improvements for Profile Dependencies (#9971)
* init * fix * fix * update * update * update * Update Tab.cpp * Update CheckList.cpp
This commit is contained in:
37
src/slic3r/GUI/MultiChoiceDialog.hpp
Normal file
37
src/slic3r/GUI/MultiChoiceDialog.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef slic3r_GUI_MultiChoiceDialog_hpp_
|
||||
#define slic3r_GUI_MultiChoiceDialog_hpp_
|
||||
|
||||
#include "Widgets/CheckList.hpp"
|
||||
#include "Widgets/DialogButtons.hpp"
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
|
||||
namespace Slic3r { namespace GUI {
|
||||
|
||||
class MultiChoiceDialog : public DPIDialog
|
||||
{
|
||||
public:
|
||||
MultiChoiceDialog(
|
||||
wxWindow* parent = nullptr,
|
||||
const wxString& message = wxEmptyString,
|
||||
const wxString& caption = wxEmptyString,
|
||||
const wxArrayString& choices = wxArrayString()
|
||||
);
|
||||
~MultiChoiceDialog();
|
||||
|
||||
wxArrayInt GetSelections() const;
|
||||
|
||||
void SetSelections(wxArrayInt sel_array);
|
||||
|
||||
protected:
|
||||
CheckList* m_check_list;
|
||||
wxArrayInt m_selected_indices;
|
||||
void on_dpi_changed(const wxRect &suggested_rect) override;
|
||||
};
|
||||
|
||||
}} // namespace Slic3r::GUI
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user