mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-22 18:32:16 +00:00
CrealityPrint: add custom send dialog boilerplate
Add CrealityPrintHostSendDialog scaffolding: an empty dialog class that inherits from PrintHostSendDialog, and Plater wiring to use it when the host type is CrealityPrint. Signed-off-by: Igor Mammedov <niallain@gmail.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "NotificationManager.hpp"
|
||||
#include "ExtraRenderers.hpp"
|
||||
#include "format.hpp"
|
||||
#include "../Utils/CrealityPrint.hpp"
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
@@ -952,4 +953,25 @@ void ElegooPrintHostSendDialog::refresh()
|
||||
this->Fit();
|
||||
}
|
||||
|
||||
CrealityPrintHostSendDialog::CrealityPrintHostSendDialog(const fs::path& path,
|
||||
PrintHostPostUploadActions post_actions,
|
||||
const wxArrayString& groups,
|
||||
const wxArrayString& storage_paths,
|
||||
const wxArrayString& storage_names,
|
||||
bool switch_to_device_tab,
|
||||
PrintHost* printhost)
|
||||
: PrintHostSendDialog(path, post_actions, groups, storage_paths, storage_names, switch_to_device_tab)
|
||||
, m_printhost(printhost)
|
||||
{}
|
||||
|
||||
void CrealityPrintHostSendDialog::init()
|
||||
{
|
||||
PrintHostSendDialog::init();
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> CrealityPrintHostSendDialog::extendedInfo() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user