PIVariantEdit ready but widgets fullEditMode

This commit is contained in:
2022-12-16 16:26:16 +03:00
parent 4bb4e87cc2
commit ed9b4a950c
10 changed files with 413 additions and 51 deletions

View File

@@ -32,6 +32,7 @@ class QGridLayout;
class QToolButton;
class PIVariantEdit;
class PIValueTreeEditParameters;
class PIValueTreeEditReorder;
namespace Ui {
class PIValueTreeEditArray;
}
@@ -87,6 +88,7 @@ private:
void add(const PIValueTree & vt, QWidget * w, bool is_group = false);
int beginRow(const PIValueTree & vt, bool is_group);
void rename(QString prev_name, QString new_name);
void reorder(const PIMap<int, int> & map) { simplify(map); }
void clear();
void changed();
@@ -94,7 +96,7 @@ private:
QToolButton * button_add;
private:
void simplify();
void simplify(const PIMap<int, int> & map = PIMap<int, int>());
int row_count = 0;
QGridLayout * lay = nullptr;
@@ -107,10 +109,12 @@ private:
QWidget * widget_array = nullptr;
PIValueTreeEditParameters * widget_params;
PIValueTreeEditReorder * widget_reorder;
PIStringList root_path;
PIVector<PIVariantEdit *> array_edits;
PIMap<PIString, PIVariantEdit *> value_edits;
PIMap<PIString, PIValueTreeEdit *> tree_edits;
PIMap<PIString, QLabel *> comm_labels;
Ui::PIValueTreeEditArray * ui_array;
GridWidgets * grid = nullptr;
mutable PIValueTree source;