mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] Copy/Cut events on the values controller turn the "(1;3)"
notation into "[[1][3]]" in order to create a matrix layout when paste into a layout field
This commit is contained in:
committed by
LeaNumworks
parent
c982b4c452
commit
ff6eb7525f
@@ -12,19 +12,19 @@ ValuesController::ValuesController(Responder * parentResponder, ButtonRowControl
|
||||
ButtonRowDelegate(header, nullptr),
|
||||
m_numberOfColumns(0),
|
||||
m_numberOfColumnsNeedUpdate(true),
|
||||
m_selectableTableView(this),
|
||||
m_abscissaParameterController(this)
|
||||
{
|
||||
m_selectableTableView.setVerticalCellOverlap(0);
|
||||
m_selectableTableView.setMargins(k_margin, k_scrollBarMargin, k_scrollBarMargin, k_margin);
|
||||
m_selectableTableView.setBackgroundColor(Palette::WallScreenDark);
|
||||
}
|
||||
|
||||
void ValuesController::setupAbscissaCellsAndTitleCells(InputEventHandlerDelegate * inputEventHandlerDelegate) {
|
||||
void ValuesController::setupSelectableTableViewAndCells(InputEventHandlerDelegate * inputEventHandlerDelegate) {
|
||||
selectableTableView()->setVerticalCellOverlap(0);
|
||||
selectableTableView()->setMargins(k_margin, k_scrollBarMargin, k_scrollBarMargin, k_margin);
|
||||
selectableTableView()->setBackgroundColor(Palette::WallScreenDark);
|
||||
|
||||
int numberOfAbscissaCells = abscissaCellsCount();
|
||||
for (int i = 0; i < numberOfAbscissaCells; i++) {
|
||||
EvenOddEditableTextCell * c = abscissaCells(i);
|
||||
c->setParentResponder(&m_selectableTableView);
|
||||
c->setParentResponder(selectableTableView());
|
||||
c->editableTextCell()->textField()->setDelegates(inputEventHandlerDelegate, this);
|
||||
c->editableTextCell()->textField()->setFont(k_font);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user