vnote/src/widgets/dialogs/tableinsertdialog.h
Le Tan 75dc7c6f28
Smart Table and Mark (#1649)
* support smart table and mark
2021-01-10 11:52:08 +08:00

36 lines
669 B
C++

#ifndef TABLEINSERTDIALOG_H
#define TABLEINSERTDIALOG_H
#include "scrolldialog.h"
#include <core/global.h>
class QSpinBox;
namespace vnotex
{
class TableInsertDialog : public ScrollDialog
{
Q_OBJECT
public:
TableInsertDialog(const QString &p_title, QWidget *p_parent = nullptr);
int getRowCount() const;
int getColumnCount() const;
Alignment getAlignment() const;
private:
void setupUI(const QString &p_title);
QSpinBox *m_rowCountSpinBox = nullptr;
QSpinBox *m_colCountSpinBox = nullptr;
Alignment m_alignment = Alignment::None;
};
}
#endif // TABLEINSERTDIALOG_H