Не подтверждена Коммит eb962685 создал по автору OMP Education's avatar OMP Education Зафиксировано автором Alexey Andreev
Просмотр файлов

[Structure] Initial application template

Readme file update, rpm project, qmake project.
Related QML and C++ code, desktop file, translations.
Add files for continuous integration. #55
владелец 94a38a1d
stages:
- build
build-aurora_4_0_2_303_armv7hl:
stage: build
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- /home/gitlab-runner/Aurora4PlatformSDK/sdks/aurora_psdk/sdk-chroot ./build.sh -a ./ -t AuroraOS-4.0.2.303-base-armv7hl
build-aurora_4_0_2_303_i486:
stage: build
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- /home/gitlab-runner/Aurora4PlatformSDK/sdks/aurora_psdk/sdk-chroot ./build.sh -a ./ -t AuroraOS-4.0.2.303-base-i486
......@@ -5,6 +5,8 @@
* Maintainer, 2023
* Konstantin Zvyagin
* Reviewer, 2023
* Andrey Tretyakov, <a.tretyakov@omp.ru>
* Reviewer, 2023
* Alexey Koryukin
* Icon designer, 2023
* Aleksandr Komakhin
......
# UI Component Gallery
Showcase of the Aurora OS UI components. Both Silica demos and best practices for more complex custom components.
The showcase of the Aurora OS UI components. Both Silica demos and best practices for more complex custom components.
Build status:
* example_4.0.2.303 - [![pipeline status](https://gitlab.com/omprussia/demos/UiComponentGallery/badges/example_4.0.2.303/pipeline.svg)](https://gitlab.com/omprussia/demos/UiComponentGallery/-/commits/example_4.0.2.303)
* dev_4.0.2.303 - [![pipeline status](https://gitlab.com/omprussia/demos/UiComponentGallery/badges/dev_4.0.2.303/pipeline.svg)](https://gitlab.com/omprussia/demos/UiComponentGallery/-/commits/dev_4.0.2.303)
## Terms of Use and Participation
The source code of the project is provided under [the license](LICENSE.BSD-3-CLAUSE.md),
that allows it to be used in third-party applications.
The source code of the project is provided under [the license](LICENSE.BSD-3-Clause.md),
which allows its use in third-party applications.
The [contributor agreement](CONTRIBUTING.md) documents the rights granted by contributors
to the Open Mobile Platform.
of the Open Mobile Platform.
For information about contributors see [AUTHORS](AUTHORS.md).
Information about the contributors is specified in the [AUTHORS](AUTHORS.md) file.
[Code of conduct](CODE_OF_CONDUCT.md) is a current set of rules of the Open Mobile
Platform which informs you how we expect the members of the community will interact
while contributing and communicating.
## Project Structure
The project has a standard standard of an application based on C++ and QML for Aurora OS.
* **[ru.auroraos.UiComponentGallery.pro](ru.auroraos.UiComponentGallery.pro)** file
describes the project structure for the qmake build system.
* **[icons](icons)** directory contains the application icons for different screen resolutions.
* **[qml](qml)** directory contains the QML source code and the UI resources.
* **[cover](qml/cover)** directory contains the application cover implementations.
* **[icons](qml/icons)** directory contains the additional custom UI icons.
* **[pages](qml/pages)** directory contains the application pages.
* **[UiComponentGallery.qml](qml/UiComponentGallery.qml)** file
provides the application window implementation.
* **[rpm](rpm)** directory contains the rpm-package build settings.
* **[ru.auroraos.UiComponentGallery.spec](rpm/ru.auroraos.UiComponentGallery.spec)** file is used by rpmbuild tool.
* **[src](src)** directory contains the C++ source code.
* **[main.cpp](src/main.cpp)** file is the application entry point.
* **[translations](translations)** directory contains the UI translation files.
* **[ru.auroraos.UiComponentGallery.desktop](ru.auroraos.UiComponentGallery.desktop)** file
defines the display and parameters for launching the application.
## Compatibility
The project is compatible with all the current versions of the Aurora OS.
## This document in Russian / Перевод этого документа на русский язык
- [README.ru.md](README.ru.md)
......@@ -2,20 +2,46 @@
Витрина компонентов пользовательского интерфейса ОС Аврора. Демонстрация работы с Silica и заготовки для более комплексных пользовательских компонентов.
Статус сборки:
* example_4.0.2.303 - [![pipeline status](https://gitlab.com/omprussia/demos/UiComponentGallery/badges/example_4.0.2.303/pipeline.svg)](https://gitlab.com/omprussia/demos/UiComponentGallery/-/commits/example_4.0.2.303)
* dev_4.0.2.303 - [![pipeline status](https://gitlab.com/omprussia/demos/UiComponentGallery/badges/dev_4.0.2.303/pipeline.svg)](https://gitlab.com/omprussia/demos/UiComponentGallery/-/commits/dev_4.0.2.303)
## Условия использования и участия
Исходный код проекта предоставляется по [лицензии](LICENSE.BSD-3-Clause.md),
которая позволяет использовать его в сторонних приложениях.
Соглашение участника [(документ на английском)](CONTRIBUTING.md) регламентирует права,
[Соглашение участника](CONTRIBUTING.md) регламентирует права,
предоставляемые участниками компании «Открытая Мобильная Платформа».
Информация об участниках указана в файле [AUTHORS](AUTHORS.md).
Кодекс поведения [(документ на английском)](CODE_OF_CONDUCT.md) — это действующий набор правил
[Кодекс поведения](CODE_OF_CONDUCT.md) — это действующий набор правил
компании «Открытая Мобильная Платформа»,
который информирует об ожиданиях по взаимодействию между членами сообщества при общении и работе над проектами.
## Структура проекта
Проект имеет стандартную структуру приложения на базе C++ и QML для ОС Аврора.
* Файл **[ru.auroraos.UiComponentGallery.pro](ru.auroraos.UiComponentGallery.pro)** описывает структуру проекта для системы сборки qmake.
* Каталог **[icons](icons)** содержит иконки приложения для поддерживаемых разрешений экрана.
* Каталог **[qml](qml)** содержит исходный код на QML и ресурсы интерфейса пользователя.
* Каталог **[cover](qml/cover)** содержит реализации обложек приложения.
* Каталог **[icons](qml/icons)** содержит дополнительные иконки интерфейса пользователя.
* Каталог **[pages](qml/pages)** содержит страницы приложения.
* Файл **[UiComponentGallery.qml](qml/UiComponentGallery.qml)** предоставляет реализацию окна приложения.
* Каталог **[rpm](rpm)** содержит настройки сборки rpm-пакета.
* Файл **[ru.auroraos.UiComponentGallery.spec](rpm/ru.auroraos.UiComponentGallery.spec)** используется инструментом rpmbuild.
* Каталог **[src](src)** содержит исходный код на C++.
* Файл **[main.cpp](src/main.cpp)** является точкой входа в приложение.
* Каталог **[translations](translations)** содержит файлы перевода интерфейса пользователя.
* Файл **[ru.auroraos.UiComponentGallery.desktop](ru.auroraos.UiComponentGallery.desktop)** определяет отображение и параметры запуска приложения.
## Совместимость
Проект совместим с актуальными версиями ОС Аврора.
## This document in English
- [README.md](README.md)
......
#!/bin/bash
# handle commandline options
usage()
{
echo "Script for building projects with PSDK."
echo
echo "Usage: build.sh <options>"
echo
echo "Options:"
echo "-a | --application Path to application directory for build."
echo "-s | --spec Path to spec file."
echo "-t | --target PSDK target to build RPM with."
echo "-h | --help Print this help and exit."
}
while [[ ${1:-} ]]; do
case "$1" in
-a | --application ) shift
OPT_PROJECT_PATH=$1; shift
;;
-s | --spec ) shift
OPT_SPEC_PATH=$1; shift
;;
-t | --target ) shift
OPT_PSDK_TARGET=$1; shift
;;
-h | --help ) shift
usage
exit;;
* )
usage
exit;;
esac
done
if [[ -z $OPT_PROJECT_PATH ]]; then
echo "Enter path to application directory"
exit
fi
if [[ -z $OPT_PSDK_TARGET ]]; then
echo "Incorrect target of PSDK"
exit
fi
mkdir -p build
mkdir -p artifacts
cd build
sdk-assistant list
# Build project
echo "Build project for $OPT_PSDK_TARGET"
if [[ -z $OPT_SPEC_PATH ]]; then
mb2 --target $OPT_PSDK_TARGET build ../$OPT_PROJECT_PATH
else
mb2 --target $OPT_PSDK_TARGET -s ../$OPT_SPEC_PATH build ../$OPT_PROJECT_PATH
fi
# Copy build artifacts
cp RPMS/* ../artifacts/
// SPDX-FileCopyrightText: 2023 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick 2.0
import Sailfish.Silica 1.0
ApplicationWindow {
id: applicationWindow
objectName: "applicationWindow"
initialPage: Qt.resolvedUrl("pages/MainPage.qml")
cover: Qt.resolvedUrl("cover/DefaultCoverPage.qml")
allowedOrientations: defaultAllowedOrientations
}
// SPDX-FileCopyrightText: 2023 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick 2.0
import Sailfish.Silica 1.0
CoverBackground {
objectName: "defaultCover"
CoverPlaceholder {
objectName: "placeholder"
//% "UI Component Gallery"
text: qsTrId("ui-component-gallery-default-cover-ui-component-gallery")
icon {
source: Qt.resolvedUrl("../icons/ui-component-gallery.svg")
sourceSize {
width: icon.width
height: icon.height
}
}
forceFit: true
}
}
<svg width="86" height="86" viewBox="0 0 86 86" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.199219 30.0841C0.199219 14.9992 0.199219 9.5718 4.88551 4.88551C9.5718 0.199219 14.9992 0.199219 32.1992 0.199219H53.7992C70.9992 0.199219 76.4266 0.199219 81.1129 4.88551C85.7992 9.5718 85.7992 14.9992 85.7992 32.1992V53.7992C85.7992 70.9992 85.7992 76.4266 81.1129 81.1129C76.4266 85.7992 70.9992 85.7992 53.7992 85.7992H32.1992C14.9992 85.7992 9.5718 85.7992 4.88551 81.1129C0.199219 76.4266 0.199219 70.9992 0.199219 53.7992V30.0841Z" fill="url(#paint0_radial_2853_60039)"/>
<path d="M14.5245 70.4941L14.5245 43.4942H0V42.4942H14.5245L14.5245 15.4942H0.331448C0.363292 15.1516 0.398195 14.8184 0.436451 14.4942H14.5245L14.5245 0.472234C14.8483 0.434168 15.1814 0.399171 15.5245 0.366994V14.4942H39.0925L38.5152 15.4942H15.5245L15.5245 42.4942H22.9267L22.3494 43.4942H15.5245L15.5245 55.3154C15.1518 55.9728 15.1977 56.7092 15.5245 57.2861L15.5245 70.4941H38.8457L39.4461 71.4941H15.5245V85.233C15.1814 85.2008 14.8483 85.1658 14.5245 85.1278L14.5245 71.4941H0.523843C0.482041 71.1706 0.443575 70.8374 0.408178 70.4941H14.5245Z" fill="url(#paint1_radial_2853_60039)"/>
<path d="M42.5245 76.164V85.6H43.5245V75.9547C43.2503 76.208 42.8617 76.2777 42.5245 76.164Z" fill="url(#paint2_radial_2853_60039)"/>
<path d="M46.2495 71.4941H70.5245V85.1887C70.8678 85.153 71.2009 85.1143 71.5245 85.0722V71.4941H85.0762C85.118 71.1706 85.1564 70.8374 85.1918 70.4941H71.5245V43.4942H85.6V42.4942H71.5245L71.5245 15.4942H85.2301C85.1977 15.1511 85.1625 14.8179 85.1242 14.4942H71.5245V0.527771C71.2009 0.485685 70.8678 0.446955 70.5245 0.411314V14.4942H46.5327L47.1101 15.4942H70.5245L70.5245 42.4942H62.6985L63.2759 43.4942H70.5245V70.4941H46.85L46.2495 71.4941Z" fill="url(#paint3_radial_2853_60039)"/>
<path d="M43.5245 10.1796V0H42.5245V10.0712C42.8596 10.0234 43.2051 10.0595 43.5245 10.1796Z" fill="url(#paint4_radial_2853_60039)"/>
<path d="M69.7081 57.8281C70.6357 57.8281 71.2125 56.8207 70.7431 56.0208L43.8835 10.2489C43.4198 9.45869 42.2773 9.45869 41.8136 10.2489L14.954 56.0208C14.4845 56.8207 15.0614 57.8281 15.9889 57.8281H30.3507C30.7721 57.8281 31.1626 58.0491 31.3795 58.4104L41.8197 75.7979C42.2859 76.5743 43.4112 76.5743 43.8773 75.7979L54.3176 58.4104C54.5345 58.0491 54.925 57.8281 55.3464 57.8281H69.7081Z" fill="url(#paint5_radial_2853_60039)"/>
<g filter="url(#filter0_i_2853_60039)">
<path d="M69.7081 57.8281C70.6357 57.8281 71.2125 56.8207 70.7431 56.0208L43.8835 10.2489C43.4198 9.45869 42.2773 9.45869 41.8136 10.2489L14.954 56.0208C14.4845 56.8207 15.0614 57.8281 15.9889 57.8281H30.3507C30.7721 57.8281 31.1626 58.0491 31.3795 58.4104L41.8197 75.7979C42.2859 76.5743 43.4112 76.5743 43.8773 75.7979L54.3176 58.4104C54.5345 58.0491 54.925 57.8281 55.3464 57.8281H69.7081Z" fill="white" fill-opacity="0.01"/>
</g>
<path d="M67.0706 51.1235C66.9358 50.8948 66.6901 50.7544 66.4246 50.7544H65.4606L65.6587 50.4189C65.9669 49.8972 65.9672 49.252 65.6594 48.73L62.9777 44.1816C62.8429 43.953 62.5973 43.8126 62.3319 43.8125C62.0665 43.8124 61.8208 43.9525 61.6859 44.181L57.803 50.7544H57.6929L61.7785 43.8378C62.0867 43.316 62.087 42.6709 61.7792 42.1488L59.0974 37.6004C58.9626 37.3718 58.7171 37.2314 58.4517 37.2313C58.1863 37.2312 57.9406 37.3714 57.8056 37.5999L42.8834 62.8618L42.8284 62.7686L57.8982 37.2566C58.2065 36.7349 58.2067 36.0897 57.8989 35.5677L55.2172 31.0193C55.0824 30.7906 54.8368 30.6503 54.5714 30.6502C54.306 30.6501 54.0604 30.7902 53.9254 31.0187L38.9996 56.2868L38.9445 56.1935L54.018 30.6755L53.3723 30.294L54.018 30.6755C54.3262 30.1537 54.3265 29.5086 54.0187 28.9865L51.337 24.4381C51.2022 24.2095 50.9566 24.0691 50.6912 24.069C50.4258 24.0689 50.1801 24.2091 50.0451 24.4376L34.4998 50.7544H34.3897L50.1378 24.0943C50.446 23.5726 50.4463 22.9274 50.1385 22.4054L47.4567 17.857C47.3219 17.6283 47.0764 17.488 46.811 17.4879C46.5456 17.4878 46.2999 17.6279 46.1649 17.8564L26.7321 50.7544H26.622L46.2575 17.5132C46.5657 16.9914 46.566 16.3462 46.2582 15.8242L43.5727 11.2695C43.4379 11.0408 43.1922 10.9004 42.9267 10.9004C42.6612 10.9004 42.4154 11.0408 42.2806 11.2695L15.8305 56.1306C15.6938 56.3625 15.6918 56.6498 15.8253 56.8835C15.9588 57.1173 16.2073 57.2615 16.4765 57.2616L31.9219 57.2631L42.2393 74.7295C42.3742 74.9579 42.6197 75.098 42.885 75.098C43.1503 75.098 43.3958 74.9579 43.5308 74.7295L53.8501 57.2631L69.3777 57.2631C69.6469 57.2631 69.8954 57.1189 70.0289 56.8851C70.1624 56.6514 70.1605 56.3641 70.0238 56.1322L67.0706 51.1235Z" stroke="url(#paint6_radial_2853_60039)" stroke-width="1.5" stroke-linejoin="round"/>
<defs>
<filter id="filter0_i_2853_60039" x="14.7871" y="9.65625" width="56.123" height="66.7246" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset/>
<feGaussianBlur stdDeviation="6"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.79 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_2853_60039"/>
</filter>
<radialGradient id="paint0_radial_2853_60039" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(43 0.999998) rotate(90.3494) scale(82.0015 82.0013)">
<stop stop-color="#10FFD4"/>
<stop offset="0.9375" stop-color="#047C95"/>
</radialGradient>
<radialGradient id="paint1_radial_2853_60039" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.3008 0.300784) rotate(90) scale(83.5 83.4998)">
<stop offset="0.473958" stop-color="white" stop-opacity="0.16"/>
<stop offset="1" stop-color="white" stop-opacity="0.04"/>
</radialGradient>
<radialGradient id="paint2_radial_2853_60039" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.3008 0.300784) rotate(90) scale(83.5 83.4998)">
<stop offset="0.473958" stop-color="white" stop-opacity="0.16"/>
<stop offset="1" stop-color="white" stop-opacity="0.04"/>
</radialGradient>
<radialGradient id="paint3_radial_2853_60039" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.3008 0.300784) rotate(90) scale(83.5 83.4998)">
<stop offset="0.473958" stop-color="white" stop-opacity="0.16"/>
<stop offset="1" stop-color="white" stop-opacity="0.04"/>
</radialGradient>
<radialGradient id="paint4_radial_2853_60039" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.3008 0.300784) rotate(90) scale(83.5 83.4998)">
<stop offset="0.473958" stop-color="white" stop-opacity="0.16"/>
<stop offset="1" stop-color="white" stop-opacity="0.04"/>
</radialGradient>
<radialGradient id="paint5_radial_2853_60039" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(43.12 7.33528) rotate(88.8953) scale(71.0013 59.6944)">
<stop stop-color="white"/>
<stop offset="0.796875" stop-color="white" stop-opacity="0.04"/>
</radialGradient>
<radialGradient id="paint6_radial_2853_60039" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.9271 23.8491) rotate(90) scale(57.2281 48.2862)">
<stop stop-color="white"/>
<stop offset="0.640625" stop-color="white" stop-opacity="0"/>
</radialGradient>
</defs>
</svg>
// SPDX-FileCopyrightText: 2023 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
objectName: "aboutPage"
allowedOrientations: Orientation.All
SilicaFlickable {
objectName: "flickable"
anchors.fill: parent
contentHeight: layout.height + Theme.paddingLarge
Column {
id: layout
objectName: "layout"
width: parent.width
PageHeader {
objectName: "pageHeader"
//% "About Application"
title: qsTrId("ui-component-gallery-about-about-application")
}
Label {
objectName: "descriptionText"
anchors {
left: parent.left
right: parent.right
margins: Theme.horizontalPageMargin
}
color: palette.highlightColor
font.pixelSize: Theme.fontSizeSmall
textFormat: Text.RichText
wrapMode: Text.WordWrap
//% "#descriptionText"
text: qsTrId("ui-component-gallery-about-description-text")
}
SectionHeader {
objectName: "licenseHeader"
//% "3-Clause BSD License"
text: qsTrId("ui-component-gallery-about-3-clause-bsd-license")
}
Label {
objectName: "licenseText"
anchors {
left: parent.left
right: parent.right
margins: Theme.horizontalPageMargin
}
color: palette.highlightColor
font.pixelSize: Theme.fontSizeSmall
textFormat: Text.RichText
wrapMode: Text.WordWrap
//% "#licenseText"
text: qsTrId("ui-component-gallery-about-license-text")
}
}
}
}
// SPDX-FileCopyrightText: 2013 Jolla Ltd
// SPDX-FileCopyrightText: 2023 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
objectName: "mainPage"
allowedOrientations: Orientation.All
ListModel {
id: pagesModel
}
SilicaListView {
id: listView
anchors.fill: parent
model: pagesModel
header: PageHeader {
objectName: "pageHeader"
//% "UI Component Gallery"
title: qsTrId("ui-component-gallery-main-ui-component-gallery")
extraContent.children: [
IconButton {
objectName: "aboutButton"
icon.source: "image://theme/icon-m-about"
anchors.verticalCenter: parent.verticalCenter
onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
}
]
}
section {
property: 'section'
delegate: SectionHeader {
text: section
}
}
delegate: BackgroundItem {
width: listView.width
Label {
id: firstName
text: model.title
anchors.verticalCenter: parent.verticalCenter
x: Theme.horizontalPageMargin
}
onClicked: pageStack.animatorPush(Qt.resolvedUrl(page))
}
VerticalScrollDecorator {
}
}
}
Name: ru.auroraos.UiComponentGallery
Summary: Showcase of the Aurora OS UI components
Version: 0.1
Release: 1
Group: Qt/Qt
License: BSD-3-Clause
URL: https://auroraos.ru
Source0: %{name}-%{version}.tar.bz2
Requires: sailfishsilica-qt5 >= 0.10.9
BuildRequires: pkgconfig(auroraapp)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
%description
Showcase of the Aurora OS UI components.
Both Silica demos and best practices for more complex custom components.
%prep
%autosetup
%build
%qmake5
%make_build
%install
%make_install
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%defattr(644,root,root,-)
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
[Desktop Entry]
Type=Application
X-Nemo-Application-Type=silica-qt5
Icon=ru.auroraos.UiComponentGallery
Exec=/usr/bin/ru.auroraos.UiComponentGallery
Name=UI Component Gallery
Name[ru]=Галерея компонентов UI
[X-Application]
Permissions=
OrganizationName=ru.auroraos
ApplicationName=UiComponentGallery
ExecDBus=/usr/bin/ru.auroraos.UiComponentGallery
# SPDX-FileCopyrightText: 2023 Open Mobile Platform LLC <community@omp.ru>
# SPDX-License-Identifier: BSD-3-Clause
TARGET = ru.auroraos.UiComponentGallery
CONFIG += \
auroraapp
PKGCONFIG += \
SOURCES += \
src/main.cpp \
HEADERS += \
DISTFILES += \
rpm/$${TARGET}.spec \
AUTHORS.md \
CODE_OF_CONDUCT.md \
CONTRIBUTING.md \
LICENSE.BSD-3-Clause.md \
README.md \
README.ru.md \
AURORAAPP_ICONS = 86x86 108x108 128x128 172x172
include(translations/translations.pri)
// SPDX-FileCopyrightText: 2023 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
#include <auroraapp.h>
#include <QtQuick>
int main(int argc, char *argv[])
{
QScopedPointer<QGuiApplication> application(Aurora::Application::application(argc, argv));
application->setOrganizationName(QStringLiteral("ru.auroraos"));
application->setApplicationName(QStringLiteral("UiComponentGallery"));
QScopedPointer<QQuickView> view(Aurora::Application::createView());
view->setSource(Aurora::Application::pathTo(QStringLiteral("qml/UiComponentGallery.qml")));
view->show();
return application->exec();
}
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru">
<context>
<name></name>
<message id="ui-component-gallery-default-cover-ui-component-gallery">
<source>UI Component Gallery</source>
<translation>Галерея компонентов UI</translation>
</message>
<message id="ui-component-gallery-about-about-application">
<source>About Application</source>
<translation>О приложении</translation>
</message>
<message id="ui-component-gallery-about-description-text">
<source>#descriptionText</source>
<translation>&lt;p&gt;Витрина системных графических компонентов для ОС Аврора. И примеры работы с библиотекой Silica, и заготовки более сложных собственных элементов&lt;/p&gt;</translation>
</message>
<message id="ui-component-gallery-about-3-clause-bsd-license">
<source>3-Clause BSD License</source>
<translation>Лицензия 3-Clause BSD</translation>
</message>
<message id="ui-component-gallery-about-license-text">
<source>#licenseText</source>
<translation>&lt;p&gt;&lt;i&gt;Copyright (C) 2023 Open Mobile Platform LLC.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.&lt;/li&gt;
&lt;li&gt;Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.&lt;/li&gt;
&lt;li&gt;Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&lt;/p&gt;</translation>
</message>
<message id="ui-component-gallery-main-ui-component-gallery">
<source>UI Component Gallery</source>
<translation>Галерея компонентов UI</translation>
</message>
</context>
</TS>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context>
<name></name>
<message id="ui-component-gallery-default-cover-ui-component-gallery">
<source>UI Component Gallery</source>
<translation>UI Component Gallery</translation>
</message>
<message id="ui-component-gallery-about-about-application">
<source>About Application</source>
<translation>About Application</translation>
</message>
<message id="ui-component-gallery-about-description-text">
<source>#descriptionText</source>
<translation>&lt;p&gt;Showcase of the Aurora OS UI components. Both Silica demos and best practices for more complex custom components&lt;/p&gt;</translation>
</message>
<message id="ui-component-gallery-about-3-clause-bsd-license">
<source>3-Clause BSD License</source>
<translation>3-Clause BSD License</translation>
</message>
<message id="ui-component-gallery-about-license-text">
<source>#licenseText</source>
<translation>&lt;p&gt;&lt;i&gt;Copyright (C) 2023 Open Mobile Platform LLC.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.&lt;/li&gt;
&lt;li&gt;Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.&lt;/li&gt;
&lt;li&gt;Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&lt;/p&gt;</translation>
</message>
<message id="ui-component-gallery-main-ui-component-gallery">
<source>UI Component Gallery</source>
<translation>UI Component Gallery</translation>
</message>
</context>
</TS>
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать