Added base classes for plugin UI.

This commit is contained in:
2015-11-17 22:24:00 +01:00
parent 07bb708437
commit 02c5bbe788
29 changed files with 648 additions and 348 deletions
+31
View File
@@ -0,0 +1,31 @@
#include "formdialog.h"
#include "ui_formdialog.h"
FormDialog::FormDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::FormDialog)
{
ui->setupUi(this);
m_formSet = false;
m_form = NULL;
}
FormDialog::~FormDialog()
{
delete ui;
}
void FormDialog::setForm(IForm *formWidget)
{
if (m_form == NULL)
{
ui->verticalLayout->addWidget(formWidget);
m_form = formWidget;
setGeometry(formWidget->geometry());
}
}
void FormDialog::on_buttonBox_accepted()
{
m_form->saveRecord();
}