This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
6,090 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
|
||
project(breezeblur) | ||
set(PROJECT_VERSION "0.1") | ||
set(PROJECT_VERSION_MAJOR 0) | ||
|
||
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) | ||
|
||
include(WriteBasicConfigVersionFile) | ||
include(FeatureSummary) | ||
|
||
find_package(ECM 0.0.9 REQUIRED NO_MODULE) | ||
|
||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake) | ||
include(ECMInstallIcons) | ||
include(KDEInstallDirs) | ||
include(KDECMakeSettings) | ||
include(KDECompilerSettings NO_POLICY_SCOPE) | ||
include(GenerateExportHeader) | ||
# include(GtkUpdateIconCache) | ||
|
||
find_package(KDecoration2 REQUIRED) | ||
|
||
|
||
# old stuff | ||
add_definitions(-DTRANSLATION_DOMAIN="breeze_kwin_deco") | ||
|
||
find_package(KF5 REQUIRED COMPONENTS CoreAddons GuiAddons ConfigWidgets WindowSystem I18n) | ||
find_package(Qt5 CONFIG REQUIRED COMPONENTS DBus) | ||
|
||
### XCB | ||
find_package(XCB COMPONENTS XCB) | ||
set_package_properties(XCB PROPERTIES | ||
DESCRIPTION "X protocol C-language Binding" | ||
URL "http://xcb.freedesktop.org" | ||
TYPE OPTIONAL | ||
PURPOSE "Required to pass style properties to native Windows on X11 Platform" | ||
) | ||
|
||
if(UNIX AND NOT APPLE) | ||
|
||
set(BREEZE_HAVE_X11 ${XCB_XCB_FOUND}) | ||
if (XCB_XCB_FOUND) | ||
find_package(Qt5 REQUIRED CONFIG COMPONENTS X11Extras) | ||
endif() | ||
|
||
else() | ||
|
||
set(BREEZE_HAVE_X11 FALSE) | ||
|
||
endif() | ||
|
||
################# configuration ################# | ||
configure_file(config-breeze.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-breeze.h ) | ||
|
||
################# newt target ################# | ||
### plugin classes | ||
# set(breezedecoration_SRCS | ||
set(breezeblur_SRCS | ||
breezebutton.cpp | ||
breezedecoration.cpp | ||
breezeexceptionlist.cpp | ||
breezesettingsprovider.cpp | ||
breezesizegrip.cpp) | ||
|
||
# kconfig_add_kcfg_files(breezedecoration_SRCS breezesettings.kcfgc) | ||
kconfig_add_kcfg_files(breezeblur_SRCS breezesettings.kcfgc) | ||
|
||
### config classes | ||
### they are kept separately because they might move in a separate library in the future | ||
# set(breezedecoration_config_SRCS | ||
set(breezeblur_config_SRCS | ||
config/breezeconfigwidget.cpp | ||
config/breezedetectwidget.cpp | ||
config/breezeexceptiondialog.cpp | ||
config/breezeexceptionlistwidget.cpp | ||
config/breezeexceptionmodel.cpp | ||
config/breezeitemmodel.cpp | ||
) | ||
|
||
# set(breezedecoration_config_PART_FORMS | ||
set(breezeblur_config_PART_FORMS | ||
config/ui/breezeconfigurationui.ui | ||
config/ui/breezedetectwidget.ui | ||
config/ui/breezeexceptiondialog.ui | ||
config/ui/breezeexceptionlistwidget.ui | ||
) | ||
|
||
# ki18n_wrap_ui(breezedecoration_config_PART_FORMS_HEADERS ${breezedecoration_config_PART_FORMS}) | ||
ki18n_wrap_ui(breezeblur_config_PART_FORMS_HEADERS ${breezeblur_config_PART_FORMS}) | ||
|
||
### build library | ||
# add_library(breezedecoration MODULE | ||
# ${breezedecoration_SRCS} | ||
# ${breezedecoration_config_SRCS} | ||
# ${breezedecoration_config_PART_FORMS_HEADERS}) | ||
add_library(breezeblur MODULE | ||
${breezeblur_SRCS} | ||
${breezeblur_config_SRCS} | ||
${breezeblur_config_PART_FORMS_HEADERS}) | ||
|
||
# target_link_libraries(breezedecoration | ||
target_link_libraries(breezeblur | ||
PUBLIC | ||
Qt5::Core | ||
Qt5::Gui | ||
Qt5::DBus | ||
PRIVATE | ||
KDecoration2::KDecoration | ||
KF5::ConfigCore | ||
KF5::CoreAddons | ||
KF5::ConfigWidgets | ||
KF5::GuiAddons | ||
KF5::I18n | ||
KF5::WindowSystem) | ||
|
||
if(BREEZE_HAVE_X11) | ||
# target_link_libraries(breezedecoration | ||
target_link_libraries(breezeblur | ||
PUBLIC | ||
Qt5::X11Extras | ||
XCB::XCB) | ||
endif() | ||
|
||
|
||
install(TARGETS breezeblur DESTINATION ${PLUGIN_INSTALL_DIR}/org.kde.kdecoration2) | ||
install(FILES config/breezeblurconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | ||
# install(TARGETS breezedecoration DESTINATION ${PLUGIN_INSTALL_DIR}/org.kde.kdecoration2) | ||
# install(FILES config/breezedecorationconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!bin/sh | ||
$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp | ||
$XGETTEXT `find . -name \*.cc -o -name \*.cpp -o -name \*.h` -o $podir/breeze_kwin_deco.pot | ||
rm -f rc.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#ifndef breeze_h | ||
#define breeze_h | ||
|
||
/* | ||
* Copyright 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation; either version 2 of | ||
* the License or (at your option) version 3 or any later version | ||
* accepted by the membership of KDE e.V. (or its successor approved | ||
* by the membership of KDE e.V.), which shall act as a proxy | ||
* defined in Section 14 of version 3 of the license. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "breezesettings.h" | ||
|
||
#include <QSharedPointer> | ||
#include <QList> | ||
|
||
namespace Breeze | ||
{ | ||
//* convenience typedefs | ||
using InternalSettingsPtr = QSharedPointer<InternalSettings>; | ||
using InternalSettingsList = QList<InternalSettingsPtr>; | ||
using InternalSettingsListIterator = QListIterator<InternalSettingsPtr>; | ||
|
||
//* metrics | ||
enum Metrics | ||
{ | ||
|
||
//* corner radius (pixels) | ||
Frame_FrameRadius = 3, | ||
|
||
//* titlebar metrics, in units of small spacing | ||
TitleBar_TopMargin = 2, | ||
TitleBar_BottomMargin = 2, | ||
TitleBar_SideMargin = 2, | ||
TitleBar_ButtonSpacing = 2, | ||
|
||
// shadow dimensions (pixels) | ||
Shadow_Overlap = 3, | ||
|
||
}; | ||
|
||
//* exception | ||
enum ExceptionMask | ||
{ | ||
None = 0, | ||
BorderSize = 1<<4 | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"KPlugin": { | ||
"Description": "Window decoration using the Breeze visual style for the Plasma Desktop", | ||
"Description[ar]": "زخرفة نوافذ تستخدم نمط «نسيم» المرئيّ لسطح مكتب «بلازما»", | ||
"Description[ca@valencia]": "Decoració de les finestres que usa l'estil visual Brisa per a l'escriptori del Plasma", | ||
"Description[ca]": "Decoració de les finestres que usa l'estil visual Brisa per a l'escriptori del Plasma", | ||
"Description[cs]": "Dekorace oken pro pracovní plochu Plasma využívající styl Breeze", | ||
"Description[da]": "Vinduesdekoration som bruger den visuelle stil Breeze til Plasma-skrivebordet", | ||
"Description[de]": "Fensterdekoration im Breeze-Design für die Plasma-Arbeitsfläche", | ||
"Description[el]": "Διακοσμήσεις παραθύρων με το στιλ του Breeze για την επιφάνεια εργασίας Plasma", | ||
"Description[es]": "Decoración de ventanas que usa el estilo visual Brisa para el escritorio Plasma", | ||
"Description[et]": "Plasma töölaua akende dekoratsioon Breeze'i visuaalse stiiliga", | ||
"Description[eu]": "Leiho apainketa Plasma mahaigainerako Breeze ikus-estiloa erabiliz", | ||
"Description[fi]": "Breeze-tyyliä käyttävä ikkunan kehys Plasma-työpöydälle", | ||
"Description[fr]": "Décorations de fenêtres utilisant le style visuel Brise pour le bureau Plasma", | ||
"Description[gl]": "Decoración de xanelas que usa o estilo visual Breeze para o escritorio Plasma.", | ||
"Description[hu]": "A Breeze vizuális stílusát használó ablakdekoráció", | ||
"Description[ia]": "Decoration de fenestra usante le stylo visual Breeze (Brisa) per le scriptorio de Plasma", | ||
"Description[it]": "Decorazione per finestre che usa lo stile visuale di Brezza per il desktop Plasma", | ||
"Description[ko]": "Plasma 데스크톱의 Breeze 시각 스타일을 사용하는 창 장식", | ||
"Description[nl]": "Vensterdecoratie met gebruik van de visuele stijl Breeze voor het Plasma bureaublad", | ||
"Description[nn]": "Vindaugspynt som brukar Breeze-stilen for Plasma-skrivebordet", | ||
"Description[pl]": "Wystrój okien przy użyciu stylu wizualnego Bryzy dla Pulpitu Plazmy", | ||
"Description[pt]": "Decoração de janelas que usa o estilo visual Brisa para a Área de Trabalho Plasma", | ||
"Description[pt_BR]": "Decoração de janelas que usa o estilo visual Breeze para o Plasma Desktop", | ||
"Description[ru]": "Оформление окон Breeze", | ||
"Description[sk]": "Dekorácia okien pomocou vizuálneho štýlu Vánok pre plochu Plasma", | ||
"Description[sl]": "Okraski oken, ki uporabljajo vidni slog teme Sapica za namizje Plasma", | ||
"Description[sr@ijekavian]": "Декорација прозора са Поветарцем као визуелним стилом за плазма површ.", | ||
"Description[sr@ijekavianlatin]": "Dekoracija prozora sa Povetarcem kao vizuelnim stilom za plasma površ.", | ||
"Description[sr@latin]": "Dekoracija prozora sa Povetarcem kao vizuelnim stilom za plasma površ.", | ||
"Description[sr]": "Декорација прозора са Поветарцем као визуелним стилом за плазма површ.", | ||
"Description[sv]": "Fönsterdekoration med den visuella stilen Breeze för Plasma skrivbord", | ||
"Description[tr]": "Breeze görsel biçemini Plasma Masaüstü için kullanan pencere dekorasyonu", | ||
"Description[uk]": "Обрамлення вікон з використанням візуального стилю Breeze для стільничного середовища Плазми", | ||
"Description[x-test]": "xxWindow decoration using the Breeze visual style for the Plasma Desktopxx", | ||
"Description[zh_CN]": "窗口装饰使用等离子桌面微风视觉主题", | ||
"Description[zh_TW]": "使用 Plasma 桌面 Breeze 視覺樣式的視窗裝飾", | ||
"EnabledByDefault": true, | ||
"Id": "org.kde.breezeblur", | ||
"Name": "BreezeBlur", | ||
"Name[ar]": "نسيم", | ||
"Name[ca@valencia]": "Brisa", | ||
"Name[ca]": "Brisa", | ||
"Name[es]": "Brisa", | ||
"Name[fr]": "Brise", | ||
"Name[ia]": "Brisa (Breeze)", | ||
"Name[it]": "Brezza", | ||
"Name[pl]": "Bryza", | ||
"Name[pt]": "Brisa", | ||
"Name[sk]": "Vánok", | ||
"Name[sl]": "Sapica", | ||
"Name[sr@ijekavian]": "Поветарац", | ||
"Name[sr@ijekavianlatin]": "Povetarac", | ||
"Name[sr@latin]": "Povetarac", | ||
"Name[sr]": "Поветарац", | ||
"Name[tr]": "Esinti", | ||
"Name[x-test]": "xxBreezexx", | ||
"Name[zh_CN]": "微风", | ||
"ServiceTypes": [ | ||
"org.kde.kdecoration2" | ||
] | ||
}, | ||
"org.kde.kdecoration2": { | ||
"blur": false, | ||
"defaultTheme": "BreezeBlur", | ||
"kcmodule": true | ||
} | ||
} |
Oops, something went wrong.