2018-04-09 15:03:37 +00:00
|
|
|
#ifndef slic3r_GUI_AboutDialog_hpp_
|
|
|
|
#define slic3r_GUI_AboutDialog_hpp_
|
|
|
|
|
|
|
|
#include "GUI.hpp"
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/intl.h>
|
|
|
|
#include <wx/html/htmlwin.h>
|
|
|
|
|
2019-04-18 13:05:17 +00:00
|
|
|
#include "GUI_Utils.hpp"
|
|
|
|
#include "wxExtensions.hpp"
|
|
|
|
|
2018-04-09 15:03:37 +00:00
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
class AboutDialogLogo : public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AboutDialogLogo(wxWindow* parent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxBitmap logo;
|
|
|
|
void onRepaint(wxEvent &event);
|
|
|
|
};
|
|
|
|
|
2019-04-18 13:05:17 +00:00
|
|
|
class AboutDialog : public DPIDialog
|
2018-04-09 15:03:37 +00:00
|
|
|
{
|
2019-04-18 13:05:17 +00:00
|
|
|
PrusaBitmap m_logo_bitmap;
|
|
|
|
wxHtmlWindow* m_html;
|
|
|
|
wxStaticBitmap* m_logo;
|
2018-04-09 15:03:37 +00:00
|
|
|
public:
|
|
|
|
AboutDialog();
|
2019-04-18 13:05:17 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
2018-04-09 15:03:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void onLinkClicked(wxHtmlLinkEvent &event);
|
|
|
|
void onCloseDialog(wxEvent &);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace GUI
|
|
|
|
} // namespace Slic3r
|
|
|
|
|
|
|
|
#endif
|