mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-01 06:16:58 +00:00
build: clear 54 dead private fields 54 of the 161 -Wunused-private-field warnings, across 31 files. These are the ones needing no judgment. Each member is declared once and appears nowhere else in src/, counting the .mm and .c sources as well as .cpp and .hpp, so nothing writes them and nothing reads them. Every removal is a whole line, and no declaration shares a line with another member. The remaining 107 are left alone. Those members are mentioned elsewhere, usually assigned and never read, where the fix might be deleting the member or might be restoring a read that went missing.
36 lines
941 B
C++
36 lines
941 B
C++
#ifndef slic3r_GUI_RecenterDialog_hpp_
|
|
#define slic3r_GUI_RecenterDialog_hpp_
|
|
|
|
#include "GUI_Utils.hpp"
|
|
#include <wx/statbmp.h>
|
|
#include "Widgets/Button.hpp"
|
|
#include <wx/stattext.h>
|
|
|
|
namespace Slic3r { namespace GUI {
|
|
class RecenterDialog : public DPIDialog
|
|
{
|
|
private:
|
|
ScalableBitmap m_home_bmp;
|
|
wxString hint1;
|
|
wxString hint2;
|
|
|
|
void init_bitmap();
|
|
void OnPaint(wxPaintEvent& event);
|
|
void render(wxDC& dc);
|
|
void on_button_confirm(wxCommandEvent& event);
|
|
void on_button_close(wxCommandEvent& event);
|
|
void on_dpi_changed(const wxRect& suggested_rect) override;
|
|
|
|
public:
|
|
RecenterDialog(wxWindow* parent,
|
|
wxWindowID id = wxID_ANY,
|
|
const wxString& title = wxEmptyString,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
long style = wxCLOSE_BOX | wxCAPTION);
|
|
|
|
~RecenterDialog();
|
|
};
|
|
}} // namespace Slic3r::GUI
|
|
|
|
#endif |