#ifndef CELLSETTINGSDIALOG_H #define CELLSETTINGSDIALOG_H #include #include #include #include #include #include #include #include class CellSettingsDialog : public QDialog { Q_OBJECT public: explicit CellSettingsDialog(int row, int column, const QString &cellName, int currentStretch = 100, bool currentIsHeader = false, bool currentIsUnderline = true, QWidget *parent = nullptr); ~CellSettingsDialog(); int getStretch() const; bool isHeader() const; bool isUnderline() const; private: void setUp(); void setUpConnections(); int m_row; int m_column; QString m_cellName; QSpinBox *m_stretchSpinBox; QCheckBox *m_isHeaderCheckBox; QCheckBox *m_isUnderlineCheckBox; QLabel *m_cellNameLabel; QDialogButtonBox *m_buttonBox; }; #endif // CELLSETTINGSDIALOG_H