add ppbr export dialog, implement text input focus
This commit is contained in:
32
src/node_dialog_export_ppbr.cpp
Normal file
32
src/node_dialog_export_ppbr.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "pch.h"
|
||||
#include "log.h"
|
||||
#include "node_dialog_export_ppbr.h"
|
||||
|
||||
Node* NodeDialogExportPPBR::clone_instantiate() const
|
||||
{
|
||||
return new NodeDialogExportPPBR();
|
||||
}
|
||||
|
||||
void NodeDialogExportPPBR::clone_finalize(Node* dest) const
|
||||
{
|
||||
NodeDialogExportPPBR* n = static_cast<NodeDialogExportPPBR*>(dest);
|
||||
n->init_controls();
|
||||
}
|
||||
|
||||
void NodeDialogExportPPBR::init()
|
||||
{
|
||||
auto tpl = static_cast<const NodeBorder*>(init_template("dialog-brush-upload"));
|
||||
m_color = tpl->m_color;
|
||||
m_border_color = tpl->m_border_color;;
|
||||
m_thinkness = tpl->m_thinkness;;
|
||||
init_controls();
|
||||
}
|
||||
|
||||
void NodeDialogExportPPBR::init_controls()
|
||||
{
|
||||
btn_ok = find<NodeButton>("btn-ok");
|
||||
btn_cancel = find<NodeButton>("btn-cancel");
|
||||
btn_cancel->on_click = [this](Node*) {
|
||||
destroy();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user