19#ifndef LLTABLEDIALOG_H
20#define LLTABLEDIALOG_H
23#include <QGuiApplication>
29#include <QTableWidget>
52 LLTableDialog(
const QStringList& rowHeaders,
const QStringList& colHeaders,
54 QVector<QVector<QString>>* initialData =
nullptr);
83 void submitted(
const QVector<QVector<QString>>& data);
87 QPushButton* submitButton;
LLTableDialog(const QStringList &rowHeaders, const QStringList &colHeaders, QWidget *parent, QVector< QVector< QString > > *initialData=nullptr)
Constructs the LL(1) table dialog with given headers and optional initial data.
Definition lltabledialog.cpp:34
void submitted(const QVector< QVector< QString > > &data)
Signal emitted when the user submits the table.
QVector< QVector< QString > > getTableData() const
Returns the contents of the table filled by the user.
Definition lltabledialog.cpp:104
void highlightIncorrectCells(const QList< QPair< int, int > > &coords)
Highlights cells that are incorrect based on provided coordinates.
Definition lltabledialog.cpp:137
void setInitialData(const QVector< QVector< QString > > &data)
Pre-fills the table with existing user data.
Definition lltabledialog.cpp:117