2022-07-15 15:37:19 +00:00
|
|
|
#ifndef slic3r_GUI_ReleaseNote_hpp_
|
|
|
|
#define slic3r_GUI_ReleaseNote_hpp_
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/intl.h>
|
|
|
|
#include <wx/collpane.h>
|
|
|
|
#include <wx/dataview.h>
|
|
|
|
#include <wx/artprov.h>
|
|
|
|
#include <wx/xrc/xmlres.h>
|
|
|
|
#include <wx/dataview.h>
|
|
|
|
#include <wx/gdicmn.h>
|
|
|
|
#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/hyperlink.h>
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include <wx/popupwin.h>
|
|
|
|
#include <wx/spinctrl.h>
|
|
|
|
#include <wx/artprov.h>
|
|
|
|
#include <wx/wrapsizer.h>
|
|
|
|
|
|
|
|
#include "AmsMappingPopup.hpp"
|
|
|
|
#include "GUI_Utils.hpp"
|
|
|
|
#include "wxExtensions.hpp"
|
|
|
|
#include "DeviceManager.hpp"
|
|
|
|
#include "Widgets/Label.hpp"
|
|
|
|
#include "Widgets/Button.hpp"
|
|
|
|
#include "Widgets/CheckBox.hpp"
|
|
|
|
#include "Widgets/ComboBox.hpp"
|
|
|
|
#include "Widgets/ScrolledWindow.hpp"
|
|
|
|
#include <wx/hashmap.h>
|
|
|
|
|
|
|
|
namespace Slic3r { namespace GUI {
|
|
|
|
|
|
|
|
class ReleaseNoteDialog : public DPIDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ReleaseNoteDialog(Plater *plater = nullptr);
|
|
|
|
~ReleaseNoteDialog();
|
|
|
|
|
|
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
2022-08-11 08:08:29 +00:00
|
|
|
void update_release_note(wxString release_note, std::string version);
|
2022-07-15 15:37:19 +00:00
|
|
|
|
|
|
|
wxStaticText * m_text_up_info{nullptr};
|
|
|
|
wxScrolledWindow *m_scrollwindw_release_note {nullptr};
|
|
|
|
};
|
|
|
|
|
2022-07-22 09:46:10 +00:00
|
|
|
class UpdateVersionDialog : public DPIDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UpdateVersionDialog(wxWindow *parent = nullptr);
|
|
|
|
~UpdateVersionDialog();
|
|
|
|
|
|
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
|
|
|
void update_version_info(wxString release_note, wxString version);
|
|
|
|
|
|
|
|
wxStaticText * m_text_up_info{nullptr};
|
|
|
|
wxScrolledWindow *m_scrollwindw_release_note{nullptr};
|
|
|
|
wxBoxSizer * sizer_text_release_note{nullptr};
|
|
|
|
wxStaticText * m_staticText_release_note{nullptr};
|
|
|
|
};
|
|
|
|
|
2022-07-15 15:37:19 +00:00
|
|
|
}} // namespace Slic3r::GUI
|
|
|
|
|
|
|
|
#endif
|