Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
redtide committed Jan 7, 2024
1 parent eea3365 commit bdecad7
Show file tree
Hide file tree
Showing 27 changed files with 1,198 additions and 162 deletions.
10 changes: 1 addition & 9 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
## Special Thanks to

- Stefonarch (Standreas) and the translation team at <https://translate.lxqt-project.org/>.
- LXQt Developers, for all their software, here using their [build tools].

## Translators

- **Italian**: Andrea Zanellato (author)


[build tools]: https://github.com/lxqt/lxqt-build-tools/
- **Italian**: Andrea Zanellato
27 changes: 15 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.15)
project(Sqeleton
VERSION 0.1.1
project(GummyConf
VERSION 0.1.0
LANGUAGES CXX
)
set(CMAKE_CXX_STANDARD 17)
Expand All @@ -10,6 +10,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Qt
#===============================================================================
option(PROJECT_TRANSLATIONS_UPDATE "Update source translations [default: OFF]" OFF)
set(PROJECT_TRANSLATION_TEST_ENABLED 0 CACHE STRING "Whether to enable translation testing [default: 0]")
set(PROJECT_TRANSLATION_TEST "it" CACHE STRING "Country code of language to test in IDE [default: it]")
set(PROJECT_QT_VERSION 5 CACHE STRING "Qt version to use [default: 5]")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
Expand All @@ -23,22 +25,21 @@ find_package(Qtilitools REQUIRED)
set(PROJECT_SOURCES
src/application.hpp
src/application.cpp
src/litebutton.hpp
src/litebutton.cpp
src/dialogabout.hpp
src/dialogabout.cpp
src/dialogprefs.hpp
src/dialogprefs.cpp
src/mainwindow.hpp
src/mainwindow.cpp
src/gummyd.hpp
src/gummyd.cpp
src/maindialog.hpp
src/maindialog.cpp
src/qtilities.hpp
src/settings.hpp
src/settings.cpp
src/systemtrayicon.hpp
src/systemtrayicon.cpp
)
set(PROJECT_UI_FILES
src/dialogabout.ui
src/dialogprefs.ui
src/mainwindow.ui
src/maindialog.ui
)
set(PROJECT_OTHER_FILES
.github/workflows/build.yml
Expand All @@ -48,8 +49,8 @@ set(PROJECT_OTHER_FILES
.gitignore
README.md
)
source_group("Other Files" FILES ${PROJECT_OTHER_FILES})
source_group("UI Files" FILES ${PROJECT_UI_FILES})
source_group("" FILES ${PROJECT_SOURCES})
source_group("Misc" FILES ${PROJECT_OTHER_FILES})
#===============================================================================
# Resources
#===============================================================================
Expand Down Expand Up @@ -90,6 +91,8 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
PROJECT_DATA_DIR="${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_ID}"
PROJECT_ICON_NAME="${PROJECT_ICON_FILE_NAME}"
PROJECT_ICON_SYSTEM_PATH="${PROJECT_ICON_FILE_PATH}/${PROJECT_ICON_FILE_NAME}"
PROJECT_TRANSLATION_TEST="${PROJECT_TRANSLATION_TEST}"
PROJECT_TRANSLATION_TEST_ENABLED=${PROJECT_TRANSLATION_TEST_ENABLED}
)
#===============================================================================
# Install application
Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021-2023 Andrea Zanellato <[email protected]>
Copyright (c) 2024 Andrea Zanellato <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 8 additions & 10 deletions Config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,27 @@
# Essential, non translatable application information (except DESCRIPTION).
# Translatable strings are passed via code.
#===============================================================================
string(TOLOWER ${PROJECT_NAME} PROJECT_ID) # Might not be compatible with AppStream
list(APPEND PROJECT_CATEGORIES "Qt;Utility") # Freedesktop menu categories
list(APPEND PROJECT_KEYWORDS "application;project;template")
list(APPEND PROJECT_KEYWORDS "configuration;gummy")
set(PROJECT_ID "gummy-conf")
set(PROJECT_AUTHOR_NAME "Andrea Zanellato")
set(PROJECT_AUTHOR_EMAIL "[email protected]") # Used also for organization email
set(PROJECT_COPYRIGHT_YEAR "2021-2023") # TODO: from git
set(PROJECT_DESCRIPTION "Qt application template")
set(PROJECT_COPYRIGHT_YEAR "2024") # TODO: from git
set(PROJECT_DESCRIPTION "Gummy screen brightness manager configurator")
set(PROJECT_ORGANIZATION_NAME "qtilities") # Might be equal to PROJECT_AUTHOR_NAME
set(PROJECT_ORGANIZATION_URL "${PROJECT_ORGANIZATION_NAME}.github.io")
set(PROJECT_HOMEPAGE_URL "https://${PROJECT_ORGANIZATION_URL}/${PROJECT_ID}")
set(PROJECT_REPOSITORY_URL "https://github.com/${PROJECT_ORGANIZATION_NAME}/${PROJECT_ID}")
set(PROJECT_HOMEPAGE_URL "${PROJECT_REPOSITORY_URL}")
set(PROJECT_REPOSITORY_BRANCH "master")
set(PROJECT_SPDX_ID "MIT")
set(PROJECT_TRANSLATIONS_DIR "resources/translations")
#===============================================================================
# Appstream
#===============================================================================
set(PROJECT_APPSTREAM_SPDX_ID "CC0-1.0")
set(PROJECT_APPSTREAM_SPDX_ID "CC0-1.0")
include(AppStream)
to_appstream_id("io.github.${PROJECT_ORGANIZATION_NAME}.${PROJECT_NAME}"
PROJECT_APPSTREAM_ID)

set(PROJECT_ICON_FORMAT "svg")
to_appstream_id("io.github.${PROJECT_ORGANIZATION_NAME}.${PROJECT_NAME}" PROJECT_APPSTREAM_ID)
set(PROJECT_ICON_FORMAT "svgz")
if(UNIX AND NOT APPLE)
set(PROJECT_ICON_FILE_NAME "${PROJECT_APPSTREAM_ID}.${PROJECT_ICON_FORMAT}")
elseif(APPLE)
Expand Down
41 changes: 16 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
# Sqeleton
# GummyConf

[![CI]](https://github.com/qtilities/sqeleton/actions/workflows/build.yml)
[![CI]](https://github.com/qtilities/gummy-conf/actions/workflows/build.yml)

## Overview

Qt application template repository.

See the related [website page] for further information.

## Features

- Resource management following the Freedesktop [Desktop Entry] Specification
file naming convention (icons, desktop and appdata files)
- [Appstream] metadata information
- Locale translations via [LXQt build tools]
- Install step
Configuration tool for [gummy], screen brightness/temperature manager for Linux.

## Dependencies

Runtime:
### Runtime

- Qt5/6 base

Build:
### Build

- CMake
- Qt Linguist Tools
- Git (optional, to pull latest VCS checkouts)

## Build

`CMAKE_BUILD_TYPE` is usually set to `Release`, though `None` might be a [valid alternative][2].<br>
`CMAKE_INSTALL_PREFIX` has to be set to `/usr` on most operating systems.<br>
`CMAKE_BUILD_TYPE` is usually set to `Release`, though `None` might be a valid [alternative].<br />
`CMAKE_INSTALL_PREFIX` has to be set to `/usr` on most operating systems.<br />
Using `sudo make install` is discouraged, instead use the system package manager where possible.

```bash
Expand All @@ -40,17 +28,20 @@ cmake --build build --verbose
DESTDIR="$(pwd)/package" cmake --install build
```

## Packages

[![Packaging status]](https://repology.org/project/gummy-conf/versions)

## Licenses

- Sqeleton is licensed under the [MIT] license.
- GummyConf is licensed under the [MIT] license.
- Application icon is from [Openclipart], [CC0-1.0] license.


[Appstream]: https://freedesktop.org/software/appstream/docs/chap-Quickstart.html
[alternative]: https://wiki.archlinux.org/title/CMake_package_guidelines#Fixing_the_automatic_optimization_flag_override
[CC0-1.0]: https://creativecommons.org/publicdomain/zero/1.0/
[CI]: https://github.com/qtilities/sqeleton/actions/workflows/build.yml/badge.svg
[Desktop Entry]: https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s02.html
[LXQt build tools]: https://github.com/lxqt/lxqt-build-tools
[CI]: https://github.com/qtilities/gummy-conf/actions/workflows/build.yml/badge.svg
[gummy]: https://github.com/f-fusco/gummy/
[MIT]: COPYING
[Openclipart]: https://openclipart.org/
[website page]: https://qtilities.github.io/sqeleton/
[Packaging status]: https://repology.org/badge/vertical-allrepos/gummy-conf.svg
Binary file modified resources/icons/application.icon
Binary file not shown.
Binary file added resources/icons/sun.svgz
Binary file not shown.
4 changes: 1 addition & 3 deletions resources/resources.qrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<RCC>
<qresource prefix="/">
<file alias="application-exit">icons/application-exit.svgz</file>
<file alias="help-about">icons/help-about.svgz</file>
<file alias="preferences-system">icons/preferences-system.svgz</file>
<file alias="info">about.md</file>
<file>authors</file>
<file alias="license">copying</file>
<file alias="sun">icons/sun.svgz</file>
</qresource>
</RCC>
3 changes: 3 additions & 0 deletions resources/translations/gummy-conf.desktop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Desktop Entry/Name: "Gummy Configuration"
Desktop Entry/GenericName: "Screen Brightness Configuration"
Desktop Entry/Comment: "Configuration editor for gummy"
107 changes: 107 additions & 0 deletions resources/translations/gummy-conf.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>Qtilities::Application</name>
<message>
<location filename="../../src/application.cpp" line="128"/>
<source>Auto&amp;start</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Qtilities::DialogAbout</name>
<message>
<location filename="../../src/dialogabout.ui" line="42"/>
<source>Information</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/dialogabout.ui" line="77"/>
<source>qrc:/about.html</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/dialogabout.ui" line="96"/>
<source>Translators</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/dialogabout.ui" line="134"/>
<source>qrc:/thanks.html</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/dialogabout.ui" line="153"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/dialogabout.ui" line="191"/>
<source>qrc:/license.html</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/dialogabout.cpp" line="55"/>
<source>Author</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/dialogabout.cpp" line="60"/>
<source>About</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Qtilities::MainDialog</name>
<message>
<location filename="../../src/maindialog.ui" line="50"/>
<source>Brightness</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/maindialog.ui" line="57"/>
<source>Time range</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/maindialog.ui" line="77"/>
<source>Backlight</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/maindialog.ui" line="97"/>
<source>Temperature</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/maindialog.ui" line="165"/>
<source>About</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/maindialog.ui" line="178"/>
<location filename="../../src/maindialog.cpp" line="62"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/maindialog.cpp" line="58"/>
<source>Stop</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Qtilities::SystemTrayIcon</name>
<message>
<location filename="../../src/systemtrayicon.cpp" line="72"/>
<source>&amp;About</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/systemtrayicon.cpp" line="74"/>
<source>&amp;Quit</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
3 changes: 3 additions & 0 deletions resources/translations/gummy-conf_it.desktop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Desktop Entry/Name: "Impostazioni di gummy"
Desktop Entry/GenericName: "Impostazioni Luminosità Schermo"
Desktop Entry/Comment: "Editor di configurazione di gummy"
Loading

0 comments on commit bdecad7

Please sign in to comment.