mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
56
src/slic3r/GUI/ConnectPrinter.hpp
Normal file
56
src/slic3r/GUI/ConnectPrinter.hpp
Normal file
|
@ -0,0 +1,56 @@
|
|||
#ifndef slic3r_GUI_ConnectPrinter_hpp_
|
||||
#define slic3r_GUI_ConnectPrinter_hpp_
|
||||
|
||||
#include "GUI.hpp"
|
||||
#include "GUI_Utils.hpp"
|
||||
#include <wx/artprov.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/sizer.h>
|
||||
#include <wx/bitmap.h>
|
||||
#include <wx/image.h>
|
||||
#include <wx/icon.h>
|
||||
#include <wx/statbmp.h>
|
||||
#include "Widgets/Button.hpp"
|
||||
#include "Widgets/TextInput.hpp"
|
||||
#include "DeviceManager.hpp"
|
||||
|
||||
namespace Slic3r { namespace GUI {
|
||||
class ConnectPrinterDialog : public DPIDialog
|
||||
{
|
||||
private:
|
||||
protected:
|
||||
wxStaticText * m_staticText_connection_code;
|
||||
TextInput * m_textCtrl_code;
|
||||
Button * m_button_confirm;
|
||||
wxStaticText* m_staticText_hints;
|
||||
wxStaticBitmap* m_bitmap_diagram;
|
||||
wxBitmap m_diagram_bmp;
|
||||
wxImage m_diagram_img;
|
||||
|
||||
MachineObject* m_obj;
|
||||
wxString m_input_access_code;
|
||||
public:
|
||||
ConnectPrinterDialog(wxWindow * parent,
|
||||
wxWindowID id = wxID_ANY,
|
||||
const wxString &title = wxEmptyString,
|
||||
const wxPoint & pos = wxDefaultPosition,
|
||||
const wxSize & size = wxDefaultSize,
|
||||
long style = wxCLOSE_BOX | wxCAPTION);
|
||||
|
||||
~ConnectPrinterDialog();
|
||||
|
||||
void init_bitmap();
|
||||
void set_machine_object(MachineObject* obj);
|
||||
void on_input_enter(wxCommandEvent& evt);
|
||||
void on_button_confirm(wxCommandEvent &event);
|
||||
void on_dpi_changed(const wxRect &suggested_rect) override;
|
||||
};
|
||||
}} // namespace Slic3r::GUI
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue