Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_data_source.hh
- This file was copied from source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.hh.
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "BKE_geometry_set.hh" | #include <mutex> | ||||
| #include "BLI_resource_scope.hh" | #include "BLI_function_ref.hh" | ||||
| #include "BLI_map.hh" | |||||
| #include "BLI_string_ref.hh" | |||||
| #include "spreadsheet_column_layout.hh" | #include "DNA_space_types.h" | ||||
| struct bContext; | #include "spreadsheet_column.hh" | ||||
| #include "spreadsheet_column_values.hh" | |||||
| namespace blender::ed::spreadsheet { | namespace blender::ed::spreadsheet { | ||||
| void spreadsheet_columns_from_geometry(const bContext *C, | class DataSource { | ||||
| Object *object_eval, | public: | ||||
| SpreadsheetColumnLayout &column_layout, | virtual ~DataSource() = default; | ||||
| ResourceScope &scope); | virtual void foreach_default_column_ids(FunctionRef<void(const SpreadsheetColumnID &)> fn) const; | ||||
| virtual std::unique_ptr<ColumnValues> get_column_values( | |||||
| const SpreadsheetColumnID &column_id) const; | |||||
| virtual int tot_rows() const; | |||||
HooglyBoogly: It would be nice to add some more background for each of these functions, especially since it's… | |||||
Done Inline ActionsTrue. JacquesLucke: True. | |||||
| }; | |||||
| } // namespace blender::ed::spreadsheet | } // namespace blender::ed::spreadsheet | ||||
It would be nice to add some more background for each of these functions, especially since it's meant to be easy to add more data sources in the future.
I think here would be the place?