Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian packaging #32

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .cmake-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
# --------------------------
# General Formatting Options
# --------------------------

line_width: 80
tab_size: 2
max_subgroups_hwrap: 2
max_pargs_hwrap: 5
separate_ctrl_name_with_space: false
separate_fn_name_with_space: false
dangle_parens: true
dangle_align: prefix
min_prefix_chars: 4
max_prefix_chars: 10
max_lines_hwrap: 2
line_ending: unix
command_case: canonical
keyword_case: upper
additional_commands:
pkg_find:
kwargs:
DEPENDS: '*'
HEADERS: '*'
PKG: '*'
SOURCES: '*'
always_wrap: []
enable_sort: true
autosort: true
require_valid_layout: false
per_command: {}
layout_passes: {}

# ----------------------------
# Options affecting the linter
# ----------------------------

linter:
disabled_codes: []
function_pattern: '[0-9a-z_]+'
macro_pattern: '[0-9A-Z_]+'
global_var_pattern: '[0-9A-Z][0-9A-Z_]+'
internal_var_pattern: _[0-9A-Z_]+
local_var_pattern: '[0-9a-z][0-9a-z_]+'
private_var_pattern: _[0-9a-z_]+
public_var_pattern: '[0-9A-Z][0-9A-Z_]+'
keyword_pattern: '[0-9A-Z_]+'
max_conditionals_custom_parser: 2
min_statement_spacing: 1
max_statement_spacing: 2
max_returns: 6
max_branches: 12
max_arguments: 5
max_localvars: 15
max_statements: 50

# ------------------------------------
# Options affecting comment formatting
# ------------------------------------

bullet_char: '*'
enum_char: .
first_comment_is_literal: true
literal_comment_pattern: null
fence_pattern: ^\s*([`~]{3}[`~]*)(.*)$
ruler_pattern: ^\s*[^\w\s]{3}.*[^\w\s]{3}$
hashruler_min_length: 10
canonicalize_hashrulers: true
enable_markup: true

# ---------------------
# Miscellaneous options
# ---------------------

emit_byteorder_mark: false
input_encoding: utf-8
output_encoding: utf-8
108 changes: 108 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Changelog

## [Unreleased](https://github.com/dschopf/plasma-applet-qalculate/tree/HEAD)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.8...HEAD)

**Closed issues:**

