[-]
[+]
|
Changed |
kinfocenter.spec
|
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary
^
|
-(directory)
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/CMakeLists.txt
^
|
@@ -1,15 +0,0 @@
-# KI18N Translation Domain for this library
-add_definitions(-DTRANSLATION_DOMAIN=\"kcm_infosummary\")
-
-set( infosummarySources infosum.cpp defaultboxwidget.cpp progressboxwidget.cpp osdepinfo.cpp)
-
-kde4_add_plugin( kcm_infosummary ${infosummarySources} )
-target_link_libraries( kcm_infosummary
- KF5::KCMUtils
- KF5::I18n
- KF5::Solid
- KF5::CoreAddons
- )
-
-install( TARGETS kcm_infosummary DESTINATION ${PLUGIN_INSTALL_DIR} )
-install( FILES kcm_infosummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/Messages.sh
^
|
@@ -1,2 +0,0 @@
-#!/bin/sh
-$XGETTEXT *.cpp -o $podir/kcm_infosummary.pot
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/defaultboxwidget.cpp
^
|
@@ -1,101 +0,0 @@
-
-/*
- * defaultboxwidget.cpp
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include "defaultboxwidget.h"
-
-DefaultBoxWidget::DefaultBoxWidget()
-{
- setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum);
- setObjectName(QLatin1String("OuterFrame"));
-
- m_layout = new QGridLayout(this);
- m_layout->setAlignment(Qt::AlignTop|Qt::AlignLeft);
- m_layout->setSpacing(10);
-
- createDisplay();
-}
-
-void DefaultBoxWidget::createDisplay()
-{
- m_iconLabel = new QLabel();
- m_iconLabel->setAlignment(Qt::AlignCenter);
- m_iconLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
-
- QFont bFont;
- bFont.setBold(true);
-
- m_info0Label = new QLabel();
- m_info0Label->setTextInteractionFlags(Qt::TextSelectableByMouse);
- m_info0Label->setFont(bFont);
- m_info0NameLabel = new QLabel();
- m_info0NameLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
-
- m_info1Label = new QLabel();
- m_info1Label->setTextInteractionFlags(Qt::TextSelectableByMouse);
- m_info1Label->setFont(bFont);
- m_info1NameLabel = new QLabel();
- m_info1NameLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
-
- m_info2Label = new QLabel();
- m_info2Label->setTextInteractionFlags(Qt::TextSelectableByMouse);
- m_info2Label->setFont(bFont);
- m_info2NameLabel = new QLabel();
- m_info2NameLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
-
- m_layout->addWidget(m_iconLabel,1,1,3,1,Qt::AlignCenter);
-
- m_layout->addWidget(m_info0Label,1,2,1,1);
- m_layout->addWidget(m_info0NameLabel,1,3,1,1);
-
- m_layout->addWidget(m_info1Label,2,2,1,1);
- m_layout->addWidget(m_info1NameLabel,2,3,1,1);
-
- m_layout->addWidget(m_info2Label,3,2,1,1);
- m_layout->addWidget(m_info2NameLabel,3,3,1,1);
-}
-
-void DefaultBoxWidget::setLabelTitles(const QString &first, const QString &second, const QString &third)
-{
- m_info0Label->setText(first);
- m_info1Label->setText(second);
- m_info2Label->setText(third);
-}
-
-void DefaultBoxWidget::setIcon(const QIcon &icon)
-{
- m_iconLabel->setPixmap(icon.pixmap(64));
-}
-
-void DefaultBoxWidget::setLabelOne(const QString &info)
-{
- m_info0NameLabel->setText(info);
-}
-
-void DefaultBoxWidget::setLabelTwo(const QString &info)
-{
- m_info1NameLabel->setText(info);
-}
-
-void DefaultBoxWidget::setLabelThree(const QString &info)
-{
- m_info2NameLabel->setText(info);
-}
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/defaultboxwidget.h
^
|
@@ -1,63 +0,0 @@
-
-/*
- * defaultboxwidget.h
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef DEFAULTBOXWIDGET
-#define DEFAULTBOXWIDGET
-
-//QT
-#include <QGroupBox>
-#include <QGridLayout>
-#include <QLabel>
-#include <QIcon>
-
-
-class DefaultBoxWidget : public QGroupBox
-{
- Q_OBJECT
-
- public:
- DefaultBoxWidget();
-
- void setLabelTitles(const QString &, const QString &, const QString &);
- void setLabelOne(const QString &);
- void setLabelTwo(const QString &);
- void setLabelThree(const QString &);
- void setIcon(const QIcon &icon);
-
- private:
- void createDisplay();
-
- QGridLayout *m_layout;
- QLabel *m_iconLabel;
-
- QLabel *m_info0Label;
- QLabel *m_info0NameLabel;
-
- QLabel *m_info1Label;
- QLabel *m_info1NameLabel;
-
- QLabel *m_info2Label;
- QLabel *m_info2NameLabel;
-};
-
-#endif //DEFAULTBOXWIDGET
-
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/infosum.cpp
^
|
@@ -1,155 +0,0 @@
-
-/*
- * infosum.cpp
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include <config-workspace.h>
-#include "infosum.h"
-#include <KFormat>
-#include <KLocalizedString>
-#include <KAboutData>
-
-K_PLUGIN_FACTORY(devInfoModuleFactory, registerPlugin<InfoSumPlugin>();)
-K_EXPORT_PLUGIN(devInfoModuleFactory("kcm_infosummary"))
-
-InfoSumPlugin::InfoSumPlugin(QWidget *parent, const QVariantList &) :
- KCModule(parent)
-{
-
- const KAboutData *about =
- new KAboutData(i18n("kcm_infosummary"), i18n("Hardware Summary Information"),
- QStringLiteral("0.10"), QString(), KAboutLicense::GPL,
- i18n("(c) 2010 David Hubner"));
-
- setAboutData(about);
- createDisplay();
-}
-
-InfoSumPlugin::~InfoSumPlugin()
-{
-}
-
-void InfoSumPlugin::createDisplay()
-{
- m_layout = new QVBoxLayout(this);
- m_layout->setAlignment(Qt::AlignTop);
- m_layout->setSpacing(10);
-
- createOsBox();
- createCpuBox();
- //createMemBox(); // Awaiting Mem class from kdereview
- createHdBox();
- m_layout->addStretch();
-}
-
-void InfoSumPlugin::createOsBox()
-{
- DefaultBoxWidget *osWidget = new DefaultBoxWidget();
- osWidget->setIcon(QIcon::fromTheme(QStringLiteral("kde")));
- osWidget->setLabelTitles(i18n("OS Version"),i18n("KDE Plasma Version"), i18n("Hostname"));
-
- OsDepInfo *osInfo = new OsDepInfo();
-
- osWidget->setLabelOne(osInfo->osVersion());
- osWidget->setLabelTwo(QString(PROJECT_VERSION));
- osWidget->setLabelThree(osInfo->hostName());
- osWidget->setWhatsThis(i18nc("OS whats this","This shows information about your Operating System"));
-
- m_layout->addWidget(osWidget);
-
- delete osInfo;
-}
-
-void InfoSumPlugin::createCpuBox()
-{
- const QList<Solid::Device> list = Solid::Device::listFromType(Solid::DeviceInterface::Processor);
-
- foreach(const Solid::Device &dev, list)
- {
- const Solid::Processor *prodev = dev.as<const Solid::Processor>();
- if(!prodev) return;
-
- DefaultBoxWidget *cpuWidget = new DefaultBoxWidget();
- cpuWidget->setLabelTitles(i18n("Processor"), i18n("Processor Number"), i18n("Processor Max Speed"));
- cpuWidget->setIcon(QIcon::fromTheme(QStringLiteral("cpu")));
-
- cpuWidget->setLabelOne(dev.product());
- cpuWidget->setLabelTwo(QString::number(prodev->number()));
- cpuWidget->setLabelThree(QString::number(prodev->maxSpeed()));
- cpuWidget->setWhatsThis(i18nc("CPU whats this","This shows information about a specific CPU in your computer"));
-
- m_layout->addWidget(cpuWidget);
- }
-}
-
-void InfoSumPlugin::createMemBox()
-{
- ProgressBoxWidget *memWidget = new ProgressBoxWidget();
-
- memWidget->setIcon(QIcon::fromTheme(QStringLiteral("memory")));
- memWidget->setLabelTitles(i18n("Memory Amount"),i18n("Memory Used/Free"));
- m_layout->addWidget(memWidget);
-}
-
-void InfoSumPlugin::createHdBox()
-{
- const Solid::Predicate stoPred =
- Solid::Predicate(Solid::DeviceInterface::StorageDrive,"driveType", "HardDisk",Solid::Predicate::Equals);
- const QList<Solid::Device> list = Solid::Device::listFromQuery(stoPred, QString());
-
- foreach(const Solid::Device &dev, list)
- {
- const Solid::StorageDrive *stodev = dev.as<const Solid::StorageDrive>();
- if(!stodev) return;
-
- DefaultBoxWidget *stoWidget = new DefaultBoxWidget();
- stoWidget->setIcon(QIcon::fromTheme(QStringLiteral("drive-harddisk")));
-
- stoWidget->setLabelTitles(i18n("Drive Title"),i18n("Storage Size"),i18n("Bus"));
- stoWidget->setLabelOne(dev.product());
- stoWidget->setLabelTwo(KFormat().formatByteSize(stodev->size()));
-
- QString bus;
- switch(stodev->bus())
- {
- case Solid::StorageDrive::Ide:
- bus = i18n("IDE"); break;
- case Solid::StorageDrive::Usb:
- bus = i18n("USB"); break;
- case Solid::StorageDrive::Ieee1394:
- bus = i18n("IEEE1394"); break;
- case Solid::StorageDrive::Scsi:
- bus = i18n("SCSI"); break;
- case Solid::StorageDrive::Sata:
- bus = i18n("SATA"); break;
- case Solid::StorageDrive::Platform:
- bus = i18n("Platform"); break;
- default:
- bus = i18nc("Unknown device","Unknown");
- }
-
- stoWidget->setLabelThree(bus);
- stoWidget->setWhatsThis(i18nc("Hard Drive Whats This","This shows information about a specific hard drive in your computer"));
-
- m_layout->addWidget(stoWidget);
- }
-}
-
-#include "infosum.moc"
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/infosum.h
^
|
@@ -1,68 +0,0 @@
-
-/*
- * infosum.h
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef INFOSUM
-#define INFOSUM
-
-//kde
-#include <KCModule>
-
-//Solid
-#include <solid/device.h>
-#include <solid/deviceinterface.h>
-#include <solid/processor.h>
-#include <solid/predicate.h>
-#include <solid/storagedrive.h>
-#include <solid/storagevolume.h>
-#include <solid/storageaccess.h>
-
-//Plugin
-#include <kpluginfactory.h>
-#include <kpluginloader.h>
-
-//QT
-
-//local
-#include "defaultboxwidget.h"
-#include "progressboxwidget.h"
-#include "osdepinfo.h"
-
-
-class InfoSumPlugin : public KCModule
-{
- Q_OBJECT
-
- public:
- InfoSumPlugin(QWidget *parent, const QVariantList &);
- ~InfoSumPlugin();
-
- private:
- void createDisplay();
- void createOsBox();
- void createCpuBox();
- void createMemBox();
- void createHdBox();
-
- QVBoxLayout *m_layout;
-};
-
-#endif //INFOSUM
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/kcm_infosummary.desktop
^
|
@@ -1,190 +0,0 @@
-[Desktop Entry]
-Exec=kcmshell5 kcm_infosummary
-Icon=device-notifier
-Type=Service
-X-KDE-ServiceTypes=KCModule
-
-X-KDE-Weight=0
-X-KDE-Library=kcm_infosummary
-X-KDE-ParentApp=kinfocenter
-
-Name=Summary
-Name[ar]=ملخص
-Name[ast]=Resume
-Name[bg]=Обобщение
-Name[bs]=Sažetak
-Name[ca]=Resum
-Name[ca@valencia]=Resum
-Name[cs]=Shrnutí
-Name[da]=Oversigt
-Name[de]=Übersicht
-Name[el]=Σύνοψη
-Name[en_GB]=Summary
-Name[eo]=Resumo
-Name[es]=Resumen
-Name[et]=Kokkuvõte
-Name[eu]=Laburpena
-Name[fa]=خلاصه
-Name[fi]=Yhteenveto
-Name[fr]=Résumé
-Name[ga]=Achoimre
-Name[gl]=Resumo
-Name[gu]=સારાંશ
-Name[he]=תקציר
-Name[hi]=संक्षेप
-Name[hr]=Sažetak
-Name[hu]=Összegzés
-Name[ia]=Summario
-Name[id]=Kesimpulan
-Name[is]=Samantekt
-Name[it]=Riepilogo
-Name[ja]=概要
-Name[kk]=Қортынды
-Name[km]=សេចក្ដីសង្ខេប
-Name[kn]=ಸಾರಾಂಶ
-Name[ko]=요약
-Name[lt]=Santrauka
-Name[lv]=Kopsavilkums
-Name[mai]=सारांश
-Name[mr]=सारांश
-Name[nb]=Sammendrag
-Name[nds]=Översicht
-Name[nl]=Samenvatting
-Name[nn]=Samandrag
-Name[pa]=ਸੰਖੇਪ
-Name[pl]=Podsumowanie
-Name[pt]=Resumo
-Name[pt_BR]=Resumo
-Name[ro]=Sumar
-Name[ru]=Сводка
-Name[se]=Čoahkkáigeassu
-Name[si]=සාරාංශය
-Name[sk]=Súhrn
-Name[sl]=Povzetek
-Name[sr]=Сажетак
-Name[sr@ijekavian]=Сажетак
-Name[sr@ijekavianlatin]=Sažetak
-Name[sr@latin]=Sažetak
-Name[sv]=Översikt
-Name[th]=สรุป
-Name[tr]=Özet
-Name[ug]=ئۈزۈندى
-Name[uk]=Резюме
-Name[wa]=Racourti
-Name[x-test]=xxSummaryxx
-Name[zh_CN]=汇总
-Name[zh_TW]=摘要
-
-Comment=Hardware Information Summary
-Comment[ar]=ملخص معلومات العتاد
-Comment[ast]=Resume de la información del hardware
-Comment[bg]=Обобщени данни за хардуера
-Comment[bs]=Sažeti podaci o hardveru
-Comment[ca]=Resum de la informació del maquinari
-Comment[ca@valencia]=Resum de la informació del maquinari
-Comment[cs]=Souhrn informací o hardwaru
-Comment[da]=Oversigt over hardwareinformation
-Comment[de]=Übersicht über Hardwareinformationen
-Comment[el]=Σύνοψη πληροφοριών υλικού
-Comment[en_GB]=Hardware Information Summary
-Comment[es]=Resumen de la información del hardware
-Comment[et]=Riistvarateabe kokkuvõte
-Comment[eu]=Hardwareari buruzko informazioaren laburpena
-Comment[fi]=Laitteistoyhteenveto
-Comment[fr]=Résumé sur les informations du matériel
-Comment[ga]=Achoimre ar na Crua-Earraí
-Comment[gl]=Resumo da información do hardware
-Comment[gu]=હાર્ડવેર જાણકારી સારાંશ
-Comment[he]=תקציר מידע על החומרה
-Comment[hi]=हार्डवेयर जानकारी संक्षेप
-Comment[hr]=Sažetak informacija o hardveru
-Comment[hu]=Hardverjellemzők összegzése
-Comment[ia]=Summario de information de hardware
-Comment[id]=Kesimpulan Informasi Peranti Keras
-Comment[is]=Samantekt vélbúnaðarupplýsinga
-Comment[it]=Riepilogo delle informazioni sull'hardware
-Comment[ja]=ハードウェア情報概要
-Comment[kk]=Жабдық мәліметінің қортындысы
-Comment[km]=សេចក្ដីសង្ខេបអំពីព័ត៌មានផ្នែករឹង
-Comment[kn]=ಸಂಕ್ಷಿಪ್ತ ಯಂತ್ರಾಂಶ ಮಾಹಿತಿ
-Comment[ko]=하드웨어 정보 요약
-Comment[lt]=Aparatinės įrangos informacijos santrauka
-Comment[lv]=Aparatūras informācijas kopsavilkums
-Comment[mr]=हार्डवेअर माहीती सारांश
-Comment[nb]=Sammendrag av maskinvareinformasjon
-Comment[nds]=Översicht över de Reedschap-Informatschonen
-Comment[nl]=Hardware-informatie samenvatting
-Comment[nn]=Samandrag av maskinvareinformasjon
-Comment[pa]=ਹਾਰਡਵੇਅਰ ਜਾਨਾਕਰੀ ਸੰਖੇਪ
-Comment[pl]=Podsumowanie informacji o sprzęcie
-Comment[pt]=Resumo de Informação do 'Hardware'
-Comment[pt_BR]=Resumo das informações do hardware
-Comment[ro]=Sumar informații echipament
-Comment[ru]=Краткие сведения о системе
-Comment[si]=දෘඩාංග තොරතුරු සාරාංශය
-Comment[sk]=Súhrn informácií o hardvéri
-Comment[sl]=Povzetek podatkov o strojni opremi
-Comment[sr]=Сажети подаци о хардверу
-Comment[sr@ijekavian]=Сажети подаци о хардверу
-Comment[sr@ijekavianlatin]=Sažeti podaci o hardveru
-Comment[sr@latin]=Sažeti podaci o hardveru
-Comment[sv]=Översikt av hårdvaruinformation
-Comment[tg]=Сахтафзор
-Comment[th]=ข้อมูลสรุปของฮาร์ดแวร์
-Comment[tr]=Donanım Bilgileri Özeti
-Comment[ug]=قاتتىق دېتال ئۇچۇرى ئۈزۈندىسى
-Comment[uk]=Резюме відомостей щодо обладнання
-Comment[vi]=Tổng quan thông tin phần cứng
-Comment[wa]=Racourti di l' informåcion so l' éndjolreye
-Comment[x-test]=xxHardware Information Summaryxx
-Comment[zh_CN]=硬件信息汇总
-Comment[zh_TW]=硬體資訊摘要
-
-X-KDE-Keywords=device,devices
-X-KDE-Keywords[ar]=جهاز,أجهزة
-X-KDE-Keywords[bs]=uređaj, uređaji
-X-KDE-Keywords[ca]=dispositiu,dispositius
-X-KDE-Keywords[ca@valencia]=dispositiu,dispositius
-X-KDE-Keywords[cs]=zařízení
-X-KDE-Keywords[da]=enhed,enheder
-X-KDE-Keywords[de]=Gerät,Geräte
-X-KDE-Keywords[el]=συσκευή,συσκευές
-X-KDE-Keywords[en_GB]=device,devices
-X-KDE-Keywords[es]=dispositivo,dispositivos
-X-KDE-Keywords[et]=seade,seadmed
-X-KDE-Keywords[eu]=gailu,gailuak
-X-KDE-Keywords[fi]=laite,laitteet
-X-KDE-Keywords[fr]=périphérique, périphériques
-X-KDE-Keywords[gl]=dispositivos,dispositivos,unidade
-X-KDE-Keywords[hu]=eszköz,eszközök
-X-KDE-Keywords[ia]=dispositivo,dispositivos
-X-KDE-Keywords[id]=divais,divais
-X-KDE-Keywords[it]=dispositivo,dispositivi
-X-KDE-Keywords[kk]=device,devices
-X-KDE-Keywords[km]=device,devices
-X-KDE-Keywords[ko]=device,devices,장치
-X-KDE-Keywords[lt]=įrenginys,įrenginiai
-X-KDE-Keywords[mr]=साधन, साधने
-X-KDE-Keywords[nb]=enhet,enheter
-X-KDE-Keywords[nds]=Reedschap,Reedschappen
-X-KDE-Keywords[nl]=apparaat,apparaten
-X-KDE-Keywords[pa]=ਜੰਤਰ
-X-KDE-Keywords[pl]=urządzenie,urządzenia
-X-KDE-Keywords[pt]=dispositivo,dispositivos
-X-KDE-Keywords[pt_BR]=dispositivo,dispositivos
-X-KDE-Keywords[ro]=dispozitiv,dispozitive
-X-KDE-Keywords[ru]=device,devices,устройство,устройства
-X-KDE-Keywords[sk]=zariadenie,zariadenia
-X-KDE-Keywords[sl]=naprava,naprave,strojna oprema
-X-KDE-Keywords[sr]=device,devices,уређај,уређаји
-X-KDE-Keywords[sr@ijekavian]=device,devices,уређај,уређаји
-X-KDE-Keywords[sr@ijekavianlatin]=device,devices,uređaj,uređaji
-X-KDE-Keywords[sr@latin]=device,devices,uređaj,uređaji
-X-KDE-Keywords[sv]=enhet,enheter
-X-KDE-Keywords[tr]=aygıt,aygıtlar
-X-KDE-Keywords[uk]=пристрій,пристрої
-X-KDE-Keywords[x-test]=xxdevicexx,xxdevicesxx
-X-KDE-Keywords[zh_CN]=device,devices,设备
-X-KDE-Keywords[zh_TW]=device,devices
-X-DocPath=kinfocenter/index.html#kcm_infosummary
-Categories=Qt;KDE;X-KDE-information;
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/osdepinfo.cpp
^
|
@@ -1,56 +0,0 @@
-
-/*
- * osdepinfo.cpp
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include "osdepinfo.h"
-
-OsDepInfo::OsDepInfo()
-{
- setDepInfo();
-}
-
-const QString OsDepInfo::hostName()
-{
- return m_hostName;
-}
-
-const QString OsDepInfo::osVersion()
-{
- return m_osVersion;
-}
-
-#if defined(Q_OS_UNIX)
- #include "osdepinfo_unix.cpp"
-#else
-
-#ifdef __GNUC__
- #warning OsDepInfo setting info to blank
- #warning Add OsDepInfo for your OS
-#endif // __GNUC__
-
-void OsDepInfo::setDepInfo()
-{
- m_osVersion.clear();
- m_hostName.clear();
-}
-
-#endif // Q_OS_UNIX
-
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/osdepinfo.h
^
|
@@ -1,43 +0,0 @@
-
-/*
- * osdepinfo.h
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef OSDEPINFO
-#define OSDEPINFO
-
-#include <QString>
-
-class OsDepInfo
-{
- public:
- OsDepInfo();
-
- const QString hostName();
- const QString osVersion();
-
- private:
- void setDepInfo();
-
- QString m_hostName;
- QString m_osVersion;
-};
-
-#endif //OSDEPINFO
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/osdepinfo_unix.cpp
^
|
@@ -1,34 +0,0 @@
-
-/*
- * osdepinfo_unix.cpp
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include "osdepinfo.h"
-
-#include <sys/utsname.h>
-
-void OsDepInfo::setDepInfo()
-{
- struct utsname unixInfo;
- if(uname(&unixInfo)) return;
-
- m_osVersion = QString(unixInfo.sysname) + ' ' + QString(unixInfo.release);
- m_hostName = QString(unixInfo.nodename);
-}
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/progressboxwidget.cpp
^
|
@@ -1,92 +0,0 @@
-
-/*
- * progressboxwidget.cpp
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#include "progressboxwidget.h"
-
-ProgressBoxWidget::ProgressBoxWidget()
-{
- setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum);
- setObjectName( QLatin1String("OuterFrame" ));
-
- m_layout = new QGridLayout(this);
- m_layout->setAlignment(Qt::AlignTop|Qt::AlignLeft);
- m_layout->setSpacing(10);
-
- setStyleSheet("QFrame#OuterFrame { border: 2px solid grey; border-radius: 10px; };");
-
- createDisplay();
-}
-
-void ProgressBoxWidget::createDisplay()
-{
- m_iconLabel = new QLabel();
- m_iconLabel->setAlignment(Qt::AlignCenter);
- m_iconLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
-
- QFont bFont;
- bFont.setBold(true);
-
- m_info0Label = new QLabel();
- m_info0Label->setTextInteractionFlags(Qt::TextSelectableByMouse);
- m_info0Label->setFont(bFont);
- m_info0NameLabel = new QLabel();
- m_info0NameLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
-
- m_info1Label = new QLabel();
- m_info1Label->setTextInteractionFlags(Qt::TextSelectableByMouse);
- m_info1Label->setFont(bFont);
- m_progressBar = new QProgressBar();
-
- m_layout->addWidget(m_iconLabel,1,1,2,1,Qt::AlignCenter);
-
- m_layout->addWidget(m_info0Label,1,2,1,1);
- m_layout->addWidget(m_info0NameLabel,1,3,1,1);
-
- m_layout->addWidget(m_info1Label,2,2,1,1);
- m_layout->addWidget(m_progressBar,2,3,1,1);
-}
-
-void ProgressBoxWidget::setLabelTitles(const QString &first, const QString &second)
-{
- m_info0Label->setText(first);
- m_info1Label->setText(second);
-}
-
-void ProgressBoxWidget::setIcon(const QIcon &icon)
-{
- m_iconLabel->setPixmap(icon.pixmap(64));
-}
-
-void ProgressBoxWidget::setLabelOne(const QString &info)
-{
- m_info0NameLabel->setText(info);
-}
-
-void ProgressBoxWidget::setRange(int s, int e) const
-{
- m_progressBar->setRange(s,e);
-}
-
-void ProgressBoxWidget::setValue(int s) const
-{
- m_progressBar->setValue(s);
-}
|
[-]
[+]
|
Deleted |
kinfocenter-5.2.0.tar.xz/Modules/infosummary/progressboxwidget.h
^
|
@@ -1,60 +0,0 @@
-
-/*
- * progressboxwidget.h
- *
- * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
- *
- * 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) any later version.
- *
- * 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef PROGRESSBOXWIDGET
-#define PROGRESSBOXWIDGET
-
-//QT
-#include <QFrame>
-#include <QGridLayout>
-#include <QLabel>
-#include <QProgressBar>
-#include <QIcon>
-
-
-class ProgressBoxWidget : public QFrame
-{
- Q_OBJECT
-
- public:
- ProgressBoxWidget();
-
- void setLabelTitles(const QString &, const QString &);
- void setLabelOne(const QString &);
- void setIcon(const QIcon &icon);
- void setRange(int, int) const;
- void setValue(int) const;
-
- private:
- void createDisplay();
-
- QGridLayout *m_layout;
- QLabel *m_iconLabel;
-
- QLabel *m_info0Label;
- QLabel *m_info0NameLabel;
-
- QLabel *m_info1Label;
- QProgressBar *m_progressBar;
-};
-
-#endif //PROGRESSBOXWIDGET
|
|
Deleted |
kinfocenter-5.2.0.tar.xz/doc/os_block.png
^
|
|
Deleted |
kinfocenter-5.2.0.tar.xz/doc/pro_block.png
^
|
|
Deleted |
kinfocenter-5.2.0.tar.xz/doc/sto_block.png
^
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/CMakeLists.txt
^
|
@@ -1,8 +1,8 @@
project(kinfocenter)
-set(PROJECT_VERSION "5.2.0")
+set(PROJECT_VERSION "5.3.0")
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
-set(QT_MIN_VERSION "5.3.0")
+set(QT_MIN_VERSION "5.4.0")
find_package(ECM 1.2.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
@@ -14,7 +14,8 @@
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets)
-find_package(KF5 REQUIRED COMPONENTS
+set(KF5_MIN_VERSION "5.9.0")
+find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Completion
Config
ConfigWidgets
@@ -30,6 +31,9 @@
Solid
WidgetsAddons
XmlGui
+ Declarative
+ Package
+ Solid
)
if(${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GL")
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Categories/deviceinfocategory.desktop
^
|
@@ -6,7 +6,6 @@
Name=Lost And Found
Name[ar]=فُقد و وُجد
-Name[ast]=Oxetos perdíos
Name[bs]=Izgubljeno-nađeno
Name[ca]=Perdut i trobat
Name[ca@valencia]=Perdut i trobat
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Categories/graphicalinfocategory.desktop
^
|
@@ -6,7 +6,6 @@
Name=Graphical Information
Name[ar]=المعلومات الرسومية
-Name[ast]=Información gráfica
Name[bg]=Данни за графичната система
Name[bs]=Podaci o grafici
Name[ca]=Informació gràfica
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Categories/kinfocentercategory.desktop
^
|
@@ -3,7 +3,6 @@
X-KDE-ServiceType=KInfoCenterCategory
Name=KInfoCenter Category
Name[ar]=فئة مركز معلومات كدي
-Name[ast]=Categoría de KInfoCenter
Name[bg]=Категория в информационния център
Name[bs]=Kategorija K‑infocentra
Name[ca]=Categoria del KInfoCenter
@@ -16,7 +15,7 @@
Name[es]=Categoría de KInfoCenter
Name[et]=KDE infokeskuse kategooria
Name[eu]=KInfoCenter kategoria
-Name[fi]=KDE:n tietokeskuksen luokka
+Name[fi]=KDE:n infokeskuksen luokka
Name[fr]=Catégorie de KInfoCenter
Name[ga]=Catagóir KInfoCenter
Name[gl]=Categoría de KInfoCenter
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Categories/lostfoundcategory.desktop
^
|
@@ -6,12 +6,11 @@
Name=Device Information
Name[ar]=معلومات الأجهزة
-Name[ast]=Información del preséu
Name[be@latin]=Źviestki z pryłady
Name[bg]=Данни за устройства
Name[bn]=ডিভাইস তথ্য
Name[bn_IN]=ডিভাইস সংক্রান্ত তথ্য
-Name[bs]=podaci o uređajima
+Name[bs]=Podaci o uređajima
Name[ca]=Informació dels dispositius
Name[ca@valencia]=Informació dels dispositius
Name[cs]=Informace o zařízení
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Categories/networkinfocategory.desktop
^
|
@@ -6,7 +6,6 @@
Name=Network Information
Name[ar]=معلومات الشبكة
-Name[ast]=Información de la rede
Name[bg]=Мрежови данни
Name[bs]=Podaci o mreži
Name[ca]=Informació de la xarxa
@@ -60,6 +59,7 @@
Name[tr]=Ağ Bilgileri
Name[ug]=تور ئۇچۇرى
Name[uk]=Інформація щодо мережі
+Name[vi]=Thông tin mạng
Name[wa]=Informåcions sol rantoele
Name[x-test]=xxNetwork Informationxx
Name[zh_CN]=网络信息
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/CMakeLists.txt
^
|
@@ -1,6 +1,6 @@
+add_subdirectory( about-distro )
add_subdirectory( usbview )
-add_subdirectory( infosummary )
add_subdirectory( memory )
add_subdirectory( devinfo )
add_subdirectory( info )
@@ -59,3 +59,8 @@
if(RAW1394_FOUND)
add_subdirectory( view1394 )
endif()
+
+if (CMAKE_SYSTEM_NAME MATCHES Linux)
+ add_subdirectory(energy)
+endif()
+
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro
^
|
+(directory)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/.gitignore
^
|
@@ -0,0 +1,2 @@
+*.user
+build
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/CMakeLists.txt
^
|
@@ -0,0 +1,7 @@
+
+# KI18N Translation Domain for this library
+add_definitions(-DTRANSLATION_DOMAIN=\"kcm-about-distro\")
+
+add_subdirectory(src)
+
+feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/COPYING
^
|
@@ -0,0 +1,676 @@
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/README
^
|
@@ -0,0 +1,7 @@
+See example/*.
+
+Essentially you place an rc file in the file system that defines the distro logo
+and website url. The file ought to be in some XDG_CONFIG_DIRS dir.
+
+e.g.
+pkexec cp `pwd`/example/kcm-about-distrorc.ex /etc/xdg/kcm-about-distrorc
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/example
^
|
+(directory)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/example/kcm-about-distrorc.ex
^
|
@@ -0,0 +1,4 @@
+[General]
+LogoPath=/home/me/kubuntu-circle-small.png
+Website=http://www.kubuntu.org
+
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src
^
|
+(directory)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/CMakeLists.txt
^
|
@@ -0,0 +1,21 @@
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/Version.h)
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+set(kcm_SRCS
+ main.cpp
+ Module.cpp
+ OSRelease.cpp
+)
+
+ki18n_wrap_ui(kcm_SRCS Module.ui)
+
+add_library(kcm_about_distro MODULE ${kcm_SRCS})
+
+target_link_libraries(kcm_about_distro
+ KF5::ConfigWidgets
+ KF5::CoreAddons
+ KF5::I18n
+ KF5::Solid)
+
+install(TARGETS kcm_about_distro DESTINATION ${PLUGIN_INSTALL_DIR})
+install(FILES about-distro.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/Messages.sh
^
|
@@ -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/kcm-about-distro.pot
+rm -f rc.cpp
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/Module.cpp
^
|
@@ -0,0 +1,205 @@
+/*
+ Copyright (C) 2012-2014 Harald Sitter <apachelogger@ubuntu.com>
+
+ 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 "Module.h"
+#include "ui_Module.h"
+
+#include <QIcon>
+#include <QStandardPaths>
+
+#include <KAboutData>
+#include <KConfig>
+#include <KConfigGroup>
+#include <KDesktopFile>
+#include <KFormat>
+#include <KLocalizedString>
+#include <KSharedConfig>
+
+#include <solid/device.h>
+#include <solid/processor.h>
+
+#ifdef Q_OS_LINUX
+#include <sys/sysinfo.h>
+#endif
+#include <sys/utsname.h>
+
+#include "OSRelease.h"
+#include "Version.h"
+
+static qlonglong calculateTotalRam()
+{
+ qlonglong ret = -1;
+#ifdef Q_OS_LINUX
+ struct sysinfo info;
+ if (sysinfo(&info) == 0)
+ // manpage "sizes are given as multiples of mem_unit bytes"
+ ret = info.totalram * info.mem_unit;
+#endif
+ return ret;
+}
+
+Module::Module(QWidget *parent, const QVariantList &args) :
+ KCModule(parent, args),
+ ui(new Ui::Module)
+{
+ KAboutData *aboutData = new KAboutData("kcm-about-distro",
+ i18nc("@title", "About Distribution"),
+ global_s_versionStringFull,
+ QStringLiteral(""),
+ KAboutLicense::LicenseKey::GPL_V3,
+ i18nc("@info:credit", "Copyright 2012-2014 Harald Sitter"));
+
+ aboutData->addAuthor(i18nc("@info:credit", "Harald Sitter"),
+ i18nc("@info:credit", "Author"),
+ QStringLiteral("apachelogger@kubuntu.org"));
+
+ setAboutData(aboutData);
+
+ ui->setupUi(this);
+
+ QFont font = ui->nameVersionLabel->font();
+ font.setPixelSize(24);
+ font.setBold(true);
+ ui->nameVersionLabel->setFont(font);
+
+ ui->urlLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse);
+
+ // We have no help so remove the button from the buttons.
+ setButtons(buttons() ^ KCModule::Help ^ KCModule::Default ^ KCModule::Apply);
+}
+
+Module::~Module()
+{
+ delete ui;
+}
+
+void Module::load()
+{
+ // NOTE: do not include globals, otherwise kdeglobals could provide values
+ // even though we only explicitly want them from our own config.
+ KSharedConfig::Ptr config = KSharedConfig::openConfig("kcm-about-distrorc",
+ KConfig::NoGlobals);
+ KConfigGroup cg = KConfigGroup(config, "General");
+
+ QString logoPath = cg.readEntry("LogoPath", QString());
+ QPixmap logo;
+ if (logoPath.isEmpty())
+ logo = QIcon::fromTheme("start-here-kde").pixmap(128, 128);
+ else
+ logo = QPixmap(logoPath);
+ ui->logoLabel->setPixmap(logo);
+
+ OSRelease os;
+ // We allow overriding of the OS name for branding purposes.
+ // For example OS Ubuntu may be rebranded as Kubuntu. Also Kubuntu Active
+ // as a product brand is different from Kubuntu.
+ QString distroName = cg.readEntry("Name", os.name);
+ ui->nameVersionLabel->setText(QString("%1 %2").arg(distroName, os.versionId));
+
+ QString url = cg.readEntry("Website", os.homeUrl);
+ if (url.isEmpty())
+ ui->urlLabel->hide();
+ else
+ ui->urlLabel->setText(QString("<a href='%1'>%1</a>").arg(url));
+
+ // Since Plasma version detection isn't based on a library query it can fail
+ // in weird cases; instead of admiting defeat we simply hide everything :P
+ QString plasma = plasmaVersion();
+ if (plasma.isEmpty()) {
+ ui->plasma->hide();
+ ui->plasmaLabel->hide();
+ } else {
+ ui->plasmaLabel->setText(plasma);
+ }
+
+ ui->qtLabel->setText(qVersion());
+
+ struct utsname utsName;
+ if(uname(&utsName) != 0) {
+ ui->kernel->hide();
+ ui->kernelLabel->hide();
+ } else
+ ui->kernelLabel->setText(utsName.release);
+
+ const int bits = QT_POINTER_SIZE == 8 ? 64 : 32;
+ ui->bitsLabel->setText(i18nc("@label %1 is the CPU bit width (e.g. 32 or 64)",
+ "%1-bit", QString::number(bits)));
+
+ const QList<Solid::Device> list = Solid::Device::listFromType(Solid::DeviceInterface::Processor);
+ ui->processor->setText(i18np("Processor:", "Processors:", list.count()));
+ // Format processor string
+ // Group by processor name
+ QMap<QString, int> processorMap;
+ Q_FOREACH(const Solid::Device &device, list) {
+ const QString name = device.product();
+ auto it = processorMap.find(name);
+ if (it == processorMap.end()) {
+ processorMap.insert(name, 1);
+ } else {
+ ++it.value();
+ }
+ }
+ // Create a formatted list of grouped processors
+ QStringList names;
+ for (auto it = processorMap.constBegin(); it != processorMap.constEnd(); ++it) {
+ const int count = it.value();
+ QString name = it.key();
+ name.replace(QString("(TM)"), QChar(8482));
+ name.replace(QString("(R)"), QChar(174));
+ name = name.simplified();
+ names.append(QString::fromUtf8("%1 × %2").arg(count).arg(name));
+ }
+ ui->processorLabel->setText(names.join(", "));
+ if (ui->processorLabel->text().isEmpty()) {
+ ui->processor->setHidden(true);
+ ui->processorLabel->setHidden(true);
+ }
+
+ const qlonglong totalRam = calculateTotalRam();
+ ui->memoryLabel->setText(totalRam > 0
+ ? i18nc("@label %1 is the formatted amount of system memory (e.g. 7,7 GiB)",
+ "%1 of RAM", KFormat().formatByteSize(totalRam))
+ : i18nc("Unknown amount of RAM", "Unknown"));
+}
+
+void Module::save()
+{
+}
+
+void Module::defaults()
+{
+}
+
+QString Module::plasmaVersion() const
+{
+ const QStringList &filePaths = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation,
+ "xsessions/plasma.desktop");
+
+ if (filePaths.length() < 1) {
+ return QString();
+ }
+
+ // Despite the fact that there can be multiple desktop files we simply take
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/Module.h
^
|
@@ -0,0 +1,72 @@
+/*
+ Copyright (C) 2012 Harald Sitter <apachelogger@ubuntu.com>
+
+ 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/>.
+*/
+
+#ifndef MODULE_H
+#define MODULE_H
+
+#include <KCModule>
+
+namespace Ui {
+ class Module;
+}
+
+class Module : public KCModule
+{
+ Q_OBJECT
+public:
+ /**
+ * Constructor.
+ *
+ * @param parent Parent widget of the module
+ * @param args Arguments for the module
+ */
+ explicit Module(QWidget *parent, const QVariantList &args = QVariantList());
+
+ /**
+ * Destructor.
+ */
+ ~Module();
+
+ /**
+ * Overloading the KCModule load() function.
+ */
+ void load();
+
+ /**
+ * Overloading the KCModule save() function.
+ */
+ void save();
+
+ /**
+ * Overloading the KCModule defaults() function.
+ */
+ void defaults();
+
+private:
+ /**
+ * UI
+ */
+ Ui::Module *ui;
+
+ /** \returns Version of plasmashell or an empty string when none was found */
+ QString plasmaVersion() const;
+};
+
+#endif // MODULE_H
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/Module.ui
^
|
@@ -0,0 +1,321 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Module</class>
+ <widget class="QWidget" name="Module">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>643</width>
+ <height>586</height>
+ </rect>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="6" column="1">
+ <widget class="QLabel" name="qt">
+ <property name="text">
+ <string>Qt Version:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="3">
+ <widget class="QLabel" name="label_2">
+ <property name="font">
+ <font>
+ <weight>75</weight>
+ <bold>true</bold>
+ </font>
+ </property>
+ <property name="text">
+ <string>Software</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="7" column="0">
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>215</width>
+ <height>17</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="6" column="3">
+ <widget class="QLabel" name="qtLabel">
+ <property name="text">
+ <string notr="true">{QtVersion}</string>
+ </property>
+ </widget>
+ </item>
+ <item row="8" column="1">
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>OS Type:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="3">
+ <widget class="QLabel" name="plasmaLabel">
+ <property name="text">
+ <string notr="true">{KDEVersion}</string>
+ </property>
+ </widget>
+ </item>
+ <item row="8" column="3">
+ <widget class="QLabel" name="bitsLabel">
+ <property name="text">
+ <string notr="true">{QtArchitecutre}</string>
+ </property>
+ </widget>
+ </item>
+ <item row="13" column="3">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="7" column="4">
+ <spacer name="horizontalSpacer_7">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>215</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="11" column="3">
+ <widget class="QLabel" name="processorLabel">
+ <property name="text">
+ <string notr="true">{PrcoessorName}</string>
+ </property>
+ </widget>
+ </item>
+ <item row="12" column="1">
+ <widget class="QLabel" name="memory">
+ <property name="text">
+ <string>Memory:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="11" column="1">
+ <widget class="QLabel" name="processor">
+ <property name="text">
+ <string notr="true">Processor:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="7" column="3">
+ <widget class="QLabel" name="kernelLabel">
+ <property name="text">
+ <string notr="true">{KernelName}</string>
+ </property>
+ </widget>
+ </item>
+ <item row="7" column="1">
+ <widget class="QLabel" name="kernel">
+ <property name="text">
+ <string>Kernel Version:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="12" column="3">
+ <widget class="QLabel" name="memoryLabel">
+ <property name="text">
+ <string notr="true">{MemoryAmount}</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="1">
+ <widget class="QLabel" name="plasma">
+ <property name="text">
+ <string>KDE Plasma Version:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="3">
+ <spacer name="verticalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Fixed</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>24</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="1" column="3" colspan="2">
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <spacer name="verticalSpacer_6">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Preferred</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/OSRelease.cpp
^
|
@@ -0,0 +1,135 @@
+/*
+ Copyright (C) 2014 Harald Sitter <apachelogger@ubuntu.com>
+
+ 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 "OSRelease.h"
+
+#include <QDebug>
+#include <QFile>
+
+#include <KLocalizedString>
+#include <KShell>
+
+static void setVar(QString *var, const QString &value)
+{
+ // Values may contain quotation marks, strip them as we have no use for them.
+ KShell::Errors error;
+ QStringList args = KShell::splitArgs(value, KShell::NoOptions, &error);
+ if (error != KShell::NoError) { // Failed to parse.
+ return;
+ }
+ *var = args.join(QChar(' '));
+}
+
+static void setVar(QStringList *var, const QString &value)
+{
+ // Instead of passing the verbatim value we manually strip any initial quotes
+ // and then run it through KShell. At this point KShell will actually split
+ // by spaces giving us the final QStringList.
+ // NOTE: Splitting like this does not actually allow escaped substrings to
+ // be handled correctly, so "kitteh \"french fries\"" would result in
+ // three list entries. I'd argue that if someone makes an id like that
+ // they are at fault for the bogus parsing here though as id explicitly
+ // is required to not contain spaces even if more advanced shell escaping
+ // is also allowed...
+ QString value_ = value;
+ if (value_.at(0) == QChar('"') && value_.at(value_.size()-1) == QChar('"')) {
+ value_.remove(0, 1);
+ value_.remove(-1, 1);
+ }
+ KShell::Errors error;
+ QStringList args = KShell::splitArgs(value_, KShell::NoOptions, &error);
+ if (error != KShell::NoError) { // Failed to parse.
+ return;
+ }
+ *var = args;
+}
+
+OSRelease::OSRelease()
+{
+ // Set default values for non-optional fields.
+ name = QLatin1String("Linux");
+ id = QLatin1String("linux");
+ prettyName = QLatin1String("Linux");
+
+ QString fileName;
+
+ if (QFile::exists("/etc/os-release")) {
+ fileName = "/etc/os-release";
+ } else if (QFile::exists("/usr/lib/os-release")) {
+ fileName = "/usr/lib/os-release";
+ } else {
+ return;
+ }
+
+
+ QFile file(fileName);
+ // NOTE: The os-release specification defines default values for specific
+ // fields which means that even if we can not read the os-release file
+ // we have sort of expected default values to use.
+ // TODO: it might still be handy to indicate to the outside whether
+ // fallback values are being used or not.
+ file.open(QIODevice::ReadOnly | QIODevice::Text);
+ QString line;
+ QStringList comps;
+ while (!file.atEnd()) {
+ line = file.readLine();
+
+ if (line.startsWith(QChar('#'))) {
+ // Comment line
+ continue;
+ }
+
+ comps = line.split(QChar('='));
+
+ if (comps.size() != 2) {
+ // Invalid line.
+ continue;
+ }
+
+ QString key = comps.at(0);
+ QString value = comps.at(1).trimmed();
+ if (key == QLatin1String("NAME"))
+ setVar(&name, value);
+ else if (key == QLatin1String("VERSION"))
+ setVar(&version, value);
+ else if (key == QLatin1String("ID"))
+ setVar(&id, value);
+ else if (key == QLatin1String("ID_LIKE"))
+ setVar(&idLike, value);
+ else if (key == QLatin1String("VERSION_ID"))
+ setVar(&versionId, value);
+ else if (key == QLatin1String("PRETTY_NAME"))
+ setVar(&prettyName, value);
+ else if (key == QLatin1String("ANSI_COLOR"))
+ setVar(&ansiColor, value);
+ else if (key == QLatin1String("CPE_NAME"))
+ setVar(&cpeName, value);
+ else if (key == QLatin1String("HOME_URL"))
+ setVar(&homeUrl, value);
+ else if (key == QLatin1String("SUPPORT_URL"))
+ setVar(&supportUrl, value);
+ else if (key == QLatin1String("BUG_REPORT_URL"))
+ setVar(&bugReportUrl, value);
+ else if (key == QLatin1String("BUILD_ID"))
+ setVar(&buildId, value);
+ // os-release explicitly allows for vendor specific aditions. We have no
+ // interest in those right now.
+ }
+}
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/OSRelease.h
^
|
@@ -0,0 +1,47 @@
+/*
+ Copyright (C) 2014 Harald Sitter <apachelogger@ubuntu.com>
+
+ 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/>.
+*/
+
+#ifndef OSRELEASE_H
+#define OSRELEASE_H
+
+#include <QString>
+#include <QStringList>
+
+class OSRelease
+{
+public:
+ OSRelease();
+
+ QString name;
+ QString version;
+ QString id;
+ QStringList idLike;
+ QString versionId;
+ QString prettyName;
+ QString ansiColor;
+ QString cpeName;
+ // TODO: url struct or map?
+ QString homeUrl;
+ QString supportUrl;
+ QString bugReportUrl;
+ QString buildId;
+};
+
+#endif // OSRELEASE_H
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/Version.h.cmake
^
|
@@ -0,0 +1,27 @@
+/*
+ Copyright (C) 2012 Harald Sitter <apachelogger@ubuntu.com>
+
+ 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/>.
+*/
+
+#ifndef VERSION_H
+#define VERSION_H
+
+static const char global_s_versionString[] = "${VERSION_STRING}";
+static const char global_s_versionStringFull[] = "${VERSION_STRING_FULL}";
+
+#endif // VERSION_H
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/about-distro.desktop
^
|
@@ -0,0 +1,72 @@
+[Desktop Entry]
+Type=Service
+Icon=help-about
+Exec=kcmshell5 about-distro
+
+X-KDE-Library=kcm_about_distro
+X-KDE-ServiceTypes=KCModule
+X-KDE-ParentApp=kinfocenter
+X-KDE-PluginKeyword=kcm-about-distro
+X-KDE-Weight=0
+X-KDE-Keywords=information,distribution,distro,system,kernel,qt,kde
+X-KDE-Keywords[ca]=informació,distribució,distro,sistema,nucli,qt,kde
+X-KDE-Keywords[cs]=informace,distribuce,distro,systém,jádro,qt,kde
+X-KDE-Keywords[de]=Information,Distribution,Distro,System,Kernel,Qt,KDE
+X-KDE-Keywords[en_GB]=information,distribution,distro,system,kernel,qt,kde
+X-KDE-Keywords[es]=información,distribución,distro,sistema,kernel,qt,kde
+X-KDE-Keywords[fi]=tietoja,tietoa,tiedot,info,jakelu,distribuutio,distro,järjestelmä,ydin,käyttöjärjestelmäydin,qt,kde,information,distribution,system,kernel
+X-KDE-Keywords[gl]=información,distribución,sistema,information,distribution,distro,system,kernel,qt,kde
+X-KDE-Keywords[hu]=információk,disztribúció,disztró,rendszer,kernel,qt,kde
+X-KDE-Keywords[nl]=informatie,distributie,distro,systeem,kernel,qt,kde
+X-KDE-Keywords[pl]=informacje,dystrybucja,distro,system,jądro,qt,kde
+X-KDE-Keywords[pt]=informação,distribuição,sistema,'kernel',qt,kde
+X-KDE-Keywords[pt_BR]=informações,distribuição,sistema,kernel,qt,kde
+X-KDE-Keywords[ru]=information,distribution,distro,system,kernel,qt,kde,информация,сведения,дистрибутив,ядро,процессор,компьютер,операционная система,память,архитектура
+X-KDE-Keywords[sk]=informácia,distribúcia,distro,systém,jadro,qt,kde
+X-KDE-Keywords[sl]=podrobnosti,podatki,distribucija,sistem,jedro,kernel,qt,kde
+X-KDE-Keywords[sv]=information,distribution,distro,system,kernel,qt,kde
+X-KDE-Keywords[uk]=information,distribution,distro,system,kernel,qt,kde,інформація,дистрибутив,дистро,система,ядро,процесор,комп’ютер,інфо
+X-KDE-Keywords[x-test]=xxinformationxx,xxdistributionxx,xxdistroxx,xxsystemxx,xxkernelxx,xxqtxx,xxkdexx
+X-KDE-Keywords[zh_CN]=information,distribution,distro,system,kernel,qt,kde,信息,发行版,系统,内核
+Categories=Qt;KDE;X-KDE-settings-personalization;X-KDE-information;
+
+Name=About System
+Name[ca]=Quant al sistema
+Name[cs]=O systému
+Name[de]=Über das System
+Name[en_GB]=About System
+Name[es]=Acerca del sistema
+Name[fi]=Tietoa järjestelmästä
+Name[gl]=Sobre o sistema
+Name[hu]=A rendszer névjegye
+Name[nl]=Over het systeem
+Name[pl]=O systemie
+Name[pt]=Acerca do Sistema
+Name[pt_BR]=Sobre o Sistema
+Name[ru]=О системе
+Name[sk]=O systéme
+Name[sl]=O sistemu
+Name[sv]=Om systemet
+Name[uk]=Про систему
+Name[x-test]=xxAbout Systemxx
+Name[zh_CN]=关于系统
+Comment=Information About This System
+Comment[ca]=Informació quant a aquest sistema
+Comment[cs]=Informace o tomto systému
+Comment[de]=Informationen über dieses System
+Comment[en_GB]=Information About This System
+Comment[es]=Información sobre este sistema
+Comment[fi]=Tietoa tästä järjestelmästä
+Comment[gl]=Información sobre o sistema
+Comment[hu]=Információk erről a rendszerről
+Comment[nl]=Informatie over dit systeem
+Comment[pl]=Informacje o tym systemie
+Comment[pt]=Informação Sobre o Sistema
+Comment[pt_BR]=Informações sobre este sistema
+Comment[ru]=Сведения об этой системе
+Comment[sk]=Informácia o tomto systéme
+Comment[sl]=Podrobnosti o tem sistemu
+Comment[sv]=Information om systemet
+Comment[uk]=Інформація щодо цієї системи
+Comment[x-test]=xxInformation About This Systemxx
+Comment[zh_CN]=此系统的信息
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/about-distro/src/main.cpp
^
|
@@ -0,0 +1,28 @@
+/*
+ Copyright (C) 2012 Harald Sitter <apachelogger@ubuntu.com>
+
+ 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 <KPluginFactory>
+
+#include "Module.h"
+
+K_PLUGIN_FACTORY(KcmAboutDistroFactory,
+ registerPlugin<Module>("kcm-about-distro");)
+
+#include "main.moc"
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/devinfo/CMakeLists.txt
^
|
@@ -1,11 +1,10 @@
-project( devinfo )
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcmdevinfo\")
set( devinfoSources soldevice.cpp devinfo.cpp devicelisting.cpp infopanel.cpp soldevicetypes.cpp qvlistlayout.cpp solidhelper.cpp)
-kde4_add_plugin( devinfo ${devinfoSources} )
-target_link_libraries( devinfo
+add_library(kcm_devinfo MODULE ${devinfoSources})
+target_link_libraries(kcm_devinfo
KF5::KCMUtils
KF5::I18n
KF5::KIOCore
@@ -13,5 +12,5 @@
KF5::Solid
)
-install( TARGETS devinfo DESTINATION ${PLUGIN_INSTALL_DIR} )
+install(TARGETS kcm_devinfo DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES devinfo.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/devinfo/devinfo.desktop
^
|
@@ -6,13 +6,12 @@
X-KDE-Weight=0
X-KDE-KInfoCenter-Category=device_information
-X-KDE-Library=devinfo
+X-KDE-Library=kcm_devinfo
X-KDE-ParentApp=kinfocenter
X-DocPath=kinfocenter/index.html#devinfo
Name=Device Viewer
Name[ar]=عارض الأجهزة
-Name[ast]=Visor de preseos
Name[bg]=Преглед на устройства
Name[bs]=Prikazivač uređaja
Name[ca]=Visor de dispositius
@@ -76,7 +75,6 @@
Comment=Device Viewer
Comment[ar]=عارض الأجهزة
-Comment[ast]=Visor de preseos
Comment[bg]=Преглед на устройства
Comment[bs]=Prikazivač uređaja
Comment[ca]=Visor de dispositius
@@ -181,6 +179,7 @@
X-KDE-Keywords[sv]=enhet,enheter
X-KDE-Keywords[tr]=aygıt,aygıtlar
X-KDE-Keywords[uk]=пристрій,пристрої
+X-KDE-Keywords[vi]=thiết bị,các thiết bị
X-KDE-Keywords[x-test]=xxdevicexx,xxdevicesxx
X-KDE-Keywords[zh_CN]=device,devices,设备
X-KDE-Keywords[zh_TW]=device,devices
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/devinfo/soldevicetypes.cpp
^
|
@@ -414,20 +414,22 @@
}
QString state;
- switch(batdev->type())
- {
- case Solid::Battery::Charging:
- state = i18n("Charging"); break;
- case Solid::Battery::Discharging:
- state = i18n("Discharging"); break;
- default:
- state = i18n("No Charge");
- }
+ switch(batdev->type())
+ {
+ case Solid::Battery::Charging:
+ state = i18n("Charging"); break;
+ case Solid::Battery::Discharging:
+ state = i18n("Discharging"); break;
+ case Solid::Battery::FullyCharged:
+ state = i18n("Fully Charged"); break;
+ default:
+ state = i18n("No Charge");
+ }
labels << i18n("Battery Type: ")
- << type
- << i18n("Charge Status: ")
- << state;
+ << type
+ << i18n("Charge Status: ")
+ << state;
deviceInfoLayout->applyQListToLayout(labels);
return deviceInfoLayout;
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy
^
|
+(directory)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/CMakeLists.txt
^
|
@@ -0,0 +1,31 @@
+# KI18N Translation Domain for this library
+add_definitions(-DTRANSLATION_DOMAIN=\"kcm_energyinfo\")
+
+configure_file (config-kcm.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcm.h )
+
+set(kcm_energyinfo_SRCS
+ kcm.cpp
+ batterymodel.cpp
+ wakeupmodel.cpp
+ statisticsprovider.cpp
+)
+
+add_library(kcm_energyinfo MODULE ${kcm_energyinfo_SRCS})
+
+target_link_libraries(kcm_energyinfo
+ Qt5::DBus
+ Qt5::Widgets
+ KF5::KIOWidgets
+ KF5::CoreAddons
+ KF5::KCMUtils
+ KF5::I18n
+ KF5::Solid
+ KF5::QuickAddons
+)
+
+kcoreaddons_desktop_to_json(kcm_energyinfo "kcm_energyinfo.desktop")
+
+install(FILES kcm_energyinfo.desktop DESTINATION ${SERVICES_INSTALL_DIR})
+install(TARGETS kcm_energyinfo DESTINATION ${PLUGIN_INSTALL_DIR}/kcms)
+
+kpackage_install_package(package kcm_energyinfo kcms)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/Messages.sh
^
|
@@ -0,0 +1,4 @@
+#! /usr/bin/env bash
+$EXTRACTRC `find . -name "*.ui"` >> rc.cpp || exit 11
+$XGETTEXT `find . -name "*.cpp" -o -name "*.qml"` -o $podir/kcm_energyinfo.pot
+rm -f rc.cpp
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/batterymodel.cpp
^
|
@@ -0,0 +1,124 @@
+/***************************************************************************
+ * Copyright (C) 2015 Kai Uwe Broulik <kde@privat.broulik.de> *
+ * *
+ * 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) any later version. *
+ * *
+ * 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, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#include "batterymodel.h"
+
+#include <Solid/Device>
+#include <Solid/DeviceNotifier>
+
+#include <QtQml>
+#include <QQmlEngine>
+
+
+BatteryModel::BatteryModel(QObject *parent) : QAbstractListModel(parent)
+{
+ qmlRegisterType<Solid::Battery>();
+
+ const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Battery);
+ foreach (Solid::Device device, devices) {
+ auto battery = device.as<Solid::Battery>();
+ m_batteries.append(battery);
+ // FIXME Fix Solid so it exposes the base device interface properties too
+ m_batteriesUdi.append(device.udi());
+ }
+
+ connect(Solid::DeviceNotifier::instance(), &Solid::DeviceNotifier::deviceAdded, this, [this](const QString &udi) {
+ if (m_batteriesUdi.contains(udi)) {
+ // we already know that one
+ return;
+ }
+
+ const Solid::Device device(udi);
+ if (device.isValid()) {
+ auto *battery = const_cast<Solid::Battery *>(device.as<Solid::Battery>());
+ if (battery) {
+ beginInsertRows(QModelIndex(), m_batteries.count(), m_batteries.count());
+ m_batteries.append(battery);
+ // FIXME Fix Solid so it exposes the base device interface properties too
+ m_batteriesUdi.append(device.udi());
+ endInsertRows();
+
+ emit countChanged();
+ }
+ }
+ });
+ connect(Solid::DeviceNotifier::instance(), &Solid::DeviceNotifier::deviceRemoved, this, [this](const QString &udi) {
+ const int index = m_batteriesUdi.indexOf(udi);
+ if (index < 0) {
+ // we don't have that one
+ return;
+ }
+
+ beginRemoveRows(QModelIndex(), index, index);
+ m_batteries.removeAt(index);
+ m_batteriesUdi.removeAt(index);
+ endRemoveRows();
+
+ emit countChanged();
+ });
+}
+
+Solid::Battery *BatteryModel::get(int index) const
+{
+ if (index < 0 || index >= m_batteries.count()) {
+ return nullptr;
+ }
+
+ auto battery = m_batteries.at(index);
+ QQmlEngine::setObjectOwnership(battery, QQmlEngine::CppOwnership);
+ return battery;
+}
+
+QString BatteryModel::udi(int index) const
+{
+ if (index < 0 || index >= m_batteriesUdi.count()) {
+ return QString();
+ }
+
+ return m_batteriesUdi.at(index);
+}
+
+QVariant BatteryModel::data(const QModelIndex &index, int role) const
+{
+ if (index.row() < 0 || index.row() >= m_batteries.count()) {
+ return QVariant();
+ }
+
+ if (role == BatteryRole) {
+ return QVariant::fromValue(m_batteries.at(index.row()));
+ } else if (role == UdiRole) {
+ return m_batteriesUdi.at(index.row());
+ }
+
+ return QVariant();
+}
+
+int BatteryModel::rowCount(const QModelIndex &parent) const
+{
+ Q_UNUSED(parent);
+ return m_batteries.count();
+}
+
+QHash<int, QByteArray> BatteryModel::roleNames() const
+{
+ return {
+ {BatteryRole, "battery"},
+ {UdiRole, "udi"}
+ };
+}
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/batterymodel.h
^
|
@@ -0,0 +1,58 @@
+/***************************************************************************
+ * Copyright (C) 2015 Kai Uwe Broulik <kde@privat.broulik.de> *
+ * *
+ * 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) any later version. *
+ * *
+ * 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, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#ifndef KCM_ENERGYINFO_BATTERYMODEL_H
+#define KCM_ENERGYINFO_BATTERYMODEL_H
+
+#include <QAbstractListModel>
+#include <QList>
+
+#include <Solid/Battery>
+
+class BatteryModel : public QAbstractListModel
+{
+ Q_OBJECT
+
+ Q_PROPERTY(int count READ rowCount NOTIFY countChanged)
+
+public:
+ explicit BatteryModel(QObject *parent);
+ virtual ~BatteryModel() = default;
+
+ enum Roles {
+ BatteryRole = Qt::UserRole,
+ UdiRole
+ };
+
+ Q_INVOKABLE Solid::Battery *get(int index) const;
+ Q_INVOKABLE QString udi(int index) const;
+
+ QVariant data(const QModelIndex &index, int role) const;
+ int rowCount(const QModelIndex &parent = QModelIndex()) const;
+ QHash<int, QByteArray> roleNames() const;
+
+signals:
+ void countChanged();
+
+private:
+ QStringList m_batteriesUdi;
+ QList<Solid::Battery *> m_batteries;
+};
+
+#endif // KCM_ENERGYINFO_BATTERYMODEL_H
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/config-kcm.h.cmake
^
|
@@ -0,0 +1,2 @@
+#cmakedefine HAVE_XFIXES 1
+
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/kcm.cpp
^
|
@@ -0,0 +1,71 @@
+/***************************************************************************
+ * Copyright (C) 2015 Kai Uwe Broulik <kde@privat.broulik.de> *
+ * *
+ * 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) any later version. *
+ * *
+ * 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, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#include "kcm.h"
+#include "config-kcm.h"
+
+#include <KPluginFactory>
+#include <KPluginLoader>
+#include <KAboutData>
+#include <QDebug>
+#include <QStandardPaths>
+
+#include <QtQml>
+#include <QQmlEngine>
+#include <QQmlContext>
+#include <QStandardItemModel>
+
+#include <Solid/DeviceNotifier>
+#include <Solid/Device>
+#include <Solid/Battery>
+
+#include <KLocalizedString>
+
+#include "batterymodel.h"
+#include "wakeupmodel.h"
+#include "statisticsprovider.h"
+
+
+K_PLUGIN_FACTORY_WITH_JSON(KCMLookandFeelFactory, "kcm_energyinfo.json", registerPlugin<KCMEnergyInfo>();)
+
+using namespace KQuickAddons;
+
+KCMEnergyInfo::KCMEnergyInfo(QObject *parent, const QVariantList &args) : ConfigModule(parent, args)
+{
+ //This flag seems to be needed in order for QQuickWidget to work
+ //see https://bugreports.qt-project.org/browse/QTBUG-40765
+ //also, it seems to work only if set in the kcm, not in the systemsettings' main
+ qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
+
+ qmlRegisterType<BatteryModel>();
+ qmlRegisterType<WakeUpModel>();
+ qmlRegisterType<StatisticsProvider>("KCM", 1, 0, "HistoryModel");
+
+ KAboutData *about = new KAboutData("kcm_energyinfo", i18n("Energy Consumption Statistics"),
+ "0.1", QString(), KAboutLicense::GPL);
+ about->addAuthor(i18n("Kai Uwe Broulik"), QString(), "kde@privat.broulik.de");
+ setAboutData(about);
+
+ m_batteries = new BatteryModel(this);
+
+ m_wakeUps = new WakeUpModel(this);
+}
+
+
+#include "kcm.moc"
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/kcm.h
^
|
@@ -0,0 +1,62 @@
+/***************************************************************************
+ * Copyright (C) 2015 Kai Uwe Broulik <kde@privat.broulik.de> *
+ * *
+ * 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) any later version. *
+ * *
+ * 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, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#ifndef KCM_ENERGYINFO_H
+#define KCM_ENERGYINFO_H
+
+#include <KQuickAddons/ConfigModule>
+
+class QQuickView;
+class QStandardItemModel;
+
+class BatteryModel;
+class WakeUpModel;
+
+
+class KCMEnergyInfo : public KQuickAddons::ConfigModule
+{
+ Q_OBJECT
+
+ Q_PROPERTY(BatteryModel *batteries READ batteries CONSTANT)
+
+ Q_PROPERTY(WakeUpModel *wakeUps READ wakeUps CONSTANT)
+
+
+public:
+ explicit KCMEnergyInfo(QObject *parent, const QVariantList &args);
+ virtual ~KCMEnergyInfo() = default;
+
+ BatteryModel *batteries() const { return m_batteries; }
+
+ WakeUpModel *wakeUps() const { return m_wakeUps; }
+
+
+private:
+
+ BatteryModel *m_batteries = nullptr;
+
+ WakeUpModel *m_wakeUps = nullptr;
+
+ int m_wakeUpsCount = 0;
+
+};
+
+Q_DECLARE_METATYPE(QList<QPointF>)
+
+#endif // KCM_ENERGYINFO_H
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/kcm_energyinfo.desktop
^
|
@@ -0,0 +1,58 @@
+[Desktop Entry]
+Exec=kcmshell5 kcm_energyinfo
+Icon=preferences-system-power-management
+Type=Service
+X-KDE-ServiceTypes=KCModule
+X-KDE-Library=kcm_energyinfo
+X-KDE-ParentApp=kinfocenter
+
+Name=Energy Information
+Name[ca]=Informació d'energia
+Name[cs]=Informace o energii
+Name[es]=Información sobre energía
+Name[fi]=Energiatiedot
+Name[hu]=Energiakezelési jellemzők
+Name[nl]=Energie-informatie
+Name[pt]=Informação de Energia
+Name[pt_BR]=Informações de energia
+Name[ru]=Энергопотребление
+Name[sk]=Informácie o energii
+Name[sl]=Podatki o energiji
+Name[sv]=Information om energi
+Name[uk]=Інформація щодо енергоспоживання
+Name[x-test]=xxEnergy Informationxx
+Name[zh_CN]=能源信息
+Comment=Energy Consumption Statistics
+Comment[ca]=Estadístiques de consum d'energia
+Comment[es]=Estadísticas de consumo de energía
+Comment[fi]=Energiankulutuksen tilastot
+Comment[hu]=Energiafogyasztási statisztikák
+Comment[nl]=Statistiek van energiegebruik
+Comment[pt]=Estatísticas do Consumo de Energia
+Comment[pt_BR]=Estatística do consumo de energia
+Comment[ru]=Статистика энергопотребления
+Comment[sk]=Štatistiky spotreby energie
+Comment[sl]=Statistika porabe energije
+Comment[sv]=Statistik över energiförbrukning
+Comment[uk]=Статистика споживання електроенергії
+Comment[x-test]=xxEnergy Consumption Statisticsxx
+Comment[zh_CN]=能源消耗统计
+
+X-KDE-Keywords=Battery,Energy,Statistics,History,Power
+X-KDE-Keywords[ca]=Bateria,Energia,Estadístiques,Historial,Potència
+X-KDE-Keywords[es]=Batería,Energía,Estadísticas,Historial,Consumo
+X-KDE-Keywords[fi]=Battery,Energy,Statistics,History,Power,Akku,Energia,Tilastot,Historia,Virta
+X-KDE-Keywords[hu]=Telep,Energia,Statisztika,Előzmény,Energiakezelés
+X-KDE-Keywords[nl]=Batterij,Energie,Statistieken,Geschiedenis
+X-KDE-Keywords[pt]=Bateria,Energia,Estatísticas,Histórico,Potência
+X-KDE-Keywords[pt_BR]=Bateria,Energia,Estatística,Histórico,Potência
+X-KDE-Keywords[ru]=Battery,Energy,Statistics,History,Power,батарея,аккумулятор,статистика,энергия,энергопотребление,электропитание,история,журнал,питание
+X-KDE-Keywords[sk]=Batéria,Energia,Štatistika,História,Napájanie
+X-KDE-Keywords[sl]=baterija,energija,statistika,zgodovina,moč,poraba
+X-KDE-Keywords[sv]=Batteri,Energi,Statistik,historik,Effekt
+X-KDE-Keywords[uk]=Battery,Energy,Statistics,History,Power,акумулятор,енергія,статистика,журнал,живлення,споживання,енергоспоживання
+X-KDE-Keywords[x-test]=xxBatteryxx,xxEnergyxx,xxStatisticsxx,xxHistoryxx,xxPowerxx
+X-KDE-Keywords[zh_CN]=Battery,Energy,Statistics,History,Power,电池,能源,统计,历史,电源
+X-KDE-Weight=2
+
+Categories=Qt;KDE;X-KDE-information;
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/package
^
|
+(directory)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/package/contents
^
|
+(directory)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/package/contents/ui
^
|
+(directory)
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/package/contents/ui/Graph.qml
^
|
@@ -0,0 +1,138 @@
+/*
+ * <one line to give the library's name and an idea of what it does.>
+ * Copyright (C) 2015 David Edmundson <david@davidedmundson.co.uk>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+import QtQuick 2.3
+
+/**
+ * We need to draw a graph, all other libs are not suitable as we are basically
+ * a connected scatter plot with non linear X spacing.
+ * Currently this is not available in kdeclarative nor kqtquickcharts
+ *
+ * We only paint once, so canvas is fast enough for our purposes.
+ * It is designed to look identical to those in ksysguard.
+ */
+
+Canvas
+{
+ width: 500
+ height: 500
+ id: canvas
+ antialiasing: true
+
+ property int xPadding: 45
+ property int yPadding: 25
+
+ property var data //expect an array of QPointF
+
+ property real yMax: 100
+ property real xMax: 100
+ property real yMin: 0
+ property real xMin: 0
+ property real yStep: 20
+
+ property string yUnits: ""
+ property string xUnits: ""
+
+ //internal
+
+ property real plotWidth: width - xPadding *2
+ property real plotHeight: height - yPadding *2
+
+ onDataChanged: {
+ canvas.requestPaint();
+ }
+
+ //take a QPointF
+ function scalePoint(plot) {
+ var scaledX = (plot.x - xMin) * plotWidth / (xMax-xMin);
+ var scaledY = (plot.y - yMin) * plotHeight / (yMax-yMin);
+
+ return Qt.point(xPadding + scaledX,
+ height - yPadding - scaledY);
+ }
+
+ SystemPalette {
+ id: palette;
+ colorGroup: SystemPalette.Active
+ }
+
+
+ onPaint: {
+ var c = canvas.getContext('2d');
+
+ c.clearRect(0,0, width, height)
+
+ //draw the background
+ c.fillStyle = palette.base
+ c.fillRect(xPadding, yPadding, plotWidth, plotHeight);
+
+ //reset for fonts and stuff
+ c.fillStyle = palette.text
+
+ //Draw the lines
+
+ c.lineWidth = 2;
+ c.lineJoin = 'round';
+ c.lineCap = 'round';
+ c.strokeStyle = 'rgba(255, 0, 0, 1)';
+ var gradient = c.createLinearGradient(0,0,0,height);
+ gradient.addColorStop(0, 'rgba(255, 0, 0, 0.2)');
+ gradient.addColorStop(1, 'rgba(255, 0, 0, 0.05)');
+ c.fillStyle = gradient;
+
+ // Draw the line graph
+ c.beginPath();
+ var point = scalePoint(data[0]);
+ c.moveTo(point.x, point.y);
+ for(var i = 1; i < data.length; i ++) {
+ point = scalePoint(data[i])
+ c.lineTo(point.x, point.y);
+ }
+ c.stroke();
+ c.lineTo(point.x, height-yPadding);
+ c.lineTo(xPadding, height-yPadding);
+ c.fill();
+
+ c.closePath()
+
+
+ // Draw the frame on top
+
+ //draw an outline
+ c.strokeStyle = 'rgba(0,0,0,0.02)';
+ c.lineWidth = 1;
+ c.rect(xPadding-1, yPadding-1, plotWidth+2, plotHeight+2);
+
+ // Draw the Y value texts
+ c.fillStyle = palette.text;
+ c.textAlign = "right"
+ c.textBaseline = "middle";
+ for(var i = 0; i <= yMax; i += yStep) {
+ var y = scalePoint(Qt.point(0,i)).y;
+
+ c.fillText(i + canvas.yUnits, xPadding - 10, y);
+
+ //grid line
+ c.moveTo(xPadding,y)
+ c.lineTo(canvas.width - xPadding, y)
+ c.stroke()
+ }
+ }
+}
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/package/contents/ui/main.qml
^
|
@@ -0,0 +1,480 @@
+/***************************************************************************
+ * Copyright (C) 2015 Kai Uwe Broulik <kde@privat.broulik.de> *
+ * *
+ * 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) any later version. *
+ * *
+ * 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, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+import QtQuick 2.2
+import QtQuick.Controls 1.3
+import QtQuick.Layouts 1.1
+
+import org.kde.kquickcontrolsaddons 2.0
+import KCM 1.0
+
+//We need units from it
+import org.kde.plasma.core 2.0 as PlasmaCore
+import org.kde.plasma.extras 2.0 as PlasmaExtras
+
+import org.kde.plasma.workspace.components 2.0 as WorkspaceComponents
+
+Rectangle {
+ id: root
+ property QtObject currentBattery: null
+ property string currentUdi: ""
+ onCurrentBatteryChanged: {
+ if (!currentBattery) {
+ currentBattery = kcm.batteries.get(0)
+ currentUdi = kcm.batteries.udi(0)
+ }
+ }
+
+ SystemPalette { id: sysPal; colorGroup: SystemPalette.Active }
+
+ property bool showWakeUps: true
+ property int historyType: HistoryModel.ChargeType
+
+ readonly property var details: [
+ {
+ title: i18n("Battery"),
+ data: [
+ {label: i18n("Rechargeable"), value: "rechargeable"},
+ {label: i18n("Charge state"), value: "chargeState", modifier: "chargeState"}
+ ]
+ },
+ {
+ title: i18n("Energy"),
+ data: [
+ {label: i18n("Capacity"), value: "capacity", unit: i18n("%"), precision: 0},
+ {label: i18n("Voltage"), value: "voltage", unit: i18nc("Volt", "V"), precision: 2},
+ {label: i18n("Current"), value: "energy", unit: i18nc("Watt-hours", "Wh"), precision: 2},
+ {label: i18n("Last full"), value: "energyFull", unit: i18nc("Watt-hours", "Wh"), precision: 2},
+ {label: i18n("Full design"), value: "energyFullDesign", unit: i18nc("Watt-hours", "Wh"), precision: 2}
+ ]
+ },
+ {
+ title: i18n("System"),
+ data: [
+ {label: i18n("Has power supply"), value: "powerSupply"}
+ ]
+ },
+ {
+ title: i18n("Environment"),
+ data: [
+ {label: i18n("Temperature"), value: "temperature", unit: i18nc("Degree Celsius", "°C"), precision: 2}
+ ]
+ },
+ {
+ title: i18n("Manufacturer"),
+ data: [
+ {label: i18n("Vendor"), value: "vendor"},
+ {label: i18n("Model"), value: "model"},
+ {label: i18n("Serial Number"), value: "serial"}
+ ]
+ }
+ ]
+
+ function modifier_chargeState(value) {
+ switch(value) {
+ case 0: return i18n("Not charging")
+ case 1: return i18n("Charging")
+ case 2: return i18n("Discharging")
+ case 3: return i18n("Fully charged")
+ }
+ }
+
+ Component.onCompleted: {
+ currentBattery = kcm.batteries.get(0)
+ currentUdi = kcm.batteries.udi(0)
+ }
+
+ width: units.gridUnit * 25
+ height: !!currentBattery ? units.gridUnit * 25 : units.gridUnit * 12
+ color: syspal.window
+
+ SystemPalette {
+ id: syspal
+ }
+
+ ScrollView {
+ id: scrollView
+ anchors.fill: parent
+
+ horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
+
+ ColumnLayout {
+ id: column
+
+ width: scrollView.viewport.width
+ spacing: units.largeSpacing
+
+ ScrollView {
+ id: tabView
+ Layout.fillWidth: true
+ Layout.minimumHeight: units.gridUnit * 3
+ Layout.maximumHeight: Layout.minimumHeight
+
+ frameVisible: true
+ visible: kcm.batteries.count > 1
+
+ verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
+
+ Row {
+ Repeater {
+ model: kcm.batteries
+
+ Button {
+ id: button
+ width: height
+ height: tabView.viewport.height
+ checked: model.battery == root.currentBattery
+ checkable: true
+ onClicked: {
+ root.currentUdi = model.udi
+ root.currentBattery = model.battery
+ // override checked property
+ checked = Qt.binding(function() {
+ return model.battery == root.currentBattery
+ })
+
+ showWakeUps = (index === 0)
+ }
+
+ ColumnLayout {
+ anchors {
+ fill: parent
+ margins: units.smallSpacing
+ }
+ spacing: 0
+
+ WorkspaceComponents.BatteryIcon {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ hasBattery: true
+ batteryType: {
+ switch(model.battery.type) {
+ case 3: return "Battery"
+ case 2: return "Ups"
+ case 9: return "Monitor"
+ case 4: return "Mouse"
+ case 5: return "Keyboard"
+ case 1: return "Pda"
+ case 7: return "Phone"
+ default: return "Unknown"
+ }
+ }
+ percent: model.battery.chargePercent
+ //pluggedIn: model.battery.chargeState === 1 // Makes it hard to see
+ }
+
+ ProgressBar { // TODO make progress bar not eat mouse events
+ Layout.fillWidth: true
+ minimumValue: 0
+ maximumValue: 100
+ value: model.battery.chargePercent
+ enabled: button.checked ? false : true
+ }
+ }
+ }
+ }
+ }
+ }
+
+ ColumnLayout {
+ Layout.fillWidth: true
+ spacing: units.smallSpacing
+ visible: !!currentBattery
+
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/package/metadata.desktop
^
|
@@ -0,0 +1,48 @@
+[Desktop Entry]
+Name=Energy Information
+Name[ca]=Informació d'energia
+Name[cs]=Informace o energii
+Name[es]=Información sobre energía
+Name[fi]=Energiatiedot
+Name[hu]=Energiakezelési jellemzők
+Name[nl]=Energie-informatie
+Name[pt]=Informação de Energia
+Name[pt_BR]=Informações de energia
+Name[ru]=Энергопотребление
+Name[sk]=Informácie o energii
+Name[sl]=Podatki o energiji
+Name[sv]=Information om energi
+Name[uk]=Інформація щодо енергоспоживання
+Name[x-test]=xxEnergy Informationxx
+Name[zh_CN]=能源信息
+Comment=Statistics about energy consumption
+Comment[ca]=Estadístiques quant al consum d'energia
+Comment[es]=Estadísticas sobre consumo de energía
+Comment[fi]=Tilastoja energiankulutuksesta
+Comment[hu]=Statisztikák az energiafogyasztásról
+Comment[nl]=Statistiek over energiegebruik
+Comment[pt]=Estatísticas acerca do consumo de energia
+Comment[pt_BR]=Estatística do consumo de energia
+Comment[ru]=Просмотр статистики энергопотребления
+Comment[sk]=Štatistika o spotrebe energie
+Comment[sl]=Statistika porabe energije
+Comment[sv]=Statistik om energiförbrukning
+Comment[uk]=Статистика щодо споживання енергії
+Comment[x-test]=xxStatistics about energy consumptionxx
+Comment[zh_CN]=能源消耗的统计
+Icon=preferences-system-power-management
+Encoding=UTF-8
+Keywords=
+Type=Service
+X-KDE-ParentApp=
+X-KDE-PluginInfo-Author=Kai Uwe Broulik
+X-KDE-PluginInfo-Email=kde@privat.broulik.de
+X-KDE-PluginInfo-License=GPL
+X-KDE-PluginInfo-Name=kcm_energyinfo
+X-KDE-PluginInfo-Version=
+X-KDE-PluginInfo-Website=
+X-KDE-ServiceTypes=Plasma/GenericQml
+X-Plasma-API=declarativeappletscript
+
+X-Plasma-MainScript=ui/main.qml
+X-Plasma-RemoteLocation=
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/statisticsprovider.cpp
^
|
@@ -0,0 +1,202 @@
+/*
+ * <one line to give the library's name and an idea of what it does.>
+ * Copyright (C) 2015 David Edmundson <david@davidedmundson.co.uk>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#include "statisticsprovider.h"
+
+#include <QDebug>
+#include <QDBusArgument>
+#include <QDBusConnection>
+#include <QDBusInterface>
+#include <QDBusMessage>
+#include <QDBusMetaType> // qDBusRegisterMetaType
+#include <QDBusPendingReply>
+
+const QDBusArgument &operator<<(QDBusArgument &argument, const HistoryReply &data)
+{
+ argument.beginStructure();
+ argument << data.time << data.value << data.charging;
+ argument.endStructure();
+ return argument;
+}
+
+const QDBusArgument &operator>>(const QDBusArgument &arg, HistoryReply &attrs)
+{
+ arg.beginStructure();
+ arg >> attrs.time >> attrs.value >> attrs.charging;
+ arg.endStructure();
+ return arg;
+}
+
+StatisticsProvider::StatisticsProvider(QObject *parent) : QObject(parent)
+{
+ m_type = StatisticsProvider::ChargeType;
+ m_duration = 120;
+
+ qDBusRegisterMetaType<HistoryReply>();
+ qDBusRegisterMetaType<QList<HistoryReply> >();
+}
+
+void StatisticsProvider::setDevice(const QString &device)
+{
+ if (device == m_device) {
+ return;
+ }
+
+ m_device = device;
+ Q_EMIT deviceChanged();
+
+ load();
+}
+
+void StatisticsProvider::setDuration(uint duration)
+{
+ if (duration == m_duration) {
+ return;
+ }
+
+ m_duration = duration;
+ Q_EMIT durationChanged();
+
+ load();
+}
+
+void StatisticsProvider::setType(StatisticsProvider::HistoryType type)
+{
+ if (m_type == type) {
+ return;
+ }
+
+ m_type = type;
+ Q_EMIT typeChanged();
+
+ load();
+}
+
+
+void StatisticsProvider::classBegin()
+{
+}
+
+void StatisticsProvider::componentComplete()
+{
+ m_isComplete = true;
+ load();
+}
+
+QVariantList StatisticsProvider::asPoints() const
+{
+ QVariantList points;
+ foreach (const HistoryReply &h, m_values) {
+ points.append(QPointF(h.time, h.value));
+ }
+
+ if (!points.isEmpty()) {
+ points.takeLast();
+ }
+
+ return points;
+}
+
+int StatisticsProvider::count() const
+{
+ return m_values.count();
+}
+
+int StatisticsProvider::firstDataPointTime() const
+{
+ if (m_values.isEmpty()) {
+ return 0;
+ }
+
+ return m_values.first().time;
+}
+
+int StatisticsProvider::lastDataPointTime() const
+{
+ if (m_values.isEmpty()) {
+ return 0;
+ }
+
+ return m_values.last().time;
+}
+
+int StatisticsProvider::largestValue() const
+{
+ if (m_values.isEmpty()) {
+ return 0;
+ }
+
+ int max = 0; // TODO std::max or something?
+ for (auto it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
+ if ((*it).value > max) {
+ max = (*it).value;
+ }
+ }
+ return max;
+}
+
+void StatisticsProvider::refresh()
+{
+ load();
+}
+
+void StatisticsProvider::load()
+{
+ if (!m_isComplete || m_device.isEmpty()) {
+ return;
+ }
+
+ auto msg = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.UPower"),
+ m_device,
+ QStringLiteral("org.freedesktop.UPower.Device"),
+ QStringLiteral("GetHistory"));
+ if (m_type == RateType) {
+ msg << QLatin1String("rate");
+ } else { // m_type must = ChargeType
+ msg << QLatin1String("charge");
+ }
+
+ uint resolution = 100;
+ msg << m_duration << resolution;
+
+ QDBusPendingReply<QList<HistoryReply>> reply = QDBusConnection::systemBus().asyncCall(msg);
+
+ auto *watcher = new QDBusPendingCallWatcher(reply, this);
+ QObject::connect(watcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *watcher) {
+ QDBusPendingReply<QList<HistoryReply>> reply = *watcher;
+ watcher->deleteLater();
+ m_values.clear();
+
+ if (reply.isError()) {
+ qWarning() << "Failed to get device history from UPower" << reply.error().message();
+ return;
+ }
+
+ foreach (const HistoryReply &r, reply.value()) {
+ if (r.value > 0) { //we get back some values which contain no value, possibly to indicate if charging changes, ignore them
+ m_values.prepend(r);
+ }
+ }
+
+ Q_EMIT dataChanged();
+ });
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/statisticsprovider.h
^
|
@@ -0,0 +1,103 @@
+/*
+ * <one line to give the library's name and an idea of what it does.>
+ * Copyright (C) 2015 David Edmundson <david@davidedmundson.co.uk>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifndef STATISTICSPROVIDER_H
+#define STATISTICSPROVIDER_H
+
+#include <QObject>
+#include <QQmlParserStatus>
+#include <QPointF>
+
+struct HistoryReply {
+public:
+ uint time = 0;
+ double value = 0.0;
+ uint charging = 0;
+};
+
+Q_DECLARE_METATYPE(HistoryReply)
+
+class StatisticsProvider : public QObject, public QQmlParserStatus
+{
+ Q_OBJECT
+ Q_INTERFACES(QQmlParserStatus)
+
+ Q_ENUMS(HistoryType)
+
+ Q_PROPERTY(QString device MEMBER m_device WRITE setDevice NOTIFY deviceChanged)
+ Q_PROPERTY(uint duration MEMBER m_duration WRITE setDuration NOTIFY durationChanged)
+ Q_PROPERTY(HistoryType type MEMBER m_type WRITE setType NOTIFY typeChanged)
+
+ Q_PROPERTY(QVariantList points READ asPoints NOTIFY dataChanged)
+ Q_PROPERTY(int count READ count NOTIFY dataChanged)
+ Q_PROPERTY(int firstDataPointTime READ firstDataPointTime NOTIFY dataChanged)
+ Q_PROPERTY(int lastDataPointTime READ lastDataPointTime NOTIFY dataChanged)
+ Q_PROPERTY(int largestValue READ largestValue NOTIFY dataChanged)
+
+public:
+ enum HistoryType {
+ RateType,
+ ChargeType
+ };
+
+ enum HistoryRoles {
+ TimeRole = Qt::UserRole + 1,
+ ValueRole,
+ ChargingRole
+ };
+
+ StatisticsProvider(QObject *parent = Q_NULLPTR);
+
+ void setDevice(const QString &device);
+ void setDuration(uint duration);
+ void setType(HistoryType type);
+
+ void load();
+
+ void classBegin() Q_DECL_OVERRIDE;
+ void componentComplete() Q_DECL_OVERRIDE;
+
+ QVariantList asPoints() const;
+ int count() const;
+
+ int firstDataPointTime() const;
+ int lastDataPointTime() const;
+ int largestValue() const;
+
+Q_SIGNALS:
+ void deviceChanged();
+ void typeChanged();
+ void durationChanged();
+
+ void dataChanged();
+
+public Q_SLOTS:
+ void refresh();
+
+private:
+ QString m_device;
+ HistoryType m_type;
+ uint m_duration; //in seconds
+
+ QList<HistoryReply> m_values;
+ bool m_isComplete = false;
+};
+
+#endif // STATISTICSPROVIDER_H
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/wakeupmodel.cpp
^
|
@@ -0,0 +1,210 @@
+/***************************************************************************
+ * Copyright (C) 2015 Kai Uwe Broulik <kde@privat.broulik.de> *
+ * *
+ * 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) any later version. *
+ * *
+ * 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, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#include "wakeupmodel.h"
+
+#include <QDebug>
+#include <QDBusConnection>
+#include <QDBusPendingReply>
+#include <QDBusMetaType>
+
+#include <KService>
+
+class WakeUpReply {
+public:
+ bool fromUserSpace = false;
+ quint32 id = 0;
+ double wakeUpsPerSecond = 0.0;
+ QString cmdline;
+ QString details;
+};
+
+Q_DECLARE_METATYPE(WakeUpReply)
+
+const QDBusArgument &operator<<(QDBusArgument &argument, const WakeUpReply &data)
+{
+ argument.beginStructure();
+ argument << data.fromUserSpace << data.id << data.wakeUpsPerSecond << data.cmdline << data.details;
+ argument.endStructure();
+ return argument;
+}
+
+const QDBusArgument &operator>>(const QDBusArgument &argument, WakeUpReply &data)
+{
+ argument.beginStructure();
+ argument >> data.fromUserSpace >> data.id >> data.wakeUpsPerSecond >> data.cmdline >> data.details;
+ argument.endStructure();
+ return argument;
+}
+
+static const int s_maximumEntries = 10;
+
+WakeUpModel::WakeUpModel(QObject *parent) : QAbstractListModel(parent)
+{
+ qDBusRegisterMetaType<WakeUpReply>();
+ qDBusRegisterMetaType<QList<WakeUpReply>>();
+
+ if (!QDBusConnection::systemBus().connect(QStringLiteral("org.freedesktop.UPower"),
+ QStringLiteral("/org/freedesktop/UPower/Wakeups"),
+ QStringLiteral("org.freedesktop.UPower.Wakeups"),
+ QStringLiteral("DataChanged"), this,
+ SLOT(reload()))) {
+ qDebug() << "Error connecting to wakeup data changes via dbus";
+ }
+
+ reload();
+}
+
+void WakeUpModel::reload()
+{
+ QDBusPendingReply<QList<WakeUpReply>> reply = QDBusConnection::systemBus().asyncCall(
+ QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.UPower"),
+ QStringLiteral("/org/freedesktop/UPower/Wakeups"),
+ QStringLiteral("org.freedesktop.UPower.Wakeups"),
+ QStringLiteral("GetData"))
+ );
+
+ QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this);
+ QObject::connect(watcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *watcher) {
+ QDBusPendingReply<QList<WakeUpReply>> reply = *watcher;
+ watcher->deleteLater();
+
+ if (reply.isError()) {
+ qWarning() << "Failed to get wakeup statistics from UPower";
+ return;
+ }
+
+ const bool resetModel = m_data.isEmpty();
+
+ if (resetModel) {
+ beginResetModel();
+ }
+
+ m_total = 0.0;
+ m_combinedData.clear();
+ m_data.clear();
+
+ auto values = reply.value();
+
+ for (auto it = values.constBegin(); it != values.constEnd(); ++it) {
+ if (!(*it).fromUserSpace) {
+ continue;
+ }
+ const QString appName = (*it).cmdline.split(QLatin1Char(' '), QString::SkipEmptyParts).first(); // ugly
+ if (!m_combinedData.contains(appName)) {
+ m_combinedData[appName].name = appName;
+ m_combinedData[appName].userSpace = (*it).fromUserSpace;
+ }
+ m_combinedData[appName].wakeUps += (*it).wakeUpsPerSecond;
+ if ((*it).id) {
+ m_combinedData[appName].pid = (*it).id;
+ }
+ if (!(*it).details.isEmpty()) {
+ m_combinedData[appName].details = (*it).details;
+ }
+ m_total += (*it).wakeUpsPerSecond;
+ }
+
+ for (auto it = m_combinedData.begin(); it != m_combinedData.end(); ++it) {
+ const QString &name = (*it).name;
+
+ auto existingService = m_applicationInfo.find(name);
+ if (existingService != m_applicationInfo.end()) {
+ (*it).prettyName = (*existingService).first;
+ (*it).iconName = (*existingService).second;
+ } else {
+ KService::Ptr service = KService::serviceByStorageId(name + ".desktop");
+ if (service) {
+ it->prettyName = service->property("Name", QVariant::Invalid).toString();
+ it->iconName = service->icon();
+
+ m_applicationInfo.insert(name, qMakePair((*it).prettyName, (*it).iconName));
+ } else {
+ // use the app name as fallback icon
+ (*it).iconName = name.split(QLatin1Char('/'), QString::SkipEmptyParts).last().toLower();
+ }
+ }
+
+ m_data.append((*it));
+ }
+
+ m_combinedData.clear();
+
+ std::sort(m_data.begin(), m_data.end(), [](const WakeUpData &a, const WakeUpData &b) {
+ return a.wakeUps > b.wakeUps;
+ });
+
+ emit totalChanged();
+ emit countChanged();
+
+ if (resetModel) {
+ endResetModel();
+ } else {
+ emit dataChanged(index(0, 0), index(s_maximumEntries - 1, 0));
+ }
+ });
+}
+
+QVariant WakeUpModel::data(const QModelIndex &index, int role) const
+{
+ if (index.row() < 0 || index.row() >= m_data.count() || index.row() >= s_maximumEntries) {
+ return QVariant();
+ }
+
+ switch(role) {
+ case PidRole:
+ return m_data.at(index.row()).pid;
+ case NameRole:
+ return m_data.at(index.row()).name;
+ case PrettyNameRole:
+ return m_data.at(index.row()).prettyName;
+ case IconNameRole:
+ return m_data.at(index.row()).iconName;
+ case WakeUpsRole:
+ return m_data.at(index.row()).wakeUps;
+ case PercentRole:
+ return m_data.at(index.row()).percent;
+ case UserSpaceRole:
+ return m_data.at(index.row()).userSpace;
+ case DetailsRole:
+ return m_data.at(index.row()).details;
+ }
+
+ return QVariant();
+}
+
+int WakeUpModel::rowCount(const QModelIndex &parent) const
+{
+ Q_UNUSED(parent);
+ return qMin(m_data.count(), s_maximumEntries);
+}
+
+QHash<int, QByteArray> WakeUpModel::roleNames() const
+{
|
[-]
[+]
|
Added |
kinfocenter-5.3.0.tar.xz/Modules/energy/wakeupmodel.h
^
|
@@ -0,0 +1,83 @@
+/***************************************************************************
+ * Copyright (C) 2015 Kai Uwe Broulik <kde@privat.broulik.de> *
+ * *
+ * 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) any later version. *
+ * *
+ * 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, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#ifndef KCM_ENERGYINFO_WAKEUPMODEL_H
+#define KCM_ENERGYINFO_WAKEUPMODEL_H
+
+#include <QAbstractListModel>
+#include <QHash>
+#include <QList>
+#include <QPair>
+
+class WakeUpData {
+public:
+ uint pid = 0;
+ QString name;
+ QString prettyName;
+ QString iconName;
+ qreal wakeUps = 0.0;
+ qreal percent = 0.0;
+ bool userSpace = false;
+ QString details;
+};
+
+class WakeUpModel : public QAbstractListModel
+{
+ Q_OBJECT
+
+ Q_PROPERTY(int count READ rowCount NOTIFY countChanged)
+ Q_PROPERTY(qreal total READ total NOTIFY totalChanged)
+
+public:
+ explicit WakeUpModel(QObject *parent);
+ virtual ~WakeUpModel() = default;
+
+ enum Roles {
+ PidRole = Qt::UserRole,
+ NameRole,
+ PrettyNameRole = Qt::DisplayRole,
+ IconNameRole = Qt::DecorationRole,
+ WakeUpsRole = Qt::UserRole + 2,
+ PercentRole,
+ UserSpaceRole,
+ DetailsRole
+ };
+
+ qreal total() const { return m_total; }
+
+ QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
+ int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
+ QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
+
+public slots:
+ void reload();
+
+signals:
+ void countChanged();
+ void totalChanged();
+
+private:
+ QList<WakeUpData> m_data;
+ QHash<QString, WakeUpData> m_combinedData;
+ qreal m_total = 0.0;
+ QHash<QString, QPair<QString, QString>> m_applicationInfo;
+
+};
+
+#endif // KCM_ENERGYINFO_WAKEUPMODEL_H
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/info/CMakeLists.txt
^
|
@@ -25,6 +25,10 @@
KF5::KDELibs4Support
${X11_X11_LIB})
+if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+ target_link_libraries(kcm_info devinfo)
+endif()
+
if(KF5Wayland_FOUND)
target_link_libraries(kcm_info KF5::WaylandClient)
endif()
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/info/dma.desktop
^
|
@@ -15,7 +15,6 @@
Name[af]=Dma-kanale
Name[ar]=DMA قنوات
Name[as]=DMA-Channels
-Name[ast]=Canales DMA
Name[be]=Каналы DMA
Name[be@latin]=Kanały DMA
Name[bg]=Канали DMA
@@ -108,7 +107,6 @@
Comment[af]=Dma informasie
Comment[ar]=معلومات DMA
Comment[as]=DMA তথ্য
-Comment[ast]=Información sobre DMA
Comment[be]=Звесткі пра DMA
Comment[be@latin]=Źviestki pra DMA
Comment[bg]=Данни за каналите DMA
@@ -202,6 +200,7 @@
X-KDE-Keywords[bs]=dma,DMA-Kanali, Sistemske informacije
X-KDE-Keywords[ca]=dma,Canals DMA,Informació del sistema
X-KDE-Keywords[ca@valencia]=dma,Canals DMA,Informació del sistema
+X-KDE-Keywords[cs]=dma,kanály DMA,Informace o systému
X-KDE-Keywords[da]=dma,DMA-kanaler,Systeminformation
X-KDE-Keywords[de]=DMA,DMA-Kanäle,Systeminformationen
X-KDE-Keywords[el]=dma,DMA-κανάλια,πληροφορίες συστήματος
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/info/interrupts.desktop
^
|
@@ -15,7 +15,6 @@
Name[af]=Interrupts
Name[ar]=المقاطعات
Name[as]=Interrupts
-Name[ast]=Interrupciones
Name[be]=Перапыненні
Name[be@latin]=Pierarvańni
Name[bg]=Прекъсвания
@@ -108,7 +107,6 @@
Comment[af]=Interrupt informasie
Comment[ar]=معلومات المقاطعات
Comment[as]=Interrupt তথ্য
-Comment[ast]=Información sobre les interrupciones
Comment[be]=Звесткі пра перапыненні
Comment[be@latin]=Źviestki ab pierarvańniach
Comment[bg]=Данни за прекъсванията в системата
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/info/ioports.desktop
^
|
@@ -15,7 +15,6 @@
Name[af]=Io-poorte
Name[ar]=منافذ الإدخال والإخراج
Name[as]=IO-Ports
-Name[ast]=Puertos d'E/S
Name[be]=Парты ўводу/вываду
Name[be@latin]=Porty dla pierasyłańnia źviestak
Name[bg]=Вх./Изх.
@@ -108,7 +107,6 @@
Comment[af]=Io-poort informasie
Comment[ar]=معلومات عن منافذ الإدخال والإخراج
Comment[as]=IO-port তথ্য
-Comment[ast]=Información sobre los puertos d'E/S
Comment[be]=Звесткі пра парты уводу/вываду
Comment[be@latin]=Źviestki pra porty pierasyłańnia
Comment[bg]=Данни за входно-изходните портове
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/info/scsi.desktop
^
|
@@ -14,7 +14,6 @@
Name[af]=Scsi
Name[ar]=SCSI
Name[as]=SCSI
-Name[ast]=SCSI
Name[be]=SCSI
Name[be@latin]=SCSI
Name[bg]=SCSI
@@ -108,7 +107,6 @@
Comment[af]=Scsi informasie
Comment[ar]=معلومات SCSI
Comment[as]=SCSI তথ্য
-Comment[ast]=Información sobre los preseos SCSI
Comment[be]=Звесткі пра SCSI
Comment[be@latin]=Źviestki pra SCSI
Comment[bg]=Данни за шината SCSI
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/info/wayland.desktop
^
|
@@ -10,6 +10,7 @@
X-KDE-ParentApp=kinfocenter
Name=Wayland
+Name[bs]=Wayland
Name[ca]=Wayland
Name[ca@valencia]=Wayland
Name[cs]=Wayland
@@ -42,11 +43,13 @@
Name[sv]=Wayland
Name[tr]=Wayland
Name[uk]=Wayland
+Name[vi]=Wayland
Name[x-test]=xxWaylandxx
Name[zh_CN]=Wayland
Name[zh_TW]=Wayland
Comment=Information about the Wayland Compositor
+Comment[bs]=Informacija o Wayland Compositor
Comment[ca]=Informació quant al compositor Wayland
Comment[ca@valencia]=Informació quant al compositor Wayland
Comment[cs]=Informace o kompozitoru Wayland
@@ -79,11 +82,13 @@
Comment[sv]=Information om Wayland-sammansättning
Comment[tr]=Wayland dizgici hakkında bilgiler
Comment[uk]=Відомості щодо засобу композиції Wayland
+Comment[vi]=Thông tin về Wayland Compositor.
Comment[x-test]=xxInformation about the Wayland Compositorxx
Comment[zh_CN]=关于 Wayland 的信息。
Comment[zh_TW]=關於 Wayland 的資訊
X-KDE-Keywords=Wayland,Compositor,Display,System Information
+X-KDE-Keywords[bs]=Wayland,Compositor,Display,System Information,Prikaz,Sistemske informacije
X-KDE-Keywords[ca]=Wayland,Compositor,Pantalla,Informació del sistema
X-KDE-Keywords[ca@valencia]=Wayland,Compositor,Pantalla,Informació del sistema
X-KDE-Keywords[da]=Wayland,Compositor,Display,System Information
@@ -115,6 +120,7 @@
X-KDE-Keywords[sv]=Wayland,Sammansättning,Bildskärm,Systeminformation
X-KDE-Keywords[tr]=Wayland,Dizgici,Görüntü,Sistem Bilgileri
X-KDE-Keywords[uk]=Wayland,Compositor,Display,System Information,композиція,засіб,дисплей,монітор,відомості щодо системи
+X-KDE-Keywords[vi]=Wayland,Compositor,Display,System Information,Hiển Thị,Thông Tin Hệ Thống
X-KDE-Keywords[x-test]=xxWaylandxx,xxCompositorxx,xxDisplayxx,xxSystem Informationxx
X-KDE-Keywords[zh_CN]=Wayland,Compositor,Display,System Information,显示,系统信息,混成
X-KDE-Keywords[zh_TW]=Wayland,Compositor,Display,System Information
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/info/xserver.desktop
^
|
@@ -14,7 +14,6 @@
Name[af]=X-bediener
Name[ar]=خادم X
Name[as]=X-Server
-Name[ast]=Sirvidor X
Name[be]=Сервер X
Name[be@latin]=Server X
Name[bg]=Сървър X
@@ -96,7 +95,7 @@
Name[uk]=Сервер X
Name[uz]=X-Server
Name[uz@cyrillic]=X-Сервер
-Name[vi]=Trình phục vụ X
+Name[vi]=X-Server
Name[wa]=Sierveu X
Name[xh]=Umncedisi we-X
Name[x-test]=xxX-Serverxx
@@ -107,7 +106,6 @@
Comment[af]=X-bediener informasie
Comment[ar]=معلومات عن خادم X
Comment[as]=X-Server ৰ তথ্য
-Comment[ast]=Información sobre'l sirvidor X
Comment[be]=Звесткі пра сервер X
Comment[be@latin]=Źviestki pra server X
Comment[bg]=Данни за сървъра X
@@ -189,7 +187,7 @@
Comment[uk]=Інформація щодо сервера X
Comment[uz]=X-Server haqida maʼlumot
Comment[uz@cyrillic]=X-Сервер ҳақида маълумот
-Comment[vi]=Thông tin về trình phục vụ X
+Comment[vi]=Thông tin về X-Server
Comment[wa]=Informåcion sol sierveu X
Comment[xh]=Ulwazi lomncedisi we-X
Comment[x-test]=xxX-Server informationxx
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/memory/kcm_memory.desktop
^
|
@@ -13,7 +13,6 @@
Name[af]=Geheue
Name[ar]=الذاكرة
Name[as]=স্মৃতিশক্তি
-Name[ast]=Memoria
Name[be]=Памяць
Name[be@latin]=Pamiać
Name[bg]=Памет
@@ -107,7 +106,6 @@
Comment[af]=Geheue informasie
Comment[ar]=معلومات عن الذاكرة
Comment[as]=স্মৃতিশক্তিৰ তথ্য
-Comment[ast]=Información sobre la memoria
Comment[be]=Звесткі пра памяць
Comment[be@latin]=Źviestki pra pamiać
Comment[bg]=Данни за системната памет
@@ -197,7 +195,7 @@
Comment[zh_TW]=記憶體資訊資訊
X-KDE-Keywords=Memory,RAM,Virtual memory,Physical memory,Shared memory,Swap,System Information
-X-KDE-Keywords[bs]=memorija,RAM,virtuelna memorija,fizička memorija,razmijeniti,informacijski sustav
+X-KDE-Keywords[bs]=Memorija,RAM,virtuelna memorija,fizička memorija,razmijeniti,informacijski sustav
X-KDE-Keywords[ca]=Memòria,RAM,Memòria virtual,Memòria física,Memòria compartida,Swap,Intercanvi,Informació del sistema
X-KDE-Keywords[ca@valencia]=Memòria,RAM,Memòria virtual,Memòria física,Memòria compartida,Swap,Intercanvi,Informació del sistema
X-KDE-Keywords[da]=Hukommelse,RAM,Virtuel hukommelse,fysisk hukommelse,delt hukommelse,Swap,Systeminformation
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/nics/nic.desktop
^
|
@@ -13,7 +13,6 @@
Name[af]=Netwerk Koppelvlakke
Name[ar]=واجهات الشبكة
Name[as]=নে'টৱৰ্ক সংযোগমাধ্যম
-Name[ast]=Interfaces de rede
Name[be]=Сеткавыя інтэрфейсы
Name[be@latin]=Sietkavyja interfejsy
Name[bg]=Мрежа
@@ -106,14 +105,13 @@
Comment[af]=Netwerk koppelvlak informasie
Comment[ar]=معلومات عن واجهات الشبكة
Comment[as]=নে'টৱৰ্ক সংযোগমাধ্যমৰ তথ্য
-Comment[ast]=Información sobre la interface de rede
Comment[be]=Звесткі пра сеткавы інтэрфейс
Comment[be@latin]=Źviestki pra sietkavyja interfejsy
Comment[bg]=Данни за мрежовите интерфейси
Comment[bn]=নেটওয়ার্ক ইন্টারফেস সংক্রান্ত তথ্য
Comment[bn_IN]=নেটওয়ার্ক ইন্টারফেস সংক্রান্ত তথ্য
Comment[br]=Titouroù diwar-benn an etrefasoù rouedad
-Comment[bs]=podaci o mrežnom sučelju
+Comment[bs]=Podaci o mrežnom sučelju
Comment[ca]=Informació de la interfície de xarxa
Comment[ca@valencia]=Informació de la interfície de xarxa
Comment[cs]=Informace o síťových rozhraních
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/opengl/opengl.desktop
^
|
@@ -13,7 +13,6 @@
Name[af]=OpenGL
Name[ar]=OpenGL
Name[as]=OpenGL
-Name[ast]=OpenGL
Name[be]=OpenGL
Name[be@latin]=OpenGL
Name[bg]=OpenGL
@@ -105,7 +104,6 @@
Comment[af]=OpenGL informasie
Comment[ar]=معلومات عن OpenGL
Comment[as]=OpenGL ৰ তথ্য
-Comment[ast]=Información OpenGL
Comment[be]=Звесткі пра OpenGL
Comment[be@latin]=Źviestki pra OpenGL
Comment[bg]=Данни за OpenGL
@@ -197,6 +195,7 @@
X-KDE-Keywords[bs]=OtvoriGl, DRI,GLX,3D,Grafička kartica,Hardversko Ubrzanje,Grafika ,X,X11,Xserver,X-Server,Xbesplatni86,Displej
X-KDE-Keywords[ca]=OpenGL,DRI,GLX,3D,Targeta de vídeo,Acceleració per maquinari,Gràfics,X,X11,Xserver,Servidor X,XFree86,Pantalla
X-KDE-Keywords[ca@valencia]=OpenGL,DRI,GLX,3D,Targeta de vídeo,Acceleració per maquinari,Gràfics,X,X11,Xserver,Servidor X,XFree86,Pantalla
+X-KDE-Keywords[cs]=OpenGL,DRI,GLX,3D,grafická karta,hardwarová akcelerace,grafika,X,X11,Xserver,X-Server,XFree86,obrazovka
X-KDE-Keywords[da]=OpenGL,DRI,GLX,3D,Videokort,grafikkort,Hardwareacceleration,Grafik,X,X11,Xserver,X-Server,XFree86,skærm
X-KDE-Keywords[de]=OpenGL,DRI,GLX,3D,Grafikkarte,Hardware Acceleration,Graphics,X,X11,Xserver,X-Server,XFree86,Display
X-KDE-Keywords[el]=OpenGL,DRI,GLX,3D,VideoCard,επιτάχυνση υλικού,γραφικά,X,X11,Xserver,X-Server,XFree86,οθόνη
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/pci/CMakeLists.txt
^
|
@@ -24,6 +24,9 @@
set(KCM_PCI_LIBS ${KCM_PCI_LIBS} KF5::WaylandClient)
set(KCM_PCI_PART_SRCS ${KCM_PCI_PART_SRCS} ../base/info_wayland.cpp)
endif()
+if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+ set(KCM_PCI_LIBS ${KCM_PCI_LIBS} devinfo)
+endif()
if(PCIUTILS_FOUND)
message(STATUS "Enabling PCI module based on pciutils library")
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/pci/kcm_pci.desktop
^
|
@@ -13,7 +13,6 @@
Name[af]=PCI
Name[ar]=PCI
Name[as]=PCI
-Name[ast]=PCI
Name[be]=PCI
Name[be@latin]=PCI
Name[bg]=PCI
@@ -106,7 +105,6 @@
Comment[af]=PCI informasie
Comment[ar]=معلومات عن PCI
Comment[as]=PCI ৰ তথ্য
-Comment[ast]=Información sobre los preseos PCI
Comment[be]=Звесткі пра PCI
Comment[be@latin]=Źviestki pra PCI
Comment[bg]=Данни за шината PCI
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/samba/smbstatus.desktop
^
|
@@ -13,7 +13,6 @@
Name[af]=Samba Status
Name[ar]=حالة السامبا
Name[as]=Samba ৰ অৱস্থা
-Name[ast]=Estáu de Samba
Name[be]=Стан Samba
Name[be@latin]=Stanovišča słužby „Samba”
Name[bg]=Сървър Samba
@@ -106,7 +105,6 @@
Comment[af]=Samba status monitor
Comment[ar]=مراقب حالة السامبا
Comment[as]=Samba ৰ অৱস্থাৰ নিৰীক্ষণ
-Comment[ast]=Monitor d'estáu de Samba
Comment[be]=Назіральнік стану Samba
Comment[be@latin]=Nazirańnik za stanoviščam słužby „Samba”
Comment[bg]=Данни за състоянието на сървъра Samba
@@ -199,6 +197,7 @@
X-KDE-Keywords[bs]=SMB,SAMBA,Windows umrežavanje,LAN,Sistemske informacije
X-KDE-Keywords[ca]=SMB,SAMBA,Xarxa Windows,LAN,Informació del sistema
X-KDE-Keywords[ca@valencia]=SMB,SAMBA,Xarxa Windows,LAN,Informació del sistema
+X-KDE-Keywords[cs]=SMB,SAMBA,Síť Windows,LAN,Informace o systému
X-KDE-Keywords[da]=SMB,SAMBA,Windows netværk,LAN,Systeminformation
X-KDE-Keywords[de]=SMB,Samba,Windows-Netzwerk,LAN,Systeminformationen
X-KDE-Keywords[el]=SMB,SAMBA,δίκτυο Windows,LAN,πληροφορίες συστήματος
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/usbview/CMakeLists.txt
^
|
@@ -9,7 +9,7 @@
add_library(kcm_usb MODULE ${kcm_usb_PART_SRCS})
-target_link_libraries(kcm_usb KF5::KCMUtils KF5::I18n KF5::KDELibs4Support)
+target_link_libraries(kcm_usb KF5::KCMUtils KF5::I18n)
install(TARGETS kcm_usb DESTINATION ${PLUGIN_INSTALL_DIR} )
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/usbview/kcmusb.desktop
^
|
@@ -13,7 +13,6 @@
Name[af]=USB Toestelle
Name[ar]=أجهزة USB
Name[as]=USB যন্ত্ৰ
-Name[ast]=Preseos USB
Name[be]=USB прылады
Name[be@latin]=Pryłady USB
Name[bg]=Устройства USB
@@ -106,7 +105,6 @@
Comment[af]=USB toestelle gekoppel aan hierdie rekenaar
Comment[ar]=اعرض أجهزة USB الموصولة إلى هذا الحاسوب
Comment[as]=এই কম্পিউটাৰৰ সৈতে সংযুক্ত USB যন্ত্ৰ
-Comment[ast]=Amuesa los preseos USB coneutaos a esti equipu
Comment[be@latin]=Padłučanyja pryłady USB
Comment[bg]=Данни за USB устройствата
Comment[bn]=এই কমপিউটারের সঙ্গে সংযুক্ত ইউ-এস-বি ডিভাইস-এর তালিকা
@@ -187,9 +185,10 @@
Comment[zh_TW]=查看連接到這台電腦的 USB 裝置
X-KDE-Keywords=USB,devices,viewer,control
-X-KDE-Keywords[bs]=usb,uređaji,gledatelj,kontrola
+X-KDE-Keywords[bs]=Usb,uređaji,gledatelj,kontrola
X-KDE-Keywords[ca]=USB,dispositius,visor,control
X-KDE-Keywords[ca@valencia]=USB,dispositius,visor,control
+X-KDE-Keywords[cs]=USB,zařízení,prohlížeč,ovládání
X-KDE-Keywords[da]=USB,enheder,fremviser,kontrol
X-KDE-Keywords[de]=USB,Geräte,Betrachter,Steuerung
X-KDE-Keywords[el]=USB,συσκευές,προβολέας,έλεγχος
@@ -228,6 +227,7 @@
X-KDE-Keywords[sv]=USB,enheter,visning,kontroll
X-KDE-Keywords[tr]=USB,aygıtlar,gösterici,denetim
X-KDE-Keywords[uk]=USB,devices,viewer,control,пристрій,пристрої,перегляд,переглядач,керування,контроль
+X-KDE-Keywords[vi]=USB,thiết bị,xem,điều khiển
X-KDE-Keywords[x-test]=xxUSBxx,xxdevicesxx,xxviewerxx,xxcontrolxx
X-KDE-Keywords[zh_CN]=USB,devices,viewer,control,设备,查看器,控制
X-KDE-Keywords[zh_TW]=USB,devices,viewer,control
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/usbview/usbdb.cpp
^
|
@@ -14,15 +14,18 @@
#include <QFile>
#include <QRegExp>
-//Added by qt3to4:
#include <QTextStream>
-
-#include <kstandarddirs.h>
+#include <QStandardPaths>
+#include <QDebug>
USBDB::USBDB() {
- QString db = "/usr/share/hwdata/usb.ids"; /* on Fedora */
- if (!QFile::exists(db))
- db = KStandardDirs::locate("data", "kcmusb/usb.ids");
+ QString db = "/usr/share/hwdata/usb.ids"; /* on Fedora and Arch*/
+ if (!QFile::exists(db)) {
+ //cannot use locate(AppDataLocation) as the app is kinfocenter
+ db = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kcmusb", QStandardPaths::LocateDirectory);
+ if (!db.isEmpty())
+ db+="/usb.ids";
+ }
if (db.isEmpty())
return;
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/view1394/CMakeLists.txt
^
|
@@ -9,7 +9,7 @@
ki18n_wrap_ui(kcm_view1394_PART_SRCS view1394widget.ui )
-kde4_add_plugin(kcm_view1394 ${kcm_view1394_PART_SRCS})
+add_library(kcm_view1394 MODULE ${kcm_view1394_PART_SRCS})
target_link_libraries(kcm_view1394 KF5::KCMUtils KF5::I18n KF5::KDELibs4Support ${RAW1394_LIBRARIES} )
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/Modules/view1394/kcmview1394.desktop
^
|
@@ -13,7 +13,6 @@
Name[af]=IEEE 1394 toestelle
Name[ar]=أجهزة IEEE 1394
Name[as]=IEEE 1394 যন্ত্ৰ
-Name[ast]=Preseos IEEE 1394
Name[be]=Прылады IEEE 1394
Name[be@latin]=Pryłady IEEE 1394
Name[bg]=Устройства IEEE 1394
@@ -105,7 +104,6 @@
Comment[af]=Gekoppelde IEEE 1394 toestelle
Comment[ar]=أجهزة IEEE 1394 الموصولة
Comment[as]=সংযুক্ত IEEE 1394 যন্ত্ৰ
-Comment[ast]=Preseos IEEE 1394 conectaos
Comment[be@latin]=Padłučanyja pryłady IEEE 1394
Comment[bg]=Свързани устройства IEEE 1394
Comment[bn]=লাগানো IEEE 1394 ডিভাইস-সমূহ
@@ -190,6 +188,7 @@
X-KDE-Keywords[bs]=1394,Firewire,uređaji,gledatelj,kontrola
X-KDE-Keywords[ca]=1394,Firewire,dispositius,visor,control
X-KDE-Keywords[ca@valencia]=1394,Firewire,dispositius,visor,control
+X-KDE-Keywords[cs]=1394,Firewire,zařízení,prohlížeč,ovládání
X-KDE-Keywords[da]=1394,Firewire,enheder,fremviser,kontrol
X-KDE-Keywords[de]=1394,Firewire,Geräte,Betrachter,Steuerung
X-KDE-Keywords[el]=1394,Firewire,συσκευές,προβολέας,έλεγχος
@@ -226,6 +225,7 @@
X-KDE-Keywords[sv]=1394,Firewire,enheter,visning,kontroll
X-KDE-Keywords[tr]=1394,Firewire,aygıtlar,gösterici,denetim
X-KDE-Keywords[uk]=1394,Firewire,devices,viewer,control,пристрій,пристрої,перегляд,переглядач,керування,контроль
+X-KDE-Keywords[vi]=1394,Firewire,thiết bị,trình xem,điều khiển
X-KDE-Keywords[x-test]=xx1394xx,xxFirewirexx,xxdevicesxx,xxviewerxx,xxcontrolxx
X-KDE-Keywords[zh_CN]=1394,Firewire,devices,viewer,control,火线,设备,查看器,控制
X-KDE-Keywords[zh_TW]=1394,Firewire,devices,viewer,control
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/doc/index.docbook
^
|
@@ -20,8 +20,8 @@
</authorgroup>
<legalnotice>&FDLNotice;</legalnotice>
-<date>2013-06-22</date>
-<releaseinfo>&kde; SC 4.11</releaseinfo>
+<date>2015-04-04</date>
+<releaseinfo>Plasma 5.3</releaseinfo>
<abstract>
<para>This documentation describes &kde;’s information center.</para>
@@ -76,7 +76,8 @@
<listitem>
<para>
By pressing <keycombo
-action="simul">&Alt;<keycap>F2</keycap></keycombo>.
+action="simul">&Alt;<keycap>F2</keycap></keycombo> or <keycombo
+action="simul">&Alt;<keycap>Space</keycap></keycombo>.
This will bring up &krunner;. Type
<userinput><command>kinfocenter</command></userinput>, and press &Enter;.
</para>
@@ -117,7 +118,7 @@
<para>
Across the top is a toolbar. The toolbar will provide you with quick
-access to most of &infocenter;’s features like export, get help on the current
+access to most of &infocenter;’s features like get help on the current
module and a help menu.
</para>
@@ -139,14 +140,6 @@
The main panel shows you the system information about the selected module.
</para>
-<!--
-<para>
-In this example, we are running &kde; 2.99, we started &infocenter;
-as user <systemitem class="username">adridg</systemitem>, the computer is
-named <systemitem class="systemname">aramis</systemitem>, it is a
-FreeBSD system, Version 4.4-RELEASE, on a Pentium.
-</para> -->
-
</sect1>
<!--*****************************************************************-->
@@ -156,18 +149,6 @@
<title>The &infocenter; Toolbar</title>
<para>This next section gives you a brief description of what each toolbar item does. </para>
-<!--FIXME not working in 4.11
-<sect2 id="info-center-export-file">
-<title>
-<guimenu>Export</guimenu> button
-</title>
-<para>
-The export button allows you to export information from the current information module if the
-module allows this functionality. Clicking the export button will bring up a file dialog that will allow
-you to choose the location of the file.
-</para>
-</sect2>
--->
<sect2 id="info-center-module-help">
<title>
@@ -214,90 +195,18 @@
<!--****************************************-->
-<sect1 id="kcm_infosummary">
-<title>Summary Information Module</title>
-
-<para>
-The summary information <acronym>KCM</acronym> provides a quick way to display important information.
-The module has three categories; <acronym>OS</acronym> Information, <acronym>CPU</acronym> Information and Hard Drive Information.
-</para>
-<note><para>You may have more than one of these information boxes per category.</para></note>
-
-<sect2 id="osbox">
-<title><acronym>OS</acronym> Information Box</title>
-<para>
-<screenshot>
-<screeninfo>Screenshot of <acronym>OS</acronym> Information box</screeninfo>
- <mediaobject>
- <imageobject>
- <imagedata fileref="os_block.png" format="PNG"/>
- </imageobject>
- <textobject>
- <phrase><acronym>OS</acronym> Information Box</phrase>
- </textobject>
- </mediaobject>
-</screenshot>
-</para><para>
-The <acronym>OS</acronym> information box has the following information:
-</para>
-<itemizedlist>
-<listitem><para><guilabel>OS Version</guilabel>: This is the version information of the Operating System KInfoCenter is present on.</para></listitem>
-<listitem><para><guilabel>KDE Plasma Version</guilabel>: This is the version of the KDE Plasma Workspace KInfoCenter was compiled on.</para></listitem>
-<listitem><para><guilabel>Hostname</guilabel>: This is the hostname of the computer KInfoCenter is present on.</para></listitem>
-</itemizedlist>
-
-</sect2>
-<sect2 id="cpubox">
-
-<title><acronym>CPU</acronym> Information Box</title>
-<para>
-<screenshot>
-<screeninfo>Screenshot of <acronym>CPU</acronym> Information box</screeninfo>
- <mediaobject>
- <imageobject>
- <imagedata fileref="pro_block.png" format="PNG"/>
- </imageobject>
- <textobject>
- <phrase><acronym>CPU</acronym> Information Box</phrase>
- </textobject>
- </mediaobject>
-</screenshot>
-</para><para>
-The <acronym>CPU</acronym> information box has the following information:
-</para>
-<itemizedlist>
-<listitem><para><guilabel>Processor</guilabel>: This is the vendors name for your CPU</para></listitem>
-<listitem><para><guilabel>Processor Number</guilabel>: This is the <acronym>ID</acronym> number of your <acronym>CPU</acronym>, starting from zero.</para></listitem>
-<listitem><para><guilabel>Processor Max Speed</guilabel>: This is the processors maximum speed.</para></listitem>
-</itemizedlist>
+<sect1 id="aboutsystem">
+<title>System Information Module</title>
-</sect2>
+<para>This page shows a brief summary about your system, &ie; your distribution, <guilabel>KDE Plasma Version</guilabel>,
+<guilabel>Qt Version</guilabel>, <guilabel>Kernel Version</guilabel> and <guilabel>OS Type</guilabel>; and in the hardware section
+information about <guilabel>Processors</guilabel> and <guilabel>Memory</guilabel>.</para>
-<sect2 id="hdbox">
-<title>Hard Drive Information Box</title>
-<para>
-<screenshot>
-<screeninfo>Screenshot of Hard Drive Information box</screeninfo>
- <mediaobject>
- <imageobject>
- <imagedata fileref="sto_block.png" format="PNG"/>
- </imageobject>
- <textobject>
- <phrase>Hard Drive Information Box</phrase>
- </textobject>
- </mediaobject>
-</screenshot>
-</para><para>
-The Hard Drive information box has the following information:
-</para>
-<itemizedlist>
-<listitem><para><guilabel>Drive Title</guilabel>: This is the vendors name for the hard drive.</para></listitem>
-<listitem><para><guilabel>Storage Size</guilabel>: This is the current size of your hard drive. </para></listitem>
-<listitem><para><guilabel>Bus</guilabel>: This is the bus your hard drive uses.</para></listitem>
-</itemizedlist>
-</sect2>
+<para>Use the information on this page if you ask for help in support channels or report a bug at
+<ulink url="http://bugs.kde.org">&kde;'s bugtracker</ulink>.</para>
</sect1>
+
<!--****************************************-->
<sect1 id="kcm_memory">
@@ -435,8 +344,8 @@
</sect2>
<sect2 id="udilabel">
<title><acronym>UDI</acronym> Information</title>
-<para>The bottom information panel shows the current selected devices <acronym>UDI</acronym>. This is the unique device identifier.
-The label has the ability to be selected and copied from.</para>
+<para>The bottom information panel shows the current selected devices <acronym>UDI</acronym>. This is the unique device identifier.</para>
+<para>All labels have the ability to be selected and copied from.</para>
</sect2>
</sect1>
@@ -880,6 +789,8 @@
<!--****************************************-->
+<!-- Wayland missing -->
+
</chapter>
<chapter id="credits">
|
|
Changed |
kinfocenter-5.3.0.tar.xz/doc/kinfocenter.png
^
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/infocenter.cpp
^
|
@@ -34,10 +34,10 @@
#include <KActionCollection>
#include <KAboutApplicationDialog>
#include <KMessageBox>
-#include <KUrl>
#include <KToolBar>
//QT
+#include <QUrl>
#include <QProcess>
#include <QTextStream>
#include <QFile>
@@ -72,7 +72,6 @@
//Buttons
connect(m_moduleHelpAction, SIGNAL(triggered(bool)),this,SLOT(helpClickedSlot()));
- connect(m_exportAction, SIGNAL(triggered(bool)),this,SLOT(exportClickedSlot()));
//Menu
connect(m_aboutKcm, SIGNAL(triggered(bool)), this, SLOT(aboutKcmSlot()));
@@ -105,7 +104,6 @@
//Buttons
disconnect(m_moduleHelpAction, SIGNAL(triggered(bool)),this,SLOT(helpClickedSlot()));
- disconnect(m_exportAction, SIGNAL(triggered(bool)),this,SLOT(exportClickedSlot()));
//Menu
disconnect(m_aboutKcm, SIGNAL(triggered(bool)), this, SLOT(aboutKcmSlot()));
@@ -131,10 +129,6 @@
m_aboutKcm->setIcon(QIcon::fromTheme("help-about"));
m_aboutKcm->setEnabled(false);
- m_exportAction = new QAction(this);
- m_exportAction->setText(i18nc("Export button label", "Export"));
- m_exportAction->setIcon(QIcon::fromTheme("document-export"));
-
m_moduleHelpAction = new QAction(this);
m_moduleHelpAction->setText(i18nc("Module help button label", "Module Help"));
m_moduleHelpAction->setIcon(QIcon::fromTheme("help-contextual"));
@@ -142,7 +136,6 @@
m_helpAction = new KActionMenu( QIcon::fromTheme("help-contents"), i18nc("Help button label","Help"), this );
m_helpAction->setDelayed( false );
- actionCollection()->addAction("export", m_exportAction);
actionCollection()->addAction("helpModule", m_moduleHelpAction);
actionCollection()->addAction("helpMenu", m_helpAction);
}
@@ -156,6 +149,7 @@
m_splitter = new QSplitter(m_cWidget);
m_splitter->setContentsMargins(0, 0, 0, 0);
+ m_splitter->setHandleWidth(5);
mainLayout->addWidget(m_splitter);
createMenuFrame();
@@ -219,15 +213,11 @@
if (buttons & KCModule::Help) {
m_moduleHelpAction->setEnabled(true);
}
- if (buttons & KCModule::Export) {
- m_exportAction->setEnabled(true);
- }
}
void KInfoCenter::resetCondition()
{
m_moduleHelpAction->setEnabled(false);
- m_exportAction->setEnabled(false);
m_aboutKcm->setEnabled(false);
}
@@ -237,37 +227,10 @@
// Nicked from Ben, could not use KToolInvocation due to docpath.
QString docPath = m_contain->helpPath();
- KUrl url( KUrl("help:/"), docPath );
+ QUrl url("help:/" + docPath );
QProcess::startDetached("khelpcenter", QStringList() << url.url());
}
-void KInfoCenter::exportClickedSlot()
-{
- QString moduleName = m_contain->name();
-
- if(m_contain->exportText().isEmpty()) {
- KInfoCenter::showError(this,i18n("Export of the module has produced no output."));
- return;
- }
-
- QString fileName = QFileDialog::getSaveFileName(this, QString(moduleName + ".txt"));
- if(fileName.isEmpty()) return;
-
- QFile exportFile(fileName);
-
- if(!exportFile.open(QIODevice::WriteOnly)) {
- KInfoCenter::showError(this,i18n("Unable to open file to write export information"));
- return;
- }
-
- QTextStream exportTextStream( &exportFile );
- exportTextStream << (i18n("Export information for %1", moduleName))
- << "\n\n" << m_contain->exportText() << endl;
-
- exportFile.close();
- KInfoCenter::showError(this, i18n("Information exported"));
-}
-
void KInfoCenter::aboutKcmSlot()
{
KAboutApplicationDialog kcmAboutDialog(*(m_contain->kcmAboutData()));
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/infocenter.h
^
|
@@ -88,11 +88,6 @@
void helpClickedSlot();
/**
- * Triggered when export toolbar action is used.
- */
- void exportClickedSlot();
-
- /**
* Triggered when the about KCM action is used
* in the help menu.
*/
@@ -149,7 +144,6 @@
QAction *m_aboutKcm;
QAction *m_searchAction;
- QAction *m_exportAction;
QAction *m_moduleHelpAction;
KActionMenu *m_helpAction;
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/kcmcontainer.cpp
^
|
@@ -59,11 +59,11 @@
QVBoxLayout *centerWidgetLayout = new QVBoxLayout(m_centerWidget);
centerWidgetLayout->setContentsMargins(0, 0, 0, 0);
- QFont bFont;
- bFont.setBold(true);
+ QFont font;
+ font.setPointSize(qRound(font.pointSize() * 1.4));
m_titleLabel = new QLabel(m_centerWidget);
- m_titleLabel->setFont(bFont);
+ m_titleLabel->setFont(font);
m_titleLabel->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
m_titleLabel->setContentsMargins(style()->pixelMetric(QStyle::PM_DefaultFrameWidth), 0, 0, 0);
m_titleLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
@@ -102,10 +102,7 @@
void KcmContainer::setKcmTitle(const KCModuleInfo &info)
{
- const QString kcmTitle = info.moduleName();
- const QString kcmComment = info.comment();
-
- m_titleLabel->setText(i18n("%1 ( %2 )",kcmTitle,kcmComment));
+ m_titleLabel->setText(info.comment());
}
QString KcmContainer::helpPath() const
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/kinfocenterui.rc
^
|
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<gui xmlns="http://www.kde.org/standards/kxmlgui/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="kinfocenter" version="3" xsi:schemaLocation="http://www.kde.org/standards/kxmlgui/1.0 http://www.kde.org/standards/kxmlgui/1.0/kxmlgui.xsd">
+<gui xmlns="http://www.kde.org/standards/kxmlgui/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="kinfocenter" version="4" xsi:schemaLocation="http://www.kde.org/standards/kxmlgui/1.0 http://www.kde.org/standards/kxmlgui/1.0/kxmlgui.xsd">
<MenuBar>
<Menu name="help">
<Action name="help_about_view" append="about_merge"/>
@@ -8,8 +8,6 @@
</MenuBar>
<ToolBar name="mainToolBar" fullWidth="true" hidden="false" noMerge="1">
<text context="@title:menu">Main Toolbar</text>
- <Action name="export"/>
- <Separator/>
<Action name="helpModule"/>
<Action name="helpMenu"/>
</ToolBar>
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/org.kde.kinfocenter.desktop
^
|
@@ -10,7 +10,6 @@
Name[af]=Inligting Sentrum
Name[ar]=مركز معلومات كدي
Name[as]=KInfoCenter
-Name[ast]=KInfoCenter
Name[be]=KInfoCenter
Name[be@latin]=KInfoCenter
Name[bg]=Информационен център
@@ -100,7 +99,6 @@
GenericName[af]=Inligting Sentrum
GenericName[ar]=مركز المعلومات
GenericName[as]=তথ্য কেন্দ্ৰ
-GenericName[ast]=Centru d'información
GenericName[be]=Цэнтр інфармацыі
GenericName[be@latin]=Infarmacyjny centar
GenericName[bg]=Информационен център
|
[-]
[+]
|
Changed |
kinfocenter-5.3.0.tar.xz/sidepanel.cpp
^
|
@@ -33,6 +33,7 @@
SidePanel::SidePanel(QWidget *parent) : QTreeView(parent)
{
+ setHeaderHidden(true);
setSortingEnabled(true);
setAnimated(true);
sortByColumn(0, Qt::AscendingOrder);
|
[-]
[+]
|
Changed |
kinfocenter.yaml
^
|
@@ -1,5 +1,5 @@
Name : kinfocenter
-Version : 5.2.0
+Version : 5.3.0
Release : 1
Group : System/Base
License : GPLv2+
|