From 81cf1e1cc3295aa3b0628e73f2e1c59f13086ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cl=C3=A9ro?= Date: Sun, 5 May 2024 22:37:38 +0200 Subject: [PATCH] Fix #56: Update license headers --- lib/include/oclero/qlementine.hpp | 3 + lib/include/oclero/qlementine/Common.hpp | 23 +- .../qlementine/animation/WidgetAnimation.hpp | 23 +- .../animation/WidgetAnimationManager.hpp | 23 +- .../qlementine/animation/WidgetAnimator.hpp | 23 +- .../csd/FramelessWindowBehavior.hpp | 23 +- .../oclero/qlementine/csd/WindowsTitleBar.hpp | 23 +- .../qlementine/csd/WindowsTitleBarButton.hpp | 23 +- .../qlementine/csd/WindowsTitleBarCommon.hpp | 23 +- .../csd/WindowsTitleMenuBarProxyStyle.hpp | 23 +- .../resources/ResourceInitialization.hpp | 23 +- .../oclero/qlementine/style/Delegates.hpp | 23 +- .../qlementine/style/QlementineStyle.hpp | 23 +- .../style/QlementineStyleOption.hpp | 23 +- lib/include/oclero/qlementine/style/Theme.hpp | 23 +- .../oclero/qlementine/style/ThemeManager.hpp | 23 +- .../oclero/qlementine/tools/ThemeEditor.hpp | 3 + .../oclero/qlementine/utils/BadgeUtils.hpp | 23 +- .../oclero/qlementine/utils/BlurUtils.hpp | 23 +- .../oclero/qlementine/utils/ColorUtils.hpp | 23 +- .../oclero/qlementine/utils/FontUtils.hpp | 24 +- .../oclero/qlementine/utils/ImageUtils.hpp | 23 +- .../qlementine/utils/PrimitiveUtils.hpp | 23 +- .../oclero/qlementine/utils/RadiusesF.hpp | 23 +- .../oclero/qlementine/utils/StateUtils.hpp | 23 +- .../oclero/qlementine/utils/StyleUtils.hpp | 23 +- .../oclero/qlementine/utils/WidgetUtils.hpp | 23 +- .../widgets/AbstractItemListWidget.hpp | 3 + .../oclero/qlementine/widgets/Action.hpp | 3 + .../qlementine/widgets/ActionButton.hpp | 3 + .../oclero/qlementine/widgets/ColorButton.hpp | 23 +- .../oclero/qlementine/widgets/ColorEditor.hpp | 24 +- .../qlementine/widgets/CommandLinkButton.hpp | 3 + .../oclero/qlementine/widgets/Expander.hpp | 3 + .../qlementine/widgets/FramelessWindow.hpp | 3 + .../oclero/qlementine/widgets/IconWidget.hpp | 3 + .../oclero/qlementine/widgets/Label.hpp | 3 + .../oclero/qlementine/widgets/LineEdit.hpp | 3 + .../oclero/qlementine/widgets/Menu.hpp | 3 + .../qlementine/widgets/NavigationBar.hpp | 3 + .../qlementine/widgets/PlainTextEdit.hpp | 3 + .../oclero/qlementine/widgets/Popover.hpp | 3 + .../qlementine/widgets/PopoverButton.hpp | 3 + .../qlementine/widgets/RoundedFocusFrame.hpp | 3 + .../qlementine/widgets/SegmentedControl.hpp | 3 + .../qlementine/widgets/StatusBadgeWidget.hpp | 3 + .../oclero/qlementine/widgets/Switch.hpp | 3 + lib/resources/qlementine.qrc | 40 +- lib/resources/qlementine_font_roboto.qrc | 12 +- lib/src/animation/WidgetAnimationManager.cpp | 23 +- lib/src/animation/WidgetAnimator.cpp | 23 +- lib/src/csd/FramelessWindow.cpp | 23 +- lib/src/csd/FramelessWindowBehavior.cpp | 23 +- lib/src/csd/WindowsTitleBar.cpp | 23 +- lib/src/csd/WindowsTitleBarButton.cpp | 23 +- lib/src/csd/WindowsTitleMenuBarProxyStyle.cpp | 23 +- lib/src/resources/ResourceInitialization.cpp | 23 +- lib/src/style/Delegates.cpp | 23 +- lib/src/style/EventFilters.cpp | 23 +- lib/src/style/EventFilters.hpp | 23 +- lib/src/style/QlementineStyle.cpp | 24 +- lib/src/style/Theme.cpp | 23 +- lib/src/style/ThemeManager.cpp | 23 +- lib/src/tools/ThemeEditor.cpp | 3 + lib/src/utils/BadgeUtils.cpp | 23 +- lib/src/utils/ColorUtils.cpp | 24 +- lib/src/utils/FontUtils.cpp | 23 +- lib/src/utils/ImageUtils.cpp | 23 +- lib/src/utils/PrimitiveUtils.cpp | 23 +- lib/src/utils/RadiusesF.cpp | 23 +- lib/src/utils/StateUtils.cpp | 23 +- lib/src/utils/StyleUtils.cpp | 23 +- lib/src/utils/WidgetUtils.cpp | 23 +- lib/src/widgets/AbstractItemListWidget.cpp | 23 +- lib/src/widgets/Action.cpp | 23 +- lib/src/widgets/ActionButton.cpp | 23 +- lib/src/widgets/ColorButton.cpp | 23 +- lib/src/widgets/ColorEditor.cpp | 23 +- lib/src/widgets/CommandLinkButton.cpp | 23 +- lib/src/widgets/Expander.cpp | 23 +- lib/src/widgets/IconWidget.cpp | 23 +- lib/src/widgets/Label.cpp | 23 +- lib/src/widgets/LineEdit.cpp | 23 +- lib/src/widgets/Menu.cpp | 23 +- lib/src/widgets/NavigationBar.cpp | 23 +- lib/src/widgets/PlainTextEdit.cpp | 3 + lib/src/widgets/Popover.cpp | 23 +- lib/src/widgets/PopoverButton.cpp | 23 +- lib/src/widgets/RoundedFocusFrame.cpp | 23 +- lib/src/widgets/SegmentedControl.cpp | 23 +- lib/src/widgets/StatusBadgeWidget.cpp | 23 +- lib/src/widgets/Switch.cpp | 23 +- sandbox/resources/sandbox.qrc | 24 +- sandbox/src/CsdWindow.cpp | 1261 +++++++++-------- sandbox/src/CsdWindow.hpp | 3 + sandbox/src/SandboxWindow.cpp | 3 + sandbox/src/SandboxWindow.hpp | 5 +- sandbox/src/main.cpp | 3 + 98 files changed, 892 insertions(+), 2093 deletions(-) diff --git a/lib/include/oclero/qlementine.hpp b/lib/include/oclero/qlementine.hpp index b07ce51..2d2b3cb 100644 --- a/lib/include/oclero/qlementine.hpp +++ b/lib/include/oclero/qlementine.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/Common.hpp b/lib/include/oclero/qlementine/Common.hpp index 2e8a0d8..f670871 100644 --- a/lib/include/oclero/qlementine/Common.hpp +++ b/lib/include/oclero/qlementine/Common.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/animation/WidgetAnimation.hpp b/lib/include/oclero/qlementine/animation/WidgetAnimation.hpp index 6d00dc4..b14a74b 100644 --- a/lib/include/oclero/qlementine/animation/WidgetAnimation.hpp +++ b/lib/include/oclero/qlementine/animation/WidgetAnimation.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/animation/WidgetAnimationManager.hpp b/lib/include/oclero/qlementine/animation/WidgetAnimationManager.hpp index 28fe3aa..37dd199 100644 --- a/lib/include/oclero/qlementine/animation/WidgetAnimationManager.hpp +++ b/lib/include/oclero/qlementine/animation/WidgetAnimationManager.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/animation/WidgetAnimator.hpp b/lib/include/oclero/qlementine/animation/WidgetAnimator.hpp index 9406546..e77b777 100644 --- a/lib/include/oclero/qlementine/animation/WidgetAnimator.hpp +++ b/lib/include/oclero/qlementine/animation/WidgetAnimator.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/csd/FramelessWindowBehavior.hpp b/lib/include/oclero/qlementine/csd/FramelessWindowBehavior.hpp index ce22f17..decb892 100644 --- a/lib/include/oclero/qlementine/csd/FramelessWindowBehavior.hpp +++ b/lib/include/oclero/qlementine/csd/FramelessWindowBehavior.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/csd/WindowsTitleBar.hpp b/lib/include/oclero/qlementine/csd/WindowsTitleBar.hpp index 8be6dce..c3f888f 100644 --- a/lib/include/oclero/qlementine/csd/WindowsTitleBar.hpp +++ b/lib/include/oclero/qlementine/csd/WindowsTitleBar.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/csd/WindowsTitleBarButton.hpp b/lib/include/oclero/qlementine/csd/WindowsTitleBarButton.hpp index 732948b..19786e3 100644 --- a/lib/include/oclero/qlementine/csd/WindowsTitleBarButton.hpp +++ b/lib/include/oclero/qlementine/csd/WindowsTitleBarButton.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/csd/WindowsTitleBarCommon.hpp b/lib/include/oclero/qlementine/csd/WindowsTitleBarCommon.hpp index e8684e3..336af19 100644 --- a/lib/include/oclero/qlementine/csd/WindowsTitleBarCommon.hpp +++ b/lib/include/oclero/qlementine/csd/WindowsTitleBarCommon.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/csd/WindowsTitleMenuBarProxyStyle.hpp b/lib/include/oclero/qlementine/csd/WindowsTitleMenuBarProxyStyle.hpp index 6ff0127..6b33ae5 100644 --- a/lib/include/oclero/qlementine/csd/WindowsTitleMenuBarProxyStyle.hpp +++ b/lib/include/oclero/qlementine/csd/WindowsTitleMenuBarProxyStyle.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/resources/ResourceInitialization.hpp b/lib/include/oclero/qlementine/resources/ResourceInitialization.hpp index 9377aca..f315c4b 100644 --- a/lib/include/oclero/qlementine/resources/ResourceInitialization.hpp +++ b/lib/include/oclero/qlementine/resources/ResourceInitialization.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/style/Delegates.hpp b/lib/include/oclero/qlementine/style/Delegates.hpp index d1cc7b3..11b2ddf 100644 --- a/lib/include/oclero/qlementine/style/Delegates.hpp +++ b/lib/include/oclero/qlementine/style/Delegates.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/style/QlementineStyle.hpp b/lib/include/oclero/qlementine/style/QlementineStyle.hpp index 42980da..46bf425 100644 --- a/lib/include/oclero/qlementine/style/QlementineStyle.hpp +++ b/lib/include/oclero/qlementine/style/QlementineStyle.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/style/QlementineStyleOption.hpp b/lib/include/oclero/qlementine/style/QlementineStyleOption.hpp index 663b645..cdad06d 100644 --- a/lib/include/oclero/qlementine/style/QlementineStyleOption.hpp +++ b/lib/include/oclero/qlementine/style/QlementineStyleOption.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/style/Theme.hpp b/lib/include/oclero/qlementine/style/Theme.hpp index ef875e6..069a65c 100644 --- a/lib/include/oclero/qlementine/style/Theme.hpp +++ b/lib/include/oclero/qlementine/style/Theme.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/style/ThemeManager.hpp b/lib/include/oclero/qlementine/style/ThemeManager.hpp index 19383d3..5db2d9e 100644 --- a/lib/include/oclero/qlementine/style/ThemeManager.hpp +++ b/lib/include/oclero/qlementine/style/ThemeManager.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/tools/ThemeEditor.hpp b/lib/include/oclero/qlementine/tools/ThemeEditor.hpp index a07c836..c6f94b6 100644 --- a/lib/include/oclero/qlementine/tools/ThemeEditor.hpp +++ b/lib/include/oclero/qlementine/tools/ThemeEditor.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/utils/BadgeUtils.hpp b/lib/include/oclero/qlementine/utils/BadgeUtils.hpp index 4a11b47..783a683 100644 --- a/lib/include/oclero/qlementine/utils/BadgeUtils.hpp +++ b/lib/include/oclero/qlementine/utils/BadgeUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/utils/BlurUtils.hpp b/lib/include/oclero/qlementine/utils/BlurUtils.hpp index 53befe3..9ae9f58 100644 --- a/lib/include/oclero/qlementine/utils/BlurUtils.hpp +++ b/lib/include/oclero/qlementine/utils/BlurUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT // Source: https://github.com/bfraboni/FastGaussianBlur/blob/main/fast_gaussian_blur_template.h diff --git a/lib/include/oclero/qlementine/utils/ColorUtils.hpp b/lib/include/oclero/qlementine/utils/ColorUtils.hpp index 8dd86dc..248dab1 100644 --- a/lib/include/oclero/qlementine/utils/ColorUtils.hpp +++ b/lib/include/oclero/qlementine/utils/ColorUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include #include diff --git a/lib/include/oclero/qlementine/utils/FontUtils.hpp b/lib/include/oclero/qlementine/utils/FontUtils.hpp index 38c2fbd..95d5849 100644 --- a/lib/include/oclero/qlementine/utils/FontUtils.hpp +++ b/lib/include/oclero/qlementine/utils/FontUtils.hpp @@ -1,24 +1,6 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include #include diff --git a/lib/include/oclero/qlementine/utils/ImageUtils.hpp b/lib/include/oclero/qlementine/utils/ImageUtils.hpp index f4c41de..ad31628 100644 --- a/lib/include/oclero/qlementine/utils/ImageUtils.hpp +++ b/lib/include/oclero/qlementine/utils/ImageUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/utils/PrimitiveUtils.hpp b/lib/include/oclero/qlementine/utils/PrimitiveUtils.hpp index c84351a..e715a0f 100644 --- a/lib/include/oclero/qlementine/utils/PrimitiveUtils.hpp +++ b/lib/include/oclero/qlementine/utils/PrimitiveUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/utils/RadiusesF.hpp b/lib/include/oclero/qlementine/utils/RadiusesF.hpp index 8704cc3..64a6700 100644 --- a/lib/include/oclero/qlementine/utils/RadiusesF.hpp +++ b/lib/include/oclero/qlementine/utils/RadiusesF.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/utils/StateUtils.hpp b/lib/include/oclero/qlementine/utils/StateUtils.hpp index 1115b81..91f19a5 100644 --- a/lib/include/oclero/qlementine/utils/StateUtils.hpp +++ b/lib/include/oclero/qlementine/utils/StateUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/utils/StyleUtils.hpp b/lib/include/oclero/qlementine/utils/StyleUtils.hpp index ff23a06..5e36aff 100644 --- a/lib/include/oclero/qlementine/utils/StyleUtils.hpp +++ b/lib/include/oclero/qlementine/utils/StyleUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/utils/WidgetUtils.hpp b/lib/include/oclero/qlementine/utils/WidgetUtils.hpp index 3f2c005..e8d33cc 100644 --- a/lib/include/oclero/qlementine/utils/WidgetUtils.hpp +++ b/lib/include/oclero/qlementine/utils/WidgetUtils.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/widgets/AbstractItemListWidget.hpp b/lib/include/oclero/qlementine/widgets/AbstractItemListWidget.hpp index f8d565d..2604b76 100644 --- a/lib/include/oclero/qlementine/widgets/AbstractItemListWidget.hpp +++ b/lib/include/oclero/qlementine/widgets/AbstractItemListWidget.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/Action.hpp b/lib/include/oclero/qlementine/widgets/Action.hpp index 8cee6fc..5965707 100644 --- a/lib/include/oclero/qlementine/widgets/Action.hpp +++ b/lib/include/oclero/qlementine/widgets/Action.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/ActionButton.hpp b/lib/include/oclero/qlementine/widgets/ActionButton.hpp index 4616a9a..760f4e4 100644 --- a/lib/include/oclero/qlementine/widgets/ActionButton.hpp +++ b/lib/include/oclero/qlementine/widgets/ActionButton.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/ColorButton.hpp b/lib/include/oclero/qlementine/widgets/ColorButton.hpp index 9a8c59b..783c0d7 100644 --- a/lib/include/oclero/qlementine/widgets/ColorButton.hpp +++ b/lib/include/oclero/qlementine/widgets/ColorButton.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/include/oclero/qlementine/widgets/ColorEditor.hpp b/lib/include/oclero/qlementine/widgets/ColorEditor.hpp index e0a6354..4918372 100644 --- a/lib/include/oclero/qlementine/widgets/ColorEditor.hpp +++ b/lib/include/oclero/qlementine/widgets/ColorEditor.hpp @@ -1,24 +1,6 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/CommandLinkButton.hpp b/lib/include/oclero/qlementine/widgets/CommandLinkButton.hpp index 3b32f6d..308cfb2 100644 --- a/lib/include/oclero/qlementine/widgets/CommandLinkButton.hpp +++ b/lib/include/oclero/qlementine/widgets/CommandLinkButton.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/Expander.hpp b/lib/include/oclero/qlementine/widgets/Expander.hpp index a46d0fe..1722801 100644 --- a/lib/include/oclero/qlementine/widgets/Expander.hpp +++ b/lib/include/oclero/qlementine/widgets/Expander.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/FramelessWindow.hpp b/lib/include/oclero/qlementine/widgets/FramelessWindow.hpp index 20663c5..441c95b 100644 --- a/lib/include/oclero/qlementine/widgets/FramelessWindow.hpp +++ b/lib/include/oclero/qlementine/widgets/FramelessWindow.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/IconWidget.hpp b/lib/include/oclero/qlementine/widgets/IconWidget.hpp index c60f9ec..e30d1a3 100644 --- a/lib/include/oclero/qlementine/widgets/IconWidget.hpp +++ b/lib/include/oclero/qlementine/widgets/IconWidget.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/Label.hpp b/lib/include/oclero/qlementine/widgets/Label.hpp index f03e7a2..38b4796 100644 --- a/lib/include/oclero/qlementine/widgets/Label.hpp +++ b/lib/include/oclero/qlementine/widgets/Label.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/LineEdit.hpp b/lib/include/oclero/qlementine/widgets/LineEdit.hpp index 19fb185..9f8302c 100644 --- a/lib/include/oclero/qlementine/widgets/LineEdit.hpp +++ b/lib/include/oclero/qlementine/widgets/LineEdit.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/Menu.hpp b/lib/include/oclero/qlementine/widgets/Menu.hpp index 51bddce..c7d1b37 100644 --- a/lib/include/oclero/qlementine/widgets/Menu.hpp +++ b/lib/include/oclero/qlementine/widgets/Menu.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/NavigationBar.hpp b/lib/include/oclero/qlementine/widgets/NavigationBar.hpp index e8ee6f5..9b003b3 100644 --- a/lib/include/oclero/qlementine/widgets/NavigationBar.hpp +++ b/lib/include/oclero/qlementine/widgets/NavigationBar.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/PlainTextEdit.hpp b/lib/include/oclero/qlementine/widgets/PlainTextEdit.hpp index 8f14138..be69f40 100644 --- a/lib/include/oclero/qlementine/widgets/PlainTextEdit.hpp +++ b/lib/include/oclero/qlementine/widgets/PlainTextEdit.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/Popover.hpp b/lib/include/oclero/qlementine/widgets/Popover.hpp index 3decaa8..b5b7877 100644 --- a/lib/include/oclero/qlementine/widgets/Popover.hpp +++ b/lib/include/oclero/qlementine/widgets/Popover.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/PopoverButton.hpp b/lib/include/oclero/qlementine/widgets/PopoverButton.hpp index cb56f69..118f6ea 100644 --- a/lib/include/oclero/qlementine/widgets/PopoverButton.hpp +++ b/lib/include/oclero/qlementine/widgets/PopoverButton.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/RoundedFocusFrame.hpp b/lib/include/oclero/qlementine/widgets/RoundedFocusFrame.hpp index da3d2e9..edcf7e9 100644 --- a/lib/include/oclero/qlementine/widgets/RoundedFocusFrame.hpp +++ b/lib/include/oclero/qlementine/widgets/RoundedFocusFrame.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/SegmentedControl.hpp b/lib/include/oclero/qlementine/widgets/SegmentedControl.hpp index 3d1e06a..8764ed7 100644 --- a/lib/include/oclero/qlementine/widgets/SegmentedControl.hpp +++ b/lib/include/oclero/qlementine/widgets/SegmentedControl.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/StatusBadgeWidget.hpp b/lib/include/oclero/qlementine/widgets/StatusBadgeWidget.hpp index 5a89c74..6adfc1d 100644 --- a/lib/include/oclero/qlementine/widgets/StatusBadgeWidget.hpp +++ b/lib/include/oclero/qlementine/widgets/StatusBadgeWidget.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/include/oclero/qlementine/widgets/Switch.hpp b/lib/include/oclero/qlementine/widgets/Switch.hpp index c9208e0..ef9c3db 100644 --- a/lib/include/oclero/qlementine/widgets/Switch.hpp +++ b/lib/include/oclero/qlementine/widgets/Switch.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/lib/resources/qlementine.qrc b/lib/resources/qlementine.qrc index ded62ef..d153004 100644 --- a/lib/resources/qlementine.qrc +++ b/lib/resources/qlementine.qrc @@ -1,22 +1,22 @@ - - icons/messagebox_critical_bg.svg - icons/messagebox_critical_fg.svg - icons/messagebox_information_bg.svg - icons/messagebox_information_fg.svg - icons/messagebox_question_bg.svg - icons/messagebox_question_fg.svg - icons/messagebox_warning_bg.svg - icons/messagebox_warning_fg.svg - csd/windows/dark/close-hover.svg - csd/windows/dark/close.svg - csd/windows/dark/maximize-alternative.svg - csd/windows/dark/maximize.svg - csd/windows/dark/minimize.svg - csd/windows/light/close-hover.svg - csd/windows/light/close.svg - csd/windows/light/maximize-alternative.svg - csd/windows/light/maximize.svg - csd/windows/light/minimize.svg - + + icons/messagebox_critical_bg.svg + icons/messagebox_critical_fg.svg + icons/messagebox_information_bg.svg + icons/messagebox_information_fg.svg + icons/messagebox_question_bg.svg + icons/messagebox_question_fg.svg + icons/messagebox_warning_bg.svg + icons/messagebox_warning_fg.svg + csd/windows/dark/close-hover.svg + csd/windows/dark/close.svg + csd/windows/dark/maximize-alternative.svg + csd/windows/dark/maximize.svg + csd/windows/dark/minimize.svg + csd/windows/light/close-hover.svg + csd/windows/light/close.svg + csd/windows/light/maximize-alternative.svg + csd/windows/light/maximize.svg + csd/windows/light/minimize.svg + diff --git a/lib/resources/qlementine_font_roboto.qrc b/lib/resources/qlementine_font_roboto.qrc index 533c51c..2178406 100644 --- a/lib/resources/qlementine_font_roboto.qrc +++ b/lib/resources/qlementine_font_roboto.qrc @@ -1,8 +1,8 @@ - - fonts/roboto-mono/RobotoMono-Bold.ttf - fonts/roboto-mono/RobotoMono-BoldItalic.ttf - fonts/roboto-mono/RobotoMono-Italic.ttf - fonts/roboto-mono/RobotoMono-Regular.ttf - + + fonts/roboto-mono/RobotoMono-Bold.ttf + fonts/roboto-mono/RobotoMono-BoldItalic.ttf + fonts/roboto-mono/RobotoMono-Italic.ttf + fonts/roboto-mono/RobotoMono-Regular.ttf + diff --git a/lib/src/animation/WidgetAnimationManager.cpp b/lib/src/animation/WidgetAnimationManager.cpp index bd8bb87..c233cab 100644 --- a/lib/src/animation/WidgetAnimationManager.cpp +++ b/lib/src/animation/WidgetAnimationManager.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/animation/WidgetAnimator.cpp b/lib/src/animation/WidgetAnimator.cpp index 1a39dd4..edb11ed 100644 --- a/lib/src/animation/WidgetAnimator.cpp +++ b/lib/src/animation/WidgetAnimator.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/csd/FramelessWindow.cpp b/lib/src/csd/FramelessWindow.cpp index f2f9569..25eb796 100644 --- a/lib/src/csd/FramelessWindow.cpp +++ b/lib/src/csd/FramelessWindow.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/csd/FramelessWindowBehavior.cpp b/lib/src/csd/FramelessWindowBehavior.cpp index 16016f9..23de39c 100644 --- a/lib/src/csd/FramelessWindowBehavior.cpp +++ b/lib/src/csd/FramelessWindowBehavior.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/csd/WindowsTitleBar.cpp b/lib/src/csd/WindowsTitleBar.cpp index 3446861..8b14ade 100644 --- a/lib/src/csd/WindowsTitleBar.cpp +++ b/lib/src/csd/WindowsTitleBar.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/csd/WindowsTitleBarButton.cpp b/lib/src/csd/WindowsTitleBarButton.cpp index da712fd..0d1977a 100644 --- a/lib/src/csd/WindowsTitleBarButton.cpp +++ b/lib/src/csd/WindowsTitleBarButton.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/csd/WindowsTitleMenuBarProxyStyle.cpp b/lib/src/csd/WindowsTitleMenuBarProxyStyle.cpp index 0f9c6c9..283d147 100644 --- a/lib/src/csd/WindowsTitleMenuBarProxyStyle.cpp +++ b/lib/src/csd/WindowsTitleMenuBarProxyStyle.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/resources/ResourceInitialization.cpp b/lib/src/resources/ResourceInitialization.cpp index 70e3bdc..bc18c16 100644 --- a/lib/src/resources/ResourceInitialization.cpp +++ b/lib/src/resources/ResourceInitialization.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/style/Delegates.cpp b/lib/src/style/Delegates.cpp index 923fbf7..3c3aa3f 100644 --- a/lib/src/style/Delegates.cpp +++ b/lib/src/style/Delegates.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/style/EventFilters.cpp b/lib/src/style/EventFilters.cpp index e983a15..1b8e093 100644 --- a/lib/src/style/EventFilters.cpp +++ b/lib/src/style/EventFilters.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include "EventFilters.hpp" diff --git a/lib/src/style/EventFilters.hpp b/lib/src/style/EventFilters.hpp index b182ed8..890bd96 100644 --- a/lib/src/style/EventFilters.hpp +++ b/lib/src/style/EventFilters.hpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #pragma once diff --git a/lib/src/style/QlementineStyle.cpp b/lib/src/style/QlementineStyle.cpp index 374acd2..13172fc 100644 --- a/lib/src/style/QlementineStyle.cpp +++ b/lib/src/style/QlementineStyle.cpp @@ -1,24 +1,6 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include #include diff --git a/lib/src/style/Theme.cpp b/lib/src/style/Theme.cpp index d263fe0..529363a 100644 --- a/lib/src/style/Theme.cpp +++ b/lib/src/style/Theme.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include #include diff --git a/lib/src/style/ThemeManager.cpp b/lib/src/style/ThemeManager.cpp index ba99cc3..93cb279 100644 --- a/lib/src/style/ThemeManager.cpp +++ b/lib/src/style/ThemeManager.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/tools/ThemeEditor.cpp b/lib/src/tools/ThemeEditor.cpp index 2923e53..130f881 100644 --- a/lib/src/tools/ThemeEditor.cpp +++ b/lib/src/tools/ThemeEditor.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include #include diff --git a/lib/src/utils/BadgeUtils.cpp b/lib/src/utils/BadgeUtils.cpp index 3dd30d5..6d0c4fc 100644 --- a/lib/src/utils/BadgeUtils.cpp +++ b/lib/src/utils/BadgeUtils.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/utils/ColorUtils.cpp b/lib/src/utils/ColorUtils.cpp index 6774294..08bb401 100644 --- a/lib/src/utils/ColorUtils.cpp +++ b/lib/src/utils/ColorUtils.cpp @@ -1,24 +1,6 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include #include diff --git a/lib/src/utils/FontUtils.cpp b/lib/src/utils/FontUtils.cpp index f7f9a25..78f1699 100644 --- a/lib/src/utils/FontUtils.cpp +++ b/lib/src/utils/FontUtils.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/utils/ImageUtils.cpp b/lib/src/utils/ImageUtils.cpp index ef5a2f5..c351e84 100644 --- a/lib/src/utils/ImageUtils.cpp +++ b/lib/src/utils/ImageUtils.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include #include diff --git a/lib/src/utils/PrimitiveUtils.cpp b/lib/src/utils/PrimitiveUtils.cpp index aa3fc54..f1ac98e 100644 --- a/lib/src/utils/PrimitiveUtils.cpp +++ b/lib/src/utils/PrimitiveUtils.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include #include diff --git a/lib/src/utils/RadiusesF.cpp b/lib/src/utils/RadiusesF.cpp index 1250dea..8704377 100644 --- a/lib/src/utils/RadiusesF.cpp +++ b/lib/src/utils/RadiusesF.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/utils/StateUtils.cpp b/lib/src/utils/StateUtils.cpp index 50715db..4e5a2bf 100644 --- a/lib/src/utils/StateUtils.cpp +++ b/lib/src/utils/StateUtils.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/utils/StyleUtils.cpp b/lib/src/utils/StyleUtils.cpp index d88565c..90e7442 100644 --- a/lib/src/utils/StyleUtils.cpp +++ b/lib/src/utils/StyleUtils.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/utils/WidgetUtils.cpp b/lib/src/utils/WidgetUtils.cpp index 25a2f07..d92f4fc 100644 --- a/lib/src/utils/WidgetUtils.cpp +++ b/lib/src/utils/WidgetUtils.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/AbstractItemListWidget.cpp b/lib/src/widgets/AbstractItemListWidget.cpp index d6cb8d2..6af7f89 100644 --- a/lib/src/widgets/AbstractItemListWidget.cpp +++ b/lib/src/widgets/AbstractItemListWidget.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/Action.cpp b/lib/src/widgets/Action.cpp index 294dbd4..512ec1a 100644 --- a/lib/src/widgets/Action.cpp +++ b/lib/src/widgets/Action.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/ActionButton.cpp b/lib/src/widgets/ActionButton.cpp index d2fae56..327d865 100644 --- a/lib/src/widgets/ActionButton.cpp +++ b/lib/src/widgets/ActionButton.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/ColorButton.cpp b/lib/src/widgets/ColorButton.cpp index acfee93..64665ca 100644 --- a/lib/src/widgets/ColorButton.cpp +++ b/lib/src/widgets/ColorButton.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/ColorEditor.cpp b/lib/src/widgets/ColorEditor.cpp index b2476fe..efef205 100644 --- a/lib/src/widgets/ColorEditor.cpp +++ b/lib/src/widgets/ColorEditor.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/CommandLinkButton.cpp b/lib/src/widgets/CommandLinkButton.cpp index ffba261..ba14a29 100644 --- a/lib/src/widgets/CommandLinkButton.cpp +++ b/lib/src/widgets/CommandLinkButton.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/Expander.cpp b/lib/src/widgets/Expander.cpp index 5a15bd0..f91a397 100644 --- a/lib/src/widgets/Expander.cpp +++ b/lib/src/widgets/Expander.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/IconWidget.cpp b/lib/src/widgets/IconWidget.cpp index 87831e4..da90af7 100644 --- a/lib/src/widgets/IconWidget.cpp +++ b/lib/src/widgets/IconWidget.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/Label.cpp b/lib/src/widgets/Label.cpp index d6e9209..d528d62 100644 --- a/lib/src/widgets/Label.cpp +++ b/lib/src/widgets/Label.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/LineEdit.cpp b/lib/src/widgets/LineEdit.cpp index 7950a3a..204b39d 100644 --- a/lib/src/widgets/LineEdit.cpp +++ b/lib/src/widgets/LineEdit.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/Menu.cpp b/lib/src/widgets/Menu.cpp index bfa7982..81e1936 100644 --- a/lib/src/widgets/Menu.cpp +++ b/lib/src/widgets/Menu.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/NavigationBar.cpp b/lib/src/widgets/NavigationBar.cpp index 01f2839..868ed3b 100644 --- a/lib/src/widgets/NavigationBar.cpp +++ b/lib/src/widgets/NavigationBar.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/PlainTextEdit.cpp b/lib/src/widgets/PlainTextEdit.cpp index 7e663fb..96ee7ab 100644 --- a/lib/src/widgets/PlainTextEdit.cpp +++ b/lib/src/widgets/PlainTextEdit.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include #include diff --git a/lib/src/widgets/Popover.cpp b/lib/src/widgets/Popover.cpp index 5ff7d40..a5b4518 100644 --- a/lib/src/widgets/Popover.cpp +++ b/lib/src/widgets/Popover.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/PopoverButton.cpp b/lib/src/widgets/PopoverButton.cpp index cf4b0b9..80c6034 100644 --- a/lib/src/widgets/PopoverButton.cpp +++ b/lib/src/widgets/PopoverButton.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/RoundedFocusFrame.cpp b/lib/src/widgets/RoundedFocusFrame.cpp index 1145bc1..66a2689 100644 --- a/lib/src/widgets/RoundedFocusFrame.cpp +++ b/lib/src/widgets/RoundedFocusFrame.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/SegmentedControl.cpp b/lib/src/widgets/SegmentedControl.cpp index 8692a54..0ff3272 100644 --- a/lib/src/widgets/SegmentedControl.cpp +++ b/lib/src/widgets/SegmentedControl.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/StatusBadgeWidget.cpp b/lib/src/widgets/StatusBadgeWidget.cpp index f361b81..1949689 100644 --- a/lib/src/widgets/StatusBadgeWidget.cpp +++ b/lib/src/widgets/StatusBadgeWidget.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/lib/src/widgets/Switch.cpp b/lib/src/widgets/Switch.cpp index 794c88d..5815dab 100644 --- a/lib/src/widgets/Switch.cpp +++ b/lib/src/widgets/Switch.cpp @@ -1,24 +1,5 @@ -// MIT License -// -// Copyright (c) 2023 Olivier Clero -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT #include diff --git a/sandbox/resources/sandbox.qrc b/sandbox/resources/sandbox.qrc index 315d3bc..3d148a6 100644 --- a/sandbox/resources/sandbox.qrc +++ b/sandbox/resources/sandbox.qrc @@ -1,14 +1,14 @@ - - dark.json - light.json - qlementine_icon.ico - qlementine_icon.icns - refresh.svg - plus_24.svg - test_image_16x16.png - scene_light.svg - scene_material.svg - scene_object.svg - + + dark.json + light.json + qlementine_icon.ico + qlementine_icon.icns + refresh.svg + plus_24.svg + test_image_16x16.png + scene_light.svg + scene_material.svg + scene_object.svg + diff --git a/sandbox/src/CsdWindow.cpp b/sandbox/src/CsdWindow.cpp index a3cfcb1..f395bc8 100644 --- a/sandbox/src/CsdWindow.cpp +++ b/sandbox/src/CsdWindow.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include "CsdWindow.hpp" #include @@ -35,674 +38,673 @@ void CsdWindow::paintEvent(QPaintEvent* event) { void CsdWindow::setupUi() { auto* content = new QTabWidget(this); - auto addseg = [](const QString& caption, QWidget* parent) { - auto* segTitle = new QWidget(parent); - auto layout = new QHBoxLayout; - segTitle->setLayout(layout); - layout->addWidget(new QLabel(caption, segTitle)); - auto* hline = new QFrame(segTitle); - hline->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); - hline->setFrameShape(QFrame::HLine); - layout->addWidget(hline); - return segTitle; - }; - - // Basic Widget - { - auto* page = new QScrollArea(content); - - auto* root = new QWidget(page); - page->setWidget(root); - page->setWidgetResizable(true); - page->setAlignment(Qt::AlignHCenter); - auto* layout = new QVBoxLayout(); - root->setLayout(layout); - - // QCheckBox - { - auto* widget = new QWidget(root); - auto* llayout = new QHBoxLayout; - widget->setLayout(llayout); - - auto* checkbox = new QCheckBox("Normal", widget); - llayout->addWidget(checkbox); - - auto* checkbox2 = new QCheckBox("Disabled", widget); - checkbox2->setDisabled(true); - llayout->addWidget(checkbox2); - - auto* checkbox3 = new QCheckBox("WithIcon", widget); - checkbox3->setIcon(QIcon(QStringLiteral(":/plus_24.svg"))); - llayout->addWidget(checkbox3); - - auto* checkbox4 = new QCheckBox("NoneCheckable", widget); - checkbox4->setCheckable(false); - llayout->addWidget(checkbox4); - - auto* checkbox5 = new QCheckBox("PartiallyChecked", widget); - checkbox5->setCheckState(Qt::CheckState::PartiallyChecked); - llayout->addWidget(checkbox5); - - layout->addWidget(addseg("QCheckBox", root)); - layout->addWidget(widget); - } - - // QComboBox - { - auto createCombo = [](QWidget* parent) { - auto* widget = new QComboBox(parent); - widget->addItems({ "North", "South", "West", "East" }); - widget->addItem(QIcon(QStringLiteral(":/plus_24.svg")), "Directions"); - return widget; - }; - - auto* widget = new QWidget(root); - auto* llayout = new QHBoxLayout; - widget->setLayout(llayout); - - auto* normal = createCombo(widget); - llayout->addWidget(normal); - auto* editable = createCombo(widget); - editable->setEditable(true); - llayout->addWidget(editable); - - layout->addWidget(addseg("QComboBox", root)); - layout->addWidget(widget); - } - - // QCommandLinkButton - { - auto* widget = new QCommandLinkButton("ClickMe", "A vista style button", root); - - layout->addWidget(addseg("QCommandLinkButton", root)); - layout->addWidget(widget); - } - - // QDateEdit - { - auto* widget = new QDateEdit(root); - - layout->addWidget(addseg("QDateEdit", root)); - layout->addWidget(widget); - } - - // QDateTimeEdit - { - auto* widget = new QDateTimeEdit(root); - - layout->addWidget(addseg("QDateTimeEdit", root)); - layout->addWidget(widget); - } - - // QDial - { - auto* widget = new QDial(root); - - layout->addWidget(addseg("QDial", root)); - layout->addWidget(widget); - } - - // QDoubleSpinBox - { - auto* widget = new QDoubleSpinBox(root); - - layout->addWidget(addseg("QDoubleSpinBox", root)); - layout->addWidget(widget); - - } - - // QFontComboBox - { - auto* widget = new QFontComboBox(root); - - layout->addWidget(addseg("QFontComboBox", root)); - layout->addWidget(widget); - } - - // QLCDNumber - { - auto* widget = new QLCDNumber(root); - widget->setDigitCount(1000); - widget->setMaximumWidth(200); - - layout->addWidget(addseg("QLCDNumber", root)); - layout->addWidget(widget); - } - - // QLabel - { - auto* widget = new QLabel(root); - widget->setText("This is a label"); - - layout->addWidget(addseg("QLabel", root)); - layout->addWidget(widget); - } - - // QLineEdit - { - auto* widget = new QWidget(root); - auto* llayout = new QHBoxLayout; - widget->setLayout(llayout); - - auto* normal = new QLineEdit(widget); - llayout->addWidget(normal); - auto* placeHold = new QLineEdit(widget); - placeHold->setPlaceholderText("typing..."); - llayout->addWidget(placeHold); - - layout->addWidget(addseg("QLineEdit", root)); - layout->addWidget(widget); - } - - // QMenu - { - auto* widget = new QMenuBar(root); - auto* menu = new QMenu("Menu", widget); - menu->addAction(QIcon(QStringLiteral(":/plus_24.svg")), "Item1"); - - - layout->addWidget(addseg("QMenu", root)); - layout->addWidget(widget); - } - - // QProgressBar - { - auto* widget = new QProgressBar(root); - widget->setValue(42); - - layout->addWidget(addseg("QProgressBar", root)); - layout->addWidget(widget); - } - - // QPushButton - { - auto* widget = new QWidget(root); - auto* llayout = new QHBoxLayout; - widget->setLayout(llayout); - - auto* pushButton = new QPushButton("Normal", widget); - llayout->addWidget(pushButton); - - auto* pushButton2 = new QPushButton("Disabled", widget); - pushButton2->setDisabled(true); - llayout->addWidget(pushButton2); - - auto* pushButton3 = new QPushButton("WithIcon", widget); - pushButton3->setIcon(QIcon(QStringLiteral(":/plus_24.svg"))); - llayout->addWidget(pushButton3); - - auto* pushButton4 = new QPushButton("Flat", widget); - pushButton4->setFlat(true); - llayout->addWidget(pushButton4); - - layout->addWidget(addseg("QPushButton", root)); - layout->addWidget(widget); - } - - // QRadioButton - { - auto* widget = new QWidget(root); - auto* llayout = new QHBoxLayout; - widget->setLayout(llayout); - - auto* radiobutton = new QRadioButton("Normal", widget); - llayout->addWidget(radiobutton); - - auto* radiobutton2 = new QRadioButton("Disabled", widget); - radiobutton2->setDisabled(true); - llayout->addWidget(radiobutton2); - - auto* radiobutton3 = new QRadioButton("WithIcon", widget); - radiobutton3->setIcon(QIcon(QStringLiteral(":/plus_24.svg"))); - llayout->addWidget(radiobutton3); - - auto* radiobutton4 = new QRadioButton("NoneCheckable", widget); - radiobutton4->setCheckable(false); - llayout->addWidget(radiobutton4); - - layout->addWidget(addseg("QRadioButton", root)); - layout->addWidget(widget); - } - - // QScrollBar - { - auto* widget = new QScrollBar(Qt::Horizontal, root); - - layout->addWidget(addseg("QScrollBar", root)); - layout->addWidget(widget); - } - - // QSlider - { - auto* widget = new QSlider(Qt::Horizontal, root); - auto* widget2 = new QSlider(Qt::Vertical, root); - - layout->addWidget(addseg("QSlider", root)); - layout->addWidget(widget); - layout->addWidget(widget2); - } - - // QSpinBox - { - auto* widget = new QSpinBox(root); - - layout->addWidget(addseg("QSpinBox", root)); - layout->addWidget(widget); - } - - // QTabBar - { - auto* widget = new QTabBar(root); - widget->addTab("Page1"); - widget->addTab(QIcon(QStringLiteral(":/plus_24.svg")), "Page2"); - widget->addTab(QIcon(QStringLiteral(":/plus_24.svg")), "Page3"); - widget->setExpanding(false); - - layout->addWidget(addseg("QTabBar", root)); - layout->addWidget(widget); - } - - // QTimeEdit - { - auto* widget = new QTimeEdit(root); - - layout->addWidget(addseg("QTimeEdit", root)); - layout->addWidget(widget); - } - - // QToolBox - { - auto* widget = new QToolBox(root); - widget->addItem(new QWidget(), QIcon(QStringLiteral(":/plus_24.svg")), "Item1"); - widget->addItem(new QWidget(), QIcon(QStringLiteral(":/plus_24.svg")), "Item2"); - - layout->addWidget(addseg("QToolBox", root)); - layout->addWidget(widget); - } - - // QToolButton - { - auto* widget = new QToolBar(root); - - auto icon = QIcon(QStringLiteral(":/plus_24.svg")); - - auto* toolbutton1 = new QToolButton(widget); - toolbutton1->setIcon(icon); - toolbutton1->setToolTip("with actions"); - toolbutton1->addAction(new QAction(icon, "Item1")); - toolbutton1->addAction(new QAction(icon, "Item2")); - widget->addWidget(toolbutton1); - - auto* toolbutton2 = new QToolButton(widget); - toolbutton2->setIcon(icon); - toolbutton2->setToolTip("QToolButton::DelayedPopup"); - toolbutton2->setPopupMode(QToolButton::DelayedPopup); - widget->addWidget(toolbutton2); - - auto* toolbutton3 = new QToolButton(widget); - toolbutton3->setIcon(icon); - toolbutton3->setToolTip("QToolButton::MenuButtonPopup"); - toolbutton3->setPopupMode(QToolButton::MenuButtonPopup); - widget->addWidget(toolbutton3); - - auto* toolbutton4 = new QToolButton(widget); - toolbutton4->setIcon(icon); - toolbutton4->setToolTip("QToolButton::InstantPopup"); - toolbutton4->setPopupMode(QToolButton::InstantPopup); - widget->addWidget(toolbutton4); - - auto* toolbutton5 = new QToolButton(widget); - toolbutton5->setIcon(icon); - toolbutton5->setToolTip("Qt::UpArrow"); - toolbutton5->setArrowType(Qt::UpArrow); - widget->addWidget(toolbutton5); - - auto* toolbutton6 = new QToolButton(widget); - toolbutton6->setIcon(icon); - toolbutton6->setToolTip("Qt::DownArrow"); - toolbutton6->setArrowType(Qt::DownArrow); - widget->addWidget(toolbutton6); - - auto* toolbutton7 = new QToolButton(widget); - toolbutton7->setIcon(icon); - toolbutton7->setToolTip("Qt::LeftArrow"); - toolbutton7->setArrowType(Qt::LeftArrow); - widget->addWidget(toolbutton7); - - auto* toolbutton8 = new QToolButton(widget); - toolbutton8->setIcon(icon); - toolbutton8->setToolTip("Qt::RightArrow"); - toolbutton8->setArrowType(Qt::RightArrow); - widget->addWidget(toolbutton8); - - auto* toolbutton9 = new QToolButton(widget); - toolbutton9->setIcon(icon); - toolbutton9->setToolTip("AutoRaise enabled"); - toolbutton9->setAutoRaise(true); - widget->addWidget(toolbutton9); - - layout->addWidget(addseg("QToolBox", root)); - layout->addWidget(widget); - } - - layout->addStretch(); - content->addTab(page, "Basic Widget"); - } - - - // Advanced Widget - { - auto* page = new QScrollArea(content); - - auto* root = new QWidget(page); - page->setWidget(root); - page->setWidgetResizable(true); - page->setAlignment(Qt::AlignHCenter); - auto* layout = new QVBoxLayout(); - root->setLayout(layout); - - // QCalendarWidget - { - auto* calendar = new QCalendarWidget(root); - layout->addWidget(addseg("QCalendarWidget", root)); - layout->addWidget(calendar); - } + auto addseg = [](const QString& caption, QWidget* parent) { + auto* segTitle = new QWidget(parent); + auto layout = new QHBoxLayout; + segTitle->setLayout(layout); + layout->addWidget(new QLabel(caption, segTitle)); + auto* hline = new QFrame(segTitle); + hline->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); + hline->setFrameShape(QFrame::HLine); + layout->addWidget(hline); + return segTitle; + }; + + // Basic Widget + { + auto* page = new QScrollArea(content); - // QDialogButtonBox - { - auto* widget = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, root); - layout->addWidget(addseg("QDialogButtonBox", root)); - layout->addWidget(widget); - } + auto* root = new QWidget(page); + page->setWidget(root); + page->setWidgetResizable(true); + page->setAlignment(Qt::AlignHCenter); + auto* layout = new QVBoxLayout(); + root->setLayout(layout); + + // QCheckBox + { + auto* widget = new QWidget(root); + auto* llayout = new QHBoxLayout; + widget->setLayout(llayout); + auto* checkbox = new QCheckBox("Normal", widget); + llayout->addWidget(checkbox); - // QDialog - { - auto* widget = new QWidget(root); - auto* llayout = new QHBoxLayout; - widget->setLayout(llayout); - - auto* colorDialog = new QPushButton("QColorDialog", root); - connect(colorDialog, &QPushButton::clicked, []() { - QColorDialog dialog; - dialog.exec(); - }); - llayout->addWidget(colorDialog); - - auto* fileDialog = new QPushButton("QFileDialog", root); - connect(fileDialog, &QPushButton::clicked, []() { - QFileDialog dialog; - dialog.exec(); - }); - llayout->addWidget(fileDialog); - - auto* fontDialog = new QPushButton("QFontDialog", root); - connect(fontDialog, &QPushButton::clicked, []() { - QFontDialog dialog; - dialog.exec(); - }); - llayout->addWidget(fontDialog); - - layout->addWidget(addseg("QDialog(s)", root)); - layout->addWidget(widget); - } + auto* checkbox2 = new QCheckBox("Disabled", widget); + checkbox2->setDisabled(true); + llayout->addWidget(checkbox2); + + auto* checkbox3 = new QCheckBox("WithIcon", widget); + checkbox3->setIcon(QIcon(QStringLiteral(":/plus_24.svg"))); + llayout->addWidget(checkbox3); + + auto* checkbox4 = new QCheckBox("NoneCheckable", widget); + checkbox4->setCheckable(false); + llayout->addWidget(checkbox4); + + auto* checkbox5 = new QCheckBox("PartiallyChecked", widget); + checkbox5->setCheckState(Qt::CheckState::PartiallyChecked); + llayout->addWidget(checkbox5); - layout->addStretch(); - content->addTab(page, "Advanced Widget"); + layout->addWidget(addseg("QCheckBox", root)); + layout->addWidget(widget); } - // Organizer Widget + // QComboBox { - auto* page = new QScrollArea(content); + auto createCombo = [](QWidget* parent) { + auto* widget = new QComboBox(parent); + widget->addItems({ "North", "South", "West", "East" }); + widget->addItem(QIcon(QStringLiteral(":/plus_24.svg")), "Directions"); + return widget; + }; + + auto* widget = new QWidget(root); + auto* llayout = new QHBoxLayout; + widget->setLayout(llayout); + + auto* normal = createCombo(widget); + llayout->addWidget(normal); + auto* editable = createCombo(widget); + editable->setEditable(true); + llayout->addWidget(editable); + + layout->addWidget(addseg("QComboBox", root)); + layout->addWidget(widget); + } - auto* root = new QWidget(page); - page->setWidget(root); - page->setWidgetResizable(true); - page->setAlignment(Qt::AlignHCenter); - auto* layout = new QVBoxLayout(); - root->setLayout(layout); + // QCommandLinkButton + { + auto* widget = new QCommandLinkButton("ClickMe", "A vista style button", root); - // QButtonGroup - { - auto* buttonGroup = new QButtonGroup(root); - buttonGroup->addButton(new QCheckBox("Button1")); - buttonGroup->addButton(new QCheckBox("Button2")); - buttonGroup->setExclusive(true); - layout->addWidget(addseg("QButtonGroup(checkbox list)", root)); - for (auto* button : buttonGroup->buttons()) { - layout->addWidget(button); - } - } + layout->addWidget(addseg("QCommandLinkButton", root)); + layout->addWidget(widget); + } - // QGroupBox - { - auto* widget = new QGroupBox("Group", root); + // QDateEdit + { + auto* widget = new QDateEdit(root); - auto* llayout = new QHBoxLayout; - widget->setLayout(llayout); + layout->addWidget(addseg("QDateEdit", root)); + layout->addWidget(widget); + } - llayout->addWidget(new QPushButton("Button1", widget)); - llayout->addWidget(new QPushButton("Button2", widget)); + // QDateTimeEdit + { + auto* widget = new QDateTimeEdit(root); - layout->addWidget(addseg("QGroupBox", root)); - layout->addWidget(widget); - } + layout->addWidget(addseg("QDateTimeEdit", root)); + layout->addWidget(widget); + } - // QSplitter - { - auto* widget = new QSplitter(root); + // QDial + { + auto* widget = new QDial(root); - layout->addWidget(addseg("QSplitter", root)); - layout->addWidget(widget); - } + layout->addWidget(addseg("QDial", root)); + layout->addWidget(widget); + } - // QTabWidget - { - auto* widget = new QTabWidget(root); - widget->addTab(new QLabel("Page1"), "Page1"); - widget->addTab(new QLabel("Page2"), QIcon(QStringLiteral(":/plus_24.svg")), "Page2"); - widget->addTab(new QLabel("Page3"), QIcon(QStringLiteral(":/plus_24.svg")), "Page3"); + // QDoubleSpinBox + { + auto* widget = new QDoubleSpinBox(root); - layout->addWidget(addseg("QTabWidget", root)); - layout->addWidget(widget); - } + layout->addWidget(addseg("QDoubleSpinBox", root)); + layout->addWidget(widget); + } + + // QFontComboBox + { + auto* widget = new QFontComboBox(root); - layout->addStretch(); - content->addTab(page, "Organizer Widget"); + layout->addWidget(addseg("QFontComboBox", root)); + layout->addWidget(widget); } - // Model/View + // QLCDNumber { - auto* page = new QScrollArea(content); + auto* widget = new QLCDNumber(root); + widget->setDigitCount(1000); + widget->setMaximumWidth(200); - auto* root = new QWidget(page); - page->setWidget(root); - page->setWidgetResizable(true); - page->setAlignment(Qt::AlignHCenter); - auto* layout = new QVBoxLayout(); - root->setLayout(layout); + layout->addWidget(addseg("QLCDNumber", root)); + layout->addWidget(widget); + } - // QListWidget - { - auto* widget = new QListWidget(root); + // QLabel + { + auto* widget = new QLabel(root); + widget->setText("This is a label"); - widget->addItems({ "Item1", "Item2", "Item3" }); + layout->addWidget(addseg("QLabel", root)); + layout->addWidget(widget); + } - layout->addWidget(addseg("QListWidget", root)); - layout->addWidget(widget); - } + // QLineEdit + { + auto* widget = new QWidget(root); + auto* llayout = new QHBoxLayout; + widget->setLayout(llayout); + + auto* normal = new QLineEdit(widget); + llayout->addWidget(normal); + auto* placeHold = new QLineEdit(widget); + placeHold->setPlaceholderText("typing..."); + llayout->addWidget(placeHold); + + layout->addWidget(addseg("QLineEdit", root)); + layout->addWidget(widget); + } - // QTableWidget - { + // QMenu + { + auto* widget = new QMenuBar(root); + auto* menu = new QMenu("Menu", widget); + menu->addAction(QIcon(QStringLiteral(":/plus_24.svg")), "Item1"); - auto* widget = new QTableWidget(root); - constexpr int rows = 100; - constexpr int cols = 10; + layout->addWidget(addseg("QMenu", root)); + layout->addWidget(widget); + } - widget->setColumnCount(cols); - widget->setRowCount(rows); + // QProgressBar + { + auto* widget = new QProgressBar(root); + widget->setValue(42); - for (int row = 0; row < rows; row++) { - for (int col = 0; col < cols; col++) { - widget->setItem(row, col, new QTableWidgetItem(QString::number(row) + ":" + QString::number(col))); - } - } + layout->addWidget(addseg("QProgressBar", root)); + layout->addWidget(widget); + } - layout->addWidget(addseg("QTableWidget", root)); - layout->addWidget(widget); - } + // QPushButton + { + auto* widget = new QWidget(root); + auto* llayout = new QHBoxLayout; + widget->setLayout(llayout); + + auto* pushButton = new QPushButton("Normal", widget); + llayout->addWidget(pushButton); + + auto* pushButton2 = new QPushButton("Disabled", widget); + pushButton2->setDisabled(true); + llayout->addWidget(pushButton2); + + auto* pushButton3 = new QPushButton("WithIcon", widget); + pushButton3->setIcon(QIcon(QStringLiteral(":/plus_24.svg"))); + llayout->addWidget(pushButton3); + + auto* pushButton4 = new QPushButton("Flat", widget); + pushButton4->setFlat(true); + llayout->addWidget(pushButton4); + + layout->addWidget(addseg("QPushButton", root)); + layout->addWidget(widget); + } + + // QRadioButton + { + auto* widget = new QWidget(root); + auto* llayout = new QHBoxLayout; + widget->setLayout(llayout); + + auto* radiobutton = new QRadioButton("Normal", widget); + llayout->addWidget(radiobutton); + + auto* radiobutton2 = new QRadioButton("Disabled", widget); + radiobutton2->setDisabled(true); + llayout->addWidget(radiobutton2); + + auto* radiobutton3 = new QRadioButton("WithIcon", widget); + radiobutton3->setIcon(QIcon(QStringLiteral(":/plus_24.svg"))); + llayout->addWidget(radiobutton3); + + auto* radiobutton4 = new QRadioButton("NoneCheckable", widget); + radiobutton4->setCheckable(false); + llayout->addWidget(radiobutton4); + + layout->addWidget(addseg("QRadioButton", root)); + layout->addWidget(widget); + } + + // QScrollBar + { + auto* widget = new QScrollBar(Qt::Horizontal, root); + + layout->addWidget(addseg("QScrollBar", root)); + layout->addWidget(widget); + } + + // QSlider + { + auto* widget = new QSlider(Qt::Horizontal, root); + auto* widget2 = new QSlider(Qt::Vertical, root); + + layout->addWidget(addseg("QSlider", root)); + layout->addWidget(widget); + layout->addWidget(widget2); + } - // QTreeView - { - auto* widget = new QTreeView(root); - auto* model = new QFileSystemModel(root); - widget->setModel(model); - model->setRootPath(QCoreApplication::applicationDirPath()); + // QSpinBox + { + auto* widget = new QSpinBox(root); + + layout->addWidget(addseg("QSpinBox", root)); + layout->addWidget(widget); + } + + // QTabBar + { + auto* widget = new QTabBar(root); + widget->addTab("Page1"); + widget->addTab(QIcon(QStringLiteral(":/plus_24.svg")), "Page2"); + widget->addTab(QIcon(QStringLiteral(":/plus_24.svg")), "Page3"); + widget->setExpanding(false); + + layout->addWidget(addseg("QTabBar", root)); + layout->addWidget(widget); + } + + // QTimeEdit + { + auto* widget = new QTimeEdit(root); + + layout->addWidget(addseg("QTimeEdit", root)); + layout->addWidget(widget); + } + + // QToolBox + { + auto* widget = new QToolBox(root); + widget->addItem(new QWidget(), QIcon(QStringLiteral(":/plus_24.svg")), "Item1"); + widget->addItem(new QWidget(), QIcon(QStringLiteral(":/plus_24.svg")), "Item2"); + + layout->addWidget(addseg("QToolBox", root)); + layout->addWidget(widget); + } - layout->addWidget(addseg("QTreeView", root)); - layout->addWidget(widget); + // QToolButton + { + auto* widget = new QToolBar(root); + + auto icon = QIcon(QStringLiteral(":/plus_24.svg")); + + auto* toolbutton1 = new QToolButton(widget); + toolbutton1->setIcon(icon); + toolbutton1->setToolTip("with actions"); + toolbutton1->addAction(new QAction(icon, "Item1")); + toolbutton1->addAction(new QAction(icon, "Item2")); + widget->addWidget(toolbutton1); + + auto* toolbutton2 = new QToolButton(widget); + toolbutton2->setIcon(icon); + toolbutton2->setToolTip("QToolButton::DelayedPopup"); + toolbutton2->setPopupMode(QToolButton::DelayedPopup); + widget->addWidget(toolbutton2); + + auto* toolbutton3 = new QToolButton(widget); + toolbutton3->setIcon(icon); + toolbutton3->setToolTip("QToolButton::MenuButtonPopup"); + toolbutton3->setPopupMode(QToolButton::MenuButtonPopup); + widget->addWidget(toolbutton3); + + auto* toolbutton4 = new QToolButton(widget); + toolbutton4->setIcon(icon); + toolbutton4->setToolTip("QToolButton::InstantPopup"); + toolbutton4->setPopupMode(QToolButton::InstantPopup); + widget->addWidget(toolbutton4); + + auto* toolbutton5 = new QToolButton(widget); + toolbutton5->setIcon(icon); + toolbutton5->setToolTip("Qt::UpArrow"); + toolbutton5->setArrowType(Qt::UpArrow); + widget->addWidget(toolbutton5); + + auto* toolbutton6 = new QToolButton(widget); + toolbutton6->setIcon(icon); + toolbutton6->setToolTip("Qt::DownArrow"); + toolbutton6->setArrowType(Qt::DownArrow); + widget->addWidget(toolbutton6); + + auto* toolbutton7 = new QToolButton(widget); + toolbutton7->setIcon(icon); + toolbutton7->setToolTip("Qt::LeftArrow"); + toolbutton7->setArrowType(Qt::LeftArrow); + widget->addWidget(toolbutton7); + + auto* toolbutton8 = new QToolButton(widget); + toolbutton8->setIcon(icon); + toolbutton8->setToolTip("Qt::RightArrow"); + toolbutton8->setArrowType(Qt::RightArrow); + widget->addWidget(toolbutton8); + + auto* toolbutton9 = new QToolButton(widget); + toolbutton9->setIcon(icon); + toolbutton9->setToolTip("AutoRaise enabled"); + toolbutton9->setAutoRaise(true); + widget->addWidget(toolbutton9); + + layout->addWidget(addseg("QToolBox", root)); + layout->addWidget(widget); + } + + layout->addStretch(); + content->addTab(page, "Basic Widget"); + } + + + // Advanced Widget + { + auto* page = new QScrollArea(content); + + auto* root = new QWidget(page); + page->setWidget(root); + page->setWidgetResizable(true); + page->setAlignment(Qt::AlignHCenter); + auto* layout = new QVBoxLayout(); + root->setLayout(layout); + + // QCalendarWidget + { + auto* calendar = new QCalendarWidget(root); + layout->addWidget(addseg("QCalendarWidget", root)); + layout->addWidget(calendar); + } + + // QDialogButtonBox + { + auto* widget = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, root); + layout->addWidget(addseg("QDialogButtonBox", root)); + layout->addWidget(widget); + } + + + // QDialog + { + auto* widget = new QWidget(root); + auto* llayout = new QHBoxLayout; + widget->setLayout(llayout); + + auto* colorDialog = new QPushButton("QColorDialog", root); + connect(colorDialog, &QPushButton::clicked, []() { + QColorDialog dialog; + dialog.exec(); + }); + llayout->addWidget(colorDialog); + + auto* fileDialog = new QPushButton("QFileDialog", root); + connect(fileDialog, &QPushButton::clicked, []() { + QFileDialog dialog; + dialog.exec(); + }); + llayout->addWidget(fileDialog); + + auto* fontDialog = new QPushButton("QFontDialog", root); + connect(fontDialog, &QPushButton::clicked, []() { + QFontDialog dialog; + dialog.exec(); + }); + llayout->addWidget(fontDialog); + + layout->addWidget(addseg("QDialog(s)", root)); + layout->addWidget(widget); + } + + layout->addStretch(); + content->addTab(page, "Advanced Widget"); + } + + // Organizer Widget + { + auto* page = new QScrollArea(content); + + auto* root = new QWidget(page); + page->setWidget(root); + page->setWidgetResizable(true); + page->setAlignment(Qt::AlignHCenter); + auto* layout = new QVBoxLayout(); + root->setLayout(layout); + + // QButtonGroup + { + auto* buttonGroup = new QButtonGroup(root); + buttonGroup->addButton(new QCheckBox("Button1")); + buttonGroup->addButton(new QCheckBox("Button2")); + buttonGroup->setExclusive(true); + layout->addWidget(addseg("QButtonGroup(checkbox list)", root)); + for (auto* button : buttonGroup->buttons()) { + layout->addWidget(button); } + } + + // QGroupBox + { + auto* widget = new QGroupBox("Group", root); + + auto* llayout = new QHBoxLayout; + widget->setLayout(llayout); + + llayout->addWidget(new QPushButton("Button1", widget)); + llayout->addWidget(new QPushButton("Button2", widget)); + + layout->addWidget(addseg("QGroupBox", root)); + layout->addWidget(widget); + } + + // QSplitter + { + auto* widget = new QSplitter(root); + + layout->addWidget(addseg("QSplitter", root)); + layout->addWidget(widget); + } + + // QTabWidget + { + auto* widget = new QTabWidget(root); + widget->addTab(new QLabel("Page1"), "Page1"); + widget->addTab(new QLabel("Page2"), QIcon(QStringLiteral(":/plus_24.svg")), "Page2"); + widget->addTab(new QLabel("Page3"), QIcon(QStringLiteral(":/plus_24.svg")), "Page3"); + layout->addWidget(addseg("QTabWidget", root)); + layout->addWidget(widget); + } + + layout->addStretch(); + content->addTab(page, "Organizer Widget"); + } + + // Model/View + { + auto* page = new QScrollArea(content); - layout->addStretch(); - content->addTab(page, "Model/View"); - } - - // Main Window - { - auto* page = new QScrollArea(content); - - auto* root = new QWidget(page); - page->setWidget(root); - page->setWidgetResizable(true); - page->setAlignment(Qt::AlignHCenter); - auto* layout = new QVBoxLayout(); - root->setLayout(layout); - - - // MainWindow - { - auto icon = QIcon(QStringLiteral(":/plus_24.svg")); - - auto* widget = new QMainWindow(); - auto* focus = new QFocusFrame(); - focus->setWidget(widget); - - auto* status = new QStatusBar(widget); - status->addWidget(new QLabel("Status1")); - status->addWidget(new QLabel("Status2"),100); - status->addWidget(new QLabel("Status3")); - widget->setStatusBar(status); - - auto* menu = new QMenuBar(widget); - auto* fmenu = menu->addMenu("File"); - auto* emenu = menu->addMenu("Edit"); - auto* vmenu = menu->addMenu("View"); - menu->addMenu("Window"); - auto* hmenu = menu->addMenu("Help"); - widget->setMenuBar(menu); - auto* anew = fmenu->addAction(icon, "New"); - auto* aopen = fmenu->addAction(icon, "Open"); - auto* asave = fmenu->addAction(icon, "Save"); - auto* asaveas = fmenu->addAction(icon, "Save As"); - fmenu->addSeparator(); - auto* aclose = fmenu->addAction(icon, "Close"); - auto* acopy = emenu->addAction(icon, "Copy"); - auto* acut = emenu->addAction(icon, "Cut"); - auto* apaste = emenu->addAction(icon, "Paste"); - auto* ahelp = hmenu->addAction(icon, "Help"); - auto* aabout= hmenu->addAction(icon, "About"); - - auto* ftoolbar = widget->addToolBar("File"); - ftoolbar->setAllowedAreas(Qt::ToolBarArea::AllToolBarAreas); - ftoolbar->setMovable(true); - ftoolbar->setIconSize({ 24, 24 }); - ftoolbar->addActions({ anew, aopen, asave, asaveas, aclose }); - - auto* etoolbar = widget->addToolBar("Edit"); - etoolbar->setAllowedAreas(Qt::ToolBarArea::AllToolBarAreas); - etoolbar->setMovable(true); - etoolbar->setIconSize({ 24, 24 }); - etoolbar->addActions({acopy,acut, apaste}); - - auto* htoolbar = widget->addToolBar("Help"); - htoolbar->setAllowedAreas(Qt::ToolBarArea::AllToolBarAreas); - htoolbar->setMovable(true); - htoolbar->setIconSize({ 24, 24 }); - htoolbar->addActions({ ahelp, aabout }); - - widget->setDockOptions(QMainWindow::DockOption::AllowTabbedDocks); - auto* treeview = new QTreeView(); - auto* treemodel = new QFileSystemModel(); - treeview->setModel(treemodel); - treemodel->setRootPath(QCoreApplication::applicationDirPath()); - auto* dock1 = new QDockWidget("Browser", widget); - dock1->setWidget(treeview); - dock1->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); - vmenu->addAction(dock1->toggleViewAction()); - widget->addDockWidget(Qt::RightDockWidgetArea, dock1); - - auto* docs = new QListWidget(); - docs->addItems(QStringList() - << "A custom QStyle named QlementineStyle, that implements all the necessary API to give a modern look and feel to your Qt application. It's a drop-in replacement for the default QStyle." - << "An actual way to have client-side decoration (CSD) on your Qt window, with actual OS window animations and effects. (Windows only, at the moment)" - << "Lots of utilities to help you write beautiful Qt widgets."); - docs->setWordWrap(true); - auto* dock2 = new QDockWidget(tr("Features"), this); - dock2->setWidget(docs); - dock2->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); - vmenu->addAction(dock2->toggleViewAction()); - widget->addDockWidget(Qt::RightDockWidgetArea, dock2); - - - auto* mdiarea = new QMdiArea(widget); - widget->setCentralWidget(mdiarea); - - auto* subwnd1 = mdiarea->addSubWindow(new QTextEdit(), Qt::Window); - subwnd1->setWindowTitle("Window1"); - auto* subwnd2 = mdiarea->addSubWindow(new QTextEdit(), Qt::Window); - subwnd2->setWindowTitle("Window2"); - - layout->addWidget(widget); + auto* root = new QWidget(page); + page->setWidget(root); + page->setWidgetResizable(true); + page->setAlignment(Qt::AlignHCenter); + auto* layout = new QVBoxLayout(); + root->setLayout(layout); + + // QListWidget + { + auto* widget = new QListWidget(root); + + widget->addItems({ "Item1", "Item2", "Item3" }); + + layout->addWidget(addseg("QListWidget", root)); + layout->addWidget(widget); + } + + // QTableWidget + { + auto* widget = new QTableWidget(root); + + constexpr int rows = 100; + constexpr int cols = 10; + + widget->setColumnCount(cols); + widget->setRowCount(rows); + + for (int row = 0; row < rows; row++) { + for (int col = 0; col < cols; col++) { + widget->setItem(row, col, new QTableWidgetItem(QString::number(row) + ":" + QString::number(col))); + } } - layout->addStretch(); - content->addTab(page, "Main Window "); + layout->addWidget(addseg("QTableWidget", root)); + layout->addWidget(widget); } - // window color + // QTreeView { - auto* page = new QWidget(content); - auto* verticalLayout = new QVBoxLayout(page); + auto* widget = new QTreeView(root); + auto* model = new QFileSystemModel(root); + widget->setModel(model); + model->setRootPath(QCoreApplication::applicationDirPath()); + + layout->addWidget(addseg("QTreeView", root)); + layout->addWidget(widget); + } + - // Slider to modify the window background color. - auto* slider = new QSlider(page); - slider->setRange(0, 255); - slider->setValue(_backgroundColor.red()); - QObject::connect(slider, &QSlider::valueChanged, this, [this](int value) { - _backgroundColor.setRed(value); - if (!_useDefaultColor) { - update(); - } - }); - slider->setMinimumWidth(255); - slider->setMaximumWidth(350); - verticalLayout->addWidget(slider, 0, Qt::AlignmentFlag::AlignCenter); + layout->addStretch(); + content->addTab(page, "Model/View"); + } + + // Main Window + { + auto* page = new QScrollArea(content); - // Checkbox to use or not the default background color. - auto* checkbox = new QCheckBox("Use default window color", page); - checkbox->setChecked(false); + auto* root = new QWidget(page); + page->setWidget(root); + page->setWidgetResizable(true); + page->setAlignment(Qt::AlignHCenter); + auto* layout = new QVBoxLayout(); + root->setLayout(layout); - QObject::connect(checkbox, &QCheckBox::toggled, this, [this](bool checked) { - _useDefaultColor = checked; - update(); - }); - verticalLayout->addWidget(checkbox, 0, Qt::AlignmentFlag::AlignCenter); - content->addTab(page, QStringLiteral("WindowColor")); + // MainWindow + { + auto icon = QIcon(QStringLiteral(":/plus_24.svg")); + + auto* widget = new QMainWindow(); + auto* focus = new QFocusFrame(); + focus->setWidget(widget); + + auto* status = new QStatusBar(widget); + status->addWidget(new QLabel("Status1")); + status->addWidget(new QLabel("Status2"), 100); + status->addWidget(new QLabel("Status3")); + widget->setStatusBar(status); + + auto* menu = new QMenuBar(widget); + auto* fmenu = menu->addMenu("File"); + auto* emenu = menu->addMenu("Edit"); + auto* vmenu = menu->addMenu("View"); + menu->addMenu("Window"); + auto* hmenu = menu->addMenu("Help"); + widget->setMenuBar(menu); + auto* anew = fmenu->addAction(icon, "New"); + auto* aopen = fmenu->addAction(icon, "Open"); + auto* asave = fmenu->addAction(icon, "Save"); + auto* asaveas = fmenu->addAction(icon, "Save As"); + fmenu->addSeparator(); + auto* aclose = fmenu->addAction(icon, "Close"); + auto* acopy = emenu->addAction(icon, "Copy"); + auto* acut = emenu->addAction(icon, "Cut"); + auto* apaste = emenu->addAction(icon, "Paste"); + auto* ahelp = hmenu->addAction(icon, "Help"); + auto* aabout = hmenu->addAction(icon, "About"); + + auto* ftoolbar = widget->addToolBar("File"); + ftoolbar->setAllowedAreas(Qt::ToolBarArea::AllToolBarAreas); + ftoolbar->setMovable(true); + ftoolbar->setIconSize({ 24, 24 }); + ftoolbar->addActions({ anew, aopen, asave, asaveas, aclose }); + + auto* etoolbar = widget->addToolBar("Edit"); + etoolbar->setAllowedAreas(Qt::ToolBarArea::AllToolBarAreas); + etoolbar->setMovable(true); + etoolbar->setIconSize({ 24, 24 }); + etoolbar->addActions({ acopy, acut, apaste }); + + auto* htoolbar = widget->addToolBar("Help"); + htoolbar->setAllowedAreas(Qt::ToolBarArea::AllToolBarAreas); + htoolbar->setMovable(true); + htoolbar->setIconSize({ 24, 24 }); + htoolbar->addActions({ ahelp, aabout }); + + widget->setDockOptions(QMainWindow::DockOption::AllowTabbedDocks); + auto* treeview = new QTreeView(); + auto* treemodel = new QFileSystemModel(); + treeview->setModel(treemodel); + treemodel->setRootPath(QCoreApplication::applicationDirPath()); + auto* dock1 = new QDockWidget("Browser", widget); + dock1->setWidget(treeview); + dock1->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); + vmenu->addAction(dock1->toggleViewAction()); + widget->addDockWidget(Qt::RightDockWidgetArea, dock1); + + auto* docs = new QListWidget(); + docs->addItems( + QStringList() + << "A custom QStyle named QlementineStyle, that implements all the necessary API to give a modern look and feel to your Qt application. It's a drop-in replacement for the default QStyle." + << "An actual way to have client-side decoration (CSD) on your Qt window, with actual OS window animations and effects. (Windows only, at the moment)" + << "Lots of utilities to help you write beautiful Qt widgets."); + docs->setWordWrap(true); + auto* dock2 = new QDockWidget(tr("Features"), this); + dock2->setWidget(docs); + dock2->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); + vmenu->addAction(dock2->toggleViewAction()); + widget->addDockWidget(Qt::RightDockWidgetArea, dock2); + + + auto* mdiarea = new QMdiArea(widget); + widget->setCentralWidget(mdiarea); + + auto* subwnd1 = mdiarea->addSubWindow(new QTextEdit(), Qt::Window); + subwnd1->setWindowTitle("Window1"); + auto* subwnd2 = mdiarea->addSubWindow(new QTextEdit(), Qt::Window); + subwnd2->setWindowTitle("Window2"); + + layout->addWidget(widget); } - + + layout->addStretch(); + content->addTab(page, "Main Window "); + } + + // window color + { + auto* page = new QWidget(content); + auto* verticalLayout = new QVBoxLayout(page); + + // Slider to modify the window background color. + auto* slider = new QSlider(page); + slider->setRange(0, 255); + slider->setValue(_backgroundColor.red()); + QObject::connect(slider, &QSlider::valueChanged, this, [this](int value) { + _backgroundColor.setRed(value); + if (!_useDefaultColor) { + update(); + } + }); + slider->setMinimumWidth(255); + slider->setMaximumWidth(350); + verticalLayout->addWidget(slider, 0, Qt::AlignmentFlag::AlignCenter); + + // Checkbox to use or not the default background color. + auto* checkbox = new QCheckBox("Use default window color", page); + checkbox->setChecked(false); + + QObject::connect(checkbox, &QCheckBox::toggled, this, [this](bool checked) { + _useDefaultColor = checked; + update(); + }); + verticalLayout->addWidget(checkbox, 0, Qt::AlignmentFlag::AlignCenter); + + content->addTab(page, QStringLiteral("WindowColor")); + } + setContentWidget(content); } @@ -713,7 +715,9 @@ void CsdWindow::populateMenuBar(QMenuBar* menuBar) { quitAction->setMenuRole(QAction::MenuRole::QuitRole); quitAction->setShortcut(Qt::CTRL + Qt::Key_Q); quitAction->setShortcutContext(Qt::ShortcutContext::ApplicationShortcut); - QObject::connect(quitAction, &QAction::triggered, this, []() { QApplication::quit(); }); + QObject::connect(quitAction, &QAction::triggered, this, []() { + QApplication::quit(); + }); fileMenu->addAction(quitAction); } @@ -722,7 +726,9 @@ void CsdWindow::populateMenuBar(QMenuBar* menuBar) { auto* windowMenu = new QMenu("&Window", menuBar); { auto minimizeAction = new QAction("Minimize", windowMenu); - QObject::connect(minimizeAction, &QAction::triggered, this, [this]() { windowHandle()->showMinimized(); }); + QObject::connect(minimizeAction, &QAction::triggered, this, [this]() { + windowHandle()->showMinimized(); + }); windowMenu->addAction(minimizeAction); auto* maximizeAction = new QAction("Maximize", windowMenu); @@ -738,7 +744,9 @@ void CsdWindow::populateMenuBar(QMenuBar* menuBar) { windowMenu->addAction(maximizeAction); auto* closeAction = new QAction("&Close", windowMenu); - QObject::connect(closeAction, &QAction::triggered, this, [this]() { windowHandle()->close(); }); + QObject::connect(closeAction, &QAction::triggered, this, [this]() { + windowHandle()->close(); + }); windowMenu->addAction(closeAction); } menuBar->addMenu(windowMenu); @@ -748,7 +756,8 @@ void CsdWindow::populateMenuBar(QMenuBar* menuBar) { auto* aboutAction = new QAction("&About", windowMenu); aboutAction->setMenuRole(QAction::AboutRole); QObject::connect(aboutAction, &QAction::triggered, this, [this]() { - QMessageBox msgBox(QMessageBox::Icon::Information, "About", "Example of frameless window", QMessageBox::NoButton, this); + QMessageBox msgBox( + QMessageBox::Icon::Information, "About", "Example of frameless window", QMessageBox::NoButton, this); msgBox.exec(); }); helpMenu->addAction(aboutAction); diff --git a/sandbox/src/CsdWindow.hpp b/sandbox/src/CsdWindow.hpp index 66806f2..81bc455 100644 --- a/sandbox/src/CsdWindow.hpp +++ b/sandbox/src/CsdWindow.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include diff --git a/sandbox/src/SandboxWindow.cpp b/sandbox/src/SandboxWindow.cpp index 7dd8156..7222727 100644 --- a/sandbox/src/SandboxWindow.cpp +++ b/sandbox/src/SandboxWindow.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include "SandboxWindow.hpp" #include diff --git a/sandbox/src/SandboxWindow.hpp b/sandbox/src/SandboxWindow.hpp index 5dda39e..4c1a4ea 100644 --- a/sandbox/src/SandboxWindow.hpp +++ b/sandbox/src/SandboxWindow.hpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #pragma once #include @@ -14,7 +17,7 @@ class SandboxWindow : public QMainWindow { void setCustomStyle(QlementineStyle* style); - bool eventFilter(QObject *watched, QEvent *event) override; + bool eventFilter(QObject* watched, QEvent* event) override; private: struct Impl; diff --git a/sandbox/src/main.cpp b/sandbox/src/main.cpp index 448ad96..694dbb6 100644 --- a/sandbox/src/main.cpp +++ b/sandbox/src/main.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Olivier Cléro +// SPDX-License-Identifier: MIT + #include #include #include