#include <SheetTableView.h>
◆ SheetTableView()
SheetTableView::SheetTableView |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
References actionBind, actionCopy, actionCut, actionDel, actionMerge, actionPaste, actionSplit, cellProperties(), draftgeoutils.intersections::connect(), contextMenu, copySelection(), cutSelection(), deleteSelection(), insertColumns(), insertColumnsAfter(), insertRows(), insertRowsAfter(), mergeCells(), onBind(), onConfSetup(), onRecompute(), pasteClipboard(), removeColumns(), removeRows(), and splitCell().
◆ ~SheetTableView()
SheetTableView::~SheetTableView |
( |
| ) |
|
◆ cellProperties
void SheetTableView::cellProperties |
( |
| ) |
|
|
protectedslot |
◆ closeEditor()
void SheetTableView::closeEditor |
( |
QWidget * |
editor, |
|
|
QAbstractItemDelegate::EndEditHint |
hint |
|
) |
| |
|
protected |
◆ commitData
void SheetTableView::commitData |
( |
QWidget * |
editor | ) |
|
|
protectedslot |
◆ contextMenuEvent()
void SheetTableView::contextMenuEvent |
( |
QContextMenuEvent * |
e | ) |
|
|
protected |
References actionBind, actionCopy, actionCut, actionDel, actionMerge, actionPaste, actionSplit, contextMenu, Spreadsheet::Sheet::isMergedCell(), selectedIndexesRaw(), selectedRanges(), and sheet.
◆ copySelection
void SheetTableView::copySelection |
( |
| ) |
|
|
slot |
◆ cutSelection
void SheetTableView::cutSelection |
( |
| ) |
|
|
slot |
◆ deleteSelection
void SheetTableView::deleteSelection |
( |
| ) |
|
|
slot |
◆ edit() [1/2]
void SheetTableView::edit |
( |
const QModelIndex & |
index | ) |
|
◆ edit() [2/2]
bool SheetTableView::edit |
( |
const QModelIndex & |
index, |
|
|
EditTrigger |
trigger, |
|
|
QEvent * |
event |
|
) |
| |
|
protected |
◆ event()
◆ finishEditWithMove
void SheetTableView::finishEditWithMove |
( |
int |
keyPressed, |
|
|
Qt::KeyboardModifiers |
modifiers, |
|
|
bool |
handleTabMotion = false |
|
) |
| |
|
slot |
References Spreadsheet::Sheet::getAnchor(), Spreadsheet::Sheet::getCell(), Spreadsheet::Sheet::getCells(), Spreadsheet::PropertySheet::getNonEmptyCells(), Spreadsheet::Sheet::getSpans(), Spreadsheet::Sheet::isMergedCell(), Spreadsheet::Cell::isUsed(), ModifyBlockSelection(), sheet, and tabCounter.
Referenced by SpreadsheetGui::SheetView::editingFinishedWithKey(), and event().
◆ insertColumns
void SheetTableView::insertColumns |
( |
| ) |
|
|
protectedslot |
◆ insertColumnsAfter
void SheetTableView::insertColumnsAfter |
( |
| ) |
|
|
protectedslot |
◆ insertRows
void SheetTableView::insertRows |
( |
| ) |
|
|
protectedslot |
◆ insertRowsAfter
void SheetTableView::insertRowsAfter |
( |
| ) |
|
|
protectedslot |
◆ mergeCells
void SheetTableView::mergeCells |
( |
| ) |
|
|
slot |
◆ ModifyBlockSelection
void SheetTableView::ModifyBlockSelection |
( |
int |
targetRow, |
|
|
int |
targetColumn |
|
) |
| |
|
slot |
◆ mousePressEvent()
void SheetTableView::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
◆ onBind
void SheetTableView::onBind |
( |
| ) |
|
|
protectedslot |
◆ onConfSetup
void SheetTableView::onConfSetup |
( |
| ) |
|
|
protectedslot |
◆ onRecompute
void SheetTableView::onRecompute |
( |
| ) |
|
|
protectedslot |
◆ pasteClipboard
void SheetTableView::pasteClipboard |
( |
| ) |
|
|
slot |
References Spreadsheet::Sheet::clear(), App::CellAddress::col(), App::Application::getActiveDocument(), App::GetApplication(), Spreadsheet::Sheet::getCells(), Spreadsheet::Sheet::getCopyOrCutRange(), Gui::getMainWindow(), Spreadsheet::PropertySheet::pasteCells(), App::Document::recompute(), App::CellAddress::row(), selectedRanges(), and sheet.
Referenced by event(), SpreadsheetGui::SheetView::onMsg(), and SheetTableView().
◆ removeColumns
void SheetTableView::removeColumns |
( |
| ) |
|
|
protectedslot |
◆ removeRows
void SheetTableView::removeRows |
( |
| ) |
|
|
protectedslot |
◆ selectedIndexesRaw()
QModelIndexList SheetTableView::selectedIndexesRaw |
( |
| ) |
const |
◆ selectedRanges()
std::vector< Range > SheetTableView::selectedRanges |
( |
| ) |
const |
References Spreadsheet::Sheet::getCells(), Spreadsheet::PropertySheet::hasSpan(), and sheet.
Referenced by cellProperties(), contextMenuEvent(), copySelection(), cutSelection(), deleteSelection(), onBind(), onConfSetup(), onRecompute(), pasteClipboard(), and SpreadsheetGui::SheetView::selectedRanges().
◆ selectionChanged()
void SheetTableView::selectionChanged |
( |
const QItemSelection & |
selected, |
|
|
const QItemSelection & |
deselected |
|
) |
| |
|
protected |
◆ setSheet()
◆ splitCell
void SheetTableView::splitCell |
( |
| ) |
|
|
slot |
◆ toHtml()
QString SheetTableView::toHtml |
( |
| ) |
const |
◆ updateCellSpan
◆ actionBind
QAction* SpreadsheetGui::SheetTableView::actionBind |
|
protected |
◆ actionCopy
QAction* SpreadsheetGui::SheetTableView::actionCopy |
|
protected |
◆ actionCut
QAction* SpreadsheetGui::SheetTableView::actionCut |
|
protected |
◆ actionDel
QAction* SpreadsheetGui::SheetTableView::actionDel |
|
protected |
◆ actionMerge
QAction* SpreadsheetGui::SheetTableView::actionMerge |
|
protected |
◆ actionPaste
QAction* SpreadsheetGui::SheetTableView::actionPaste |
|
protected |
◆ actionSplit
QAction* SpreadsheetGui::SheetTableView::actionSplit |
|
protected |
◆ cellSpanChangedConnection
boost::signals2::scoped_connection SpreadsheetGui::SheetTableView::cellSpanChangedConnection |
|
protected |
◆ contextMenu
QMenu* SpreadsheetGui::SheetTableView::contextMenu |
|
protected |
◆ currentEditIndex
QModelIndex SpreadsheetGui::SheetTableView::currentEditIndex |
|
protected |
◆ sheet
Referenced by cellProperties(), contextMenuEvent(), deleteSelection(), event(), finishEditWithMove(), insertColumns(), insertColumnsAfter(), insertRows(), insertRowsAfter(), onBind(), onConfSetup(), onRecompute(), pasteClipboard(), removeColumns(), removeRows(), selectedRanges(), setSheet(), TestSpreadsheetGui.SpreadsheetGuiCases::testCopySingleCell(), toHtml(), and updateCellSpan().
◆ tabCounter
int SpreadsheetGui::SheetTableView::tabCounter |
|
protected |
The documentation for this class was generated from the following files:
- FreeCAD/src/Mod/Spreadsheet/Gui/SheetTableView.h
- FreeCAD/src/Mod/Spreadsheet/Gui/SheetTableView.cpp