#include <SheetTableView.h>
Public Member Functions | |
void copySelection () | |
void cutSelection () | |
void deleteSelection () | |
void edit (const QModelIndex &index) | |
void pasteClipboard () | |
std::vector< App::Range > selectedRanges () const | |
void setSheet (Spreadsheet::Sheet *_sheet) | |
SheetTableView (QWidget *parent=0) | |
~SheetTableView () | |
Protected Slots | |
void cellProperties () | |
void commitData (QWidget *editor) | |
void insertColumns () | |
void insertRows () | |
void removeColumns () | |
void removeRows () | |
void updateCellSpan (App::CellAddress address) | |
Protected Member Functions | |
void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) | |
bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) | |
bool event (QEvent *event) | |
Protected Attributes | |
boost::signals2::scoped_connection cellSpanChangedConnection | |
QModelIndex currentEditIndex | |
Spreadsheet::Sheet * sheet | |
Constructor & Destructor Documentation
◆ SheetTableView()
|
explicit |
References cellProperties(), insertColumns(), insertRows(), removeColumns(), and removeRows().
◆ ~SheetTableView()
SheetTableView::~SheetTableView | ( | ) |
Member Function Documentation
◆ cellProperties
|
protectedslot |
References selectedRanges(), and sheet.
Referenced by SheetTableView().
◆ closeEditor()
|
protected |
References currentEditIndex, and SpreadsheetGui::LineEdit::next().
◆ commitData
|
protectedslot |
◆ copySelection()
void SheetTableView::copySelection | ( | ) |
References Spreadsheet::PropertySheet::copyCells(), Spreadsheet::Sheet::getCells(), Base::StringWriter::getString(), selectedRanges(), and sheet.
Referenced by cutSelection(), and event().
◆ cutSelection()
void SheetTableView::cutSelection | ( | ) |
References copySelection(), and deleteSelection().
Referenced by event().
◆ deleteSelection()
void SheetTableView::deleteSelection | ( | ) |
References Gui::Command::commitCommand(), Gui::Command::Doc, App::DocumentObject::getNameInDocument(), Gui::Command::openCommand(), selectedRanges(), and sheet.
Referenced by cutSelection(), and event().
◆ edit() [1/2]
void SheetTableView::edit | ( | const QModelIndex & | index | ) |
References currentEditIndex.
Referenced by ArchAxis.CommandArchGrid::IsActive().
◆ edit() [2/2]
|
protected |
References currentEditIndex.
Referenced by ArchAxis.CommandArchGrid::IsActive().
◆ event()
References copySelection(), cutSelection(), deleteSelection(), and pasteClipboard().
◆ insertColumns
|
protectedslot |
References Gui::cmdAppObjectArgs(), Spreadsheet::columnName(), Gui::Command::commitCommand(), Gui::Command::Doc, Gui::Command::openCommand(), and sheet.
Referenced by SheetTableView().
◆ insertRows
|
protectedslot |
References Gui::cmdAppObjectArgs(), Gui::Command::commitCommand(), Gui::Command::Doc, Gui::Command::openCommand(), Spreadsheet::rowName(), and sheet.
Referenced by SheetTableView().
◆ pasteClipboard()
void SheetTableView::pasteClipboard | ( | ) |
◆ removeColumns
|
protectedslot |
References Gui::cmdAppObjectArgs(), Spreadsheet::columnName(), Gui::Command::commitCommand(), Gui::Command::Doc, Gui::Command::openCommand(), and sheet.
Referenced by SheetTableView().
◆ removeRows
|
protectedslot |
References Gui::cmdAppObjectArgs(), Gui::Command::commitCommand(), Gui::Command::Doc, Gui::Command::openCommand(), Spreadsheet::rowName(), and sheet.
Referenced by SheetTableView().
◆ selectedRanges()
std::vector< Range > SheetTableView::selectedRanges | ( | ) | const |
References Spreadsheet::createRectangles().
Referenced by cellProperties(), copySelection(), and deleteSelection().
◆ setSheet()
void SheetTableView::setSheet | ( | Spreadsheet::Sheet * | _sheet | ) |
◆ updateCellSpan
|
protectedslot |
References Spreadsheet::Sheet::getSpans(), and sheet.
Referenced by setSheet().
Member Data Documentation
◆ cellSpanChangedConnection
|
protected |
Referenced by setSheet().
◆ currentEditIndex
|
protected |
Referenced by closeEditor(), and edit().
◆ sheet
|
protected |
Referenced by cellProperties(), copySelection(), deleteSelection(), insertColumns(), insertRows(), pasteClipboard(), removeColumns(), removeRows(), setSheet(), and updateCellSpan().
The documentation for this class was generated from the following files:
- src/Mod/Spreadsheet/Gui/SheetTableView.h
- src/Mod/Spreadsheet/Gui/SheetTableView.cpp