mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			71 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef slic3r_PublishDialog_hpp_
 | |
| #define slic3r_PublishDialog_hpp_
 | |
| 
 | |
| 
 | |
| #include "I18N.hpp"
 | |
| 
 | |
| #include <wx/font.h>
 | |
| #include <wx/colour.h>
 | |
| #include <wx/settings.h>
 | |
| #include <wx/string.h>
 | |
| #include <wx/sizer.h>
 | |
| #include <wx/stattext.h>
 | |
| #include <wx/gauge.h>
 | |
| #include <wx/button.h>
 | |
| #include <wx/bitmap.h>
 | |
| #include <wx/image.h>
 | |
| #include <wx/icon.h>
 | |
| #include <wx/dialog.h>
 | |
| #include "wxExtensions.hpp"
 | |
| #include "Plater.hpp"
 | |
| #include "Widgets/StepCtrl.hpp"
 | |
| #include "Widgets/ProgressDialog.hpp"
 | |
| #include "Widgets/Button.hpp"
 | |
| #include "Widgets/ProgressBar.hpp"
 | |
| 
 | |
| 
 | |
| namespace Slic3r {
 | |
| namespace GUI {
 | |
| 
 | |
| enum PublishStep {
 | |
|     STEP_SLICING = 0,
 | |
|     STEP_PACKING,
 | |
|     STEP_UPLOADING,
 | |
|     STEP_FILL_INFO,
 | |
|     STEP_PUBLISH_COUNT,
 | |
| };
 | |
| 
 | |
| class PublishDialog : public DPIDialog
 | |
| {
 | |
| public:
 | |
|     PublishDialog(Plater* plater = nullptr);
 | |
| 
 | |
|     bool UpdateStatus(wxString &msg, int percent = -1, bool yeild = true);
 | |
|     void Pulse(wxString &msg, bool &skip);
 | |
|     void SetPublishStep(PublishStep step, bool yeild = false, int percent = -1);
 | |
|     void start_slicing();
 | |
|     void reset();
 | |
|     bool was_cancelled() { return m_was_cancelled; }
 | |
|     void cancel();
 | |
| 
 | |
| protected:
 | |
|     wxPanel*     m_step_panel;
 | |
|     ::StepIndicator *m_publish_steps;
 | |
|     wxStaticText *m_text_note;
 | |
|     wxStaticText *m_text_progress;
 | |
|     ProgressBar  *m_progress;
 | |
|     Button*       m_btn_cancel;
 | |
|     wxStaticText *m_text_errors;
 | |
|     Plater *      m_plater{nullptr};
 | |
|     bool          m_was_cancelled { false };
 | |
| 
 | |
|     wxBoxSizer* create_publish_step_sizer();
 | |
|     void on_close(wxCloseEvent &event);
 | |
|     void on_dpi_changed(const wxRect &suggested_rect) override;
 | |
| };
 | |
| 
 | |
| } // GUI
 | |
| } // Slic3r
 | |
| 
 | |
| 
 | |
| #endif  /* slic3r_BedShapeDialog_hpp_ */
 | 
