7 #include <QTreeWidgetItem>
10 #include <SimoxUtility/algorithm/string/string_conversion.h>
29 QTreeWidgetItem* currentWidget);
35 void setText(
long row,
long col,
const std::string&
str);
36 std::string
getText(
long row,
long col);
40 std::vector<unsigned char>
parseElement(
long row,
long col);
49 static constexpr
long MAX_ROWS_DISPLAY = 5;
50 static constexpr
long MAX_COLS_DISPLAY = 5;
51 long getDisplayedRows()
const;
52 long getDisplayedCols()
const;
55 QVBoxLayout* outerVerticalLayout;
56 QHBoxLayout* innerHorizontalLayout;
59 std::vector<QLineEdit*> dispElements;
61 std::vector<std::vector<std::string>> hiddenElems;
64 static std::vector<unsigned char> toByteVector(
const std::string&
str);
71 void matrixElementChanged();
75 std::vector<unsigned char>
76 EditMatrixWidget::toByteVector(
const std::string&
str)
78 auto val = simox::alg::to_<T>(
str);
79 std::vector<unsigned char> res(
sizeof(val), 0);
80 *
reinterpret_cast<T*
>(res.data()) = val;