mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-23 19:02:10 +00:00
ENH:show big bed image
jira: none Change-Id: Iaf3529345f688f2dbdc35c16f45253a5b65feb84 (cherry picked from commit 5e2861acca8d86d6e7012f73d3f739877eb05069)
This commit is contained in:
28
src/slic3r/GUI/ImageDPIFrame.hpp
Normal file
28
src/slic3r/GUI/ImageDPIFrame.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef _ImageDPIFrame_H_
|
||||
#define _ImageDPIFrame_H_
|
||||
|
||||
#include "GUI_App.hpp"
|
||||
#include "GUI_Utils.hpp"
|
||||
|
||||
class wxStaticBitmap;
|
||||
namespace Slic3r { namespace GUI {
|
||||
class ImageDPIFrame : public Slic3r::GUI::DPIFrame
|
||||
{
|
||||
public:
|
||||
ImageDPIFrame();
|
||||
~ImageDPIFrame() override;
|
||||
void on_dpi_changed(const wxRect &suggested_rect) override;
|
||||
void on_show();
|
||||
void on_hide();
|
||||
bool Show(bool show = true) override;
|
||||
|
||||
void set_bitmap(const wxBitmap& bit_map);
|
||||
int get_image_px() { return m_image_px; }
|
||||
|
||||
private:
|
||||
wxStaticBitmap *m_bitmap = nullptr;
|
||||
wxBoxSizer *m_sizer_main{nullptr};
|
||||
int m_image_px;
|
||||
};
|
||||
}} // namespace Slic3r::GUI
|
||||
#endif // _STEP_MESH_DIALOG_H_
|
||||
Reference in New Issue
Block a user