Numworks Epsilon  1.4.1
Graphing Calculator Operating System
SelectableTableView Class Reference

#include <selectable_table_view.h>

Inheritance diagram for SelectableTableView:
TableView Responder ScrollView View Calculation::CalculationSelectableTableView

Public Member Functions

 SelectableTableView (Responder *parentResponder, TableViewDataSource *dataSource, SelectableTableViewDataSource *selectionDataSource=nullptr, SelectableTableViewDelegate *delegate=nullptr)
 
template<typename T >
 SelectableTableView (T *p)
 
int selectedRow ()
 
int selectedColumn ()
 
void selectRow (int j)
 
void selectColumn (int i)
 
void reloadData (bool setFirstResponder=true)
 
virtual bool handleEvent (Ion::Events::Event event) override
 
virtual void didEnterResponderChain (Responder *previousFirstResponder) override
 
virtual void willExitResponderChain (Responder *nextFirstResponder) override
 
void deselectTable ()
 
bool selectCellAtLocation (int i, int j, bool setFirstResponder=true)
 
HighlightCellselectedCell ()
 
- Public Member Functions inherited from TableView
 TableView (TableViewDataSource *dataSource, ScrollViewDataSource *scrollDataSource)
 
void setHorizontalCellOverlap (KDCoordinate o)
 
void setVerticalCellOverlap (KDCoordinate o)
 
virtual void scrollToCell (int i, int j)
 
HighlightCellcellAtLocation (int i, int j)
 
void reloadCellAtLocation (int i, int j)
 
KDSize minimalSizeForOptimalDisplay () const override
 
- Public Member Functions inherited from ScrollView
 ScrollView (View *contentView, ScrollViewDataSource *dataSource)
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
void setTopMargin (KDCoordinate m)
 
KDCoordinate topMargin () const
 
void setRightMargin (KDCoordinate m)
 
KDCoordinate rightMargin () const
 
void setBottomMargin (KDCoordinate m)
 
KDCoordinate bottomMargin () const
 
void setLeftMargin (KDCoordinate m)
 
KDCoordinate leftMargin () const
 
void setMargins (KDCoordinate top, KDCoordinate right, KDCoordinate bottom, KDCoordinate left)
 
void setMargins (KDCoordinate m)
 
void setCommonMargins ()
 
void setShowsIndicators (bool s)
 
bool showsIndicators () const
 
void setColorsBackground (bool c)
 
bool colorsBackground () const
 
void setBackgroundColor (KDColor c)
 
KDColor backgroundColor () const
 
ScrollViewIndicatorverticalScrollIndicator ()
 
ScrollViewIndicatorhorizontalScrollIndicator ()
 
void setIndicatorThickness (KDCoordinate t)
 
KDCoordinate indicatorThickness () const
 
void setContentOffset (KDPoint offset, bool forceRelayout=false)
 
KDPoint contentOffset () const
 
void scrollToContentPoint (KDPoint p, bool allowOverscroll=false)
 
void scrollToContentRect (KDRect rect, bool allowOverscroll=false)
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
 View (const View &other)=delete
 
 View (View &&other)=delete
 
Viewoperator= (const View &other)=delete
 
Viewoperator= (View &&other)=delete
 
void resetSuperview ()
 
void setSize (KDSize size)
 
void setFrame (KDRect frame)
 
KDPoint pointFromPointInView (View *view, KDPoint point)
 
KDRect bounds () const
 
Viewsubview (int index)
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual void didBecomeFirstResponder ()
 
virtual void willResignFirstResponder ()
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 

Protected Attributes

SelectableTableViewDataSourcem_selectionDataSource
 
SelectableTableViewDelegatem_delegate
 
- Protected Attributes inherited from TableView
ContentView m_contentView
 
- Protected Attributes inherited from ScrollView
Viewm_contentView
 
- Protected Attributes inherited from View
KDRect m_frame
 

Additional Inherited Members

- Protected Member Functions inherited from TableView
TableViewDataSourcedataSource ()
 
void layoutSubviews () override
 
- Protected Member Functions inherited from ScrollView
KDCoordinate maxContentWidthDisplayableWithoutScrolling ()
 
KDCoordinate maxContentHeightDisplayableWithoutScrolling ()
 
KDRect visibleContentRect ()
 
void updateScrollIndicator ()
 
KDSize contentSize ()
 
- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 

Detailed Description

Definition at line 18 of file selectable_table_view.h.

Constructor & Destructor Documentation

◆ SelectableTableView() [1/2]

SelectableTableView::SelectableTableView ( Responder parentResponder,
TableViewDataSource dataSource,
SelectableTableViewDataSource selectionDataSource = nullptr,
SelectableTableViewDelegate delegate = nullptr 
)

Definition at line 4 of file selectable_table_view.cpp.

◆ SelectableTableView() [2/2]

template<typename T >
SelectableTableView::SelectableTableView ( T p)
inline

Definition at line 22 of file selectable_table_view.h.

Member Function Documentation

◆ deselectTable()

void SelectableTableView::deselectTable ( )

Definition at line 56 of file selectable_table_view.cpp.

◆ didEnterResponderChain()

void SelectableTableView::didEnterResponderChain ( Responder previousFirstResponder)
overridevirtual

Reimplemented from Responder.

Definition at line 44 of file selectable_table_view.cpp.

◆ handleEvent()

bool SelectableTableView::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from Responder.

Definition at line 107 of file selectable_table_view.cpp.

◆ reloadData()

void SelectableTableView::reloadData ( bool  setFirstResponder = true)

Definition at line 30 of file selectable_table_view.cpp.

◆ selectCellAtLocation()

bool SelectableTableView::selectCellAtLocation ( int  i,
int  j,
bool  setFirstResponder = true 
)

Definition at line 67 of file selectable_table_view.cpp.

◆ selectColumn()

void SelectableTableView::selectColumn ( int  i)

Definition at line 26 of file selectable_table_view.cpp.

◆ selectedCell()

HighlightCell * SelectableTableView::selectedCell ( )

Definition at line 100 of file selectable_table_view.cpp.

◆ selectedColumn()

int SelectableTableView::selectedColumn ( )

Definition at line 18 of file selectable_table_view.cpp.

◆ selectedRow()

int SelectableTableView::selectedRow ( )

Definition at line 14 of file selectable_table_view.cpp.

◆ selectRow()

void SelectableTableView::selectRow ( int  j)

Definition at line 22 of file selectable_table_view.cpp.

◆ willExitResponderChain()

void SelectableTableView::willExitResponderChain ( Responder nextFirstResponder)
overridevirtual

Reimplemented from Responder.

Definition at line 52 of file selectable_table_view.cpp.

Member Data Documentation

◆ m_delegate

SelectableTableViewDelegate* SelectableTableView::m_delegate
protected

Definition at line 36 of file selectable_table_view.h.

◆ m_selectionDataSource

SelectableTableViewDataSource* SelectableTableView::m_selectionDataSource
protected

Definition at line 35 of file selectable_table_view.h.


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