diff --git a/examples/hello-qt-uic/gotocelldialog.h b/examples/hello-qt-uic/gotocelldialog.h new file mode 100644 index 0000000..0311bf6 --- /dev/null +++ b/examples/hello-qt-uic/gotocelldialog.h @@ -0,0 +1,108 @@ +/******************************************************************************** +** Form generated from reading UI file 'gotocelldialog.ui' +** +** Created by: Qt User Interface Compiler version 5.12.3 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef GOTOCELLDIALOG_H +#define GOTOCELLDIALOG_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_GoToCellDialog +{ +public: + QVBoxLayout *vboxLayout; + QHBoxLayout *hboxLayout; + QLabel *label; + QLineEdit *lineEdit; + QHBoxLayout *hboxLayout1; + QSpacerItem *spacerItem; + QPushButton *okButton; + QPushButton *cancelButton; + + void setupUi(QWidget *GoToCellDialog) + { + if (GoToCellDialog->objectName().isEmpty()) + GoToCellDialog->setObjectName(QString::fromUtf8("GoToCellDialog")); + GoToCellDialog->resize(190, 94); + vboxLayout = new QVBoxLayout(GoToCellDialog); + vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); + hboxLayout = new QHBoxLayout(); + hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); + label = new QLabel(GoToCellDialog); + label->setObjectName(QString::fromUtf8("label")); + + hboxLayout->addWidget(label); + + lineEdit = new QLineEdit(GoToCellDialog); + lineEdit->setObjectName(QString::fromUtf8("lineEdit")); + + hboxLayout->addWidget(lineEdit); + + + vboxLayout->addLayout(hboxLayout); + + hboxLayout1 = new QHBoxLayout(); + hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1")); + spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + + hboxLayout1->addItem(spacerItem); + + okButton = new QPushButton(GoToCellDialog); + okButton->setObjectName(QString::fromUtf8("okButton")); + okButton->setEnabled(false); + + hboxLayout1->addWidget(okButton); + + cancelButton = new QPushButton(GoToCellDialog); + cancelButton->setObjectName(QString::fromUtf8("cancelButton")); + + hboxLayout1->addWidget(cancelButton); + + + vboxLayout->addLayout(hboxLayout1); + +#ifndef QT_NO_SHORTCUT + label->setBuddy(lineEdit); +#endif // QT_NO_SHORTCUT + QWidget::setTabOrder(lineEdit, okButton); + QWidget::setTabOrder(okButton, cancelButton); + + retranslateUi(GoToCellDialog); + + okButton->setDefault(true); + + + QMetaObject::connectSlotsByName(GoToCellDialog); + } // setupUi + + void retranslateUi(QWidget *GoToCellDialog) + { + GoToCellDialog->setWindowTitle(QApplication::translate("GoToCellDialog", "Go to Cell", nullptr)); + label->setText(QApplication::translate("GoToCellDialog", "&Cell Location:", nullptr)); + okButton->setText(QApplication::translate("GoToCellDialog", "OK", nullptr)); + cancelButton->setText(QApplication::translate("GoToCellDialog", "Cancel", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class GoToCellDialog: public Ui_GoToCellDialog {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // GOTOCELLDIALOG_H diff --git a/examples/hello-qt-uic/gotocelldialog.ui b/examples/hello-qt-uic/gotocelldialog.ui new file mode 100644 index 0000000..58caad5 --- /dev/null +++ b/examples/hello-qt-uic/gotocelldialog.ui @@ -0,0 +1,79 @@ + + GoToCellDialog + + + + 0 + 0 + 190 + 94 + + + + Go to Cell + + + + + + + + &Cell Location: + + + lineEdit + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + false + + + OK + + + true + + + + + + + Cancel + + + + + + + + + lineEdit + okButton + cancelButton + + + + diff --git a/examples/hello-qt-uic/main.cpp b/examples/hello-qt-uic/main.cpp new file mode 100644 index 0000000..4a776a1 --- /dev/null +++ b/examples/hello-qt-uic/main.cpp @@ -0,0 +1,25 @@ +#include +#include + +#include "gotocelldialog.h" + +// cpps-make ui_gotocelldialog.h : gotocelldialog.ui // uic gotocelldialog.ui -o gotocelldialog.h + +// vc-extra-compile-flags: -IF:\vcpkg\installed\x86-windows\include\QtWidgets + +/* cpps-make +ui_gotocelldialog.h : gotocelldialog.ui + uic gotocelldialog.ui -o gotocelldialog.h +*/ + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + Ui::GoToCellDialog ui; + QDialog *dialog = new QDialog; + ui.setupUi(dialog); + dialog->show(); + + return app.exec(); +}