File size: 690 Bytes
17f5b5c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
#pragma once
// Generated with imgui-designer 0.1
// github.com/xyz
#include <string>
#include <functional>
#include <imgui.h>
#include "cppgen.h"
class ClassWizard
{
public:
void OpenPopup();
void ClosePopup();
void Draw();
public:
CppGen* codeGen;
UINode* root;
bool* modified;
private:
void Refresh();
void FindUsed(UINode* node, std::vector<std::string>& used);
std::string varName;
std::string className;
std::vector<std::string> stypes;
std::vector<CppGen::Var> fields;
std::vector<std::string> used;
size_t stypeIdx;
int selRow;
private:
ImGuiID ID;
bool requestClose;
};
extern ClassWizard classWizard;
|