Files
GostGenerator/view/cellsettingsdialog.h
T

46 lines
1.0 KiB
C++

#ifndef CELLSETTINGSDIALOG_H
#define CELLSETTINGSDIALOG_H
#include <QDialog>
#include <QSpinBox>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QDialogButtonBox>
#include <QCheckBox>
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