#include <SheetTableView.h>

Public Member Functions

void copySelection ()
 
void cutSelection ()
 
void deleteSelection ()
 
void edit (const QModelIndex &index)
 
void pasteClipboard ()
 
std::vector< App::RangeselectedRanges () 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::Sheetsheet
 

Constructor & Destructor Documentation

◆ SheetTableView()

SheetTableView::SheetTableView ( QWidget parent = 0)
explicit

◆ ~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

◆ copySelection()

◆ cutSelection()

void SheetTableView::cutSelection ( )

References copySelection(), and deleteSelection().

Referenced by event().

◆ 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()

bool SheetTableView::event ( QEvent event)
protected

◆ insertColumns

◆ insertRows

◆ pasteClipboard()

◆ removeColumns

◆ removeRows

◆ selectedRanges()

std::vector< Range > SheetTableView::selectedRanges ( ) const

◆ setSheet()

◆ updateCellSpan

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

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

Referenced by setSheet().

Member Data Documentation

◆ cellSpanChangedConnection

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

Referenced by setSheet().

◆ currentEditIndex

QModelIndex SpreadsheetGui::SheetTableView::currentEditIndex
protected

Referenced by closeEditor(), and edit().

◆ sheet


The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Mod/Spreadsheet/Gui/SheetTableView.h
  • Sources/FreeCAD/src/Mod/Spreadsheet/Gui/SheetTableView.cpp