mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 18:43:07 +02:00
feat: refactor mainwindow.cpp code
This commit is contained in:
parent
31c8d80c2c
commit
76d040a1f1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -7,7 +7,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -76,7 +76,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -145,7 +145,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -214,7 +214,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -283,7 +283,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -352,7 +352,76 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
|
"-nostdinc",
|
||||||
|
"-nostdinc++",
|
||||||
|
"-pipe",
|
||||||
|
"-g",
|
||||||
|
"-std=gnu++1z",
|
||||||
|
"-Wall",
|
||||||
|
"-Wextra",
|
||||||
|
"-D_REENTRANT",
|
||||||
|
"-fPIC",
|
||||||
|
"-fsyntax-only",
|
||||||
|
"-m64",
|
||||||
|
"--target=x86_64-linux-gnu",
|
||||||
|
"-DQ_CREATOR_RUN",
|
||||||
|
"-DQT_QML_DEBUG",
|
||||||
|
"-DQT_WIDGETS_LIB",
|
||||||
|
"-DQT_GUI_LIB",
|
||||||
|
"-DQT_CORE_LIB",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtWidgets",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtGui",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtCore",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/mkspecs/linux-g++",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/c++/9",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/x86_64-linux-gnu/c++/9",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/c++/9/backward",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/local/include",
|
||||||
|
"-isystem",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/14.0.0/include",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/x86_64-linux-gnu",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include",
|
||||||
|
"-fmessage-length=0",
|
||||||
|
"-fdiagnostics-show-note-include-stack",
|
||||||
|
"-fretain-comments-from-system-headers",
|
||||||
|
"-fmacro-backtrace-limit=0",
|
||||||
|
"-ferror-limit=1000",
|
||||||
|
"-x",
|
||||||
|
"c++",
|
||||||
|
"-Wno-unknown-pragmas",
|
||||||
|
"-Wno-unknown-warning-option",
|
||||||
|
"-Wno-documentation-unknown-command",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1/universalFunctions.cpp"
|
||||||
|
],
|
||||||
|
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
||||||
|
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1/universalFunctions.cpp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arguments": [
|
||||||
|
"clang",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
|
"-I",
|
||||||
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -421,7 +490,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -490,7 +559,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -559,7 +628,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -628,7 +697,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -684,10 +753,10 @@
|
|||||||
"-Wno-unknown-pragmas",
|
"-Wno-unknown-pragmas",
|
||||||
"-Wno-unknown-warning-option",
|
"-Wno-unknown-warning-option",
|
||||||
"-Wno-documentation-unknown-command",
|
"-Wno-documentation-unknown-command",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogsview.h"
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1/universalFunctions.h"
|
||||||
],
|
],
|
||||||
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
||||||
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogsview.h"
|
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1/universalFunctions.h"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"arguments": [
|
"arguments": [
|
||||||
@ -697,76 +766,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
|
||||||
"-nostdinc++",
|
|
||||||
"-pipe",
|
|
||||||
"-g",
|
|
||||||
"-std=gnu++1z",
|
|
||||||
"-Wall",
|
|
||||||
"-Wextra",
|
|
||||||
"-D_REENTRANT",
|
|
||||||
"-fPIC",
|
|
||||||
"-fsyntax-only",
|
|
||||||
"-m64",
|
|
||||||
"--target=x86_64-linux-gnu",
|
|
||||||
"-DQ_CREATOR_RUN",
|
|
||||||
"-DQT_QML_DEBUG",
|
|
||||||
"-DQT_WIDGETS_LIB",
|
|
||||||
"-DQT_GUI_LIB",
|
|
||||||
"-DQT_CORE_LIB",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtWidgets",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtGui",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtCore",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/mkspecs/linux-g++",
|
|
||||||
"-isystem",
|
|
||||||
"/usr/include/c++/9",
|
|
||||||
"-isystem",
|
|
||||||
"/usr/include/x86_64-linux-gnu/c++/9",
|
|
||||||
"-isystem",
|
|
||||||
"/usr/include/c++/9/backward",
|
|
||||||
"-isystem",
|
|
||||||
"/usr/local/include",
|
|
||||||
"-isystem",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/14.0.0/include",
|
|
||||||
"-isystem",
|
|
||||||
"/usr/include/x86_64-linux-gnu",
|
|
||||||
"-isystem",
|
|
||||||
"/usr/include",
|
|
||||||
"-fmessage-length=0",
|
|
||||||
"-fdiagnostics-show-note-include-stack",
|
|
||||||
"-fretain-comments-from-system-headers",
|
|
||||||
"-fmacro-backtrace-limit=0",
|
|
||||||
"-ferror-limit=1000",
|
|
||||||
"-x",
|
|
||||||
"c++-header",
|
|
||||||
"-Wno-unknown-pragmas",
|
|
||||||
"-Wno-unknown-warning-option",
|
|
||||||
"-Wno-documentation-unknown-command",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogentry.h"
|
|
||||||
],
|
|
||||||
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
|
||||||
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogentry.h"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"arguments": [
|
|
||||||
"clang",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders",
|
|
||||||
"-I",
|
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
|
||||||
"-I",
|
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -835,7 +835,7 @@
|
|||||||
"-I",
|
"-I",
|
||||||
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
"-I",
|
"-I",
|
||||||
"/tmp/QtCreator-siSRAd/clang-uiheader-rbzCFB",
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
"-nostdinc",
|
"-nostdinc",
|
||||||
"-nostdinc++",
|
"-nostdinc++",
|
||||||
"-pipe",
|
"-pipe",
|
||||||
@ -895,5 +895,143 @@
|
|||||||
],
|
],
|
||||||
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
||||||
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_mainwindow.h"
|
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_mainwindow.h"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arguments": [
|
||||||
|
"clang",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
|
"-I",
|
||||||
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
|
"-nostdinc",
|
||||||
|
"-nostdinc++",
|
||||||
|
"-pipe",
|
||||||
|
"-g",
|
||||||
|
"-std=gnu++1z",
|
||||||
|
"-Wall",
|
||||||
|
"-Wextra",
|
||||||
|
"-D_REENTRANT",
|
||||||
|
"-fPIC",
|
||||||
|
"-fsyntax-only",
|
||||||
|
"-m64",
|
||||||
|
"--target=x86_64-linux-gnu",
|
||||||
|
"-DQ_CREATOR_RUN",
|
||||||
|
"-DQT_QML_DEBUG",
|
||||||
|
"-DQT_WIDGETS_LIB",
|
||||||
|
"-DQT_GUI_LIB",
|
||||||
|
"-DQT_CORE_LIB",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtWidgets",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtGui",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtCore",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/mkspecs/linux-g++",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/c++/9",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/x86_64-linux-gnu/c++/9",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/c++/9/backward",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/local/include",
|
||||||
|
"-isystem",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/14.0.0/include",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/x86_64-linux-gnu",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include",
|
||||||
|
"-fmessage-length=0",
|
||||||
|
"-fdiagnostics-show-note-include-stack",
|
||||||
|
"-fretain-comments-from-system-headers",
|
||||||
|
"-fmacro-backtrace-limit=0",
|
||||||
|
"-ferror-limit=1000",
|
||||||
|
"-x",
|
||||||
|
"c++-header",
|
||||||
|
"-Wno-unknown-pragmas",
|
||||||
|
"-Wno-unknown-warning-option",
|
||||||
|
"-Wno-documentation-unknown-command",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogentry.h"
|
||||||
|
],
|
||||||
|
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
||||||
|
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogentry.h"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arguments": [
|
||||||
|
"clang",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore",
|
||||||
|
"-I",
|
||||||
|
"/tmp/QtCreator-FWwSsm/clang-uiheader-ipXBHT",
|
||||||
|
"-nostdinc",
|
||||||
|
"-nostdinc++",
|
||||||
|
"-pipe",
|
||||||
|
"-g",
|
||||||
|
"-std=gnu++1z",
|
||||||
|
"-Wall",
|
||||||
|
"-Wextra",
|
||||||
|
"-D_REENTRANT",
|
||||||
|
"-fPIC",
|
||||||
|
"-fsyntax-only",
|
||||||
|
"-m64",
|
||||||
|
"--target=x86_64-linux-gnu",
|
||||||
|
"-DQ_CREATOR_RUN",
|
||||||
|
"-DQT_QML_DEBUG",
|
||||||
|
"-DQT_WIDGETS_LIB",
|
||||||
|
"-DQT_GUI_LIB",
|
||||||
|
"-DQT_CORE_LIB",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/lab1",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtWidgets",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtGui",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/include/QtCore",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug",
|
||||||
|
"-I",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/6.2.4/gcc_64/mkspecs/linux-g++",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/c++/9",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/x86_64-linux-gnu/c++/9",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/c++/9/backward",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/local/include",
|
||||||
|
"-isystem",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/QT/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/14.0.0/include",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include/x86_64-linux-gnu",
|
||||||
|
"-isystem",
|
||||||
|
"/usr/include",
|
||||||
|
"-fmessage-length=0",
|
||||||
|
"-fdiagnostics-show-note-include-stack",
|
||||||
|
"-fretain-comments-from-system-headers",
|
||||||
|
"-fmacro-backtrace-limit=0",
|
||||||
|
"-ferror-limit=1000",
|
||||||
|
"-x",
|
||||||
|
"c++-header",
|
||||||
|
"-Wno-unknown-pragmas",
|
||||||
|
"-Wno-unknown-warning-option",
|
||||||
|
"-Wno-documentation-unknown-command",
|
||||||
|
"/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogsview.h"
|
||||||
|
],
|
||||||
|
"directory": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/.qtc_clangd",
|
||||||
|
"file": "/home/kuchy/Zlew/Studia/NieNotatki/Projekty/nie_inzynierka/Programowanie/EGUI/egui_lab1_krzysztof_rudnicki/build-lab1-Desktop_Qt_6_2_4_GCC_64bit-Debug/ui_blogsview.h"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -56,7 +56,8 @@ SOURCES = ../lab1/blogentry.cpp \
|
|||||||
../lab1/blogsview.cpp \
|
../lab1/blogsview.cpp \
|
||||||
../lab1/login.cpp \
|
../lab1/login.cpp \
|
||||||
../lab1/main.cpp \
|
../lab1/main.cpp \
|
||||||
../lab1/mainwindow.cpp qrc_qmake_qmake_qm_files.cpp \
|
../lab1/mainwindow.cpp \
|
||||||
|
../lab1/universalFunctions.cpp qrc_qmake_qmake_qm_files.cpp \
|
||||||
moc_blogentry.cpp \
|
moc_blogentry.cpp \
|
||||||
moc_blogsview.cpp \
|
moc_blogsview.cpp \
|
||||||
moc_login.cpp \
|
moc_login.cpp \
|
||||||
@ -66,6 +67,7 @@ OBJECTS = blogentry.o \
|
|||||||
login.o \
|
login.o \
|
||||||
main.o \
|
main.o \
|
||||||
mainwindow.o \
|
mainwindow.o \
|
||||||
|
universalFunctions.o \
|
||||||
qrc_qmake_qmake_qm_files.o \
|
qrc_qmake_qmake_qm_files.o \
|
||||||
moc_blogentry.o \
|
moc_blogentry.o \
|
||||||
moc_blogsview.o \
|
moc_blogsview.o \
|
||||||
@ -213,11 +215,13 @@ DIST = ../../QT/6.2.4/gcc_64/mkspecs/features/spec_pre.prf \
|
|||||||
../lab1/lab1.pro ../lab1/blogentry.h \
|
../lab1/lab1.pro ../lab1/blogentry.h \
|
||||||
../lab1/blogsview.h \
|
../lab1/blogsview.h \
|
||||||
../lab1/login.h \
|
../lab1/login.h \
|
||||||
../lab1/mainwindow.h ../lab1/blogentry.cpp \
|
../lab1/mainwindow.h \
|
||||||
|
../lab1/universalFunctions.h ../lab1/blogentry.cpp \
|
||||||
../lab1/blogsview.cpp \
|
../lab1/blogsview.cpp \
|
||||||
../lab1/login.cpp \
|
../lab1/login.cpp \
|
||||||
../lab1/main.cpp \
|
../lab1/main.cpp \
|
||||||
../lab1/mainwindow.cpp
|
../lab1/mainwindow.cpp \
|
||||||
|
../lab1/universalFunctions.cpp
|
||||||
QMAKE_TARGET = lab1
|
QMAKE_TARGET = lab1
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
TARGET = lab1
|
TARGET = lab1
|
||||||
@ -535,8 +539,8 @@ distdir: FORCE
|
|||||||
$(COPY_FILE) --parents ../lab1/lab1_pl_PL.ts $(DISTDIR)/
|
$(COPY_FILE) --parents ../lab1/lab1_pl_PL.ts $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents qmake_qmake_qm_files.qrc $(DISTDIR)/
|
$(COPY_FILE) --parents qmake_qmake_qm_files.qrc $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents ../../QT/6.2.4/gcc_64/mkspecs/features/data/dummy.cpp $(DISTDIR)/
|
$(COPY_FILE) --parents ../../QT/6.2.4/gcc_64/mkspecs/features/data/dummy.cpp $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents ../lab1/blogentry.h ../lab1/blogsview.h ../lab1/login.h ../lab1/mainwindow.h $(DISTDIR)/
|
$(COPY_FILE) --parents ../lab1/blogentry.h ../lab1/blogsview.h ../lab1/login.h ../lab1/mainwindow.h ../lab1/universalFunctions.h $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents ../lab1/blogentry.cpp ../lab1/blogsview.cpp ../lab1/login.cpp ../lab1/main.cpp ../lab1/mainwindow.cpp $(DISTDIR)/
|
$(COPY_FILE) --parents ../lab1/blogentry.cpp ../lab1/blogsview.cpp ../lab1/login.cpp ../lab1/main.cpp ../lab1/mainwindow.cpp ../lab1/universalFunctions.cpp $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents ../lab1/blogentry.ui ../lab1/blogsview.ui ../lab1/login.ui ../lab1/mainwindow.ui $(DISTDIR)/
|
$(COPY_FILE) --parents ../lab1/blogentry.ui ../lab1/blogsview.ui ../lab1/login.ui ../lab1/mainwindow.ui $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents ../lab1/lab1_pl_PL.ts $(DISTDIR)/
|
$(COPY_FILE) --parents ../lab1/lab1_pl_PL.ts $(DISTDIR)/
|
||||||
|
|
||||||
@ -1340,10 +1344,6 @@ blogentry.o: ../lab1/blogentry.cpp ../lab1/blogentry.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtGui/qinputmethod.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qinputmethod.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication_platform.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication_platform.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QCheckBox \
|
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qcheckbox.h \
|
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractbutton.h \
|
|
||||||
../../QT/6.2.4/gcc_64/include/QtGui/qicon.h \
|
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QFormLayout \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QFormLayout \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qformlayout.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qformlayout.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QLayout \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QLayout \
|
||||||
@ -1364,10 +1364,14 @@ blogentry.o: ../lab1/blogentry.cpp ../lab1/blogentry.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtGui/qtextoption.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qtextoption.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QPushButton \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QPushButton \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qpushbutton.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qpushbutton.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractbutton.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtGui/qicon.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QTextEdit \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QTextEdit \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qtextedit.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qtextedit.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractscrollarea.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractscrollarea.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/QDateTime
|
../../QT/6.2.4/gcc_64/include/QtCore/QDateTime \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QJsonArray \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsonarray.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o blogentry.o ../lab1/blogentry.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o blogentry.o ../lab1/blogentry.cpp
|
||||||
|
|
||||||
blogsview.o: ../lab1/blogsview.cpp ../lab1/blogsview.h \
|
blogsview.o: ../lab1/blogsview.cpp ../lab1/blogsview.h \
|
||||||
@ -1554,9 +1558,6 @@ blogsview.o: ../lab1/blogsview.cpp ../lab1/blogsview.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtCore/QJsonDocument \
|
../../QT/6.2.4/gcc_64/include/QtCore/QJsonDocument \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/qjsondocument.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsondocument.h \
|
||||||
ui_blogentry.h \
|
ui_blogentry.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QCheckBox \
|
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qcheckbox.h \
|
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractbutton.h \
|
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QFormLayout \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QFormLayout \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qformlayout.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qformlayout.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QLayout \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QLayout \
|
||||||
@ -1573,9 +1574,12 @@ blogsview.o: ../lab1/blogsview.cpp ../lab1/blogsview.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtGui/qtextoption.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qtextoption.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QPushButton \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QPushButton \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qpushbutton.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qpushbutton.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractbutton.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QTextEdit \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QTextEdit \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qtextedit.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qtextedit.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractscrollarea.h
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractscrollarea.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QJsonArray \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsonarray.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o blogsview.o ../lab1/blogsview.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o blogsview.o ../lab1/blogsview.cpp
|
||||||
|
|
||||||
login.o: ../lab1/login.cpp ../lab1/login.h \
|
login.o: ../lab1/login.cpp ../lab1/login.h \
|
||||||
@ -1731,11 +1735,13 @@ login.o: ../lab1/login.cpp ../lab1/login.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtGui/qinputmethod.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qinputmethod.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/qlocale.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/qlocale.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication_platform.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication_platform.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QGridLayout \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QFormLayout \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qgridlayout.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qformlayout.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QLayout \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qlayout.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qlayout.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qlayoutitem.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qlayoutitem.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qboxlayout.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qboxlayout.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qgridlayout.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QLabel \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QLabel \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qlabel.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qlabel.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qframe.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qframe.h \
|
||||||
@ -1921,6 +1927,7 @@ main.o: ../lab1/main.cpp ../lab1/mainwindow.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtCore/qcborcommon.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/qcborcommon.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/qregularexpression.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/qregularexpression.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/quuid.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/quuid.h \
|
||||||
|
../lab1/universalFunctions.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QApplication \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QApplication \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qapplication.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qapplication.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/qcoreapplication.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/qcoreapplication.h \
|
||||||
@ -1943,7 +1950,12 @@ main.o: ../lab1/main.cpp ../lab1/mainwindow.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication_platform.h \
|
../../QT/6.2.4/gcc_64/include/QtGui/qguiapplication_platform.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/QLocale \
|
../../QT/6.2.4/gcc_64/include/QtCore/QLocale \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/QTranslator \
|
../../QT/6.2.4/gcc_64/include/QtCore/QTranslator \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/qtranslator.h
|
../../QT/6.2.4/gcc_64/include/QtCore/qtranslator.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QFile \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qfile.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qfiledevice.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QJsonDocument \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsondocument.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../lab1/main.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../lab1/main.cpp
|
||||||
|
|
||||||
mainwindow.o: ../lab1/mainwindow.cpp ../lab1/mainwindow.h \
|
mainwindow.o: ../lab1/mainwindow.cpp ../lab1/mainwindow.h \
|
||||||
@ -2135,6 +2147,7 @@ mainwindow.o: ../lab1/mainwindow.cpp ../lab1/mainwindow.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractbutton.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qabstractbutton.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QWidget \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QWidget \
|
||||||
../lab1/login.h \
|
../lab1/login.h \
|
||||||
|
../lab1/universalFunctions.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/QFileDialog \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/QFileDialog \
|
||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qfiledialog.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qfiledialog.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/qdir.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/qdir.h \
|
||||||
@ -2146,9 +2159,108 @@ mainwindow.o: ../lab1/mainwindow.cpp ../lab1/mainwindow.h \
|
|||||||
../../QT/6.2.4/gcc_64/include/QtWidgets/qmessagebox.h \
|
../../QT/6.2.4/gcc_64/include/QtWidgets/qmessagebox.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/QJsonDocument \
|
../../QT/6.2.4/gcc_64/include/QtCore/QJsonDocument \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/qjsondocument.h \
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsondocument.h \
|
||||||
../../QT/6.2.4/gcc_64/include/QtCore/QTextStream
|
../../QT/6.2.4/gcc_64/include/QtCore/QTextStream \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QJsonArray \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsonarray.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o ../lab1/mainwindow.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o ../lab1/mainwindow.cpp
|
||||||
|
|
||||||
|
universalFunctions.o: ../lab1/universalFunctions.cpp ../../QT/6.2.4/gcc_64/include/QtCore/QJsonObject \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsonobject.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsonvalue.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qglobal.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qconfig-bootstrapped.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qconfig.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qtcore-config.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qsystemdetection.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qprocessordetection.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcompilerdetection.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qtypeinfo.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcontainerfwd.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qsysinfo.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qlogging.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qflags.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qatomic.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qbasicatomic.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qatomic_bootstrap.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qgenericatomic.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qatomic_cxx11.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qglobalstatic.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qnumeric.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qversiontagging.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstring.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qchar.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringview.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qbytearray.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qrefcount.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qnamespace.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qtmetamacros.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qarraydata.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qpair.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qarraydatapointer.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qarraydataops.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcontainertools_impl.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qbytearrayalgorithms.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qbytearrayview.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringliteral.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringalgorithms.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qanystringview.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qutf8stringview.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringtokenizer.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringbuilder.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qshareddata.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qhashfunctions.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcborvalue.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qdatetime.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcalendar.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qlocale.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qvariant.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qlist.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qiterator.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qbytearraylist.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringlist.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qalgorithms.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringmatcher.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qmetatype.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcompare.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qvarlengtharray.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qscopeguard.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qdatastream.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qscopedpointer.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qiodevicebase.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qiterable.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qmetacontainer.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcontainerinfo.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qtaggedpointer.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qmath.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qobjectdefs.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qobjectdefs_impl.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qmap.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qshareddata_impl.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qhash.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qobject.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcoreevent.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qobject_impl.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qbindingstorage.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qdebug.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qtextstream.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qstringconverter.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qset.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcontiguouscache.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qsharedpointer.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qsharedpointer_impl.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qcborcommon.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qregularexpression.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qurl.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/quuid.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QString \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QJsonDocument \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qjsondocument.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/QFile \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qfile.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qfiledevice.h \
|
||||||
|
../../QT/6.2.4/gcc_64/include/QtCore/qiodevice.h
|
||||||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o universalFunctions.o ../lab1/universalFunctions.cpp
|
||||||
|
|
||||||
qrc_qmake_qmake_qm_files.o: qrc_qmake_qmake_qm_files.cpp
|
qrc_qmake_qmake_qm_files.o: qrc_qmake_qmake_qm_files.cpp
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_qmake_qmake_qm_files.o qrc_qmake_qmake_qm_files.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_qmake_qmake_qm_files.o qrc_qmake_qmake_qm_files.cpp
|
||||||
|
|
||||||
|
|||||||
@ -5,5 +5,26 @@
|
|||||||
],
|
],
|
||||||
"ownerId": "1",
|
"ownerId": "1",
|
||||||
"title": ""
|
"title": ""
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"blogId": "2",
|
||||||
|
"items": [
|
||||||
|
],
|
||||||
|
"ownerId": "2",
|
||||||
|
"title": ""
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"blogId": "5",
|
||||||
|
"items": [
|
||||||
|
],
|
||||||
|
"ownerId": "65",
|
||||||
|
"title": "SAD"
|
||||||
|
},
|
||||||
|
"77": {
|
||||||
|
"blogId": "77",
|
||||||
|
"items": [
|
||||||
|
],
|
||||||
|
"ownerId": "77",
|
||||||
|
"title": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
|
|||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_DEPRECATED
|
QT_WARNING_DISABLE_DEPRECATED
|
||||||
struct qt_meta_stringdata_blogsView_t {
|
struct qt_meta_stringdata_blogsView_t {
|
||||||
const uint offsetsAndSize[8];
|
const uint offsetsAndSize[12];
|
||||||
char stringdata0[71];
|
char stringdata0[100];
|
||||||
};
|
};
|
||||||
#define QT_MOC_LITERAL(ofs, len) \
|
#define QT_MOC_LITERAL(ofs, len) \
|
||||||
uint(offsetof(qt_meta_stringdata_blogsView_t, stringdata0) + ofs), len
|
uint(offsetof(qt_meta_stringdata_blogsView_t, stringdata0) + ofs), len
|
||||||
@ -32,11 +32,14 @@ static const qt_meta_stringdata_blogsView_t qt_meta_stringdata_blogsView = {
|
|||||||
QT_MOC_LITERAL(0, 9), // "blogsView"
|
QT_MOC_LITERAL(0, 9), // "blogsView"
|
||||||
QT_MOC_LITERAL(10, 40), // "on_actionCreate_new_Blog_entr..."
|
QT_MOC_LITERAL(10, 40), // "on_actionCreate_new_Blog_entr..."
|
||||||
QT_MOC_LITERAL(51, 0), // ""
|
QT_MOC_LITERAL(51, 0), // ""
|
||||||
QT_MOC_LITERAL(52, 18) // "displayBlogEntries"
|
QT_MOC_LITERAL(52, 18), // "displayBlogEntries"
|
||||||
|
QT_MOC_LITERAL(71, 23), // "on_actionExit_triggered"
|
||||||
|
QT_MOC_LITERAL(95, 4) // "exit"
|
||||||
|
|
||||||
},
|
},
|
||||||
"blogsView\0on_actionCreate_new_Blog_entry_triggered\0"
|
"blogsView\0on_actionCreate_new_Blog_entry_triggered\0"
|
||||||
"\0displayBlogEntries"
|
"\0displayBlogEntries\0on_actionExit_triggered\0"
|
||||||
|
"exit"
|
||||||
};
|
};
|
||||||
#undef QT_MOC_LITERAL
|
#undef QT_MOC_LITERAL
|
||||||
|
|
||||||
@ -46,7 +49,7 @@ static const uint qt_meta_data_blogsView[] = {
|
|||||||
10, // revision
|
10, // revision
|
||||||
0, // classname
|
0, // classname
|
||||||
0, 0, // classinfo
|
0, 0, // classinfo
|
||||||
2, 14, // methods
|
4, 14, // methods
|
||||||
0, 0, // properties
|
0, 0, // properties
|
||||||
0, 0, // enums/sets
|
0, 0, // enums/sets
|
||||||
0, 0, // constructors
|
0, 0, // constructors
|
||||||
@ -54,10 +57,14 @@ static const uint qt_meta_data_blogsView[] = {
|
|||||||
0, // signalCount
|
0, // signalCount
|
||||||
|
|
||||||
// slots: name, argc, parameters, tag, flags, initial metatype offsets
|
// slots: name, argc, parameters, tag, flags, initial metatype offsets
|
||||||
1, 0, 26, 2, 0x08, 1 /* Private */,
|
1, 0, 38, 2, 0x08, 1 /* Private */,
|
||||||
3, 0, 27, 2, 0x08, 2 /* Private */,
|
3, 0, 39, 2, 0x08, 2 /* Private */,
|
||||||
|
4, 0, 40, 2, 0x08, 3 /* Private */,
|
||||||
|
5, 0, 41, 2, 0x08, 4 /* Private */,
|
||||||
|
|
||||||
// slots: parameters
|
// slots: parameters
|
||||||
|
QMetaType::Void,
|
||||||
|
QMetaType::Void,
|
||||||
QMetaType::Void,
|
QMetaType::Void,
|
||||||
QMetaType::Void,
|
QMetaType::Void,
|
||||||
|
|
||||||
@ -72,6 +79,8 @@ void blogsView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
|
|||||||
switch (_id) {
|
switch (_id) {
|
||||||
case 0: _t->on_actionCreate_new_Blog_entry_triggered(); break;
|
case 0: _t->on_actionCreate_new_Blog_entry_triggered(); break;
|
||||||
case 1: _t->displayBlogEntries(); break;
|
case 1: _t->displayBlogEntries(); break;
|
||||||
|
case 2: _t->on_actionExit_triggered(); break;
|
||||||
|
case 3: _t->exit(); break;
|
||||||
default: ;
|
default: ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -86,7 +95,7 @@ const QMetaObject blogsView::staticMetaObject = { {
|
|||||||
nullptr,
|
nullptr,
|
||||||
qt_incomplete_metaTypeArray<qt_meta_stringdata_blogsView_t
|
qt_incomplete_metaTypeArray<qt_meta_stringdata_blogsView_t
|
||||||
, QtPrivate::TypeAndForceComplete<blogsView, std::true_type>
|
, QtPrivate::TypeAndForceComplete<blogsView, std::true_type>
|
||||||
, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
|
, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
|
||||||
|
|
||||||
|
|
||||||
>,
|
>,
|
||||||
@ -113,13 +122,13 @@ int blogsView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
|||||||
if (_id < 0)
|
if (_id < 0)
|
||||||
return _id;
|
return _id;
|
||||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||||
if (_id < 2)
|
if (_id < 4)
|
||||||
qt_static_metacall(this, _c, _id, _a);
|
qt_static_metacall(this, _c, _id, _a);
|
||||||
_id -= 2;
|
_id -= 4;
|
||||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||||
if (_id < 2)
|
if (_id < 4)
|
||||||
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
|
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
|
||||||
_id -= 2;
|
_id -= 4;
|
||||||
}
|
}
|
||||||
return _id;
|
return _id;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@ -22,37 +22,17 @@ QT_BEGIN_MOC_NAMESPACE
|
|||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_DEPRECATED
|
QT_WARNING_DISABLE_DEPRECATED
|
||||||
struct qt_meta_stringdata_MainWindow_t {
|
struct qt_meta_stringdata_MainWindow_t {
|
||||||
const uint offsetsAndSize[32];
|
const uint offsetsAndSize[2];
|
||||||
char stringdata0[194];
|
char stringdata0[11];
|
||||||
};
|
};
|
||||||
#define QT_MOC_LITERAL(ofs, len) \
|
#define QT_MOC_LITERAL(ofs, len) \
|
||||||
uint(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs), len
|
uint(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs), len
|
||||||
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
|
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
|
||||||
{
|
{
|
||||||
QT_MOC_LITERAL(0, 10), // "MainWindow"
|
QT_MOC_LITERAL(0, 10) // "MainWindow"
|
||||||
QT_MOC_LITERAL(11, 18), // "saveRegisteredUser"
|
|
||||||
QT_MOC_LITERAL(30, 0), // ""
|
|
||||||
QT_MOC_LITERAL(31, 12), // "QJsonObject&"
|
|
||||||
QT_MOC_LITERAL(44, 5), // "users"
|
|
||||||
QT_MOC_LITERAL(50, 5), // "blogs"
|
|
||||||
QT_MOC_LITERAL(56, 21), // "on_pushButton_clicked"
|
|
||||||
QT_MOC_LITERAL(78, 12), // "saveJsonFile"
|
|
||||||
QT_MOC_LITERAL(91, 4), // "name"
|
|
||||||
QT_MOC_LITERAL(96, 12), // "readJsonFile"
|
|
||||||
QT_MOC_LITERAL(109, 5), // "title"
|
|
||||||
QT_MOC_LITERAL(115, 13), // "thisIdIsTaken"
|
|
||||||
QT_MOC_LITERAL(129, 13), // "thisIdIsEmpty"
|
|
||||||
QT_MOC_LITERAL(143, 17), // "thisBlogIdIsTaken"
|
|
||||||
QT_MOC_LITERAL(161, 22), // "on_loginButton_clicked"
|
|
||||||
QT_MOC_LITERAL(184, 9) // "goToLogin"
|
|
||||||
|
|
||||||
},
|
},
|
||||||
"MainWindow\0saveRegisteredUser\0\0"
|
"MainWindow"
|
||||||
"QJsonObject&\0users\0blogs\0on_pushButton_clicked\0"
|
|
||||||
"saveJsonFile\0name\0readJsonFile\0title\0"
|
|
||||||
"thisIdIsTaken\0thisIdIsEmpty\0"
|
|
||||||
"thisBlogIdIsTaken\0on_loginButton_clicked\0"
|
|
||||||
"goToLogin"
|
|
||||||
};
|
};
|
||||||
#undef QT_MOC_LITERAL
|
#undef QT_MOC_LITERAL
|
||||||
|
|
||||||
@ -62,57 +42,22 @@ static const uint qt_meta_data_MainWindow[] = {
|
|||||||
10, // revision
|
10, // revision
|
||||||
0, // classname
|
0, // classname
|
||||||
0, 0, // classinfo
|
0, 0, // classinfo
|
||||||
9, 14, // methods
|
0, 0, // methods
|
||||||
0, 0, // properties
|
0, 0, // properties
|
||||||
0, 0, // enums/sets
|
0, 0, // enums/sets
|
||||||
0, 0, // constructors
|
0, 0, // constructors
|
||||||
0, // flags
|
0, // flags
|
||||||
0, // signalCount
|
0, // signalCount
|
||||||
|
|
||||||
// slots: name, argc, parameters, tag, flags, initial metatype offsets
|
|
||||||
1, 2, 68, 2, 0x108, 1 /* Private | MethodIsConst */,
|
|
||||||
6, 0, 73, 2, 0x08, 4 /* Private */,
|
|
||||||
7, 2, 74, 2, 0x108, 5 /* Private | MethodIsConst */,
|
|
||||||
9, 1, 79, 2, 0x08, 8 /* Private */,
|
|
||||||
11, 0, 82, 2, 0x108, 10 /* Private | MethodIsConst */,
|
|
||||||
12, 0, 83, 2, 0x108, 11 /* Private | MethodIsConst */,
|
|
||||||
13, 0, 84, 2, 0x108, 12 /* Private | MethodIsConst */,
|
|
||||||
14, 0, 85, 2, 0x08, 13 /* Private */,
|
|
||||||
15, 0, 86, 2, 0x08, 14 /* Private */,
|
|
||||||
|
|
||||||
// slots: parameters
|
|
||||||
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 3, 4, 5,
|
|
||||||
QMetaType::Void,
|
|
||||||
QMetaType::Void, 0x80000000 | 3, QMetaType::QString, 4, 8,
|
|
||||||
QMetaType::QJsonObject, QMetaType::QString, 10,
|
|
||||||
QMetaType::Void,
|
|
||||||
QMetaType::Void,
|
|
||||||
QMetaType::Void,
|
|
||||||
QMetaType::Void,
|
|
||||||
QMetaType::Void,
|
|
||||||
|
|
||||||
0 // eod
|
0 // eod
|
||||||
};
|
};
|
||||||
|
|
||||||
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||||
{
|
{
|
||||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
(void)_o;
|
||||||
auto *_t = static_cast<MainWindow *>(_o);
|
(void)_id;
|
||||||
(void)_t;
|
(void)_c;
|
||||||
switch (_id) {
|
(void)_a;
|
||||||
case 0: _t->saveRegisteredUser((*reinterpret_cast< std::add_pointer_t<QJsonObject&>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QJsonObject&>>(_a[2]))); break;
|
|
||||||
case 1: _t->on_pushButton_clicked(); break;
|
|
||||||
case 2: _t->saveJsonFile((*reinterpret_cast< std::add_pointer_t<QJsonObject&>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2]))); break;
|
|
||||||
case 3: { QJsonObject _r = _t->readJsonFile((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
|
|
||||||
if (_a[0]) *reinterpret_cast< QJsonObject*>(_a[0]) = std::move(_r); } break;
|
|
||||||
case 4: _t->thisIdIsTaken(); break;
|
|
||||||
case 5: _t->thisIdIsEmpty(); break;
|
|
||||||
case 6: _t->thisBlogIdIsTaken(); break;
|
|
||||||
case 7: _t->on_loginButton_clicked(); break;
|
|
||||||
case 8: _t->goToLogin(); break;
|
|
||||||
default: ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const QMetaObject MainWindow::staticMetaObject = { {
|
const QMetaObject MainWindow::staticMetaObject = { {
|
||||||
@ -123,7 +68,7 @@ const QMetaObject MainWindow::staticMetaObject = { {
|
|||||||
nullptr,
|
nullptr,
|
||||||
qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t
|
qt_incomplete_metaTypeArray<qt_meta_stringdata_MainWindow_t
|
||||||
, QtPrivate::TypeAndForceComplete<MainWindow, std::true_type>
|
, QtPrivate::TypeAndForceComplete<MainWindow, std::true_type>
|
||||||
, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QJsonObject &, std::false_type>, QtPrivate::TypeAndForceComplete<QJsonObject &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QJsonObject &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString, std::false_type>, QtPrivate::TypeAndForceComplete<QJsonObject, std::false_type>, QtPrivate::TypeAndForceComplete<const QString, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
|
|
||||||
|
|
||||||
|
|
||||||
>,
|
>,
|
||||||
@ -147,17 +92,6 @@ void *MainWindow::qt_metacast(const char *_clname)
|
|||||||
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||||
{
|
{
|
||||||
_id = QMainWindow::qt_metacall(_c, _id, _a);
|
_id = QMainWindow::qt_metacall(_c, _id, _a);
|
||||||
if (_id < 0)
|
|
||||||
return _id;
|
|
||||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
|
||||||
if (_id < 9)
|
|
||||||
qt_static_metacall(this, _c, _id, _a);
|
|
||||||
_id -= 9;
|
|
||||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
|
||||||
if (_id < 9)
|
|
||||||
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
|
|
||||||
_id -= 9;
|
|
||||||
}
|
|
||||||
return _id;
|
return _id;
|
||||||
}
|
}
|
||||||
QT_WARNING_POP
|
QT_WARNING_POP
|
||||||
|
|||||||
Binary file not shown.
@ -26,14 +26,14 @@ class Ui_blogsView
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QAction *actionCreate_new_Blog_entry;
|
QAction *actionCreate_new_Blog_entry;
|
||||||
QAction *actionDelete_blog_entry;
|
QAction *actionExit;
|
||||||
QAction *actionEdit_blog_entry;
|
|
||||||
QWidget *centralwidget;
|
QWidget *centralwidget;
|
||||||
QGridLayout *gridLayout;
|
QGridLayout *gridLayout;
|
||||||
QVBoxLayout *blogsLayout;
|
QVBoxLayout *blogsLayout;
|
||||||
|
QStatusBar *statusbar;
|
||||||
QMenuBar *menubar;
|
QMenuBar *menubar;
|
||||||
QMenu *menuManageBlogEntires;
|
QMenu *menuManageBlogEntires;
|
||||||
QStatusBar *statusbar;
|
QMenu *menuExit;
|
||||||
|
|
||||||
void setupUi(QMainWindow *blogsView)
|
void setupUi(QMainWindow *blogsView)
|
||||||
{
|
{
|
||||||
@ -42,10 +42,8 @@ public:
|
|||||||
blogsView->resize(800, 600);
|
blogsView->resize(800, 600);
|
||||||
actionCreate_new_Blog_entry = new QAction(blogsView);
|
actionCreate_new_Blog_entry = new QAction(blogsView);
|
||||||
actionCreate_new_Blog_entry->setObjectName(QString::fromUtf8("actionCreate_new_Blog_entry"));
|
actionCreate_new_Blog_entry->setObjectName(QString::fromUtf8("actionCreate_new_Blog_entry"));
|
||||||
actionDelete_blog_entry = new QAction(blogsView);
|
actionExit = new QAction(blogsView);
|
||||||
actionDelete_blog_entry->setObjectName(QString::fromUtf8("actionDelete_blog_entry"));
|
actionExit->setObjectName(QString::fromUtf8("actionExit"));
|
||||||
actionEdit_blog_entry = new QAction(blogsView);
|
|
||||||
actionEdit_blog_entry->setObjectName(QString::fromUtf8("actionEdit_blog_entry"));
|
|
||||||
centralwidget = new QWidget(blogsView);
|
centralwidget = new QWidget(blogsView);
|
||||||
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
||||||
gridLayout = new QGridLayout(centralwidget);
|
gridLayout = new QGridLayout(centralwidget);
|
||||||
@ -56,20 +54,22 @@ public:
|
|||||||
gridLayout->addLayout(blogsLayout, 0, 0, 1, 1);
|
gridLayout->addLayout(blogsLayout, 0, 0, 1, 1);
|
||||||
|
|
||||||
blogsView->setCentralWidget(centralwidget);
|
blogsView->setCentralWidget(centralwidget);
|
||||||
|
statusbar = new QStatusBar(blogsView);
|
||||||
|
statusbar->setObjectName(QString::fromUtf8("statusbar"));
|
||||||
|
blogsView->setStatusBar(statusbar);
|
||||||
menubar = new QMenuBar(blogsView);
|
menubar = new QMenuBar(blogsView);
|
||||||
menubar->setObjectName(QString::fromUtf8("menubar"));
|
menubar->setObjectName(QString::fromUtf8("menubar"));
|
||||||
menubar->setGeometry(QRect(0, 0, 800, 19));
|
menubar->setGeometry(QRect(0, 0, 800, 19));
|
||||||
menuManageBlogEntires = new QMenu(menubar);
|
menuManageBlogEntires = new QMenu(menubar);
|
||||||
menuManageBlogEntires->setObjectName(QString::fromUtf8("menuManageBlogEntires"));
|
menuManageBlogEntires->setObjectName(QString::fromUtf8("menuManageBlogEntires"));
|
||||||
|
menuExit = new QMenu(menubar);
|
||||||
|
menuExit->setObjectName(QString::fromUtf8("menuExit"));
|
||||||
blogsView->setMenuBar(menubar);
|
blogsView->setMenuBar(menubar);
|
||||||
statusbar = new QStatusBar(blogsView);
|
|
||||||
statusbar->setObjectName(QString::fromUtf8("statusbar"));
|
|
||||||
blogsView->setStatusBar(statusbar);
|
|
||||||
|
|
||||||
menubar->addAction(menuManageBlogEntires->menuAction());
|
menubar->addAction(menuManageBlogEntires->menuAction());
|
||||||
|
menubar->addAction(menuExit->menuAction());
|
||||||
menuManageBlogEntires->addAction(actionCreate_new_Blog_entry);
|
menuManageBlogEntires->addAction(actionCreate_new_Blog_entry);
|
||||||
menuManageBlogEntires->addAction(actionDelete_blog_entry);
|
menuExit->addAction(actionExit);
|
||||||
menuManageBlogEntires->addAction(actionEdit_blog_entry);
|
|
||||||
|
|
||||||
retranslateUi(blogsView);
|
retranslateUi(blogsView);
|
||||||
|
|
||||||
@ -80,9 +80,9 @@ public:
|
|||||||
{
|
{
|
||||||
blogsView->setWindowTitle(QCoreApplication::translate("blogsView", "MainWindow", nullptr));
|
blogsView->setWindowTitle(QCoreApplication::translate("blogsView", "MainWindow", nullptr));
|
||||||
actionCreate_new_Blog_entry->setText(QCoreApplication::translate("blogsView", "Create blog entry", nullptr));
|
actionCreate_new_Blog_entry->setText(QCoreApplication::translate("blogsView", "Create blog entry", nullptr));
|
||||||
actionDelete_blog_entry->setText(QCoreApplication::translate("blogsView", "Delete blog entry", nullptr));
|
actionExit->setText(QCoreApplication::translate("blogsView", "Exit", nullptr));
|
||||||
actionEdit_blog_entry->setText(QCoreApplication::translate("blogsView", "Edit blog entry", nullptr));
|
|
||||||
menuManageBlogEntires->setTitle(QCoreApplication::translate("blogsView", "Blogs", nullptr));
|
menuManageBlogEntires->setTitle(QCoreApplication::translate("blogsView", "Blogs", nullptr));
|
||||||
|
menuExit->setTitle(QCoreApplication::translate("blogsView", "App", nullptr));
|
||||||
} // retranslateUi
|
} // retranslateUi
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <QtCore/QVariant>
|
#include <QtCore/QVariant>
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include <QtWidgets/QGridLayout>
|
#include <QtWidgets/QFormLayout>
|
||||||
#include <QtWidgets/QLabel>
|
#include <QtWidgets/QLabel>
|
||||||
#include <QtWidgets/QLineEdit>
|
#include <QtWidgets/QLineEdit>
|
||||||
#include <QtWidgets/QMainWindow>
|
#include <QtWidgets/QMainWindow>
|
||||||
@ -26,7 +26,7 @@ class Ui_login
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QWidget *centralwidget;
|
QWidget *centralwidget;
|
||||||
QGridLayout *gridLayout;
|
QFormLayout *formLayout;
|
||||||
QLabel *label;
|
QLabel *label;
|
||||||
QLabel *label_2;
|
QLabel *label_2;
|
||||||
QLineEdit *inputLoginID_2;
|
QLineEdit *inputLoginID_2;
|
||||||
@ -43,38 +43,38 @@ public:
|
|||||||
login->resize(800, 600);
|
login->resize(800, 600);
|
||||||
centralwidget = new QWidget(login);
|
centralwidget = new QWidget(login);
|
||||||
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
||||||
gridLayout = new QGridLayout(centralwidget);
|
formLayout = new QFormLayout(centralwidget);
|
||||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
formLayout->setObjectName(QString::fromUtf8("formLayout"));
|
||||||
label = new QLabel(centralwidget);
|
label = new QLabel(centralwidget);
|
||||||
label->setObjectName(QString::fromUtf8("label"));
|
label->setObjectName(QString::fromUtf8("label"));
|
||||||
|
|
||||||
gridLayout->addWidget(label, 0, 0, 1, 1);
|
formLayout->setWidget(0, QFormLayout::SpanningRole, label);
|
||||||
|
|
||||||
label_2 = new QLabel(centralwidget);
|
label_2 = new QLabel(centralwidget);
|
||||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||||
|
|
||||||
gridLayout->addWidget(label_2, 1, 0, 1, 1);
|
formLayout->setWidget(1, QFormLayout::SpanningRole, label_2);
|
||||||
|
|
||||||
inputLoginID_2 = new QLineEdit(centralwidget);
|
inputLoginID_2 = new QLineEdit(centralwidget);
|
||||||
inputLoginID_2->setObjectName(QString::fromUtf8("inputLoginID_2"));
|
inputLoginID_2->setObjectName(QString::fromUtf8("inputLoginID_2"));
|
||||||
|
|
||||||
gridLayout->addWidget(inputLoginID_2, 2, 0, 1, 1);
|
formLayout->setWidget(2, QFormLayout::SpanningRole, inputLoginID_2);
|
||||||
|
|
||||||
label_3 = new QLabel(centralwidget);
|
label_3 = new QLabel(centralwidget);
|
||||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||||
|
|
||||||
gridLayout->addWidget(label_3, 3, 0, 1, 1);
|
formLayout->setWidget(3, QFormLayout::SpanningRole, label_3);
|
||||||
|
|
||||||
inputPassword = new QLineEdit(centralwidget);
|
inputPassword = new QLineEdit(centralwidget);
|
||||||
inputPassword->setObjectName(QString::fromUtf8("inputPassword"));
|
inputPassword->setObjectName(QString::fromUtf8("inputPassword"));
|
||||||
inputPassword->setEchoMode(QLineEdit::Password);
|
inputPassword->setEchoMode(QLineEdit::Password);
|
||||||
|
|
||||||
gridLayout->addWidget(inputPassword, 4, 0, 1, 1);
|
formLayout->setWidget(4, QFormLayout::SpanningRole, inputPassword);
|
||||||
|
|
||||||
loginButton = new QPushButton(centralwidget);
|
loginButton = new QPushButton(centralwidget);
|
||||||
loginButton->setObjectName(QString::fromUtf8("loginButton"));
|
loginButton->setObjectName(QString::fromUtf8("loginButton"));
|
||||||
|
|
||||||
gridLayout->addWidget(loginButton, 5, 0, 1, 1);
|
formLayout->setWidget(5, QFormLayout::SpanningRole, loginButton);
|
||||||
|
|
||||||
login->setCentralWidget(centralwidget);
|
login->setCentralWidget(centralwidget);
|
||||||
menubar = new QMenuBar(login);
|
menubar = new QMenuBar(login);
|
||||||
|
|||||||
@ -10,11 +10,13 @@
|
|||||||
#define UI_MAINWINDOW_H
|
#define UI_MAINWINDOW_H
|
||||||
|
|
||||||
#include <QtCore/QVariant>
|
#include <QtCore/QVariant>
|
||||||
|
#include <QtGui/QAction>
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include <QtWidgets/QFormLayout>
|
#include <QtWidgets/QFormLayout>
|
||||||
#include <QtWidgets/QLabel>
|
#include <QtWidgets/QLabel>
|
||||||
#include <QtWidgets/QLineEdit>
|
#include <QtWidgets/QLineEdit>
|
||||||
#include <QtWidgets/QMainWindow>
|
#include <QtWidgets/QMainWindow>
|
||||||
|
#include <QtWidgets/QMenu>
|
||||||
#include <QtWidgets/QMenuBar>
|
#include <QtWidgets/QMenuBar>
|
||||||
#include <QtWidgets/QPushButton>
|
#include <QtWidgets/QPushButton>
|
||||||
#include <QtWidgets/QWidget>
|
#include <QtWidgets/QWidget>
|
||||||
@ -24,6 +26,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
class Ui_MainWindow
|
class Ui_MainWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
QAction *actionExit;
|
||||||
|
QAction *actionLogin;
|
||||||
QWidget *centralwidget;
|
QWidget *centralwidget;
|
||||||
QFormLayout *formLayout;
|
QFormLayout *formLayout;
|
||||||
QLabel *label;
|
QLabel *label;
|
||||||
@ -40,12 +44,17 @@ public:
|
|||||||
QLineEdit *inputBlogID;
|
QLineEdit *inputBlogID;
|
||||||
QLabel *label_6;
|
QLabel *label_6;
|
||||||
QMenuBar *menubar;
|
QMenuBar *menubar;
|
||||||
|
QMenu *menuApp;
|
||||||
|
|
||||||
void setupUi(QMainWindow *MainWindow)
|
void setupUi(QMainWindow *MainWindow)
|
||||||
{
|
{
|
||||||
if (MainWindow->objectName().isEmpty())
|
if (MainWindow->objectName().isEmpty())
|
||||||
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
|
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
|
||||||
MainWindow->resize(800, 600);
|
MainWindow->resize(800, 600);
|
||||||
|
actionExit = new QAction(MainWindow);
|
||||||
|
actionExit->setObjectName(QString::fromUtf8("actionExit"));
|
||||||
|
actionLogin = new QAction(MainWindow);
|
||||||
|
actionLogin->setObjectName(QString::fromUtf8("actionLogin"));
|
||||||
centralwidget = new QWidget(MainWindow);
|
centralwidget = new QWidget(MainWindow);
|
||||||
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
||||||
formLayout = new QFormLayout(centralwidget);
|
formLayout = new QFormLayout(centralwidget);
|
||||||
@ -120,8 +129,14 @@ public:
|
|||||||
menubar = new QMenuBar(MainWindow);
|
menubar = new QMenuBar(MainWindow);
|
||||||
menubar->setObjectName(QString::fromUtf8("menubar"));
|
menubar->setObjectName(QString::fromUtf8("menubar"));
|
||||||
menubar->setGeometry(QRect(0, 0, 800, 19));
|
menubar->setGeometry(QRect(0, 0, 800, 19));
|
||||||
|
menuApp = new QMenu(menubar);
|
||||||
|
menuApp->setObjectName(QString::fromUtf8("menuApp"));
|
||||||
MainWindow->setMenuBar(menubar);
|
MainWindow->setMenuBar(menubar);
|
||||||
|
|
||||||
|
menubar->addAction(menuApp->menuAction());
|
||||||
|
menuApp->addAction(actionExit);
|
||||||
|
menuApp->addAction(actionLogin);
|
||||||
|
|
||||||
retranslateUi(MainWindow);
|
retranslateUi(MainWindow);
|
||||||
|
|
||||||
QMetaObject::connectSlotsByName(MainWindow);
|
QMetaObject::connectSlotsByName(MainWindow);
|
||||||
@ -130,6 +145,8 @@ public:
|
|||||||
void retranslateUi(QMainWindow *MainWindow)
|
void retranslateUi(QMainWindow *MainWindow)
|
||||||
{
|
{
|
||||||
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
|
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
|
||||||
|
actionExit->setText(QCoreApplication::translate("MainWindow", "Exit", nullptr));
|
||||||
|
actionLogin->setText(QCoreApplication::translate("MainWindow", "Login", nullptr));
|
||||||
label->setText(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:48pt;\">Register</span></p></body></html>", nullptr));
|
label->setText(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:48pt;\">Register</span></p></body></html>", nullptr));
|
||||||
#if QT_CONFIG(tooltip)
|
#if QT_CONFIG(tooltip)
|
||||||
inputId->setToolTip(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:48pt;\">Input ID</span></p></body></html>", nullptr));
|
inputId->setToolTip(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:48pt;\">Input ID</span></p></body></html>", nullptr));
|
||||||
@ -154,6 +171,7 @@ public:
|
|||||||
loginButton->setText(QCoreApplication::translate("MainWindow", "Already Registered? Click here to Login!", nullptr));
|
loginButton->setText(QCoreApplication::translate("MainWindow", "Already Registered? Click here to Login!", nullptr));
|
||||||
label_5->setText(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:28pt;\">Blog Title</span></p></body></html>", nullptr));
|
label_5->setText(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:28pt;\">Blog Title</span></p></body></html>", nullptr));
|
||||||
label_6->setText(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:28pt;\">Blog ID</span></p></body></html>", nullptr));
|
label_6->setText(QCoreApplication::translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-size:28pt;\">Blog ID</span></p></body></html>", nullptr));
|
||||||
|
menuApp->setTitle(QCoreApplication::translate("MainWindow", "App", nullptr));
|
||||||
} // retranslateUi
|
} // retranslateUi
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -3,5 +3,20 @@
|
|||||||
"email": "",
|
"email": "",
|
||||||
"password": "",
|
"password": "",
|
||||||
"userId": "1"
|
"userId": "1"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"email": "",
|
||||||
|
"password": "",
|
||||||
|
"userId": "2"
|
||||||
|
},
|
||||||
|
"65": {
|
||||||
|
"email": "",
|
||||||
|
"password": "",
|
||||||
|
"userId": "65"
|
||||||
|
},
|
||||||
|
"77": {
|
||||||
|
"email": "",
|
||||||
|
"password": "",
|
||||||
|
"userId": "77"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,6 +33,7 @@ private slots:
|
|||||||
void editEntry();
|
void editEntry();
|
||||||
void saveEditedEntry();
|
void saveEditedEntry();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::blogEntry *ui;
|
Ui::blogEntry *ui;
|
||||||
QString userId;
|
QString userId;
|
||||||
|
|||||||
@ -90,3 +90,13 @@ void blogsView::on_actionCreate_new_Blog_entry_triggered()
|
|||||||
createNewBlogEntry();
|
createNewBlogEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void blogsView::exit()
|
||||||
|
{
|
||||||
|
QApplication::quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
void blogsView::on_actionExit_triggered()
|
||||||
|
{
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,9 @@ private slots:
|
|||||||
void displayBlogEntries();
|
void displayBlogEntries();
|
||||||
|
|
||||||
|
|
||||||
|
void on_actionExit_triggered();
|
||||||
|
void exit();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::blogsView *ui;
|
Ui::blogsView *ui;
|
||||||
QString userId;
|
QString userId;
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
<widget class="QMenuBar" name="menubar">
|
<widget class="QMenuBar" name="menubar">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
@ -34,25 +35,24 @@
|
|||||||
<string>Blogs</string>
|
<string>Blogs</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionCreate_new_Blog_entry"/>
|
<addaction name="actionCreate_new_Blog_entry"/>
|
||||||
<addaction name="actionDelete_blog_entry"/>
|
</widget>
|
||||||
<addaction name="actionEdit_blog_entry"/>
|
<widget class="QMenu" name="menuExit">
|
||||||
|
<property name="title">
|
||||||
|
<string>App</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionExit"/>
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="menuManageBlogEntires"/>
|
<addaction name="menuManageBlogEntires"/>
|
||||||
|
<addaction name="menuExit"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar"/>
|
|
||||||
<action name="actionCreate_new_Blog_entry">
|
<action name="actionCreate_new_Blog_entry">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Create blog entry</string>
|
<string>Create blog entry</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionDelete_blog_entry">
|
<action name="actionExit">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Delete blog entry</string>
|
<string>Exit</string>
|
||||||
</property>
|
|
||||||
</action>
|
|
||||||
<action name="actionEdit_blog_entry">
|
|
||||||
<property name="text">
|
|
||||||
<string>Edit blog entry</string>
|
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
@ -13,13 +13,15 @@ SOURCES += \
|
|||||||
blogsview.cpp \
|
blogsview.cpp \
|
||||||
login.cpp \
|
login.cpp \
|
||||||
main.cpp \
|
main.cpp \
|
||||||
mainwindow.cpp
|
mainwindow.cpp \
|
||||||
|
universalFunctions.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
blogentry.h \
|
blogentry.h \
|
||||||
blogsview.h \
|
blogsview.h \
|
||||||
login.h \
|
login.h \
|
||||||
mainwindow.h
|
mainwindow.h \
|
||||||
|
universalFunctions.h
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
blogentry.ui \
|
blogentry.ui \
|
||||||
|
|||||||
@ -14,39 +14,39 @@
|
|||||||
<string>MainWindow</string>
|
<string>MainWindow</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p align="center"><span style=" font-size:72pt;">Login</span></p></body></html></string>
|
<string><html><head/><body><p align="center"><span style=" font-size:72pt;">Login</span></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p align="center"><span style=" font-size:36pt;">ID</span></p></body></html></string>
|
<string><html><head/><body><p align="center"><span style=" font-size:36pt;">ID</span></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QLineEdit" name="inputLoginID_2"/>
|
<widget class="QLineEdit" name="inputLoginID_2"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p align="center"><span style=" font-size:36pt;">Password</span></p></body></html></string>
|
<string><html><head/><body><p align="center"><span style=" font-size:36pt;">Password</span></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="4" column="0" colspan="2">
|
||||||
<widget class="QLineEdit" name="inputPassword">
|
<widget class="QLineEdit" name="inputPassword">
|
||||||
<property name="echoMode">
|
<property name="echoMode">
|
||||||
<enum>QLineEdit::Password</enum>
|
<enum>QLineEdit::Password</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="5" column="0" colspan="2">
|
||||||
<widget class="QPushButton" name="loginButton">
|
<widget class="QPushButton" name="loginButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Login</string>
|
<string>Login</string>
|
||||||
|
|||||||
@ -1,9 +1,14 @@
|
|||||||
#include "mainwindow.h" // header file included, header files for the Notepad widget
|
|
||||||
|
|
||||||
|
#include "mainwindow.h" // header file included, header files for the Notepad widget
|
||||||
|
#include "universalFunctions.h"
|
||||||
#include <QApplication> // handle widgets, events, mouse movement, feel of window,
|
#include <QApplication> // handle widgets, events, mouse movement, feel of window,
|
||||||
// header files for QApplication
|
// header files for QApplication
|
||||||
#include <QLocale>
|
#include <QLocale>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
|
#include <QFile>
|
||||||
|
#include <QJsonDocument>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// main function that is the entry point for all C and C++ based applications:
|
// main function that is the entry point for all C and C++ based applications:
|
||||||
int main(int argc, char *argv[]) // all exectution begins here
|
int main(int argc, char *argv[]) // all exectution begins here
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#include "mainwindow.h" // Notepad class header file that was generated by the wizard
|
#include "mainwindow.h" // Notepad class header file that was generated by the wizard
|
||||||
#include "ui_mainwindow.h"// UI header file that was generated by the uic tool
|
#include "ui_mainwindow.h"// UI header file that was generated by the uic tool
|
||||||
#include "login.h"
|
#include "login.h"
|
||||||
|
#include "universalFunctions.h"
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -16,6 +17,20 @@ MainWindow::MainWindow(QWidget *parent) // class definition, constructor
|
|||||||
// creates the UI class instance and assigns it to the ui member:
|
// creates the UI class instance and assigns it to the ui member:
|
||||||
{
|
{
|
||||||
ui->setupUi(this); // setup user interface
|
ui->setupUi(this); // setup user interface
|
||||||
|
defineConnections();
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::defineConnections() const
|
||||||
|
{
|
||||||
|
connect(ui -> loginButton, &QPushButton::clicked, this, &MainWindow::goToLogin);
|
||||||
|
connect(ui -> pushButton, &QPushButton::clicked, this, &MainWindow::saveRegisteredUser);
|
||||||
|
connect(ui -> actionExit, &QAction::triggered, this, &MainWindow::exit);
|
||||||
|
connect(ui -> actionLogin, &QAction::triggered, this, &MainWindow::goToLogin);
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::exit()
|
||||||
|
{
|
||||||
|
QApplication::quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
@ -23,60 +38,14 @@ MainWindow::~MainWindow()
|
|||||||
delete ui; // in the destructor, we delete the ui
|
delete ui; // in the destructor, we delete the ui
|
||||||
}
|
}
|
||||||
|
|
||||||
QJsonObject MainWindow::readJsonFile(const QString title)
|
void MainWindow::saveRegisteredUser() const
|
||||||
{
|
|
||||||
|
|
||||||
QFile file(title);
|
|
||||||
file.open(QIODevice::ReadWrite);
|
|
||||||
QByteArray bytes = file.readAll();
|
|
||||||
file.close();
|
|
||||||
QJsonDocument document = QJsonDocument::fromJson( bytes );
|
|
||||||
return document.object();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::saveJsonFile(QJsonObject &users, const QString name) const
|
|
||||||
{
|
|
||||||
|
|
||||||
QFile jsonFile(name);
|
|
||||||
QJsonDocument document;
|
|
||||||
document.setObject( users );
|
|
||||||
QByteArray bytes = document.toJson( QJsonDocument::Indented );
|
|
||||||
jsonFile.open( QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate );
|
|
||||||
QTextStream iStream( &jsonFile );
|
|
||||||
// iStream.setCodec( "utf-8" );
|
|
||||||
iStream << bytes;
|
|
||||||
jsonFile.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
// You cannot create a user without an id
|
|
||||||
void MainWindow::thisIdIsEmpty() const
|
|
||||||
{
|
|
||||||
QMessageBox idEmpty;
|
|
||||||
idEmpty.setText("THIS ID IS EMPTY!");
|
|
||||||
idEmpty.exec();
|
|
||||||
}
|
|
||||||
|
|
||||||
// You cannot create a user with id similar to an existing one
|
|
||||||
void MainWindow::thisIdIsTaken() const
|
|
||||||
{
|
|
||||||
QMessageBox idTaken;
|
|
||||||
idTaken.setText("THIS ID IS ALREADY TAKEN!");
|
|
||||||
idTaken.exec();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::thisBlogIdIsTaken() const
|
|
||||||
{
|
|
||||||
QMessageBox idTaken;
|
|
||||||
idTaken.setText("THIS BLOG ID IS ALREADY TAKEN!");
|
|
||||||
idTaken.exec();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::saveRegisteredUser(QJsonObject &users, QJsonObject &blogs) const
|
|
||||||
{
|
{
|
||||||
|
QJsonObject blogs = readJsonFile("blogs.json");
|
||||||
|
QJsonObject users = readJsonFile("user.json");
|
||||||
QString id = ui->inputId->text();
|
QString id = ui->inputId->text();
|
||||||
if(id == "")
|
if(id == "")
|
||||||
{
|
{
|
||||||
thisIdIsEmpty();
|
outputMessageBox("THIS ID IS EMPTY!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(users.find(id) == users.end())
|
if(users.find(id) == users.end())
|
||||||
@ -107,19 +76,10 @@ void MainWindow::saveRegisteredUser(QJsonObject &users, QJsonObject &blogs) cons
|
|||||||
blogs.insert(blogId, blog);
|
blogs.insert(blogId, blog);
|
||||||
saveJsonFile(blogs, "blogs.json");
|
saveJsonFile(blogs, "blogs.json");
|
||||||
saveJsonFile(users, "user.json");
|
saveJsonFile(users, "user.json");
|
||||||
}else thisBlogIdIsTaken();
|
}else outputMessageBox("THIS BLOG ID IS ALREADY TAKEN!");
|
||||||
}else thisIdIsTaken();
|
}else outputMessageBox("THIS ID IS ALREADY TAKEN!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::on_pushButton_clicked()
|
|
||||||
{
|
|
||||||
QJsonObject blogs = readJsonFile("blogs.json");
|
|
||||||
QJsonObject users = readJsonFile("user.json");
|
|
||||||
saveRegisteredUser(users, blogs);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void MainWindow::goToLogin()
|
void MainWindow::goToLogin()
|
||||||
{
|
{
|
||||||
login *l = new login();
|
login *l = new login();
|
||||||
@ -127,8 +87,9 @@ void MainWindow::goToLogin()
|
|||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_loginButton_clicked()
|
void MainWindow::test()
|
||||||
{
|
{
|
||||||
goToLogin();
|
qDebug() << "pls work";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
// We can add more functionality using #include <Q...>
|
// We can add more functionality using #include <Q...>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
namespace Ui { class MainWindow; } // we are saying that we want to use standard ui namespace
|
namespace Ui { class MainWindow; } // we are saying that we want to use standard ui namespace
|
||||||
// tied to our UI file "mainwindow.ui"
|
// tied to our UI file "mainwindow.ui"
|
||||||
@ -24,24 +25,18 @@ public:
|
|||||||
MainWindow(QWidget *parent = nullptr); // constructor, we pass nullptr so no parents
|
MainWindow(QWidget *parent = nullptr); // constructor, we pass nullptr so no parents
|
||||||
// (top-level widget)
|
// (top-level widget)
|
||||||
~MainWindow(); // destructor, free resources
|
~MainWindow(); // destructor, free resources
|
||||||
void newDocument();
|
|
||||||
void open();
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
void saveRegisteredUser(QJsonObject &users, QJsonObject &blogs) const;
|
|
||||||
|
|
||||||
void on_pushButton_clicked();
|
|
||||||
void saveJsonFile(QJsonObject &users, const QString name) const;
|
|
||||||
QJsonObject readJsonFile(const QString title);
|
|
||||||
void thisIdIsTaken() const;
|
|
||||||
void thisIdIsEmpty() const;
|
|
||||||
void thisBlogIdIsTaken() const;
|
|
||||||
|
|
||||||
void on_loginButton_clicked();
|
|
||||||
void goToLogin();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void newDocument();
|
||||||
|
void open();
|
||||||
|
void saveRegisteredUser() const;
|
||||||
|
void goToLogin();
|
||||||
|
void defineConnections() const;
|
||||||
|
void test();
|
||||||
|
void exit();
|
||||||
Ui::MainWindow *ui; // we point to ui class "mainwindow.ui"
|
Ui::MainWindow *ui; // we point to ui class "mainwindow.ui"
|
||||||
QString currentFile = ""; // current file we work with
|
QString currentFile = ""; // current file we work with
|
||||||
};
|
};
|
||||||
|
|||||||
@ -121,7 +121,25 @@
|
|||||||
<height>19</height>
|
<height>19</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<widget class="QMenu" name="menuApp">
|
||||||
|
<property name="title">
|
||||||
|
<string>App</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionExit"/>
|
||||||
|
<addaction name="actionLogin"/>
|
||||||
|
</widget>
|
||||||
|
<addaction name="menuApp"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
<action name="actionExit">
|
||||||
|
<property name="text">
|
||||||
|
<string>Exit</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionLogin">
|
||||||
|
<property name="text">
|
||||||
|
<string>Login</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
|||||||
0
EGUI/lab1/universalFunction.cpp
Normal file
0
EGUI/lab1/universalFunction.cpp
Normal file
46
EGUI/lab1/universalFunctions.cpp
Normal file
46
EGUI/lab1/universalFunctions.cpp
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
#ifndef UNIVERSAL_FUNCTIONS_CPP
|
||||||
|
#define UNIVERSAL_FUNCTIONS_CPP
|
||||||
|
#include <QJsonObject>
|
||||||
|
#include <QString>
|
||||||
|
#include <QJsonDocument>
|
||||||
|
#include <QFile>
|
||||||
|
#include <QMessageBox>
|
||||||
|
#include <QApplication>
|
||||||
|
|
||||||
|
QJsonObject readJsonFile(const QString title)
|
||||||
|
{
|
||||||
|
QFile file(title);
|
||||||
|
file.open(QIODevice::ReadWrite);
|
||||||
|
QByteArray bytes = file.readAll();
|
||||||
|
file.close();
|
||||||
|
QJsonDocument document = QJsonDocument::fromJson( bytes );
|
||||||
|
return document.object();
|
||||||
|
}
|
||||||
|
|
||||||
|
void saveJsonFile(QJsonObject &users, const QString name)
|
||||||
|
{
|
||||||
|
QFile jsonFile(name);
|
||||||
|
QJsonDocument document;
|
||||||
|
document.setObject( users );
|
||||||
|
QByteArray bytes = document.toJson( QJsonDocument::Indented );
|
||||||
|
jsonFile.open( QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate );
|
||||||
|
QTextStream iStream( &jsonFile );
|
||||||
|
// iStream.setCodec( "utf-8" );
|
||||||
|
iStream << bytes;
|
||||||
|
jsonFile.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
void outputMessageBox(const QString messageBoxText)
|
||||||
|
{
|
||||||
|
QMessageBox idEmpty;
|
||||||
|
idEmpty.setText(messageBoxText);
|
||||||
|
idEmpty.exec();
|
||||||
|
}
|
||||||
|
|
||||||
|
void exit()
|
||||||
|
{
|
||||||
|
QApplication::quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
12
EGUI/lab1/universalFunctions.h
Normal file
12
EGUI/lab1/universalFunctions.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#ifndef UNIVERSALFUNCTIONS_H
|
||||||
|
#define UNIVERSALFUNCTIONS_H
|
||||||
|
|
||||||
|
#include <QJsonObject>
|
||||||
|
|
||||||
|
QJsonObject readJsonFile(const QString title);
|
||||||
|
void saveJsonFile(QJsonObject &users, const QString name);
|
||||||
|
void outputMessageBox(const QString messageBoxText);
|
||||||
|
void exit();
|
||||||
|
|
||||||
|
|
||||||
|
#endif // UNIVERSALFUNCTIONS_H
|
||||||
Loading…
Reference in New Issue
Block a user