Unverified Commit d23fdc28 authored by Pete Peterson's avatar Pete Peterson Committed by GitHub
Browse files

Merge pull request #22961 from mantidproject/22917_setCellUpdateMantidPlot

ITableWorkspace now updates GUI when data changed via Python
parents 19664d0a 84f6bc09
......@@ -86,6 +86,7 @@ API::Column_sptr TableWorkspace::addColumn(const std::string &type,
ss << e.what() << '\n';
throw std::invalid_argument(ss.str());
}
modified();
return c;
}
......@@ -153,6 +154,7 @@ void TableWorkspace::removeColumn(const std::string &name) {
}
m_columns.erase(ci);
}
modified();
}
/** @param index :: Points where to insert the new row.
......@@ -164,6 +166,7 @@ size_t TableWorkspace::insertRow(size_t index) {
for (auto &column : m_columns)
insertInColumn(column.get(), index);
++m_rowCount;
modified();
return index;
}
......@@ -178,6 +181,7 @@ void TableWorkspace::removeRow(size_t index) {
for (auto &column : m_columns)
removeFromColumn(column.get(), index);
--m_rowCount;
modified();
}
std::vector<std::string> TableWorkspace::getColumnNames() const {
......@@ -196,6 +200,7 @@ void TableWorkspace::addColumn(boost::shared_ptr<API::Column> column) {
ss << "Column with name " << column->name() << " already exists.\n";
throw std::invalid_argument(ss.str());
} else {
modified();
m_columns.push_back(column);
}
}
......@@ -272,6 +277,7 @@ void TableWorkspace::sort(std::vector<std::pair<std::string, bool>> &criteria) {
for (size_t i = 0; i < nCols; ++i) {
getColumn(i)->sortValues(indexVec);
}
modified();
}
/// Clone the workspace keeping only selected columns.
......
......@@ -233,8 +233,8 @@ void setPlotType(ITableWorkspace &self, const bpl::object &column, int ptype) {
} else {
colptr = self.getColumn(extract<int>(column)());
}
colptr->setPlotType(ptype);
self.modified();
}
/**
......@@ -452,6 +452,7 @@ void setCell(ITableWorkspace &self, const bpl::object &col_or_row,
int row(-1);
getCellLoc(self, col_or_row, row_or_col, column, row);
setValue(column, row, value);
self.modified();
}
} // namespace
......
File mode changed from 100644 to 100755
......@@ -12,3 +12,11 @@ UI & Usability Changes
- Added time standard deviation to the sample log dialog
:ref:`Release 3.14.0 <v3.14.0>`
MantidPlot
----------
BugFixes
########
- Fixed issue where an open set of data from ITableWorkspace wouldn't update if the data was changed via python
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment