Files
OrcaSlicer/src/slic3r/GUI/PublishDialog.hpp
T
HanifKoh 1a5f91d727 Add Missing Includes Across src/slic3r/GUI (#16048)
* Add Missing Includes Across src/slic3r/GUI

Every GUI source and header now directly includes the headers declaring what it uses, rather than relying on the precompiled header or transitive includes. Generated with clang-tidy misc-include-cleaner, plus one hand edit making CalibrationPanel.hpp self-contained.

* Drop the OS-Specific Includes Added Outside Their Platform Guards

GLib, GTK, D-Bus and POSIX headers are only used inside platform #if blocks, which already include them. Added unconditionally at the top of the file they broke the Windows build.

* Add the clang-tidy Configuration That Generated These Includes

Only misc-include-cleaner's missing-include check, with the headers it must never suggest: per-platform, internal and OS-specific ones that would break other platforms or are not meant to be included directly.

* Match Windows Paths in the clang-tidy Ignore List

Header paths use backslashes on Windows, so every / in a pattern is now [/\\]. The Windows SDK headers are ignored alongside the other OS-specific ones, and the list is one pattern per line. Suggested by @raistlin7447 from a Windows clang-cl run.
2026-10-02 14:56:56 +08:00

76 lines
1.7 KiB
C++

#ifndef slic3r_PublishDialog_hpp_
#define slic3r_PublishDialog_hpp_
#include "I18N.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
#include <wx/event.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/panel.h>
#include <wx/gdicmn.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_ */