commit 59e9fb65a3dccfddf608f8cd7c7f0e9b509ebf72 Author: Вячеслав Штейбезандт Date: Mon Nov 25 11:44:21 2024 +0300 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..97437bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +# ---> Qt +# C++ objects and libs +*.slo +*.lo +*.o +*.a +*.la +*.lai +*.so +*.so.* +*.dll +*.dylib + +# Qt-es +object_script.*.Release +object_script.*.Debug +*_plugin_import.cpp +/.qmake.cache +/.qmake.stash +*.pro.user +*.pro.user.* +*.qbs.user +*.qbs.user.* +*.moc +moc_*.cpp +moc_*.h +qrc_*.cpp +ui_*.h +*.qmlc +*.jsc +Makefile* +*build-* +*.qm +*.prl + +# Qt unit tests +target_wrapper.* + +# QtCreator +*.autosave + +# QtCreator Qml +*.qmlproject.user +*.qmlproject.user.* + +# QtCreator CMake +CMakeLists.txt.user* + +# QtCreator 4.8< compilation database +compile_commands.json + +# QtCreator local machine specific files for imported projects +*creator.user* + +*_qmlcache.qrc + diff --git a/M3KTE_TERM.pro b/M3KTE_TERM.pro new file mode 100644 index 0000000..83790e7 --- /dev/null +++ b/M3KTE_TERM.pro @@ -0,0 +1,31 @@ +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +CONFIG += c++11 + +# The following define makes your compiler emit warnings if you use +# any Qt feature that has been marked deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if it uses deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +SOURCES += \ + main.cpp \ + m3kte.cpp + +HEADERS += \ + m3kte.h + +FORMS += \ + m3kte.ui + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/README.md b/README.md new file mode 100644 index 0000000..cc67d36 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# M3KTE_TERM + diff --git a/m3kte.cpp b/m3kte.cpp new file mode 100644 index 0000000..9146c24 --- /dev/null +++ b/m3kte.cpp @@ -0,0 +1,15 @@ +#include "m3kte.h" +#include "ui_m3kte.h" + +M3KTE::M3KTE(QWidget *parent) + : QMainWindow(parent) + , ui(new Ui::M3KTE) +{ + ui->setupUi(this); +} + +M3KTE::~M3KTE() +{ + delete ui; +} + diff --git a/m3kte.h b/m3kte.h new file mode 100644 index 0000000..de4199c --- /dev/null +++ b/m3kte.h @@ -0,0 +1,21 @@ +#ifndef M3KTE_H +#define M3KTE_H + +#include + +QT_BEGIN_NAMESPACE +namespace Ui { class M3KTE; } +QT_END_NAMESPACE + +class M3KTE : public QMainWindow +{ + Q_OBJECT + +public: + M3KTE(QWidget *parent = nullptr); + ~M3KTE(); + +private: + Ui::M3KTE *ui; +}; +#endif // M3KTE_H diff --git a/m3kte.ui b/m3kte.ui new file mode 100644 index 0000000..1f1464c --- /dev/null +++ b/m3kte.ui @@ -0,0 +1,22 @@ + + + M3KTE + + + + 0 + 0 + 800 + 600 + + + + M3KTE + + + + + + + + diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..02d2da5 --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include "m3kte.h" + +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + M3KTE w; + w.show(); + return a.exec(); +}