Engauge Digitizer 2
|
Model for WindowTable. More...
#include <WindowModelBase.h>
Public Member Functions | |
WindowModelBase () | |
Single constructor. | |
virtual | ~WindowModelBase () |
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. | |
QString | selectionAsText (ExportDelimiter delimiter) const |
Convert the selection into exportable text which is good for text editors. | |
void | setDelimiter (ExportDelimiter delimiter) |
Save output delimiter. | |
void | setView (WindowTable &view) |
Save the view so this class can access the current selection. |
Model for WindowTable.
Definition at line 18 of file WindowModelBase.h.
WindowModelBase::WindowModelBase | ( | ) |
Single constructor.
Definition at line 16 of file WindowModelBase.cpp.
|
virtual |
Definition at line 21 of file WindowModelBase.cpp.
QMimeData * WindowModelBase::mimeData | ( | const QModelIndexList & | indexes | ) | const |
Support dragging of multiple cells.
Without this only one cell can be copied by dragging. Clipboard copying is handled elsewhere in the window class
Definition at line 34 of file WindowModelBase.cpp.
QString WindowModelBase::selectionAsHtml | ( | ) | const |
Convert the selection into exportable html which is good for spreadsheets.
Definition at line 48 of file WindowModelBase.cpp.
QString WindowModelBase::selectionAsText | ( | ExportDelimiter | delimiter | ) | const |
Convert the selection into exportable text which is good for text editors.
Definition at line 132 of file WindowModelBase.cpp.
void WindowModelBase::setDelimiter | ( | ExportDelimiter | delimiter | ) |
Save output delimiter.
Definition at line 164 of file WindowModelBase.cpp.
void WindowModelBase::setView | ( | WindowTable & | view | ) |
Save the view so this class can access the current selection.
Definition at line 169 of file WindowModelBase.cpp.