- history improvements [\#30](https://github.com/dschopf/plasma-applet-qalculate/issues/30)
- input history counter issue [\#29](https://github.com/dschopf/plasma-applet-qalculate/issues/29)
- Input history not visible in widget [\#14](https://github.com/dschopf/plasma-applet-qalculate/issues/14)

## [v0.8](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.8) (2020-01-05)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.7...v0.8)

## [v0.7](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.7) (2019-11-18)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.6.2...v0.7)

**Closed issues:**

- Compilation error: plasmoidplugin.h: No such file or directory [\#28](https://github.com/dschopf/plasma-applet-qalculate/issues/28)
- Compilation error [\#27](https://github.com/dschopf/plasma-applet-qalculate/issues/27)
- Compilation error: po translation typo [\#26](https://github.com/dschopf/plasma-applet-qalculate/issues/26)
- Ctrl+c hotkey clears all input field instead of copying selected text [\#25](https://github.com/dschopf/plasma-applet-qalculate/issues/25)
- Select expression string text after pressing Enter [\#23](https://github.com/dschopf/plasma-applet-qalculate/issues/23)
- Plasma crash when panel have two Qalculate applets [\#20](https://github.com/dschopf/plasma-applet-qalculate/issues/20)
- Always show clickable Q! logo in interface [\#19](https://github.com/dschopf/plasma-applet-qalculate/issues/19)
- Timestamp auto detection and convert to human readable time [\#18](https://github.com/dschopf/plasma-applet-qalculate/issues/18)
- Decrease font size for long results or split to lines [\#17](https://github.com/dschopf/plasma-applet-qalculate/issues/17)
- Allow selecting results via mouse [\#16](https://github.com/dschopf/plasma-applet-qalculate/issues/16)
- Provide deb package or PPA repository for debian/ubuntu linux with qalculate plasma widget [\#13](https://github.com/dschopf/plasma-applet-qalculate/issues/13)
- default focus on text input [\#3](https://github.com/dschopf/plasma-applet-qalculate/issues/3)

**Merged pull requests:**

- Travis ci [\#31](https://github.com/dschopf/plasma-applet-qalculate/pull/31) ([dschopf](https://github.com/dschopf))
- ADD: Croatian translations [\#24](https://github.com/dschopf/plasma-applet-qalculate/pull/24) ([VladimirMikulic](https://github.com/VladimirMikulic))
- Added link to Ubuntu PPA [\#21](https://github.com/dschopf/plasma-applet-qalculate/pull/21) ([MurzNN](https://github.com/MurzNN))

## [v0.6.2](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.6.2) (2019-07-15)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.6.1...v0.6.2)

## [v0.6.1](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.6.1) (2019-07-09)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.6...v0.6.1)

**Closed issues:**

- crash [\#12](https://github.com/dschopf/plasma-applet-qalculate/issues/12)
- error on build qcalculate 6.0 [\#11](https://github.com/dschopf/plasma-applet-qalculate/issues/11)
- error on build qc 6.0 [\#10](https://github.com/dschopf/plasma-applet-qalculate/issues/10)

## [v0.6](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.6) (2019-04-07)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.5...v0.6)

**Closed issues:**

- Error on any calculation [\#8](https://github.com/dschopf/plasma-applet-qalculate/issues/8)

## [v0.5](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.5) (2018-05-29)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.4.0...v0.5)

**Closed issues:**

- can't build libplasmoidplugin.so [\#7](https://github.com/dschopf/plasma-applet-qalculate/issues/7)

## [v0.4.0](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.4.0) (2017-09-27)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.3.1...v0.4.0)

**Merged pull requests:**

- Libqalculate 2.0 fix [\#6](https://github.com/dschopf/plasma-applet-qalculate/pull/6) ([dschopf](https://github.com/dschopf))

## [v0.3.1](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.3.1) (2017-05-28)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.3...v0.3.1)

## [v0.3](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.3) (2017-05-21)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.2.1...v0.3)

**Closed issues:**

- Cannot build 0.2 [\#5](https://github.com/dschopf/plasma-applet-qalculate/issues/5)

## [v0.2.1](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.2.1) (2017-05-09)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/v0.2...v0.2.1)

## [v0.2](https://github.com/dschopf/plasma-applet-qalculate/tree/v0.2) (2017-05-08)

[Full Changelog](https://github.com/dschopf/plasma-applet-qalculate/compare/44674427ba46ecfaca4cbd63c27bc0f80c190e9e...v0.2)

**Closed issues:**

- Compilation error [\#4](https://github.com/dschopf/plasma-applet-qalculate/issues/4)
- Default applet size is small with high dpi monitors [\#2](https://github.com/dschopf/plasma-applet-qalculate/issues/2)
- Result cannot be seen in dark themes [\#1](https://github.com/dschopf/plasma-applet-qalculate/issues/1)

---

\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.pc
build
obj-*
*.kdev4
debian/files
21 changes: 21 additions & 0 deletions .vscode/plasma-applet-qalculate.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {
"workbench.colorCustomizations": {
"activityBar.background": "#cbf8a3",
"activityBar.activeBorder": "#4d9bf1",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#4d9bf1",
"activityBarBadge.foreground": "#15202b",
"statusBar.background": "#b0f474",
"statusBarItem.hoverBackground": "#95f045",
"statusBar.foreground": "#15202b"
},
"peacock.color": "#cbf8a3"
}
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cSpell.words": [
"dschopf",
"gmail",
"libplasmoidplugin",
"libqalculate",
"mikulic",
"murz",
"plasmoidplugin",
"qalculate",
"qcalculate",
"schopf"
]
}
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
set(QT_MIN_VERSION "5.4.0")
set(KF5_MIN_VERSION "5.0.0")

# Use Extra CMake Modules (ECM) for common functionality.
# See http://api.kde.org/ecm/manual/ecm.7.html
# and http://api.kde.org/ecm/manual/ecm-kde-modules.7.html
# Use Extra CMake Modules (ECM) for common functionality. See
# http://api.kde.org/ecm/manual/ecm.7.html and
# http://api.kde.org/ecm/manual/ecm-kde-modules.7.html
find_package(ECM REQUIRED NO_MODULE)
# Needed by find_package(KF5Plasma) below.
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}
${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake
)

include(KDEInstallDirs)
include(KDECMakeSettings)
Expand Down
72 changes: 72 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socioeconomic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at schopf.dan@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant, version 1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html).

For answers to common questions about this code of conduct, visit the [FAQ](https://www.contributor-covenant.org/faq).
Loading