7 #include <QTreeWidgetItem>
27 QTreeWidgetItem* currentWidget);
33 void setText(
long row,
long col,
const std::string&
str);
34 std::string
getText(
long row,
long col);
38 std::vector<unsigned char>
parseElement(
long row,
long col);
47 static constexpr
long MAX_ROWS_DISPLAY = 5;
48 static constexpr
long MAX_COLS_DISPLAY = 5;
49 long getDisplayedRows()
const;
50 long getDisplayedCols()
const;
53 QVBoxLayout* outerVerticalLayout;
54 QHBoxLayout* innerHorizontalLayout;
57 std::vector<QLineEdit*> dispElements;
59 std::vector<std::vector<std::string>> hiddenElems;
62 static std::vector<unsigned char> toByteVector(
const std::string&
str);
69 void matrixElementChanged();
73 std::vector<unsigned char>
74 EditMatrixWidget::toByteVector(
const std::string&
str)
76 auto val = simox::alg::to_<T>(
str);
77 std::vector<unsigned char> res(
sizeof(val), 0);
78 *
reinterpret_cast<T*
>(res.data()) = val;