Files
OrcaSlicer/src/slic3r/GUI/AmsWidgets.hpp
T
HanifKoh 6cd5feed79 Remove Duplicate Includes and the Dead GCodeSender Sources (#16249)
46 files include the same header twice at file scope, outside any #if,
66 times in all:
Model.cpp included Model.hpp twice, Utils.hpp <algorithm> and
<string_view> twice, seven GUI headers <wx/dataview.h> and
<wx/artprov.h> twice. The second include of each is removed.

GCodeSender.cpp and GCodeSender.hpp have been commented out of
libslic3r/CMakeLists.txt since 2022 and their only two includes are
commented out as well. Both files go, with the commented lines, and
the CMake entry for SLA/SupportTreeIGL.cpp, a file that no longer
exists.
2026-10-08 13:51:50 +08:00

106 lines
2.2 KiB
C++

#ifndef slic3r_AmsWidgets_hpp_
#define slic3r_AmsWidgets_hpp_
#include <wx/arrstr.h>
#include <wx/notebook.h>
#include <wx/scrolwin.h>
#include <wx/sizer.h>
#include <wx/bmpcbox.h>
#include <wx/bmpbuttn.h>
#include <wx/treectrl.h>
#include <wx/imaglist.h>
#include <wx/artprov.h>
#include <wx/variant.h>
#include <wx/xrc/xmlres.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/grid.h>
#include <wx/dataview.h>
#include <wx/panel.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/button.h>
#include <wx/statbox.h>
#include <wx/tglbtn.h>
#include <wx/popupwin.h>
#include <wx/spinctrl.h>
#include <map>
#include <vector>
#include <memory>
#include "Event.hpp"
#include "libslic3r/ProjectTask.hpp"
#include "wxExtensions.hpp"
#include "slic3r/GUI/DeviceManager.hpp"
namespace Slic3r {
namespace GUI {
class TrayListModel : public wxDataViewVirtualListModel
{
public:
enum
{
Col_TrayTitle,
Col_TrayColor,
Col_TrayMeterial,
Col_TrayWeight,
Col_TrayDiameter,
Col_TrayTime,
Col_TraySN,
Col_TrayManufacturer,
Col_TraySaturability,
Col_TrayTransmittance,
Col_TraySmooth,
Col_Max,
};
TrayListModel();
virtual unsigned int GetColumnCount() const wxOVERRIDE
{
return Col_Max;
}
virtual wxString GetColumnType(unsigned int col) const wxOVERRIDE
{
return "string";
}
virtual void GetValueByRow(wxVariant& variant,
unsigned int row, unsigned int col) const wxOVERRIDE;
virtual bool GetAttrByRow(unsigned int row, unsigned int col,
wxDataViewItemAttr& attr) const wxOVERRIDE;
virtual bool SetValueByRow(const wxVariant& variant,
unsigned int row, unsigned int col) wxOVERRIDE;
void update(MachineObject* obj);
void clear_data();
private:
wxArrayString m_titleColValues;
wxArrayString m_colorColValues;
wxArrayString m_meterialColValues;
wxArrayString m_weightColValues;
wxArrayString m_diameterColValues;
wxArrayString m_timeColValues;
wxArrayString m_snColValues;
wxArrayString m_manufacturerColValues;
wxArrayString m_saturabilityColValues;
wxArrayString m_transmittanceColValues;
wxArrayString m_smoothColValues;
};
} // GUI
} // Slic3r
#endif /* slic3r_Tab_hpp_ */