mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -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
71
src/slic3r/GUI/PublishDialog.hpp
Normal file
71
src/slic3r/GUI/PublishDialog.hpp
Normal file
|
@ -0,0 +1,71 @@
|
|||
#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_ */
|
Loading…
Add table
Add a link
Reference in a new issue