dlxjj/imradv3
0262
1// Generated with ImRAD 0.92// github.com/xyz3 4#pragma once5#include <string>6#include <functional>7#include <imgui.h>8#include "imrad.h"9#include "cppgen.h"10 11class BindingDlg12{13public:14 /// @begin interface15 void OpenPopup(std::function<void(ImRad::ModalResult)> clb = [](ImRad::ModalResult){});16 void ClosePopup(ImRad::ModalResult mr = ImRad::Cancel);17 void Draw();18 19 void OnNewField();20 void OnVarClicked();21 int OnTextInputFilter(ImGuiInputTextCallbackData& args);22 void Refresh();23 24 std::string name;25 std::string expr;26 std::string type;27 CppGen* codeGen;28 std::string curArray;29 bool forceReference;30 ImFont* font = nullptr;31 /// @end interface32 33private:34 /// @begin impl35 void ResetLayout();36 void Init();37 38 void OkButton_Change();39 40 ImGuiID ID = 0;41 ImRad::ModalResult modalResult;42 std::function<void(ImRad::ModalResult)> callback;43 bool showAll;44 std::vector<std::pair<std::string,std::string>> vars;45 bool focusExpr = false;46 ImRad::HBox hb1;47 ImRad::HBox hb3;48 ImRad::HBox hb5;49 /// @end impl50};51 52extern BindingDlg bindingDlg;53 