10#include <QDialogButtonBox>
13#include <xmlsettingsdialog/xmlsettingsdialog.h>
19 XmlSettingsDialog*
OpenXSD (
const QString& title,
const QString& filename, Util::BaseSettingsManager *bsm)
21 auto lay =
new QVBoxLayout;
23 auto xsd =
new Util::XmlSettingsDialog;
24 xsd->RegisterObject (bsm, filename);
25 lay->addWidget (xsd->GetWidget ());
27 auto bbox =
new QDialogButtonBox { QDialogButtonBox::Ok | QDialogButtonBox::Cancel };
28 lay->addWidget (bbox);
30 auto dia =
new QDialog;
33 QObject::connect (bbox,
37 QObject::connect (bbox,
41 QObject::connect (bbox,
45 QObject::connect (bbox,
50 dia->setAttribute (Qt::WA_DeleteOnClose);
51 dia->setWindowTitle (title);
XmlSettingsDialog * OpenXSD(const QString &title, const QString &filename, Util::BaseSettingsManager *bsm)
Opens XML settings dialog for the given XML filename.