36 void setRecords(
const QVector<MaskRecord>& records);
71 QWidget* container =
nullptr;
72 QLabel* title =
nullptr;
73 QLabel* resolutionLabel =
nullptr;
74 QLabel* details =
nullptr;
75 QPushButton* removeButton =
nullptr;
76 QPushButton* expandButton =
nullptr;
77 bool isExpanded =
false;
81 QListWidget* m_list =
nullptr;
82 QPushButton* m_clearButton =
nullptr;
83 QMap<int, ItemWidgets> m_itemWidgets;
87 QString formatDetails(
const MaskRecord& record)
const;
88 void toggleItemExpanded(
int id);
90 void connectSelectionSignals();
UI widget to display and manage a stack of mask configurations.
Definition maskstackview.h:27
void clearRecords()
Clear all records from the list.
Definition maskstackview.cpp:235
void sig_recordSelected(int id)
Emitted when a record is selected (clicked) by the user.
void removeRecordById(int id)
Remove a record by ID.
Definition maskstackview.cpp:197
void setRecords(const QVector< MaskRecord > &records)
Replace the current list with the given records.
Definition maskstackview.cpp:174
void sig_clearAll()
Request to clear all records.
void addRecord(const MaskRecord &record)
Append a single record to the list.
Definition maskstackview.cpp:182
void sig_removeRecord(int id)
Request to remove a record with given id.
Contains all information needed to generate a mask at export time.
Definition maskstack.h:25