Files
nekoray/ui/edit/profile_editor.h
2022-08-08 11:11:25 +08:00

22 lines
440 B
C++

#pragma once
#include <QPushButton>
#include "db/ProxyEntity.hpp"
#include "main/GuiUtils.hpp"
class ProfileEditor {
public:
virtual void onStart(QSharedPointer<NekoRay::ProxyEntity> ent) = 0;
virtual bool onEnd() = 0;
std::function<QWidget *()> get_edit_dialog;
// cached editor
std::function<void()> editor_cache_updated;
virtual QList<QPair<QPushButton *, QString>> get_editor_cached() { return {}; };
};