#include <pieces_widget.h>
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 |
VAbstractPattern * | m_doc |
VContainer * | m_data |
Definition at line 68 of file pieces_widget.h.
|
explicit |
Definition at line 72 of file pieces_widget.cpp.
References cellClicked(), cellDoubleClicked(), VContainer::DataPieces(), fillTable(), m_data, showContextMenu(), and ui.
|
virtual |
Definition at line 90 of file pieces_widget.cpp.
References ui.
|
privateslot |
Definition at line 161 of file pieces_widget.cpp.
References VContainer::DataPieces(), Highlight(), m_data, m_doc, VMainGraphicsScene::pieceLockedChanged(), qApp, SCASSERT, togglePiece(), TogglePieceInLayout, TogglePieceLock, ui, TogglePieceLock::updateList(), and TogglePieceInLayout::updateList().
Referenced by PiecesWidget().
|
privateslot |
Definition at line 197 of file pieces_widget.cpp.
References VContainer::DataPieces(), PatternPieceTool::editPieceProperties(), VAbstractPattern::getTool(), Highlight(), m_data, m_doc, qApp, SCASSERT, SetPieceColor, togglePiece(), ui, and SetPieceColor::updateList().
Referenced by PiecesWidget().
Definition at line 233 of file pieces_widget.cpp.
References VAbstractPiece::getColor(), VAbstractPiece::GetName(), VPiece::isInLayout(), VPiece::isLocked(), m_data, and ui.
Referenced by PiecesWidget(), and updateList().
|
signal |
Referenced by cellClicked(), cellDoubleClicked(), and MainWindow::InitDocksContain().
|
slot |
Definition at line 145 of file pieces_widget.cpp.
References ui.
Referenced by MainWindow::InitDocksContain().
|
privateslot |
Definition at line 368 of file pieces_widget.cpp.
References VContainer::DataPieces(), m_data, m_doc, VMainGraphicsScene::pieceLockedChanged(), qApp, SCASSERT, toggleInLayoutPieces(), toggleLockedPieces(), togglePiece(), TogglePieceInLayout, TogglePieceLock, ui, TogglePieceLock::updateList(), and TogglePieceInLayout::updateList().
Referenced by PiecesWidget().
|
private |
Definition at line 311 of file pieces_widget.cpp.
References VContainer::DataPieces(), m_data, m_doc, qApp, togglePiece(), TogglePieceInLayout, ui, and TogglePieceInLayout::updateList().
Referenced by showContextMenu().
|
private |
Definition at line 336 of file pieces_widget.cpp.
References VContainer::DataPieces(), m_data, m_doc, VMainGraphicsScene::pieceLockedChanged(), qApp, SCASSERT, togglePiece(), TogglePieceLock, ui, and TogglePieceLock::updateList().
Referenced by showContextMenu().
|
slot |
Definition at line 96 of file pieces_widget.cpp.
References VContainer::DataPieces(), VAbstractPiece::getColor(), VAbstractPiece::GetName(), VPiece::isInLayout(), VPiece::isLocked(), m_data, SCASSERT, and ui.
Referenced by cellClicked(), cellDoubleClicked(), MainWindow::InitDocksContain(), showContextMenu(), toggleInLayoutPieces(), and toggleLockedPieces().
|
slot |
Definition at line 138 of file pieces_widget.cpp.
References VContainer::DataPieces(), fillTable(), and m_data.
Referenced by MainWindow::FullParseFile(), MainWindow::InitDocksContain(), and MainWindow::showPieceMode().
|
private |
Definition at line 93 of file pieces_widget.h.
Referenced by cellClicked(), cellDoubleClicked(), fillTable(), PiecesWidget(), showContextMenu(), toggleInLayoutPieces(), toggleLockedPieces(), togglePiece(), and updateList().
|
private |
Definition at line 92 of file pieces_widget.h.
Referenced by cellClicked(), cellDoubleClicked(), showContextMenu(), toggleInLayoutPieces(), and toggleLockedPieces().
|
private |
Definition at line 91 of file pieces_widget.h.
Referenced by cellClicked(), cellDoubleClicked(), fillTable(), PiecesWidget(), selectPiece(), showContextMenu(), toggleInLayoutPieces(), toggleLockedPieces(), togglePiece(), and ~PiecesWidget().