Seamly2D
Code documentation
PiecesWidget Class Reference

#include <pieces_widget.h>

Inheritance diagram for PiecesWidget:
Collaboration diagram for PiecesWidget:

Public Slots

void togglePiece (quint32 id)
 
void updateList ()
 
void selectPiece (quint32 id)
 

Signals

void Highlight (quint32 id)
 

Public Member Functions

 PiecesWidget (VContainer *data, VAbstractPattern *doc, QWidget *parent=nullptr)
 
virtual ~PiecesWidget ()
 

Private Slots

void cellClicked (int row, int column)
 
void cellDoubleClicked (int row, int column)
 
void showContextMenu (const QPoint &pos)
 

Private Member Functions

void fillTable (const QHash< quint32, VPiece > *details)
 
void toggleInLayoutPieces (bool inLayout)
 
void toggleLockedPieces (bool lock)
 

Private Attributes

Ui::PiecesWidget * ui
 
VAbstractPatternm_doc
 
VContainerm_data
 

Detailed Description

Definition at line 68 of file pieces_widget.h.

Constructor & Destructor Documentation

◆ PiecesWidget()

PiecesWidget::PiecesWidget ( VContainer data,
VAbstractPattern doc,
QWidget *  parent = nullptr 
)
explicit

◆ ~PiecesWidget()

PiecesWidget::~PiecesWidget ( )
virtual

Definition at line 90 of file pieces_widget.cpp.

References ui.

Member Function Documentation

◆ cellClicked

◆ cellDoubleClicked

void PiecesWidget::cellDoubleClicked ( int  row,
int  column 
)
privateslot

◆ fillTable()

void PiecesWidget::fillTable ( const QHash< quint32, VPiece > *  details)
private

◆ Highlight

void PiecesWidget::Highlight ( quint32  id)
signal

◆ selectPiece

void PiecesWidget::selectPiece ( quint32  id)
slot

Definition at line 145 of file pieces_widget.cpp.

References ui.

Referenced by MainWindow::InitDocksContain().

◆ showContextMenu

◆ toggleInLayoutPieces()

void PiecesWidget::toggleInLayoutPieces ( bool  inLayout)
private

◆ toggleLockedPieces()

void PiecesWidget::toggleLockedPieces ( bool  lock)
private

◆ togglePiece

◆ updateList

void PiecesWidget::updateList ( )
slot

Member Data Documentation

◆ m_data

◆ m_doc

VAbstractPattern* PiecesWidget::m_doc
private

◆ ui


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