ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
ImageGridWidget Class Reference

#include <ImageGridWidget.h>

Inheritance diagram for ImageGridWidget:
Inheritance graph
[legend]
Collaboration diagram for ImageGridWidget:
Collaboration graph
[legend]

Public Types

enum  SelectionMode { NoSelection, SingleSelection, MultiSelection }
 

Public Slots

void setSelectedCell (const Cell &cell)
 
void setSelectedCells (const QList< Cell > &cells)
 

Signals

void currentSelectionChanged (const QList< Cell > &cells)
 
void highlighted (const Cell &cell)
 
void clicked (const Cell &cell)
 

Public Member Functions

 ImageGridWidget (QWidget *parent=nullptr)
 
const QPixmap & pixmap () const
 
void setPixmap (const QPixmap &pixmap)
 
void setPixmap (const QPoint &point, const QPixmap &pixmap)
 
QPoint pixmapPoint () const
 
void setPixmapPoint (const QPoint &point)
 
int cellSize () const
 
void setCellSize (int size)
 
int groupedCellSize () const
 
void setGroupedCellSize (int size)
 
void setCustomLines (const QList< QLine > &lines)
 
QSize gridSize () const
 
QSize gridSizePixel () const
 
void setGridSize (const QSize &gridSize)
 
QPixmap cellPixmap (const Cell &cell) const
 
const QList< Cell > & selectedCells () const
 
SelectionMode selectionMode () const
 
void setSelectionMode (SelectionMode mode)
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void leaveEvent (QEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 
virtual QSize minimumSizeHint () const override
 
virtual QSize sizeHint () const override
 

Member Enumeration Documentation

◆ SelectionMode

Enumerator
NoSelection 
SingleSelection 
MultiSelection 

Constructor & Destructor Documentation

◆ ImageGridWidget()

ImageGridWidget::ImageGridWidget ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

◆ cellPixmap()

QPixmap ImageGridWidget::cellPixmap ( const Cell cell) const

◆ cellSize()

int ImageGridWidget::cellSize ( ) const
inline

◆ clicked

void ImageGridWidget::clicked ( const Cell cell)
signal

◆ currentSelectionChanged

void ImageGridWidget::currentSelectionChanged ( const QList< Cell > &  cells)
signal

◆ gridSize()

QSize ImageGridWidget::gridSize ( ) const
inline

◆ gridSizePixel()

QSize ImageGridWidget::gridSizePixel ( ) const
inline

◆ groupedCellSize()

int ImageGridWidget::groupedCellSize ( ) const
inline

◆ highlighted

void ImageGridWidget::highlighted ( const Cell cell)
signal

◆ keyPressEvent()

void ImageGridWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ leaveEvent()

void ImageGridWidget::leaveEvent ( QEvent *  event)
overrideprotectedvirtual

◆ minimumSizeHint()

QSize ImageGridWidget::minimumSizeHint ( ) const
overrideprotectedvirtual

◆ mouseMoveEvent()

void ImageGridWidget::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mousePressEvent()

void ImageGridWidget::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mouseReleaseEvent()

void ImageGridWidget::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ paintEvent()

void ImageGridWidget::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

◆ pixmap()

const QPixmap& ImageGridWidget::pixmap ( ) const
inline

◆ pixmapPoint()

QPoint ImageGridWidget::pixmapPoint ( ) const
inline

◆ resizeEvent()

void ImageGridWidget::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

◆ selectedCells()

const QList<Cell>& ImageGridWidget::selectedCells ( ) const
inline

◆ selectionMode()

SelectionMode ImageGridWidget::selectionMode ( ) const
inline

◆ setCellSize()

void ImageGridWidget::setCellSize ( int  size)

◆ setCustomLines()

void ImageGridWidget::setCustomLines ( const QList< QLine > &  lines)

◆ setGridSize()

void ImageGridWidget::setGridSize ( const QSize &  gridSize)

◆ setGroupedCellSize()

void ImageGridWidget::setGroupedCellSize ( int  size)

◆ setPixmap() [1/2]

void ImageGridWidget::setPixmap ( const QPixmap &  pixmap)

◆ setPixmap() [2/2]

void ImageGridWidget::setPixmap ( const QPoint &  point,
const QPixmap &  pixmap 
)

◆ setPixmapPoint()

void ImageGridWidget::setPixmapPoint ( const QPoint &  point)

◆ setSelectedCell

void ImageGridWidget::setSelectedCell ( const Cell cell)
inlineslot

◆ setSelectedCells

void ImageGridWidget::setSelectedCells ( const QList< Cell > &  cells)
slot

◆ setSelectionMode()

void ImageGridWidget::setSelectionMode ( SelectionMode  mode)

◆ sizeHint()

QSize ImageGridWidget::sizeHint ( ) const
overrideprotectedvirtual

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