7#ifndef WINDOW_MODEL_BASE_H
8#define WINDOW_MODEL_BASE_H
11#include <QStandardItemModel>
27 QMimeData *
mimeData (
const QModelIndexList &indexes)
const;
42 int fold2dIndexes (
int row,
47 void selectionAsTable (
int &rowLow,
51 QVector<QString> &table)
const;
ExportDelimiter
Delimiter values that may or may not be overridden by DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CS...
QString selectionAsText(ExportDelimiter delimiter) const
Convert the selection into exportable text which is good for text editors.
virtual ~WindowModelBase()
void setView(WindowTable &view)
Save the view so this class can access the current selection.
QMimeData * mimeData(const QModelIndexList &indexes) const
Support dragging of multiple cells.
QString selectionAsHtml() const
Convert the selection into exportable html which is good for spreadsheets.
void setDelimiter(ExportDelimiter delimiter)
Save output delimiter.
WindowModelBase()
Single constructor.
Table view class with support for both drag-and-drop and copy-and-paste.