mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-12 11:37:42 +00:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
39
src/slic3r/GUI/Widgets/RadioBox.hpp
Normal file
39
src/slic3r/GUI/Widgets/RadioBox.hpp
Normal file
@@ -0,0 +1,39 @@
|
||||
#ifndef slic3r_GUI_RADIOBOX_hpp_
|
||||
#define slic3r_GUI_RADIOBOX_hpp_
|
||||
|
||||
#include "../wxExtensions.hpp"
|
||||
|
||||
#include <wx/tglbtn.h>
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
||||
class RadioBox : public wxBitmapToggleButton
|
||||
{
|
||||
public:
|
||||
RadioBox(wxWindow *parent);
|
||||
|
||||
public:
|
||||
void SetValue(bool value) override;
|
||||
bool GetValue();
|
||||
void Rescale();
|
||||
bool Disable() {
|
||||
return wxBitmapToggleButton::Disable();
|
||||
}
|
||||
bool Enable() {
|
||||
return wxBitmapToggleButton::Enable();
|
||||
}
|
||||
|
||||
private:
|
||||
void update();
|
||||
|
||||
private:
|
||||
ScalableBitmap m_on;
|
||||
ScalableBitmap m_off;
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
|
||||
|
||||
#endif // !slic3r_GUI_CheckBox_hpp_
|
||||
Reference in New Issue
Block a user