SpreadsheetGui::SheetTableView Class Reference

#include <SheetTableView.h>

Public Slots

void copySelection ()
 
void cutSelection ()
 
void deleteSelection ()
 
void finishEditWithMove (int keyPressed, Qt::KeyboardModifiers modifiers, bool handleTabMotion=false)
 
void mergeCells ()
 
void ModifyBlockSelection (int targetRow, int targetColumn)
 
void pasteClipboard ()
 
void splitCell ()
 

Public Member Functions

void edit (const QModelIndex &index)
 
QModelIndexList selectedIndexesRaw () const
 
std::vector< App::RangeselectedRanges () const
 
void setSheet (Spreadsheet::Sheet *_sheet)
 
 SheetTableView (QWidget *parent=nullptr)
 
QString toHtml () const
 
 ~SheetTableView ()
 

Protected Slots

void cellProperties ()
 
void commitData (QWidget *editor)
 
void insertColumns ()
 
void insertColumnsAfter ()
 
void insertRows ()
 
void insertRowsAfter ()
 
void onBind ()
 
void onConfSetup ()
 
void onRecompute ()
 
void removeColumns ()
 
void removeRows ()
 
void updateCellSpan (App::CellAddress address)
 

Protected Member Functions

void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
 
void contextMenuEvent (QContextMenuEvent *e)
 
bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event)
 
bool event (QEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 

Protected Attributes

QAction * actionBind
 
QAction * actionCopy
 
QAction * actionCut
 
QAction * actionDel
 
QAction * actionMerge
 
QAction * actionPaste
 
QAction * actionSplit
 
boost::signals2::scoped_connection cellSpanChangedConnection
 
QMenucontextMenu
 
QModelIndex currentEditIndex
 
Spreadsheet::Sheetsheet
 
int tabCounter
 

Constructor & Destructor Documentation

◆ SheetTableView()

◆ ~SheetTableView()

SheetTableView::~SheetTableView ( )

Member Function Documentation

◆ cellProperties

void SheetTableView::cellProperties ( )
protectedslot

References selectedRanges(), and sheet.

Referenced by SheetTableView().

◆ closeEditor()

void SheetTableView::closeEditor ( QWidget editor,
QAbstractItemDelegate::EndEditHint  hint 
)
protected

◆ commitData

void SheetTableView::commitData ( QWidget editor)
protectedslot

◆ contextMenuEvent()

void SheetTableView::contextMenuEvent ( QContextMenuEvent *  e)
protected

◆ copySelection

void SheetTableView::copySelection ( )
slot

◆ cutSelection

void SheetTableView::cutSelection ( )
slot

◆ deleteSelection

◆ 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

◆ insertColumns

◆ insertColumnsAfter

◆ insertRows

◆ insertRowsAfter

◆ mergeCells

void SheetTableView::mergeCells ( )
slot

◆ ModifyBlockSelection

void SheetTableView::ModifyBlockSelection ( int  targetRow,
int  targetColumn 
)
slot

Referenced by finishEditWithMove().

◆ mousePressEvent()

void SheetTableView::mousePressEvent ( QMouseEvent *  event)
protected

References tabCounter.

◆ onBind

void SheetTableView::onBind ( )
protectedslot

References selectedRanges(), and sheet.

Referenced by SheetTableView().

◆ onConfSetup

void SheetTableView::onConfSetup ( )
protectedslot

References selectedRanges(), and sheet.

Referenced by SheetTableView().

◆ onRecompute

void SheetTableView::onRecompute ( )
protectedslot

◆ pasteClipboard

◆ removeColumns

◆ removeRows

◆ selectedIndexesRaw()

QModelIndexList SheetTableView::selectedIndexesRaw ( ) const

◆ selectedRanges()

◆ selectionChanged()

void SheetTableView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protected

◆ setSheet()

◆ splitCell

void SheetTableView::splitCell ( )
slot

◆ toHtml()

◆ updateCellSpan

void SheetTableView::updateCellSpan ( App::CellAddress  address)
protectedslot

References Spreadsheet::Sheet::getSpans(), and sheet.

Referenced by setSheet().

Member Data Documentation

◆ actionBind

QAction* SpreadsheetGui::SheetTableView::actionBind
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ actionCopy

QAction* SpreadsheetGui::SheetTableView::actionCopy
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ actionCut

QAction* SpreadsheetGui::SheetTableView::actionCut
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ actionDel

QAction* SpreadsheetGui::SheetTableView::actionDel
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ actionMerge

QAction* SpreadsheetGui::SheetTableView::actionMerge
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ actionPaste

QAction* SpreadsheetGui::SheetTableView::actionPaste
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ actionSplit

QAction* SpreadsheetGui::SheetTableView::actionSplit
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ cellSpanChangedConnection

boost::signals2::scoped_connection SpreadsheetGui::SheetTableView::cellSpanChangedConnection
protected

Referenced by setSheet().

◆ contextMenu

QMenu* SpreadsheetGui::SheetTableView::contextMenu
protected

Referenced by contextMenuEvent(), and SheetTableView().

◆ currentEditIndex

QModelIndex SpreadsheetGui::SheetTableView::currentEditIndex
protected

Referenced by edit().

◆ sheet

◆ tabCounter

int SpreadsheetGui::SheetTableView::tabCounter
protected

The documentation for this class was generated from the following files: