Chrysalis - CLO3D DevTools Extension
Toggle main menu visibility
Loading...
Searching...
No Matches
JsonUIExporter.h
Go to the documentation of this file.
1
#ifndef CHRYSALIS_JSONUIEXPORTER_H
2
#define CHRYSALIS_JSONUIEXPORTER_H
3
4
#include <memory>
5
#include <forward_list>
6
7
#include <QWidget>
8
#include <QObject>
9
#include <QJsonObject>
10
11
#include "BaseTask.h"
12
#include "
BaseUIExporter.h
"
13
#include "
BaseUIExporterOptions.h
"
14
#include "
JsonUIExporterOptions.h
"
15
16
namespace
CLO3D
{
17
class
JsonUIExporter
:
public
BaseUIExporter
{
18
public
:
19
explicit
JsonUIExporter
(std::unique_ptr<JsonUIExporterOptions> options);
20
21
static
JsonUIExporter
*
create
();
22
23
void
exportUI
(std::forward_list<QWidget*>&& widgets)
override
;
24
BaseUIExporterOptions
*
getOptions
()
override
;
25
private
:
26
QJsonObject getWidgetJson(
const
QWidget* widget);
27
static
QJsonObject getObjectJson(
const
QObject*
object
);
28
29
std::unique_ptr<JsonUIExporterOptions> options_;
30
};
31
}
32
33
#endif
//CHRYSALIS_JSONUIEXPORTER_H
BaseUIExporterOptions.h
BaseUIExporter.h
JsonUIExporterOptions.h
CLO3D::BaseUIExporterOptions
Definition
BaseUIExporterOptions.h:7
CLO3D::BaseUIExporter
Definition
BaseUIExporter.h:10
CLO3D::JsonUIExporter::create
static JsonUIExporter * create()
Definition
JsonUIExporter.cpp:24
CLO3D::JsonUIExporter::getOptions
BaseUIExporterOptions * getOptions() override
Definition
JsonUIExporter.cpp:46
CLO3D::JsonUIExporter::exportUI
void exportUI(std::forward_list< QWidget * > &&widgets) override
Definition
JsonUIExporter.cpp:28
CLO3D::JsonUIExporter::JsonUIExporter
JsonUIExporter(std::unique_ptr< JsonUIExporterOptions > options)
Definition
JsonUIExporter.cpp:20
CLO3D
Definition
BaseDevTool.h:6
integrations
clo3d
extensions
dev-tools
include
JsonUIExporter.h
Generated by
1.17.0