Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
NogameNo-life authored May 17, 2024
2 parents 3177c13 + ff72341 commit e982044
Show file tree
Hide file tree
Showing 36 changed files with 1,461 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
|| ФИО | Directory name | #1 | #2 | #3 | #4 | #5 | #6 | #7 | Рейтинг | Амбиции | Реальность |
| --- | ---------------------------------------------------------------- | -------------- | --- | --- | --- | --- | --- | --- | --- | ------- | ------- | ------- |
| 1 | [Кузьмич Вадим](https://github.com/orgs/brstu/people/vkn10) |[ii02211](./trunk/ii02211)|:heavy_check_mark:|:heavy_check_mark:| |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| | | | |
| 2 | [Любчук Илья](https://github.com/snep1one)|[ii02212](./trunk/ii02212)|:heavy_check_mark:| | | | | | | | 5 | 0 |
| 2 | [Любчук Илья](https://github.com/snep1one)|[ii02212](./trunk/ii02212)|:heavy_check_mark:|:heavy_check_mark:| | | | | | | 5 | 0 |
| 3 | [Марач Максим](https://github.com/orgs/brstu/people/MaximMarach) | | | | | | | | | | | |
| 4 | [Нестерчук Дмитрий](https://github.com/nesterchuk11) |[ii02214](./trunk/ii02214)| |:heavy_check_mark:| |:heavy_check_mark:|:heavy_check_mark:| | | | 5 | 0 |
| 5 | [Павлюкович Игорь](https://github.com/orgs/brstu/people/Kre1kh) |[ii02215](./trunk/ii02215)| |:heavy_check_mark:| |:heavy_check_mark:|:heavy_check_mark:| | | | 4 | 0 |
Expand Down
Binary file added trunk/ii02211/task_06/Images/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/img9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02211/task_06/Images/smoke_guy.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions trunk/ii02211/task_06/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Лабораторная работа №6 #

## Тема ##

Создание анимации

## Цель работы ##

Создание анимации.

## Задание ##

Создание анимации

## Результат работы ##

Анимация капельки

![снуп дог](./images/smoke_guy.gif)
23 changes: 23 additions & 0 deletions trunk/ii02211/task_06/scr/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import cv2
import os

path_to_images = '../Images'

frames_list = []

images_files = sorted(os.listdir(path_to_images))

# Проход по каждому файлу в папке
for img_file in images_files:
if img_file.endswith('.png'):
frame = cv2.imread(os.path.join(path_to_images, img_file))
frame = cv2.resize(frame, (1000, 800))
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGBA)
frames_list.append(frame)

# Сохранение GIF-изображения
cv2.imwrite('smoke_guy.gif', frames_list[0], params=[cv2.IMWRITE_PNG_COMPRESSION, 0])

# Добавление остальных кадров
for frame in frames_list[1:]:
cv2.imwrite('smoke_guy.gif', frame, params=[cv2.IMWRITE_PNG_COMPRESSION, 0], append=True)
110 changes: 110 additions & 0 deletions trunk/ii02211/task_06/scr/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
annotated-types==0.6.0
anyio==4.3.0
argcomplete==1.10.3
asgiref==3.8.1
beautifulsoup4==4.8.2
blis==0.7.11
catalogue==2.0.10
certifi==2024.2.2
chardet==3.0.4
charset-normalizer==3.3.2
click==8.1.7
cloudpathlib==0.16.0
colorama==0.4.6
compressed-rtf==1.0.6
confection==0.1.4
contourpy==1.2.0
customtkinter==5.2.2
cycler==0.12.1
cymem==2.0.8
darkdetect==0.8.0
DAWG-Python==0.7.2
distro==1.9.0
Django==5.0.4
django-cors-headers==4.3.1
django-filter==24.2
djangorestframework==3.15.1
docx2txt==0.8
ebcdic==1.1.1
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl
extract-msg==0.28.7
filelock==3.13.1
fonttools==4.49.0
fsspec==2024.2.0
groq==0.5.0
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
idna==3.6
idx2numpy==1.2.3
IMAPClient==2.1.0
intel-openmp==2021.4.0
Jinja2==3.1.3
joblib==1.3.2
keyboard==0.13.5
kiwisolver==1.4.5
langcodes==3.3.0
lxml==5.2.1
MarkupSafe==2.1.5
matplotlib==3.8.3
mkl==2021.4.0
mpmath==1.3.0
murmurhash==1.0.10
networkx==3.2.1
nltk==3.8.1
numpy==1.26.4
olefile==0.47
opencv-python==4.9.0.80
packaging==23.2
pandas==2.2.1
pdfminer.six==20191110
pillow==10.2.0
preshed==3.0.9
prettytable==3.9.0
pycryptodome==3.20.0
pydantic==2.6.4
pydantic_core==2.16.3
pygame==2.5.2
pymorphy3==2.0.1
pymorphy3-dicts-ru==2.4.417150.4580142
pyodbc==5.1.0
pyparsing==3.1.1
PyPDF2==3.0.1
pyth==0.6.0
python-dateutil==2.8.2
python-mnist==0.7
python-pptx==0.6.23
pytz==2024.1
regex==2023.12.25
requests==2.31.0
ru-core-news-md @ https://github.com/explosion/spacy-models/releases/download/ru_core_news_md-3.7.0/ru_core_news_md-3.7.0-py3-none-any.whl
scikit-learn==1.4.1.post1
scipy==1.12.0
six==1.12.0
smart-open==6.4.0
sniffio==1.3.1
sortedcontainers==2.4.0
soupsieve==2.5
spacy==3.7.4
spacy-legacy==3.0.12
spacy-loggers==1.0.5
SpeechRecognition==3.8.1
sqlparse==0.5.0
srsly==2.4.8
striprtf==0.0.26
sympy==1.12
tbb==2021.11.0
textract==1.6.5
thinc==8.2.3
threadpoolctl==3.3.0
tqdm==4.66.2
typer==0.9.4
typing_extensions==4.10.0
tzdata==2024.1
tzlocal==5.2
urllib3==2.2.1
wasabi==1.1.2
wcwidth==0.2.13
weasel==0.3.4
xlrd==1.2.0
XlsxWriter==3.2.0
25 changes: 25 additions & 0 deletions trunk/ii02212/task_02/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Лабораторная работа № 2
## Разработка приложения "Адресная книга" средствами Qt

## Цель работы
Изучить базовые компоненты средства разработки графического интерфейса среды Qt

## Ход работы
В ходе работы над лабораторной работой была реализована программа "Адресная Книга", которая позволяла при помощи графического интерфейса пользователя
добавлять записи, просматривать их, редактировать, сохранять/открывать файлы с записями, а так же экспортировать их в другой формат.

## Графический интерфейс пользователя и результат работы

Добавление в адресную книгу
![](images/add.png)
Удаление
![](images/delete.png)
Обновление записи
![](images/update.png)
Поиск
![](images/find.png)
Открытие файла
![](images/open.png)
![](images/open2.png)
Сохранение
![](images/save.png)
Binary file added trunk/ii02212/task_02/images/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02212/task_02/images/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02212/task_02/images/find.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02212/task_02/images/open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02212/task_02/images/open2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02212/task_02/images/save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/ii02212/task_02/images/update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions trunk/ii02212/task_02/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
cmake_minimum_required(VERSION 3.5)

project(Lab2Giis VERSION 0.1 LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)

set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(Lab2Giis
MANUAL_FINALIZATION
${PROJECT_SOURCES}
)
# Define target properties for Android with Qt 6 as:
# set_property(TARGET Lab2Giis APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
# ${CMAKE_CURRENT_SOURCE_DIR}/android)
# For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
else()
if(ANDROID)
add_library(Lab2Giis SHARED
${PROJECT_SOURCES}
)
# Define properties for Android with Qt 5 after find_package() calls as:
# set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
else()
add_executable(Lab2Giis
${PROJECT_SOURCES}
)
endif()
endif()

target_link_libraries(Lab2Giis PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)

# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.
if(${QT_VERSION} VERSION_LESS 6.1.0)
set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.Lab2Giis)
endif()
set_target_properties(Lab2Giis PROPERTIES
${BUNDLE_ID_OPTION}
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
MACOSX_BUNDLE TRUE
WIN32_EXECUTABLE TRUE
)

include(GNUInstallDirs)
install(TARGETS Lab2Giis
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

if(QT_VERSION_MAJOR EQUAL 6)
qt_finalize_executable(Lab2Giis)
endif()
35 changes: 35 additions & 0 deletions trunk/ii02212/task_02/src/addressBook.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 += \
addressbook.cpp \
finddialog.cpp \
main.cpp \
mainwindow.cpp

HEADERS += \
addressbook.h \
finddialog.h \
mainwindow.h

FORMS += \
mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
Loading

0 comments on commit e982044

Please sign in to comment.