mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
实现策略配置功能
This commit is contained in:
@@ -35,6 +35,8 @@ public:
|
||||
|
||||
void setCallbackConfirm(std::function<void()> callback) { callbackConfirm = callback; };
|
||||
|
||||
void setCallbackTextEvent(std::function<void(std::string, std::string)> callback) { callbackTextEvent = callback; };
|
||||
|
||||
void setStatus(std::string text);
|
||||
|
||||
void setMsg(std::string msg);
|
||||
@@ -44,11 +46,14 @@ public:
|
||||
Fields getChangedData();
|
||||
void checkChangedData(Fields& fields);
|
||||
|
||||
|
||||
void setLineGeometry(int wKey, int wVal, int h);
|
||||
|
||||
void setPrimaryKeys(std::vector<std::string> keys);
|
||||
|
||||
int widget() { return ui.widget; }
|
||||
|
||||
void resize(int width, int height);
|
||||
|
||||
std::string name;
|
||||
std::string status;
|
||||
|
||||
@@ -61,6 +66,11 @@ public:
|
||||
|
||||
struct {
|
||||
int widget;
|
||||
int bkg;
|
||||
int bkgL;
|
||||
int bkgR;
|
||||
int btnOK;
|
||||
int btnCancel;
|
||||
int title;
|
||||
int msg;
|
||||
} ui;
|
||||
@@ -68,6 +78,7 @@ public:
|
||||
std::map<std::string, std::shared_ptr<ParamLine>> mapLines;
|
||||
|
||||
std::function<void()> callbackConfirm = nullptr;
|
||||
std::function<void(std::string, std::string)> callbackTextEvent = nullptr;
|
||||
|
||||
Fields dataOrigin;
|
||||
Fields primaryKeys;
|
||||
|
||||
Reference in New Issue
Block a user