mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-06-30 07:25:51 +00:00
Compare commits
94 Commits
Author | SHA1 | Date | |
---|---|---|---|
7415a6830f | |||
c23846f7b4 | |||
e957a2723b | |||
5369bbda65 | |||
6a8842163e | |||
56e7ee3d11 | |||
ce72c46cd9 | |||
78ab09c1da | |||
498a965488 | |||
d1d4a97fa4 | |||
8f1e8606d4 | |||
b682c6dbd6 | |||
c8bf047e76 | |||
a336d9aa04 | |||
2272b0c2c0 | |||
0533ee8cd5 | |||
be792a4c5a | |||
997e13706b | |||
6bcb6798a2 | |||
4e3593a2a9 | |||
4b471593c7 | |||
695a85be29 | |||
bae34ba898 | |||
93db63b16c | |||
0cd2ff6813 | |||
222db43dc1 | |||
e4be3b2e02 | |||
543e39a7ac | |||
ca60a85241 | |||
2c3c575493 | |||
5f37a9d8c7 | |||
c3420a8393 | |||
5ce3a5c213 | |||
179a97b01b | |||
f0c79a4dab | |||
f56f319075 | |||
f7b7d5b6b4 | |||
3193de1a85 | |||
8cdfdd4e81 | |||
16d7ca2005 | |||
e54ab7e1a5 | |||
a335979830 | |||
8460d07875 | |||
5ec26c7747 | |||
8aafdb6fc4 | |||
9eedaf246f | |||
e7714042bb | |||
0f4bbbfba1 | |||
7069758b73 | |||
bbc9d72606 | |||
b53b1111f9 | |||
64fdc4bebe | |||
583046e195 | |||
71b3a4e6ab | |||
4b90fac0c4 | |||
2fa0acf13d | |||
0f9d2e52ab | |||
373bab14db | |||
7e095c4349 | |||
a4af7ffc07 | |||
0ab4878b22 | |||
1748829901 | |||
6a41fa2b8a | |||
2cd04e1f7f | |||
0a61d926f8 | |||
45c248b101 | |||
6a784d2e28 | |||
13023a4985 | |||
6463ed3bf7 | |||
5bf3847bc9 | |||
4fc2e238bd | |||
c18bb61521 | |||
9e82210463 | |||
171d545562 | |||
c6fa1f2a79 | |||
14cee9dbc7 | |||
5759273e4c | |||
4387bb1e76 | |||
03af5f0e49 | |||
7f6afbcb4d | |||
4a320bc5d6 | |||
29d34525a3 | |||
0ab74b493c | |||
952fa97fcc | |||
677ed1ab5e | |||
deb0b3bdbb | |||
20c85f0d42 | |||
f9a37f0cb2 | |||
0c8013c26b | |||
6b9e19ed58 | |||
432ab694fd | |||
c506183247 | |||
fe822518d5 | |||
1f9e8221f0 |
23
CHANGELOG
23
CHANGELOG
@ -1,3 +1,26 @@
|
||||
Ver.2.1.0:
|
||||
+ add support of custom scripts
|
||||
+ add support of desktop preview to DP
|
||||
+ add bar support
|
||||
+ add autoupdate function
|
||||
- remove custom command
|
||||
- fix #34
|
||||
* fix notifications
|
||||
* rewrite UI to KDE standards
|
||||
* fix margins on graphical objects
|
||||
* rewrite DP abd DE to use library calls
|
||||
* edit GPU properties definition
|
||||
* edit regexp matching
|
||||
|
||||
Ver.2.0.5:
|
||||
+ add tooltip bottom (#30)
|
||||
* fix network interface update
|
||||
* fix battery tooltip bug
|
||||
* edit DP layout (#31)
|
||||
|
||||
Ver.2.0.4:
|
||||
* more correct work with batteries
|
||||
|
||||
Ver.2.0.3:
|
||||
+ add support of several $bat tags
|
||||
* edit layout
|
||||
|
23
CHANGELOG-RU
23
CHANGELOG-RU
@ -1,3 +1,26 @@
|
||||
Вер.2.1.0:
|
||||
+ добавлена функция автообновления
|
||||
+ добавлена поддерка кастомных скриптов
|
||||
+ добавлена поддержка превью рабочего стола для DP
|
||||
+ добавлена поддержка баров
|
||||
- удалена поддержка кастомных команд
|
||||
- фикс #34
|
||||
* исправлены уведомления
|
||||
* переписан UI в соответствии со стандартами KDE
|
||||
* исправлены границы для графических объектов
|
||||
* переписан DP и DE на использование библиотечных функций
|
||||
* изменено определение свойств GPU
|
||||
* изменен поиск регулярных выражений
|
||||
|
||||
Вер.2.0.5:
|
||||
+ добавлен нижний край к тултипу (#30)
|
||||
* исправлен баг с обновлением сетевого интерфейса
|
||||
* исправлен баг с тултипом батареи
|
||||
* отредактирована разметка DP (#31)
|
||||
|
||||
Вер.2.0.4:
|
||||
* более корректная работа с батареями
|
||||
|
||||
Вер.2.0.3:
|
||||
+ добавлена поддержка нескольких тегов $bat
|
||||
* отредактирована разметка
|
||||
|
6
PKGBUILD
6
PKGBUILD
@ -1,8 +1,8 @@
|
||||
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
||||
# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
|
||||
|
||||
pkgname=kdeplasma-applets-awesome-widgets
|
||||
_pkgname=awesome-widgets
|
||||
pkgver=2.0.3
|
||||
pkgver=2.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Collection of minimalistic Plasmoids which look like Awesome WM widgets (ex-PyTextMonitor)"
|
||||
arch=('i686' 'x86_64')
|
||||
@ -19,7 +19,7 @@ optdepends=("amarok: for music player monitor"
|
||||
makedepends=('automoc4' 'cmake')
|
||||
source=(https://github.com/arcan1s/awesome-widgets/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||
install=${pkgname}.install
|
||||
md5sums=('238e8418672b92bca0ac8431c6f085fb')
|
||||
md5sums=('37d9ad08b2b4623d2ab9089facf4b5ff')
|
||||
backup=('usr/share/config/extsysmon.conf')
|
||||
|
||||
prepare() {
|
||||
|
40
PKGBUILD-git
Normal file
40
PKGBUILD-git
Normal file
@ -0,0 +1,40 @@
|
||||
# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
|
||||
|
||||
pkgname=kdeplasma-applets-awesome-widgets
|
||||
_pkgname=awesome-widgets
|
||||
pkgver=2.0.5
|
||||
pkgrel=1
|
||||
pkgdesc="Collection of minimalistic Plasmoids which look like Awesome WM widgets (ex-PyTextMonitor)"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://arcanis.name/projects/awesome-widgets"
|
||||
license=('GPL3')
|
||||
depends=('kdebase-workspace' 'lm_sensors')
|
||||
optdepends=("amarok: for music player monitor"
|
||||
"clementine: for music player monitor"
|
||||
"catalyst: for GPU monitor"
|
||||
"hddtemp: for HDD temperature monitor"
|
||||
"mpd: for music player monitor"
|
||||
"nvidia-utils: for GPU monitor"
|
||||
"qmmp: for music player monitor")
|
||||
makedepends=('automoc4' 'cmake')
|
||||
source=(${_pkgname}::git+https://github.com/arcan1s/awesome-widgets/)
|
||||
md5sums=('SKIP')
|
||||
backup=('usr/share/config/extsysmon.conf')
|
||||
|
||||
prepare() {
|
||||
rm -rf "${srcdir}/build"
|
||||
mkdir "${srcdir}/build"
|
||||
}
|
||||
|
||||
build () {
|
||||
cd "${srcdir}/build"
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) \
|
||||
"../${_pkgname}/sources"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
255
README.md
255
README.md
@ -4,246 +4,22 @@ awesome-widgets (ex-pytextmonitor)
|
||||
Information
|
||||
-----------
|
||||
|
||||
A collection of minimalistic widgets which looks like Awesome WM widgets.
|
||||
A collection of minimalistic widgets which looks like Awesome Window Manager widgets.
|
||||
|
||||
**NOTE** [LOOKING FOR TRANSLATORS!](https://github.com/arcan1s/awesome-widgets/issues/14)
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
Features
|
||||
========
|
||||
|
||||
For edited output you must open Settings window and setup output format in lines:
|
||||
* easy and fully configurable native Plasma widget which may be used as Conky widget or as Awesome-like information panel
|
||||
* panel which shows active desktop status
|
||||
* clear Conky-like configuration with html tags support
|
||||
* custom command support (it may be simple action as well as special custom tag)
|
||||
* graphical item support - tooltips, bars
|
||||
|
||||
* tag `$time` - time in default format. For example, *fri Nov 6 04:48:01 2013*
|
||||
* tag `$isotime` - time in iso format
|
||||
* tag `$shorttime` - time in short locale format
|
||||
* tag `$longtime` - time in long locale format
|
||||
* tag `$ctime` - custom time format
|
||||
* tag `$uptime` - uptime, *---d--h--m*
|
||||
* tag `$cuptime` - custom uptime format
|
||||
* tag `$cpu` - total load cpu, *%*
|
||||
* tag `$cpuN` - load CPU for core N, *%*
|
||||
* tag `$cpucl` - average cpu clock, *MHz*
|
||||
* tag `$cpuclN` - cpu clock for core N, *MHz*
|
||||
* tag `$tempN` - temperature for device N. For example, `$temp0`
|
||||
* tag `$fanN` - fan speed for device N. For example, `$fan0`
|
||||
* tag `$gpu` - GPU usage, *%*. `aticonfig` or `nvidia-smi` must be installed
|
||||
* tag `$gputemp` - GPU temperature. `aticonfig` or `nvidia-smi` must be installed
|
||||
* tag `$mem` - usage memory, *%*
|
||||
* tag `$memmb` - usage memory, *MB*
|
||||
* tag `$memgb` - usage memory, *GB*
|
||||
* tag `$memfreemb` - free RAM, *MB*
|
||||
* tag `$memfreegb` - free RAM, *GB*
|
||||
* tag `$memtotmb` - total RAM, *MB*
|
||||
* tag `$memtotgb` - total RAM, *GB*
|
||||
* tag `$memusedmb` - used and cached RAM, *MB*
|
||||
* tag `$memusedgb` - used and cached RAM, *GB*
|
||||
* tag `$swap` - swap, *%*
|
||||
* tag `$swapmb` - swap, *MB*
|
||||
* tag `$swapgb` - swap, *GB*
|
||||
* tag `$swapfreemb` - free swap, *MB*
|
||||
* tag `$swapfreegb` - free swap, *GB*
|
||||
* tag `$swaptotmb` - total swap, *MB*
|
||||
* tag `$swaptotgb` - total swap, *GB*
|
||||
* tag `$hddN` - usage for mount point N, *%*. For example, `$hdd0`
|
||||
* tag `$hddmbN` - usage for mount point N, *MB*. For example, `$hddmb0`
|
||||
* tag `$hddgbN` - usage for mount point N, *GB*. For example, `$hddgb0`
|
||||
* tag `$hddfreembN` - free space for mount point N, *MB*. For example, `$hddfreemb0`
|
||||
* tag `$hddfreegbN` - free space for mount point N, *GB*. For example, `$hddfreegb0`
|
||||
* tag `$hddtotmbN` - total size of mount point N, *MB*. For example, `$hddtotmb0`
|
||||
* tag `$hddtotgbN` - total size of mount point N, *GB*. For example, `$hddtotgb0`
|
||||
* tag `$hddrN` - read speed of disk N, *KB/s*. For example, `$hddr0`
|
||||
* tag `$hddwN` - write speed of disk N, *KB/s*. For example, `$hddw0`
|
||||
* tag `$hddtempN` - temperature for HDD N. For example, `$hddtemp0`
|
||||
* tag `$down` - download speed, *KB/s*
|
||||
* tag `$up` - upload speed, *KB/s*
|
||||
* tag `$netdev` - current network device
|
||||
* tag `$batN` - battery N charge, *%*. `$bat0` is average value
|
||||
* tag `$ac` - status AC device. Return (\*) if AC device is online or *( )* if offline
|
||||
* tag `$album` - current song album. One of supported music players must be installed
|
||||
* tag `$artist` - current song artist. One of supported music players must be installed
|
||||
* tag `$duration` - current song duration. One of supported music players must be installed
|
||||
* tag `$progress` - current song progress. One of supported music players must be installed
|
||||
* tag `$title` - current song title. One of supported music players must be installed
|
||||
* tag `$pscount` - number of running processes
|
||||
* tag `$pstotal` - total number of processes
|
||||
* tag `$ps` - list of running processes
|
||||
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0`
|
||||
* tag `$customN` - returns output for custom command N. For example, `$custom0`
|
||||
* tag `$desktop` - name of the current desktop
|
||||
* tag `$ndesktop` - number of the current desktop
|
||||
* tag `$tdesktops` - total number of desktops
|
||||
See [links](#Links) for more details.
|
||||
|
||||
Tips & tricks
|
||||
-------------
|
||||
|
||||
You may use different colors for labels. Just put label text into html code. See [issue](https://github.com/arcan1s/awesome-widgets/issues/9) for more details.
|
||||
|
||||
Numbering of elements of temperature, HDD usage, HDD speed, HDD temperature refers to elements order from second tab (*Advanced settings*). You should add item to the required listWidget first. And the first element in the listWidget will be `$tag0`. See [issue](https://github.com/arcan1s/awesome-widgets/issues/17) for more details.
|
||||
|
||||
Advanced settings
|
||||
-----------------
|
||||
|
||||
**Enable background**
|
||||
|
||||
Uncheck to disable default background and set transparent one.
|
||||
|
||||
**Enable popup**
|
||||
|
||||
Uncheck box if you do not use popup messages.
|
||||
|
||||
**Custom time**
|
||||
|
||||
* tag `$dddd` - weekday in long format
|
||||
* tag `$ddd` - weekday in short format
|
||||
* tag `$dd` - day
|
||||
* tag `$d` - day without zero
|
||||
* tag `$MMMM` - month in long format
|
||||
* tag `$MMM` - month in short format
|
||||
* tag `$MM` - month
|
||||
* tag `$M` - month without zero
|
||||
* tag `$yyyy` - year
|
||||
* tag `$yy` - year in short format
|
||||
* tag `$hh` - hours
|
||||
* tag `$h` - hours without zero
|
||||
* tag `$mm` - minutes
|
||||
* tag `$m` - minutes without zero
|
||||
* tag `$ss` - seconds
|
||||
* tag `$s` - seconds without zero
|
||||
|
||||
**Custom uptime**
|
||||
|
||||
* tag `$dd` - uptime days
|
||||
* tag `$d` - uptime days without zero
|
||||
* tag `$hh` - uptime hours
|
||||
* tag `$h` - uptime hours without zero
|
||||
* tag `$mm` - uptime minutes
|
||||
* tag `$m` - uptime minutes without zero
|
||||
|
||||
**Temperature units**
|
||||
|
||||
Select units for temperature. Available units are Celsius, Farenheit, Kelvin, Reaumur, cm^-1, kJ/mol, kcal/mol.
|
||||
|
||||
**Temperature devices**
|
||||
|
||||
List of devices, which will be observed in temp label (items come from `sensors`). List widget is editable,
|
||||
|
||||
**Mount points**
|
||||
|
||||
List of mount points, which will be observed in hdd label (items come from `mount`). List widget is editable.
|
||||
|
||||
**HDD (speed)**
|
||||
|
||||
List of hard disk devices, which will be observed in hddspeed label (items come from DataEngine). List widget is editable.
|
||||
|
||||
**HDD (temperature)**
|
||||
|
||||
List of hard disk devices, which will be observed in hddtemp label (items come from `find`). List widget is editable.
|
||||
|
||||
**Network device**
|
||||
|
||||
Use specified device as active. Will disable auto select network device.
|
||||
|
||||
**AC online tag**
|
||||
|
||||
Line which will be shown when AC is online.
|
||||
|
||||
**AC offline tag**
|
||||
|
||||
Line which will be shown when AC is offline.
|
||||
|
||||
Tooltip settings
|
||||
----------------
|
||||
|
||||
Since version 1.7.0 CPU, CPU clock, memory, swap and network labels support graphical tooltip. To enable them just make the needed checkboxes a fully checked. The number of stored values can be set in the tab. Colors of graphs are configurable too.
|
||||
|
||||
DataEngine settings
|
||||
-------------------
|
||||
|
||||
**ACPI path**
|
||||
|
||||
Path to APCI devices. Default is `/sys/class/power_supply/`.
|
||||
|
||||
**Custom command**
|
||||
|
||||
Commands, which will be run for custom label.
|
||||
|
||||
**Desktop cmd**
|
||||
|
||||
Type a command which will be run for desktop DataEngine. Default is `qdbus org.kde.kwin /KWin currentDesktop`.
|
||||
|
||||
**GPU device**
|
||||
|
||||
Select one of supported GPU devices. `auto` will enable auto selection, `disable` will disable definition of GPU states. Default is `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Select one of HDDs for HDD temperature monitor. `all` will enable monitor for all devices, `disable` will disable definition of HDD temperature. Default is `all`.
|
||||
|
||||
**hddtemp cmd**
|
||||
|
||||
Type a command which will be run for hddtemp DataEngine. Default is `sudo hddtemp`.
|
||||
|
||||
**MPD address**
|
||||
|
||||
Address of MPD server. Default is `localhost`.
|
||||
|
||||
**MPD port**
|
||||
|
||||
Port of MPD server. Default is `6600`.
|
||||
|
||||
**MPRIS player name**
|
||||
|
||||
MPRIS player name. The DBus interface of an music player should be enabled. Default is `auto`.
|
||||
|
||||
**Package manager**
|
||||
|
||||
List of commands, which will be run. Number of null lines is a number of unneeded lines. Defaults:
|
||||
|
||||
* *Arch*: `PKGCMD=pacman -Qu`, `PKGNULL=0`
|
||||
* *Debian*: `PKGCMD=apt-show-versions -u -b`, `PKGNULL=0`
|
||||
* *Ubuntu*: `PKGCMD=aptitude search '~U'`, `PKGNULL=0`
|
||||
* *Fedora*: `PKGCMD=yum list updates`, `PKGNULL=3`
|
||||
* *FreeBSD*: `PKGCMD=pkg_version -I -l '<'`, `PKGNULL=0`
|
||||
* *Mandriva*: `PKGCMD=urpmq --auto-select`, `PKGNULL=0`
|
||||
|
||||
**Music player**
|
||||
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
Desktop panel
|
||||
=================
|
||||
|
||||
Since version 1.11.0 it provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
|
||||
|
||||
Desktop panel configuration
|
||||
---------------------------
|
||||
|
||||
**Enable background**
|
||||
|
||||
Uncheck to disable default background and set transparent one.
|
||||
|
||||
**Vertical layout**
|
||||
|
||||
Use vertical layout instead of horizontal one.
|
||||
|
||||
**Add stretch**
|
||||
|
||||
Add stretch (spacer) to the selected side of the widget.
|
||||
|
||||
**Mark**
|
||||
|
||||
Type symbol (or string) which will be shown if this desktop is active now.
|
||||
|
||||
**Pattern tags**
|
||||
|
||||
* tag `$mark` - show mark if this desktop is active
|
||||
* tag `$name` - name of the current desktop
|
||||
* tag `$number` - number of the current desktop
|
||||
* tag `$total` - total number of desktops
|
||||
|
||||
**Command**
|
||||
|
||||
Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
|
||||
**Didn't find required feature?** [Just ask for it!](https://github.com/arcan1s/awesome-widgets/issues)
|
||||
|
||||
Instruction
|
||||
===========
|
||||
@ -252,16 +28,14 @@ Dependencies
|
||||
------------
|
||||
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (*for definition temperature device*)
|
||||
|
||||
Optional dependencies
|
||||
---------------------
|
||||
|
||||
* sysstat (*for notification*)
|
||||
* proprietary video driver
|
||||
* hddtemp (make sure that it may be run with `sudo` without password. Just add following line to `/etc/sudoers`: `$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp`)
|
||||
* music player (amarok, clementine, mpd or qmmp)
|
||||
* hddtemp
|
||||
* music player (mpd or supported MPRIS)
|
||||
|
||||
Make dependencies
|
||||
-----------------
|
||||
@ -291,13 +65,14 @@ Additional information
|
||||
TODO (wish list)
|
||||
----------------
|
||||
|
||||
* 3rdpatry modules support (C++, Python and Shell modules in the plan)
|
||||
* graphical bars support
|
||||
See [milestones](https://github.com/arcan1s/awesome-widgets/milestones) for more details.
|
||||
|
||||
Links
|
||||
-----
|
||||
|
||||
* [Homepage](http://arcanis.name/projects/awesome-widgets/)
|
||||
* [Migration to 2.*](http://arcanis.name/en/2014/09/04/migration-to-v2/)
|
||||
* [Scripts and bars](http://arcanis.name/en/2014/12/19/aw-v21-bells-and-whistles/)
|
||||
* Plasmoid on [kde-look](http://kde-look.org/content/show.php/Awesome+Widgets?content=157124)
|
||||
* DataEngine on [kde-look](http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773)
|
||||
* Archlinux [AUR](https://aur.archlinux.org/packages/kdeplasma-applets-awesome-widgets/) package
|
||||
|
@ -1,9 +1,5 @@
|
||||
post_install() {
|
||||
kbuildsycoca4 > /dev/null 2>&1
|
||||
cat << __EOF
|
||||
To migrate to version 2.* and newer see this article:
|
||||
http://arcanis.name/en/2014/09/04/migration-to-v2/
|
||||
__EOF
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
|
218
sources/3rdparty/about/about.ui
vendored
Normal file
218
sources/3rdparty/about/about.ui
vendored
Normal file
@ -0,0 +1,218 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>About</class>
|
||||
<widget class="QWidget" name="About">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>450</width>
|
||||
<height>359</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_About">
|
||||
<attribute name="title">
|
||||
<string>About</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea_about">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents_about">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>418</width>
|
||||
<height>284</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_name">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_version">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_description">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignJustify|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_links">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_about">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_ackn">
|
||||
<attribute name="title">
|
||||
<string>Acknowledgement</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea_ackn">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents_ackn">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>418</width>
|
||||
<height>284</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_translators">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_trdparty">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_ackn">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>229</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_license">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
2
sources/3rdparty/tasks
vendored
2
sources/3rdparty/tasks
vendored
Submodule sources/3rdparty/tasks updated: f78c18d381...230bdecd2c
@ -6,13 +6,20 @@ cmake_policy (SET CMP0011 NEW)
|
||||
cmake_policy (SET CMP0015 NEW)
|
||||
|
||||
project (awesome-widgets)
|
||||
set (PROJECT_AUTHOR "Evgeniy Alekseev")
|
||||
set (PROJECT_CONTACT "esalexeev@gmail.com")
|
||||
set (PROJECT_LICENSE "GPLv3")
|
||||
set (PROJECT_VERSION_MAJOR 2)
|
||||
set (PROJECT_VERSION_MINOR 0)
|
||||
set (PROJECT_VERSION_PATCH 3)
|
||||
set (PROJECT_VERSION_MINOR 1)
|
||||
set (PROJECT_VERSION_PATCH 0)
|
||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||
set (PROJECT_TRDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty)
|
||||
|
||||
string (TIMESTAMP CURRENT_DATE "%Y-%m-%d %H:%M" UTC)
|
||||
string (TIMESTAMP CURRENT_YEAR "%Y")
|
||||
|
||||
message (STATUS "Project: ${PROJECT_NAME}")
|
||||
message (STATUS "Version: ${PROJECT_VERSION}")
|
||||
message (STATUS "Build date: ${CURRENT_DATE}")
|
||||
|
||||
# flags
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
@ -23,6 +30,9 @@ else ()
|
||||
message (STATUS "Unknown compiler")
|
||||
endif ()
|
||||
|
||||
add_subdirectory (awesome-widget)
|
||||
configure_file (${CMAKE_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
||||
set (PROJECT_TRDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty)
|
||||
|
||||
add_subdirectory (ext-sysmon)
|
||||
add_subdirectory (awesome-widget)
|
||||
add_subdirectory (desktop-panel)
|
||||
|
@ -15,16 +15,20 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||
${KDE4_INCLUDES}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../
|
||||
${PROJECT_TRDPARTY_DIR})
|
||||
${PROJECT_TRDPARTY_DIR}
|
||||
../ext-sysmon
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../ext-sysmon)
|
||||
|
||||
# set sources
|
||||
file (GLOB SUBPROJECT_DESKTOP_IN *.desktop)
|
||||
file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN})
|
||||
file (GLOB_RECURSE SUBPROJECT_SOURCE *.cpp ${PROJECT_TRDPARTY_DIR}/task/*.cpp
|
||||
${PROJECT_TRDPARTY_DIR}/fontdialog/*.cpp)
|
||||
${PROJECT_TRDPARTY_DIR}/fontdialog/*.cpp
|
||||
../ext-sysmon/extscript.cpp)
|
||||
set (TASK_HEADER ${PROJECT_TRDPARTY_DIR}/task/task.h)
|
||||
file (GLOB SUBPROJECT_UI *.ui)
|
||||
file (GLOB SUBPROJECT_UI *.ui ${PROJECT_TRDPARTY_DIR}/about/*.ui)
|
||||
file (GLOB SUBPROJECT_NOTIFY *.notifyrc)
|
||||
set (SUBPROJECT_DESKTOPS ${CMAKE_CURRENT_SOURCE_DIR}/desktops)
|
||||
|
||||
# prepare
|
||||
configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP})
|
||||
@ -39,3 +43,4 @@ target_link_libraries (${PLUGIN_NAME} ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${K
|
||||
install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR})
|
||||
install (FILES ${SUBPROJECT_NOTIFY} DESTINATION ${DATA_INSTALL_DIR}/${PLUGIN_NAME})
|
||||
install (DIRECTORY ${SUBPROJECT_DESKTOPS} DESTINATION ${DATA_INSTALL_DIR}/${PLUGIN_NAME})
|
||||
|
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>700</width>
|
||||
<height>594</height>
|
||||
<height>588</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@ -41,39 +41,88 @@
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>677</width>
|
||||
<height>677</height>
|
||||
<y>-250</y>
|
||||
<width>675</width>
|
||||
<height>822</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_background">
|
||||
<property name="text">
|
||||
<string>Enable background</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QHBoxLayout" name="layout_popup">
|
||||
<item>
|
||||
<spacer name="spacer_popup">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_popup">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable popup on mouse click</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_popup">
|
||||
<property name="text">
|
||||
<string>Enable popup on mouse click</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QHBoxLayout" name="layout_background">
|
||||
<item>
|
||||
<spacer name="spacer_background">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_background">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable background</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_timeFormat">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_timeFormat">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Custom time format</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -96,9 +145,6 @@ $m - minutes w\o zero
|
||||
$ss - seconds
|
||||
$s - seconds w\o zero</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@ -107,15 +153,18 @@ $s - seconds w\o zero</string>
|
||||
<layout class="QHBoxLayout" name="layout_uptimeFormat">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_uptimeFormat">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Custom uptime format</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -128,9 +177,6 @@ $h - uptime hours without zero
|
||||
$mm - uptime minutes
|
||||
$m - uptime minutes without zero</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@ -139,38 +185,16 @@ $m - uptime minutes without zero</string>
|
||||
<layout class="QHBoxLayout" name="layout_tempUnits">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tempUnits">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Temperature units</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_tempUnits">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_tempUnits">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Celsius</string>
|
||||
@ -334,15 +358,12 @@ $m - uptime minutes without zero</string>
|
||||
<layout class="QHBoxLayout" name="layout_netdev">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_netdev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Disable auto select device and set specified device</string>
|
||||
</property>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Set network device</string>
|
||||
</property>
|
||||
@ -350,12 +371,6 @@ $m - uptime minutes without zero</string>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_netdev">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
@ -367,15 +382,18 @@ $m - uptime minutes without zero</string>
|
||||
<layout class="QHBoxLayout" name="layout_acOnline">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_acOnline">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AC online tag</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -386,9 +404,6 @@ $m - uptime minutes without zero</string>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@ -397,15 +412,18 @@ $m - uptime minutes without zero</string>
|
||||
<layout class="QHBoxLayout" name="layout_acOffline">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_acOffline">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AC offline tag</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -416,8 +434,77 @@ $m - uptime minutes without zero</string>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="layout_bars">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_barsAdd">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_bars">
|
||||
<property name="text">
|
||||
<string>Bars</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_bars">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_bars">
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget_bars">
|
||||
<property name="contextMenuPolicy">
|
||||
<enum>Qt::CustomContextMenu</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_updates">
|
||||
<item>
|
||||
<spacer name="spacer_updates">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_updates">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Check for updates</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -51,41 +51,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_interval">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_interval">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Time interval</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_interval">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_interval">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_interval">
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
@ -106,30 +81,14 @@
|
||||
<layout class="QHBoxLayout" name="layout_font">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_font">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_font">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFontComboBox" name="fontComboBox">
|
||||
<property name="minimumSize">
|
||||
@ -146,41 +105,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_size">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_size">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_size">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_size">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_size">
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
@ -201,39 +135,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_color">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_color">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font color</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_color">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -241,38 +152,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_style">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_style">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font style</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_style">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_style">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">normal</string>
|
||||
@ -291,41 +180,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_weight">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_weight">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font weight</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_weight">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>19</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_weight">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_weight">
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
</property>
|
||||
|
@ -25,14 +25,20 @@
|
||||
#include <QGraphicsProxyWidget>
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsView>
|
||||
#include <QMessageBox>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkInterface>
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
#include <QProcessEnvironment>
|
||||
#include <QTextCodec>
|
||||
#include <QTimer>
|
||||
|
||||
#include "customlabel.h"
|
||||
#include "graphicalitem.h"
|
||||
#include <pdebug/pdebug.h>
|
||||
#include <task/taskadds.h>
|
||||
#include "version.h"
|
||||
|
||||
|
||||
AwesomeWidget::AwesomeWidget(QObject *parent, const QVariantList &args)
|
||||
@ -62,6 +68,16 @@ AwesomeWidget::~AwesomeWidget()
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::checkUpdates()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
|
||||
connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyRecieved(QNetworkReply *)));
|
||||
manager->get(QNetworkRequest(QUrl(VERSION_API)));
|
||||
}
|
||||
|
||||
|
||||
QList<QAction *> AwesomeWidget::contextualActions()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
@ -83,9 +99,12 @@ void AwesomeWidget::createActions()
|
||||
connect(contextMenu[1], SIGNAL(triggered(bool)), this, SLOT(showReadme()));
|
||||
contextMenu.append(new QAction(QIcon::fromTheme(QString("stock-refresh")),
|
||||
i18n("Update text"), this));
|
||||
connect(contextMenu[2], SIGNAL(triggered(bool)), this, SLOT(updateNetworkDevice()));
|
||||
connect(contextMenu[2], SIGNAL(triggered(bool)), extsysmonEngine, SLOT(updateAllSources()));
|
||||
connect(contextMenu[2], SIGNAL(triggered(bool)), sysmonEngine, SLOT(updateAllSources()));
|
||||
connect(contextMenu[2], SIGNAL(triggered(bool)), this, SLOT(updateNetworkDevice()));
|
||||
contextMenu.append(new QAction(QIcon::fromTheme(QString("system-software-update")),
|
||||
i18n("Check for updates"), this));
|
||||
connect(contextMenu[3], SIGNAL(triggered(bool)), this, SLOT(checkUpdates()));
|
||||
}
|
||||
|
||||
|
||||
@ -191,6 +210,7 @@ void AwesomeWidget::init()
|
||||
toolTipView = new QGraphicsView(toolTipScene);
|
||||
toolTipView->setStyleSheet(QString("background: transparent"));
|
||||
toolTipView->setContentsMargins(0, 0, 0, 0);
|
||||
toolTipView->setFrameShape(QFrame::NoFrame);
|
||||
toolTipView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
toolTipView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
Plasma::ToolTipManager::self()->setContent(this, toolTip);
|
||||
@ -201,11 +221,10 @@ void AwesomeWidget::init()
|
||||
mainLayout->setContentsMargins(1, 1, 1, 1);
|
||||
setLayout(mainLayout);
|
||||
textLabel = new CustomLabel(this, debug);
|
||||
textLabel->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
QGraphicsProxyWidget *pw = new QGraphicsProxyWidget(this);
|
||||
pw->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||
pw->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
pw->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
textLabel->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||
textLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
pw->setWidget(textLabel);
|
||||
mainLayout->addItem(pw, 0, 0);
|
||||
|
||||
@ -217,6 +236,39 @@ void AwesomeWidget::init()
|
||||
connect(timer, SIGNAL(timeout()), this, SLOT(updateText()));
|
||||
connect(timer, SIGNAL(timeout()), this, SLOT(updateTooltip()));
|
||||
timer->start();
|
||||
// check for updates
|
||||
connect(this, SIGNAL(thereIsUpdates(QString)), this, SLOT(showUpdates(QString)));
|
||||
if (configuration[QString("checkUpdates")].toInt() == 2)
|
||||
checkUpdates();
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::replyRecieved(QNetworkReply *reply)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString answer = reply->readAll();
|
||||
if (!answer.contains(QString("tag_name"))) return;
|
||||
QString version = QString(VERSION);
|
||||
if (debug) qDebug() << PDEBUG << answer;
|
||||
for (int i=0; i<answer.split(QString("tag_name")).count(); i++) {
|
||||
version = answer.split(QString("tag_name"))[1].split(QChar(','))[0];
|
||||
version.remove(QChar('"'));
|
||||
version.remove(QChar(':'));
|
||||
version.remove(QString("V."));
|
||||
break;
|
||||
}
|
||||
|
||||
int old_major = QString(VERSION).split(QChar('.'))[0].toInt();
|
||||
int old_minor = QString(VERSION).split(QChar('.'))[1].toInt();
|
||||
int old_patch = QString(VERSION).split(QChar('.'))[2].toInt();
|
||||
int new_major = QString(version).split(QChar('.'))[0].toInt();
|
||||
int new_minor = QString(version).split(QChar('.'))[1].toInt();
|
||||
int new_patch = QString(version).split(QChar('.'))[2].toInt();
|
||||
if ((old_major < new_major) ||
|
||||
((old_major == new_major) && (old_minor < new_minor)) ||
|
||||
((old_major == new_major) && (old_minor == new_minor) && (old_patch < new_patch)))
|
||||
emit(thereIsUpdates(version));
|
||||
}
|
||||
|
||||
|
||||
@ -239,8 +291,7 @@ QStringList AwesomeWidget::findKeys()
|
||||
|
||||
QStringList selectedKeys;
|
||||
for (int i=0; i<keys.count(); i++)
|
||||
if (configuration[QString("text")]
|
||||
.indexOf(QString("$") + keys[i]) > -1) {
|
||||
if (configuration[QString("text")].contains(QString("$") + keys[i])) {
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Found key" << keys[i];
|
||||
selectedKeys.append(keys[i]);
|
||||
}
|
||||
@ -324,9 +375,9 @@ QStringList AwesomeWidget::getKeys()
|
||||
allKeys.append(QString("netdev"));
|
||||
// battery
|
||||
allKeys.append(QString("ac"));
|
||||
allKeys.append(QString("bat0"));
|
||||
for (int i=0; i<counts[QString("bat")]; i++)
|
||||
allKeys.append(QString("bat") + QString::number(i+1));
|
||||
for (int i=counts[QString("bat")]-1; i>=0; i--)
|
||||
allKeys.append(QString("bat") + QString::number(i));
|
||||
allKeys.append(QString("bat"));
|
||||
// player
|
||||
allKeys.append(QString("album"));
|
||||
allKeys.append(QString("artist"));
|
||||
@ -352,6 +403,65 @@ QStringList AwesomeWidget::getKeys()
|
||||
}
|
||||
|
||||
|
||||
QStringList AwesomeWidget::findGraphicalItems()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QStringList orderedKeys;
|
||||
for (int i=0; i<graphicalItems.count(); i++)
|
||||
orderedKeys.append(graphicalItems[i]->getName() + graphicalItems[i]->getBar());
|
||||
orderedKeys.sort();
|
||||
QStringList selectedKeys;
|
||||
for (int i=orderedKeys.count()-1; i>=0; i--)
|
||||
if (configuration[QString("text")].contains(QString("$") + orderedKeys[i])) {
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Found key" << orderedKeys[i];
|
||||
selectedKeys.append(orderedKeys[i]);
|
||||
}
|
||||
|
||||
return selectedKeys;
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::getGraphicalItems()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
graphicalItems.clear();
|
||||
// create directory at $HOME
|
||||
QString localDir = KStandardDirs::locateLocal("data", "plasma_applet_awesome-widget/desktops");
|
||||
if (KStandardDirs::makeDir(localDir))
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Created directory" << localDir;
|
||||
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_applet_awesome-widget/desktops");
|
||||
QStringList names;
|
||||
for (int i=0; i<dirs.count(); i++) {
|
||||
QStringList files = QDir(dirs[i]).entryList(QDir::Files, QDir::Name);
|
||||
for (int j=0; j<files.count(); j++) {
|
||||
if (!files[j].endsWith(QString(".desktop"))) continue;
|
||||
if (names.contains(files[j])) continue;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Found file" << files[j] << "in" << dirs[i];
|
||||
names.append(files[j]);
|
||||
graphicalItems.append(new GraphicalItem(0, files[j], dirs, debug));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GraphicalItem *AwesomeWidget::getItemByTag(const QString tag)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
GraphicalItem *item = nullptr;
|
||||
for (int i=0; i< graphicalItems.count(); i++) {
|
||||
if ((graphicalItems[i]->getName() + graphicalItems[i]->getBar()) != tag) continue;
|
||||
item = graphicalItems[i];
|
||||
break;
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::showKsysguard()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
@ -373,4 +483,21 @@ void AwesomeWidget::showReadme()
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::showUpdates(QString version)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString text;
|
||||
text += i18n("Current version : %1", QString(VERSION)) + QString("\n");
|
||||
text += i18n("New version : %1", version) + QString("\n\n");
|
||||
text += i18n("Click \"Ok\" to download");
|
||||
int select = QMessageBox::information(0, i18n("There are updates"), text, QMessageBox::Ok | QMessageBox::Cancel);
|
||||
switch(select) {
|
||||
case QMessageBox::Ok:
|
||||
QDesktopServices::openUrl(QString(RELEASES) + version);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
K_EXPORT_PLASMA_APPLET(awesome-widget, AwesomeWidget)
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <Plasma/DataEngine>
|
||||
#include <Plasma/ToolTipContent>
|
||||
|
||||
#include <ui_about.h>
|
||||
#include <ui_advanced.h>
|
||||
#include <ui_appearance.h>
|
||||
#include <ui_deconfig.h>
|
||||
@ -31,8 +32,11 @@
|
||||
|
||||
|
||||
class CustomLabel;
|
||||
class ExtScript;
|
||||
class GraphicalItem;
|
||||
class QGraphicsGridLayout;
|
||||
class QGraphicsScene;
|
||||
class QNetworkReply;
|
||||
|
||||
class AwesomeWidget : public Plasma::Applet
|
||||
{
|
||||
@ -55,6 +59,7 @@ public slots:
|
||||
// contextual actions
|
||||
void showKsysguard();
|
||||
void showReadme();
|
||||
void showUpdates(QString version);
|
||||
// dataengine
|
||||
void addDiskDevice(const QString source);
|
||||
void connectToEngine();
|
||||
@ -65,17 +70,25 @@ public slots:
|
||||
void configChanged();
|
||||
// update events
|
||||
void sendNotification(const QString eventId, const QString message);
|
||||
void updateNetworkDevice();
|
||||
void updateNetworkDevice(const bool delay = true);
|
||||
void updateText(const bool clear = false);
|
||||
void updateTooltip();
|
||||
|
||||
private slots:
|
||||
void checkUpdates();
|
||||
void reinit();
|
||||
void replyRecieved(QNetworkReply *reply);
|
||||
// configuration interface
|
||||
void addNewCustomCommand(QTableWidgetItem *item);
|
||||
void addBar();
|
||||
void addCustomScript();
|
||||
void addNewPkgCommand(QTableWidgetItem *item);
|
||||
void contextMenuBars(const QPoint pos);
|
||||
void contextMenuCustomCommand(const QPoint pos);
|
||||
void contextMenuPkgCommand(const QPoint pos);
|
||||
void copyBar(const QString original);
|
||||
void copyCustomCommand(const QString original);
|
||||
void editBar(QListWidgetItem *item);
|
||||
void editCustomCommand(QListWidgetItem *item);
|
||||
void editFanItem(QListWidgetItem *item);
|
||||
void editHddItem(QListWidgetItem *item);
|
||||
void editHddSpeedItem(QListWidgetItem *item);
|
||||
@ -84,6 +97,9 @@ private slots:
|
||||
void setFontFormating();
|
||||
void setFormating();
|
||||
|
||||
signals:
|
||||
void thereIsUpdates(QString version);
|
||||
|
||||
protected:
|
||||
QList<QAction *> contextualActions();
|
||||
void createConfigurationInterface(KConfigDialog *parent);
|
||||
@ -93,15 +109,19 @@ private:
|
||||
void createActions();
|
||||
QStringList findKeys();
|
||||
QStringList getKeys();
|
||||
QStringList findGraphicalItems();
|
||||
void getGraphicalItems();
|
||||
GraphicalItem *getItemByTag(const QString tag);
|
||||
QList<ExtScript *> initScripts();
|
||||
// ui
|
||||
QGraphicsGridLayout *mainLayout = nullptr;
|
||||
CustomLabel *textLabel = nullptr;
|
||||
QTimer *timer;
|
||||
QTimer *timer = nullptr;
|
||||
QList<QAction *> contextMenu;
|
||||
// tooltip
|
||||
Plasma::ToolTipContent toolTip;
|
||||
QGraphicsScene *toolTipScene;
|
||||
QGraphicsView *toolTipView;
|
||||
QGraphicsScene *toolTipScene = nullptr;
|
||||
QGraphicsView *toolTipView = nullptr;
|
||||
// values
|
||||
int networkDeviceUpdate;
|
||||
QMap<QString, int> counts;
|
||||
@ -110,10 +130,11 @@ private:
|
||||
// debug
|
||||
bool debug;
|
||||
// data engine
|
||||
Plasma::DataEngine *extsysmonEngine;
|
||||
Plasma::DataEngine *sysmonEngine;
|
||||
Plasma::DataEngine *timeEngine;
|
||||
Plasma::DataEngine *extsysmonEngine = nullptr;
|
||||
Plasma::DataEngine *sysmonEngine = nullptr;
|
||||
Plasma::DataEngine *timeEngine = nullptr;
|
||||
// configuration interface
|
||||
Ui::About uiAboutConfig;
|
||||
Ui::AdvancedWindow uiAdvancedConfig;
|
||||
Ui::AppearanceWindow uiAppConfig;
|
||||
Ui::ConfigWindow uiWidConfig;
|
||||
@ -122,6 +143,8 @@ private:
|
||||
// configuration
|
||||
QMap<QString, QString> configuration;
|
||||
QStringList diskDevices, keys, formatLine, foundKeys;
|
||||
QList<GraphicalItem *> graphicalItems;
|
||||
QStringList foundBars;
|
||||
};
|
||||
|
||||
|
||||
|
@ -20,14 +20,19 @@
|
||||
#include <KConfigDialog>
|
||||
#include <KGlobal>
|
||||
#include <KStandardDirs>
|
||||
#include <QDesktopServices>
|
||||
#include <QDir>
|
||||
#include <QInputDialog>
|
||||
#include <QMenu>
|
||||
#include <QNetworkInterface>
|
||||
#include <QTextCodec>
|
||||
|
||||
#include <extscript.h>
|
||||
#include <graphicalitem.h>
|
||||
#include <fontdialog/fontdialog.h>
|
||||
#include <pdebug/pdebug.h>
|
||||
#include <task/taskadds.h>
|
||||
#include "version.h"
|
||||
|
||||
|
||||
QMap<QString, QString> AwesomeWidget::readDataEngineConfiguration()
|
||||
@ -36,8 +41,6 @@ QMap<QString, QString> AwesomeWidget::readDataEngineConfiguration()
|
||||
|
||||
QMap<QString, QString> rawConfig;
|
||||
rawConfig[QString("ACPIPATH")] = QString("/sys/class/power_supply/");
|
||||
rawConfig[QString("CUSTOM")] = QString("wget -qO- http://ifconfig.me/ip");
|
||||
rawConfig[QString("DESKTOPCMD")] = QString("qdbus org.kde.kwin /KWin currentDesktop");
|
||||
rawConfig[QString("GPUDEV")] = QString("auto");
|
||||
rawConfig[QString("HDDDEV")] = QString("all");
|
||||
rawConfig[QString("HDDTEMPCMD")] = QString("sudo hddtemp");
|
||||
@ -102,10 +105,8 @@ QMap<QString, QString> AwesomeWidget::updateDataEngineConfiguration(const QMap<Q
|
||||
key = rawConfig.keys()[i];
|
||||
value = rawConfig[key];
|
||||
key.remove(QChar(' '));
|
||||
if ((key != QString("CUSTOM")) &&
|
||||
(key != QString("DESKTOPCMD")) &&
|
||||
(key != QString("HDDTEMPCMD")) &&
|
||||
(key != QString("PKGCMD")))
|
||||
if ((key != QString("HDDTEMPCMD")) &&
|
||||
(key != QString("PKGCMD")))
|
||||
value.remove(QChar(' '));
|
||||
config[key] = value;
|
||||
}
|
||||
@ -139,11 +140,15 @@ void AwesomeWidget::createConfigurationInterface(KConfigDialog *parent)
|
||||
uiDEConfig.setupUi(deConfigWidget);
|
||||
QWidget *tooltipWidget = new QWidget;
|
||||
uiTooltipConfig.setupUi(tooltipWidget);
|
||||
QWidget *aboutWidget = new QWidget;
|
||||
uiAboutConfig.setupUi(aboutWidget);
|
||||
|
||||
//widget
|
||||
uiWidConfig.textEdit_elements->setPlainText(configuration[QString("text")]);
|
||||
uiWidConfig.comboBox_tags->clear();
|
||||
uiWidConfig.comboBox_tags->addItems(getKeys());
|
||||
for (int i=0; i<graphicalItems.count(); i++)
|
||||
uiWidConfig.comboBox_tags->addItem(graphicalItems[i]->getName() + graphicalItems[i]->getBar());
|
||||
|
||||
// advanced
|
||||
if (configuration[QString("background")].toInt() == 0)
|
||||
@ -295,6 +300,19 @@ void AwesomeWidget::createConfigurationInterface(KConfigDialog *parent)
|
||||
Qt::MatchFixedString));
|
||||
uiAdvancedConfig.lineEdit_acOnline->setText(configuration[QString("acOnline")]);
|
||||
uiAdvancedConfig.lineEdit_acOffline->setText(configuration[QString("acOffline")]);
|
||||
uiAdvancedConfig.listWidget_bars->clear();
|
||||
for (int i=0; i<graphicalItems.count(); i++) {
|
||||
QListWidgetItem *item = new QListWidgetItem(graphicalItems[i]->getFileName());
|
||||
QStringList tooltip;
|
||||
tooltip.append(i18n("Tag: %1", graphicalItems[i]->getName() + graphicalItems[i]->getBar()));
|
||||
tooltip.append(i18n("Comment: %1", graphicalItems[i]->getComment()));
|
||||
item->setToolTip(tooltip.join(QChar('\n')));
|
||||
uiAdvancedConfig.listWidget_bars->addItem(item);
|
||||
}
|
||||
if (configuration[QString("checkUpdates")].toInt() == 0)
|
||||
uiAdvancedConfig.checkBox_updates->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiAdvancedConfig.checkBox_updates->setCheckState(Qt::Checked);
|
||||
|
||||
// tooltip
|
||||
uiTooltipConfig.spinBox_tooltipNum->setValue(configuration[QString("tooltipNumber")].toInt());
|
||||
@ -356,15 +374,18 @@ void AwesomeWidget::createConfigurationInterface(KConfigDialog *parent)
|
||||
// dataengine
|
||||
QMap<QString, QString> deSettings = readDataEngineConfiguration();
|
||||
uiDEConfig.lineEdit_acpi->setText(deSettings[QString("ACPIPATH")]);
|
||||
uiDEConfig.tableWidget_customCommand->clear();
|
||||
uiDEConfig.tableWidget_customCommand->setRowCount(deSettings[QString("CUSTOM")].split(QString("@@")).count() + 1);
|
||||
headerList.clear();
|
||||
headerList.append(i18n("Custom command"));
|
||||
uiDEConfig.tableWidget_customCommand->setHorizontalHeaderLabels(headerList);
|
||||
uiDEConfig.tableWidget_customCommand->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
|
||||
for (int i=0; i<deSettings[QString("CUSTOM")].split(QString("@@")).count(); i++)
|
||||
uiDEConfig.tableWidget_customCommand->setItem(i, 0, new QTableWidgetItem(deSettings[QString("CUSTOM")].split(QString("@@"))[i]));
|
||||
uiDEConfig.lineEdit_desktopCmd->setText(deSettings[QString("DESKTOPCMD")]);
|
||||
QList<ExtScript *> externalScripts = initScripts();
|
||||
uiDEConfig.listWidget_custom->clear();
|
||||
for (int i=0; i<externalScripts.count(); i++) {
|
||||
QListWidgetItem *item = new QListWidgetItem(externalScripts[i]->getFileName());
|
||||
QStringList tooltip;
|
||||
tooltip.append(i18n("Name: %1", externalScripts[i]->getName()));
|
||||
tooltip.append(i18n("Comment: %1", externalScripts[i]->getComment()));
|
||||
tooltip.append(i18n("Exec: %1", externalScripts[i]->getExec()));
|
||||
item->setToolTip(tooltip.join(QChar('\n')));
|
||||
uiDEConfig.listWidget_custom->addItem(item);
|
||||
}
|
||||
externalScripts.clear();
|
||||
uiDEConfig.comboBox_gpudev->setCurrentIndex(
|
||||
uiDEConfig.comboBox_gpudev->findText(deSettings[QString("GPUDEV")], Qt::MatchFixedString));
|
||||
cmd = QString("find /dev -name [hms]d[a-z]");
|
||||
@ -402,11 +423,34 @@ void AwesomeWidget::createConfigurationInterface(KConfigDialog *parent)
|
||||
uiDEConfig.comboBox_playerSelect->setCurrentIndex(
|
||||
uiDEConfig.comboBox_playerSelect->findText(deSettings[QString("PLAYER")], Qt::MatchFixedString));
|
||||
|
||||
// about
|
||||
uiAboutConfig.label_name->setText(QString(NAME));
|
||||
uiAboutConfig.label_version->setText(i18n("Version %1\n(build date %2)", QString(VERSION), QString(BUILD_DATE)));
|
||||
uiAboutConfig.label_description->setText(i18n("A set of minimalistic plasmoid widgets"));
|
||||
uiAboutConfig.label_links->setText(i18n("Links:") + QString("<br>") +
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(HOMEPAGE)).arg(i18n("Homepage")) +
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(REPOSITORY)).arg(i18n("Repository")) +
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(BUGTRACKER)).arg(i18n("Bugtracker")) +
|
||||
QString("<a href=\"%1\">%2</a><br>").arg(QString(TRANSLATION)).arg(i18n("Translation issue")) +
|
||||
QString("<a href=\"%1\">%2</a>").arg(QString(AUR_PACKAGES)).arg(i18n("AUR packages")));
|
||||
uiAboutConfig.label_license->setText(QString("<small>© %1 <a href=\"mailto:%2\">%3</a><br>").arg(QString(DATE)).arg(QString(EMAIL)).arg(QString(AUTHOR)) +
|
||||
i18n("This software is licensed under %1", QString(LICENSE)) + QString("</small>"));
|
||||
// 2nd tab
|
||||
QStringList trdPartyList = QString(TRDPARTY_LICENSE).split(QChar(';'), QString::SkipEmptyParts);
|
||||
for (int i=0; i<trdPartyList.count(); i++)
|
||||
trdPartyList[i] = QString("<a href=\"%3\">%1</a> (%2 license)")
|
||||
.arg(trdPartyList[i].split(QChar(','))[0])
|
||||
.arg(trdPartyList[i].split(QChar(','))[1])
|
||||
.arg(trdPartyList[i].split(QChar(','))[2]);
|
||||
uiAboutConfig.label_translators->setText(i18n("Translators: %1", QString(TRANSLATORS)));
|
||||
uiAboutConfig.label_trdparty->setText(i18n("This software uses: %1", trdPartyList.join(QString(", "))));
|
||||
|
||||
parent->addPage(configWidget, i18n("Widget"), Applet::icon());
|
||||
parent->addPage(advWidget, i18n("Advanced"), QString("system-run"));
|
||||
parent->addPage(tooltipWidget, i18n("Tooltip"), QString("preferences-desktop-color"));
|
||||
parent->addPage(appWidget, i18n("Appearance"), QString("preferences-desktop-theme"));
|
||||
parent->addPage(deConfigWidget, i18n("DataEngine"), QString("utilities-system-monitor"));
|
||||
parent->addPage(aboutWidget, i18n("About"), QString("help-about"));
|
||||
|
||||
connect(uiAdvancedConfig.listWidget_fanDevice, SIGNAL(itemActivated(QListWidgetItem *)),
|
||||
this, SLOT(editFanItem(QListWidgetItem *)));
|
||||
@ -418,14 +462,20 @@ void AwesomeWidget::createConfigurationInterface(KConfigDialog *parent)
|
||||
this, SLOT(editMountItem(QListWidgetItem *)));
|
||||
connect(uiAdvancedConfig.listWidget_tempDevice, SIGNAL(itemActivated(QListWidgetItem *)),
|
||||
this, SLOT(editTempItem(QListWidgetItem *)));
|
||||
connect(uiDEConfig.tableWidget_customCommand, SIGNAL(itemChanged(QTableWidgetItem *)),
|
||||
this, SLOT(addNewCustomCommand(QTableWidgetItem *)));
|
||||
connect(uiDEConfig.tableWidget_customCommand, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
connect(uiAdvancedConfig.listWidget_bars, SIGNAL(itemActivated(QListWidgetItem *)),
|
||||
this, SLOT(editBar(QListWidgetItem *)));
|
||||
connect(uiAdvancedConfig.listWidget_bars, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
this, SLOT(contextMenuBars(QPoint)));
|
||||
connect(uiDEConfig.listWidget_custom, SIGNAL(itemActivated(QListWidgetItem *)),
|
||||
this, SLOT(editCustomCommand(QListWidgetItem *)));
|
||||
connect(uiDEConfig.listWidget_custom, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
this, SLOT(contextMenuCustomCommand(QPoint)));
|
||||
connect(uiDEConfig.tableWidget_pkgCommand, SIGNAL(itemChanged(QTableWidgetItem *)),
|
||||
this, SLOT(addNewPkgCommand(QTableWidgetItem *)));
|
||||
connect(uiDEConfig.tableWidget_pkgCommand, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
this, SLOT(contextMenuPkgCommand(QPoint)));
|
||||
connect(uiAdvancedConfig.pushButton_bars, SIGNAL(clicked(bool)), this, SLOT(addBar()));
|
||||
connect(uiDEConfig.pushButton_custom, SIGNAL(clicked(bool)), this, SLOT(addCustomScript()));
|
||||
connect(uiWidConfig.pushButton_tags, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||
connect(uiWidConfig.pushButton_br, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||
connect(uiWidConfig.pushButton_font, SIGNAL(clicked(bool)), this, SLOT(setFontFormating()));
|
||||
@ -489,6 +539,7 @@ void AwesomeWidget::configAccepted()
|
||||
cg.writeEntry("customNetdev", uiAdvancedConfig.comboBox_netdev->currentText());
|
||||
cg.writeEntry("acOnline", uiAdvancedConfig.lineEdit_acOnline->text());
|
||||
cg.writeEntry("acOffline", uiAdvancedConfig.lineEdit_acOffline->text());
|
||||
cg.writeEntry("checkUpdates", QString::number(uiAdvancedConfig.checkBox_updates->checkState()));
|
||||
|
||||
// tooltip
|
||||
cg.writeEntry("tooltipNumber", QString::number(uiTooltipConfig.spinBox_tooltipNum->value()));
|
||||
@ -520,12 +571,6 @@ void AwesomeWidget::configAccepted()
|
||||
// dataengine
|
||||
QMap<QString, QString> deSettings;
|
||||
deSettings[QString("ACPIPATH")] = uiDEConfig.lineEdit_acpi->text();
|
||||
items.clear();
|
||||
for (int i=0; i<uiDEConfig.tableWidget_customCommand->rowCount(); i++)
|
||||
if (uiDEConfig.tableWidget_customCommand->item(i, 0) != 0)
|
||||
items.append(uiDEConfig.tableWidget_customCommand->item(i, 0)->text());
|
||||
deSettings[QString("CUSTOM")] = items.join(QString("@@"));
|
||||
deSettings[QString("DESKTOPCMD")] = uiDEConfig.lineEdit_desktopCmd->text();
|
||||
deSettings[QString("GPUDEV")] = uiDEConfig.comboBox_gpudev->currentText();
|
||||
deSettings[QString("HDDDEV")] = uiDEConfig.comboBox_hdddev->currentText();
|
||||
deSettings[QString("HDDTEMPCMD")] = uiDEConfig.lineEdit_hddtempCmd->text();
|
||||
@ -571,6 +616,7 @@ void AwesomeWidget::configChanged()
|
||||
configuration[QString("customNetdev")] = cg.readEntry("customNetdev", "lo");
|
||||
configuration[QString("acOnline")] = cg.readEntry("acOnline", "(*)");
|
||||
configuration[QString("acOffline")] = cg.readEntry("acOffline", "( )");
|
||||
configuration[QString("checkUpdates")] = cg.readEntry("checkUpdates", "2");
|
||||
|
||||
// tooltip
|
||||
tooltipValues.clear();
|
||||
@ -630,7 +676,7 @@ void AwesomeWidget::configChanged()
|
||||
fontStyle = QString("italic");
|
||||
else
|
||||
fontStyle = QString("normal");
|
||||
formatLine[0] = QString("<html><head><style type=\"text/css\">p, li { white-space: pre-wrap; }</style>\
|
||||
formatLine[0] = QString("<html><head><style type=\"text/css\">body { white-space: pre-wrap; }</style>\
|
||||
</head><body style=\"font-family:'%1'; font-size:%2pt; font-weight:%3; font-style:%4; color:%5;\">")
|
||||
.arg(font.family())
|
||||
.arg(font.pointSize())
|
||||
@ -641,9 +687,14 @@ void AwesomeWidget::configChanged()
|
||||
|
||||
// counts
|
||||
QMap<QString, QString> deSettings = readDataEngineConfiguration();
|
||||
counts[QString("bat")] = QDir(deSettings[QString("ACPIPATH")]).entryList(QDir::Dirs | QDir::NoDotAndDotDot).count();
|
||||
counts[QString("bat")] = 0;
|
||||
QStringList acpiDevices = QDir(deSettings[QString("ACPIPATH")]).entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
QRegExp batRegexp = QRegExp(QString("BAT.*"));
|
||||
for (int i=0; i<acpiDevices.count(); i++)
|
||||
if (acpiDevices[i].contains(batRegexp))
|
||||
counts[QString("bat")]++;
|
||||
counts[QString("cpu")] = getNumberCpus();
|
||||
counts[QString("custom")] = deSettings[QString("CUSTOM")].split(QString("@@")).count();
|
||||
counts[QString("custom")] = initScripts().count();
|
||||
counts[QString("disk")] = configuration[QString("disk")].split(QString("@@")).count();
|
||||
counts[QString("fan")] = configuration[QString("fanDevice")].split(QString("@@")).count();
|
||||
counts[QString("hddtemp")] = configuration[QString("hdd")].split(QString("@@")).count();
|
||||
@ -663,13 +714,58 @@ void AwesomeWidget::configChanged()
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::addNewCustomCommand(QTableWidgetItem *item)
|
||||
void AwesomeWidget::addBar()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
if (item->row() == (uiDEConfig.tableWidget_customCommand->rowCount() - 1))
|
||||
uiDEConfig.tableWidget_customCommand->insertRow(
|
||||
uiDEConfig.tableWidget_customCommand->rowCount());
|
||||
int number = 0;
|
||||
while (true) {
|
||||
bool exit = true;
|
||||
for (int i=0; i<graphicalItems.count(); i++)
|
||||
if (graphicalItems[i]->getName() == QString("bar%1").arg(number)) {
|
||||
number++;
|
||||
exit = false;
|
||||
break;
|
||||
}
|
||||
if (exit) break;
|
||||
}
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_applet_awesome-widget/desktops");
|
||||
bool ok;
|
||||
QString name = QInputDialog::getText(0, i18n("Enter file name"),
|
||||
i18n("File name"), QLineEdit::Normal,
|
||||
QString(""), &ok);
|
||||
if ((!ok) || (name.isEmpty())) return;
|
||||
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
|
||||
QStringList bars;
|
||||
bars.append(keys.filter((QRegExp(QString("cpu(?!cl).*")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^gpu$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^mem$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^swap$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^hdd[0-9].*")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^bat.*")))));
|
||||
|
||||
GraphicalItem *item = new GraphicalItem(0, name, dirs, debug);
|
||||
item->setName(QString("bar%1").arg(number));
|
||||
|
||||
item->showConfiguration(bars);
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::addCustomScript()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_applet_awesome-widget/desktops");
|
||||
bool ok;
|
||||
QString name = QInputDialog::getText(0, i18n("Enter file name"),
|
||||
i18n("File name"), QLineEdit::Normal,
|
||||
QString(""), &ok);
|
||||
if ((!ok) || (name.isEmpty())) return;
|
||||
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
|
||||
|
||||
ExtScript *script = new ExtScript(0, name, dirs, debug);
|
||||
|
||||
script->showConfiguration();
|
||||
}
|
||||
|
||||
|
||||
@ -688,17 +784,53 @@ void AwesomeWidget::addNewPkgCommand(QTableWidgetItem *item)
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::contextMenuBars(const QPoint pos)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (uiAdvancedConfig.listWidget_bars->currentItem() == 0) return;
|
||||
|
||||
QMenu menu(uiAdvancedConfig.listWidget_bars);
|
||||
QAction *edit = menu.addAction(QIcon::fromTheme("document-edit"), i18n("Edit"));
|
||||
QAction *copy = menu.addAction(QIcon::fromTheme("edit-copy"), i18n("Copy"));
|
||||
QAction *remove = menu.addAction(QIcon::fromTheme("edit-delete"), i18n("Remove"));
|
||||
QAction *action = menu.exec(uiAdvancedConfig.listWidget_bars->viewport()->mapToGlobal(pos));
|
||||
if (action == edit)
|
||||
editBar(uiAdvancedConfig.listWidget_bars->currentItem());
|
||||
else if (action == copy)
|
||||
copyBar(uiAdvancedConfig.listWidget_bars->currentItem()->text());
|
||||
else if (action == remove)
|
||||
for (int i=0; i<graphicalItems.count(); i++) {
|
||||
if (graphicalItems[i]->getFileName() != uiAdvancedConfig.listWidget_bars->currentItem()->text())
|
||||
continue;
|
||||
graphicalItems[i]->tryDelete();
|
||||
graphicalItems.takeAt(i);
|
||||
uiAdvancedConfig.listWidget_bars->takeItem(uiAdvancedConfig.listWidget_bars->currentRow());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::contextMenuCustomCommand(const QPoint pos)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (uiDEConfig.tableWidget_customCommand->currentItem() == 0) return;
|
||||
if (uiDEConfig.listWidget_custom->currentItem() == 0) return;
|
||||
|
||||
QMenu menu(uiDEConfig.tableWidget_customCommand);
|
||||
QMenu menu(uiDEConfig.listWidget_custom);
|
||||
QAction *edit = menu.addAction(QIcon::fromTheme("document-edit"), i18n("Edit"));
|
||||
QAction *copy = menu.addAction(QIcon::fromTheme("edit-copy"), i18n("Copy"));
|
||||
QAction *remove = menu.addAction(QIcon::fromTheme("edit-delete"), i18n("Remove"));
|
||||
QAction *action = menu.exec(uiDEConfig.tableWidget_customCommand->viewport()->mapToGlobal(pos));
|
||||
if (action == remove)
|
||||
uiDEConfig.tableWidget_customCommand->removeRow(
|
||||
uiDEConfig.tableWidget_customCommand->currentRow());
|
||||
QAction *action = menu.exec(uiDEConfig.listWidget_custom->viewport()->mapToGlobal(pos));
|
||||
if (action == edit)
|
||||
editCustomCommand(uiDEConfig.listWidget_custom->currentItem());
|
||||
else if (action == copy)
|
||||
copyCustomCommand(uiDEConfig.listWidget_custom->currentItem()->text());
|
||||
else if (action == remove) {
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_engine_extsysmon/scripts");
|
||||
ExtScript *script = new ExtScript(0, uiDEConfig.listWidget_custom->currentItem()->text(), dirs, debug);
|
||||
script->tryDelete();
|
||||
delete script;
|
||||
uiDEConfig.listWidget_custom->takeItem(uiDEConfig.listWidget_custom->currentRow());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -716,6 +848,118 @@ void AwesomeWidget::contextMenuPkgCommand(const QPoint pos)
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::copyBar(const QString original)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
int number = 0;
|
||||
while (true) {
|
||||
bool exit = true;
|
||||
for (int i=0; i<graphicalItems.count(); i++)
|
||||
if (graphicalItems[i]->getName() == QString("bar%1").arg(number)) {
|
||||
number++;
|
||||
exit = false;
|
||||
break;
|
||||
}
|
||||
if (exit) break;
|
||||
}
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_applet_awesome-widget/desktops");
|
||||
bool ok;
|
||||
QString name = QInputDialog::getText(0, i18n("Enter file name"),
|
||||
i18n("File name"), QLineEdit::Normal,
|
||||
QString(""), &ok);
|
||||
if ((!ok) || (name.isEmpty())) return;
|
||||
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
|
||||
QStringList bars;
|
||||
bars.append(keys.filter((QRegExp(QString("cpu(?!cl).*")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^gpu$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^mem$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^swap$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^hdd[0-9].*")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^bat.*")))));
|
||||
|
||||
GraphicalItem *originalItem = nullptr;
|
||||
for (int i=0; i<graphicalItems.count(); i++) {
|
||||
if (graphicalItems[i]->getFileName() != original) continue;
|
||||
originalItem = graphicalItems[i];
|
||||
break;
|
||||
}
|
||||
GraphicalItem *item = new GraphicalItem(0, name, dirs, debug);
|
||||
item->setName(QString("bar%1").arg(number));
|
||||
item->setComment(originalItem->getComment());
|
||||
item->setBar(originalItem->getBar());
|
||||
item->setActiveColor(originalItem->getActiveColor());
|
||||
item->setInactiveColor(originalItem->getInactiveColor());
|
||||
item->setType(originalItem->getStrType());
|
||||
item->setDirection(originalItem->getStrDirection());
|
||||
item->setHeight(originalItem->getHeight());
|
||||
item->setWidth(originalItem->getWidth());
|
||||
delete originalItem;
|
||||
|
||||
item->showConfiguration(bars);
|
||||
delete item;
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::copyCustomCommand(const QString original)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_applet_awesome-widget/desktops");
|
||||
bool ok;
|
||||
QString name = QInputDialog::getText(0, i18n("Enter file name"),
|
||||
i18n("File name"), QLineEdit::Normal,
|
||||
QString(""), &ok);
|
||||
if ((!ok) || (name.isEmpty())) return;
|
||||
if (!name.endsWith(QString(".desktop"))) name += QString(".desktop");
|
||||
|
||||
ExtScript *originalScript = new ExtScript(0, original, dirs, debug);
|
||||
ExtScript *script = new ExtScript(0, name, dirs, debug);
|
||||
script->setActive(originalScript->isActive());
|
||||
script->setComment(originalScript->getComment());
|
||||
script->setExec(originalScript->getExec());
|
||||
script->setHasOutput(originalScript->hasOutput());
|
||||
script->setInterval(originalScript->getInterval());
|
||||
script->setName(originalScript->getName());
|
||||
script->setPrefix(originalScript->getPrefix());
|
||||
script->setRedirect(originalScript->getStrRedirect());
|
||||
delete originalScript;
|
||||
|
||||
script->showConfiguration();
|
||||
delete script;
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::editBar(QListWidgetItem *item)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QStringList bars;
|
||||
bars.append(keys.filter((QRegExp(QString("^cpu(?!cl).*")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^gpu$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^mem$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^swap$")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^hdd[0-9].*")))));
|
||||
bars.append(keys.filter((QRegExp(QString("^bat.*")))));
|
||||
|
||||
for (int i=0; i<graphicalItems.count(); i++) {
|
||||
if (graphicalItems[i]->getFileName() != item->text()) continue;
|
||||
graphicalItems[i]->showConfiguration(bars);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::editCustomCommand(QListWidgetItem *item)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_engine_extsysmon/scripts");
|
||||
ExtScript *script = new ExtScript(0, item->text(), dirs, debug);
|
||||
script->showConfiguration();
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::editFanItem(QListWidgetItem *item)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
@ -756,6 +1000,33 @@ void AwesomeWidget::editTempItem(QListWidgetItem *item)
|
||||
}
|
||||
|
||||
|
||||
QList<ExtScript *> AwesomeWidget::initScripts()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QList<ExtScript *> externalScripts;
|
||||
// create directory at $HOME
|
||||
QString localDir = KStandardDirs::locateLocal("data", "plasma_engine_extsysmon/scripts");
|
||||
if (KStandardDirs::makeDir(localDir))
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Created directory" << localDir;
|
||||
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_engine_extsysmon/scripts");
|
||||
QStringList names;
|
||||
for (int i=0; i<dirs.count(); i++) {
|
||||
QStringList files = QDir(dirs[i]).entryList(QDir::Files, QDir::Name);
|
||||
for (int j=0; j<files.count(); j++) {
|
||||
if (!files[j].endsWith(QString(".desktop"))) continue;
|
||||
if (names.contains(files[j])) continue;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Found file" << files[j] << "in" << dirs[i];
|
||||
names.append(files[j]);
|
||||
externalScripts.append(new ExtScript(0, files[j], dirs, debug));
|
||||
}
|
||||
}
|
||||
|
||||
return externalScripts;
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::setFontFormating()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
@ -65,7 +65,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *event)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
|
||||
if (process.exitCode != 0)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error;
|
||||
text += QString("Kernel: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
text += QString("Kernel: %1<br>").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
// hostname
|
||||
cmd = QString("uname -n");
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
|
||||
@ -73,7 +73,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *event)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
|
||||
if (process.exitCode != 0)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error;
|
||||
text += QString("Hostname: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
text += QString("Hostname: %1<br>").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
// whoami
|
||||
cmd = QString("whoami");
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
|
||||
@ -81,7 +81,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *event)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
|
||||
if (process.exitCode != 0)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error;
|
||||
text += QString("Whoami: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
text += QString("Whoami: %1<br>").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
// uptime
|
||||
cmd = QString("uptime");
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
|
||||
@ -89,9 +89,9 @@ void CustomLabel::mousePressEvent(QMouseEvent *event)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
|
||||
if (process.exitCode != 0)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error;
|
||||
text += QString("Uptime: %1\n").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
text += QString("Uptime: %1").arg(QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed());
|
||||
|
||||
widget->sendNotification(QString("system"), text);
|
||||
}
|
||||
emit(QLabel::mousePressEvent(event));
|
||||
emit(QWidget::mousePressEvent(event));
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>700</width>
|
||||
<height>592</height>
|
||||
<height>582</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@ -43,127 +43,47 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>684</width>
|
||||
<height>576</height>
|
||||
<height>566</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="4" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_hdddev">
|
||||
<layout class="QHBoxLayout" name="layout_hddtempCmd">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_hdddev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>HDD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_hdddev">
|
||||
<widget class="QLabel" name="label_hddtempCmd">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_mpdport">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mpdport">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>MPD port</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_mpdport">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>19</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_mpdport">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<string>hddtemp cmd</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>50000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>6600</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_hddtempCmd"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<item row="2" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_gpudev">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_gpudev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>GPU device</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_gpudev">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">auto</string>
|
||||
@ -188,56 +108,39 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<spacer name="spacer_dataengine">
|
||||
<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="5" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_hddtempCmd">
|
||||
<item row="3" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_hdddev">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_hddtempCmd">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<widget class="QLabel" name="label_hdddev">
|
||||
<property name="text">
|
||||
<string>hddtemp cmd</string>
|
||||
<string>HDD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_hddtempCmd">
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_hdddev"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<item row="8" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_playerSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_playerSelect">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Music player</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -248,12 +151,6 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">mpris</string>
|
||||
@ -269,54 +166,99 @@
|
||||
</layout>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_mpdport">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mpdport">
|
||||
<property name="text">
|
||||
<string>MPD port</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_mpdport">
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>50000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>6600</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_mpdaddress">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mpdaddress">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>MPD address</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_mpdaddress">
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_mpdaddress"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_desktopCmd">
|
||||
<item row="10" column="0">
|
||||
<spacer name="spacer_dataengine">
|
||||
<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="0" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_acpi">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_desktopCmd">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<widget class="QLabel" name="label_acpi">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Desktop check cmd</string>
|
||||
<string>ACPI path</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_desktopCmd">
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_acpi">
|
||||
<property name="toolTip">
|
||||
<string>"/sys/class/power_supply/" by default</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<item row="7" column="0">
|
||||
<layout class="QVBoxLayout" name="layout_mpris">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mprisInfo">
|
||||
@ -332,15 +274,18 @@
|
||||
<layout class="QHBoxLayout" name="layout_mprisSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mpris">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>MPRIS player name</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -351,12 +296,6 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
@ -406,7 +345,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<item row="9" column="0">
|
||||
<layout class="QVBoxLayout" name="layout_pkgCommand">
|
||||
<item>
|
||||
<widget class="QTableWidget" name="tableWidget_pkgCommand">
|
||||
@ -441,46 +380,42 @@ del - remove item</string>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QTableWidget" name="tableWidget_customCommand">
|
||||
<property name="contextMenuPolicy">
|
||||
<enum>Qt::CustomContextMenu</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Editable
|
||||
del - remove item</string>
|
||||
</property>
|
||||
<attribute name="horizontalHeaderStretchLastSection">
|
||||
<bool>true</bool>
|
||||
</attribute>
|
||||
<attribute name="verticalHeaderVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Custom command</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_acpi">
|
||||
<layout class="QVBoxLayout" name="layout_custom">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_acpi">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>ACPI path</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QHBoxLayout" name="layout_customAdd">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_custom">
|
||||
<property name="text">
|
||||
<string>Custom scripts</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_custom">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_custom">
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_acpi">
|
||||
<property name="toolTip">
|
||||
<string>"/sys/class/power_supply/" by default</string>
|
||||
<widget class="QListWidget" name="listWidget_custom">
|
||||
<property name="contextMenuPolicy">
|
||||
<enum>Qt::CustomContextMenu</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <QRegExp>
|
||||
#include <math.h>
|
||||
|
||||
#include "graphicalitem.h"
|
||||
#include <pdebug/pdebug.h>
|
||||
|
||||
|
||||
@ -29,15 +30,17 @@ void AwesomeWidget::connectToEngine()
|
||||
QRegExp regExp;
|
||||
|
||||
// battery
|
||||
regExp = QRegExp(QString("(ac|bat.*)"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)(ac|bat.*)"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("batteryTooltip")].toInt() == 2))
|
||||
(configuration[QString("batteryTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1))
|
||||
extsysmonEngine->connectSource(QString("battery"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
// cpu
|
||||
regExp = QRegExp(QString("cpu(?!cl).*"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)cpu(?!cl).*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("cpuTooltip")].toInt() == 2)) {
|
||||
(configuration[QString("cpuTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1)) {
|
||||
sysmonEngine->connectSource(QString("cpu/system/TotalLoad"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
for (int i=0; i<counts[QString("cpu")]; i++)
|
||||
@ -80,8 +83,9 @@ void AwesomeWidget::connectToEngine()
|
||||
sysmonEngine->connectSource(configuration[QString("fanDevice")].split(QString("@@"))[i],
|
||||
this, configuration[QString("interval")].toInt());
|
||||
// gpu
|
||||
regExp = QRegExp(QString("gpu"));
|
||||
if (foundKeys.indexOf(regExp) > -1)
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)gpu"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(foundBars.indexOf(regExp) > -1))
|
||||
extsysmonEngine->connectSource(QString("gpu"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
// gputemp
|
||||
@ -90,8 +94,9 @@ void AwesomeWidget::connectToEngine()
|
||||
extsysmonEngine->connectSource(QString("gputemp"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
// mount
|
||||
regExp = QRegExp(QString("hdd([0-9]|mb|gb|freemb|freegb|totmb|totgb).*"));
|
||||
if (foundKeys.indexOf(regExp) > -1)
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)hdd([0-9]|mb|gb|freemb|freegb|totmb|totgb).*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(foundBars.indexOf(regExp) > -1))
|
||||
for (int i=0; i<configuration[QString("mount")].split(QString("@@")).count(); i++) {
|
||||
sysmonEngine->connectSource(QString("partitions") + configuration[QString("mount")].split(QString("@@"))[i] + QString("/filllevel"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
@ -106,9 +111,10 @@ void AwesomeWidget::connectToEngine()
|
||||
extsysmonEngine->connectSource(QString("hddtemp"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
// memory
|
||||
regExp = QRegExp(QString("mem.*"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)mem.*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("memTooltip")].toInt() == 2)) {
|
||||
(configuration[QString("memTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1)) {
|
||||
sysmonEngine->connectSource(QString("mem/physical/free"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
sysmonEngine->connectSource(QString("mem/physical/used"),
|
||||
@ -142,9 +148,10 @@ void AwesomeWidget::connectToEngine()
|
||||
extsysmonEngine->connectSource(QString("ps"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
// swap
|
||||
regExp = QRegExp(QString("swap.*"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)swap.*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("swapTooltip")].toInt() == 2)) {
|
||||
(configuration[QString("swapTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1)) {
|
||||
sysmonEngine->connectSource(QString("mem/swap/free"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
sysmonEngine->connectSource(QString("mem/swap/used"),
|
||||
@ -194,31 +201,50 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
values[QString("ac")] = configuration[QString("acOnline")];
|
||||
else
|
||||
values[QString("ac")] = configuration[QString("acOffline")];
|
||||
} else
|
||||
} else {
|
||||
values[data.keys()[i]] = QString("%1").arg(data[data.keys()[i]].toFloat(), 3, 'f', 0);
|
||||
if (foundBars.indexOf(QRegExp(QString("bar[0-9].*bat"))) > -1) {
|
||||
for (int j=0; j<foundBars.count(); j++) {
|
||||
if (getItemByTag(foundBars[j])->getBar() != data.keys()[i]) continue;
|
||||
values[foundBars[j]] = values[data.keys()[i]];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((configuration[QString("batteryTooltip")].toInt() == 2) &&
|
||||
(!isnan(data[QString("bat0")].toFloat()))) {
|
||||
(!isnan(data[QString("bat")].toFloat()))) {
|
||||
if (tooltipValues[QString("bat")].count() > configuration[QString("tooltipNumber")].toInt())
|
||||
tooltipValues[QString("bat")].takeFirst();
|
||||
if (data[QString("ac")].toBool())
|
||||
tooltipValues[QString("bat0")].append(data[QString("bat0")].toFloat());
|
||||
tooltipValues[QString("bat")].append(data[QString("bat")].toFloat());
|
||||
else
|
||||
tooltipValues[QString("bat0")].append(-data[QString("bat0")].toFloat());
|
||||
tooltipValues[QString("bat")].append(-data[QString("bat")].toFloat());
|
||||
}
|
||||
} else if (sourceName == QString("cpu/system/TotalLoad")) {
|
||||
values[QString("cpu")] = QString("%1").arg(data[QString("value")].toFloat(), 5, 'f', 1);
|
||||
if (foundBars.indexOf(QRegExp(QString("bar[0-9].*cpu(?!cl).*"))) > -1) {
|
||||
for (int j=0; j<foundBars.count(); j++) {
|
||||
if (getItemByTag(foundBars[j])->getBar() != QString("cpu")) continue;
|
||||
values[foundBars[j]] = QString("%1").arg(data[QString("value")].toFloat());
|
||||
}
|
||||
}
|
||||
if ((configuration[QString("cpuTooltip")].toInt() == 2) &&
|
||||
(!isnan(data[QString("value")].toFloat()))) {
|
||||
if (tooltipValues[QString("cpu")].count() > configuration[QString("tooltipNumber")].toInt())
|
||||
tooltipValues[QString("cpu")].takeFirst();
|
||||
tooltipValues[QString("cpu")].append(data[QString("value")].toFloat());
|
||||
}
|
||||
} else if (sourceName.indexOf(cpuRegExp) > -1) {
|
||||
} else if (sourceName.contains(cpuRegExp)) {
|
||||
QString number = sourceName;
|
||||
number.remove(QString("cpu/cpu"));
|
||||
number.remove(QString("/TotalLoad"));
|
||||
values[QString("cpu") + number] = QString("%1").arg(data[QString("value")].toFloat(), 5, 'f', 1);
|
||||
if (foundBars.indexOf(QRegExp(QString("bar[0-9].*cpu(?!cl).*"))) > -1) {
|
||||
for (int j=0; j<foundBars.count(); j++) {
|
||||
if (getItemByTag(foundBars[j])->getBar() != (QString("cpu") + number)) continue;
|
||||
values[foundBars[j]] = values[QString("cpu") + number];
|
||||
}
|
||||
}
|
||||
} else if (sourceName == QString("cpu/system/AverageClock")) {
|
||||
values[QString("cpucl")] = QString("%1").arg(data[QString("value")].toFloat(), 4, 'f', 0);
|
||||
if ((configuration[QString("cpuclTooltip")].toInt() == 2) &&
|
||||
@ -227,7 +253,7 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
tooltipValues[QString("cpucl")].takeFirst();
|
||||
tooltipValues[QString("cpucl")].append(data[QString("value")].toFloat());
|
||||
}
|
||||
} else if (sourceName.indexOf(cpuclRegExp) > -1) {
|
||||
} else if (sourceName.contains(cpuclRegExp)) {
|
||||
QString number = sourceName;
|
||||
number.remove(QString("cpu/cpu"));
|
||||
number.remove(QString("/clock"));
|
||||
@ -239,7 +265,7 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
values[QString("desktop")] = data[QString("currentName")].toString();
|
||||
values[QString("ndesktop")] = QString("%1").arg(data[QString("currentNumber")].toInt());
|
||||
values[QString("tdesktops")] = QString("%1").arg(data[QString("number")].toInt());
|
||||
} else if (sourceName.indexOf(hddrRegExp) > -1) {
|
||||
} else if (sourceName.contains(hddrRegExp)) {
|
||||
QString device = sourceName;
|
||||
device.remove(QString("/Rate/rblk"));
|
||||
for (int i=0; i<counts[QString("disk")]; i++)
|
||||
@ -247,7 +273,7 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
values[QString("hddr") + QString::number(i)] = QString("%1").arg(data[QString("value")].toFloat(), 5, 'f', 0);
|
||||
break;
|
||||
}
|
||||
} else if (sourceName.indexOf(hddwRegExp) > -1) {
|
||||
} else if (sourceName.contains(hddwRegExp)) {
|
||||
QString device = sourceName;
|
||||
device.remove(QString("/Rate/wblk"));
|
||||
for (int i=0; i<counts[QString("disk")]; i++)
|
||||
@ -257,18 +283,29 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
}
|
||||
} else if (sourceName == QString("gpu")) {
|
||||
values[QString("gpu")] = QString("%1").arg(data[QString("GPU")].toFloat(), 5, 'f', 1);
|
||||
if (foundBars.indexOf(QRegExp(QString("bar[0-9].*gpu"))) > -1) {
|
||||
for (int j=0; j<foundBars.count(); j++) {
|
||||
if (getItemByTag(foundBars[j])->getBar() != QString("gpu")) continue;
|
||||
values[foundBars[j]] = values[QString("gpu")];
|
||||
}
|
||||
}
|
||||
} else if (sourceName == QString("gputemp")) {
|
||||
values[QString("gputemp")] = QString("%1").arg(getTemp(data[QString("GPUTemp")].toFloat()), 4, 'f', 1);
|
||||
} else if (sourceName.indexOf(mountFillRegExp) > -1) {
|
||||
} else if (sourceName.contains(mountFillRegExp)) {
|
||||
QString mount = sourceName;
|
||||
mount.remove(QString("partitions"));
|
||||
mount.remove(QString("/filllevel"));
|
||||
for (int i=0; i<counts[QString("mount")]; i++)
|
||||
if (configuration[QString("mount")].split(QString("@@"))[i] == mount) {
|
||||
values[QString("hdd") + QString::number(i)] = QString("%1").arg(data[QString("value")].toFloat(), 5, 'f', 1);
|
||||
break;
|
||||
if (foundBars.indexOf(QRegExp(QString("bar[0-9].*hdd([0-9].*"))) > -1) {
|
||||
for (int j=0; j<foundBars.count(); j++) {
|
||||
if (getItemByTag(foundBars[j])->getBar() != (QString("hdd") + QString::number(i))) continue;
|
||||
values[foundBars[j]] = values[QString("hdd") + QString::number(i)];
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (sourceName.indexOf(mountFreeRegExp) > -1) {
|
||||
} else if (sourceName.contains(mountFreeRegExp)) {
|
||||
QString mount = sourceName;
|
||||
mount.remove(QString("partitions"));
|
||||
mount.remove(QString("/freespace"));
|
||||
@ -280,7 +317,7 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
data[QString("value")].toFloat() / (1024.0 * 1024.0), 5, 'f', 1);
|
||||
break;
|
||||
}
|
||||
} else if (sourceName.indexOf(mountUsedRegExp) > -1) {
|
||||
} else if (sourceName.contains(mountUsedRegExp)) {
|
||||
QString mount = sourceName;
|
||||
mount.remove(QString("partitions"));
|
||||
mount.remove(QString("/usedspace"));
|
||||
@ -331,7 +368,13 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
tooltipValues[QString("mem")].takeFirst();
|
||||
tooltipValues[QString("mem")].append(values[QString("mem")].toFloat());
|
||||
}
|
||||
} else if (sourceName.indexOf(netRecRegExp) > -1) {
|
||||
if (foundBars.indexOf(QRegExp(QString("bar[0-9].*mem"))) > -1) {
|
||||
for (int j=0; j<foundBars.count(); j++) {
|
||||
if (getItemByTag(foundBars[j])->getBar() != QString("mem")) continue;
|
||||
values[foundBars[j]] = values[QString("mem")];
|
||||
}
|
||||
}
|
||||
} else if (sourceName.contains(netRecRegExp)) {
|
||||
values[QString("down")] = QString("%1").arg(data[QString("value")].toFloat(), 4, 'f', 0);
|
||||
if ((configuration[QString("downTooltip")].toInt() == 2) &&
|
||||
(!isnan(data[QString("value")].toFloat()))) {
|
||||
@ -340,19 +383,19 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
tooltipValues[QString("down")].append(data[QString("value")].toFloat());
|
||||
}
|
||||
networkDeviceUpdate++;
|
||||
if (networkDeviceUpdate == 30) {
|
||||
if (networkDeviceUpdate >= 30) {
|
||||
networkDeviceUpdate = 0;
|
||||
if (configuration[QString("useCustomNetdev")].toInt() == 2) {
|
||||
if (configuration[QString("useCustomNetdev")].toInt() == 0) {
|
||||
sysmonEngine->disconnectSource(QString("network/interfaces/") + values[QString("netdev")] + QString("/transmitter/data"), this);
|
||||
sysmonEngine->disconnectSource(QString("network/interfaces/") + values[QString("netdev")] + QString("/receiver/data"), this);
|
||||
updateNetworkDevice();
|
||||
updateNetworkDevice(false);
|
||||
sysmonEngine->connectSource(QString("network/interfaces/") + values[QString("netdev")] + QString("/transmitter/data"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
sysmonEngine->connectSource(QString("network/interfaces/") + values[QString("netdev")] + QString("/receiver/data"),
|
||||
this, configuration[QString("interval")].toInt());
|
||||
}
|
||||
}
|
||||
} else if (sourceName.indexOf(netTransRegExp) > -1) {
|
||||
} else if (sourceName.contains(netTransRegExp)) {
|
||||
values[QString("up")] = QString("%1").arg(data[QString("value")].toFloat(), 4, 'f', 0);
|
||||
if ((configuration[QString("downTooltip")].toInt() == 2) &&
|
||||
(!isnan(data[QString("value")].toFloat()))) {
|
||||
@ -393,7 +436,13 @@ void AwesomeWidget::dataUpdated(const QString &sourceName, const Plasma::DataEng
|
||||
tooltipValues[QString("swap")].takeFirst();
|
||||
tooltipValues[QString("swap")].append(values[QString("swap")].toFloat());
|
||||
}
|
||||
} else if (sourceName.indexOf(tempRegExp) > -1) {
|
||||
if (foundBars.indexOf(QRegExp(QString("bar[0-9].*swap"))) > -1) {
|
||||
for (int j=0; j<foundBars.count(); j++) {
|
||||
if (getItemByTag(foundBars[j])->getBar() != QString("swap")) continue;
|
||||
values[foundBars[j]] = values[QString("swap")];
|
||||
}
|
||||
}
|
||||
} else if (sourceName.contains(tempRegExp)) {
|
||||
if (data[QString("units")].toString() == QString("rpm")) {
|
||||
for (int i=0; i<counts[QString("fan")]; i++)
|
||||
if (sourceName == configuration[QString("fanDevice")].split(QString("@@"))[i]) {
|
||||
@ -441,14 +490,16 @@ void AwesomeWidget::disconnectFromEngine()
|
||||
QRegExp regExp;
|
||||
|
||||
// battery
|
||||
regExp = QRegExp(QString("(ac|bat)"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)(ac|bat.*)"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("batteryTooltip")].toInt() == 2))
|
||||
(configuration[QString("batteryTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1))
|
||||
extsysmonEngine->disconnectSource(QString("battery"), this);
|
||||
// cpu
|
||||
regExp = QRegExp(QString("cpu(?!cl).*"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)cpu(?!cl).*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("cpuTooltip")].toInt() == 2)) {
|
||||
(configuration[QString("cpuTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1)) {
|
||||
sysmonEngine->disconnectSource(QString("cpu/system/TotalLoad"), this);
|
||||
for (int i=0; i<counts[QString("cpu")]; i++)
|
||||
sysmonEngine->disconnectSource(QString("cpu/cpu") + QString::number(i) + QString("/TotalLoad"), this);
|
||||
@ -482,16 +533,18 @@ void AwesomeWidget::disconnectFromEngine()
|
||||
for (int i=0; i<configuration[QString("fanDevice")].split(QString("@@")).count(); i++)
|
||||
sysmonEngine->disconnectSource(configuration[QString("fanDevice")].split(QString("@@"))[i], this);
|
||||
// gpu
|
||||
regExp = QRegExp(QString("gpu"));
|
||||
if (foundKeys.indexOf(regExp) > -1)
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)gpu"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(foundBars.indexOf(regExp) > -1))
|
||||
extsysmonEngine->disconnectSource(QString("gpu"), this);
|
||||
// gputemp
|
||||
regExp = QRegExp(QString("gputemp"));
|
||||
if (foundKeys.indexOf(regExp) > -1)
|
||||
extsysmonEngine->disconnectSource(QString("gputemp"), this);
|
||||
// mount
|
||||
regExp = QRegExp(QString("hdd([0-9]|mb|gb|freemb|freegb|totmb|totgb).*"));
|
||||
if (foundKeys.indexOf(regExp) > -1)
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)hdd([0-9]|mb|gb|freemb|freegb|totmb|totgb).*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(foundBars.indexOf(regExp) > -1))
|
||||
for (int i=0; i<configuration[QString("mount")].split(QString("@@")).count(); i++) {
|
||||
sysmonEngine->disconnectSource(QString("partitions") + configuration[QString("mount")].split(QString("@@"))[i] + QString("/filllevel"), this);
|
||||
sysmonEngine->disconnectSource(QString("partitions") + configuration[QString("mount")].split(QString("@@"))[i] + QString("/freespace"), this);
|
||||
@ -502,9 +555,10 @@ void AwesomeWidget::disconnectFromEngine()
|
||||
if (foundKeys.indexOf(regExp) > -1)
|
||||
extsysmonEngine->disconnectSource(QString("hddtemp"), this);
|
||||
// memory
|
||||
regExp = QRegExp(QString("mem.*"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)mem.*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("memTooltip")].toInt() == 2)) {
|
||||
(configuration[QString("memTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1)) {
|
||||
sysmonEngine->disconnectSource(QString("mem/physical/free"), this);
|
||||
sysmonEngine->disconnectSource(QString("mem/physical/used"), this);
|
||||
sysmonEngine->disconnectSource(QString("mem/physical/application"), this);
|
||||
@ -529,9 +583,10 @@ void AwesomeWidget::disconnectFromEngine()
|
||||
if (foundKeys.indexOf(regExp) > -1)
|
||||
extsysmonEngine->disconnectSource(QString("ps"), this);
|
||||
// swap
|
||||
regExp = QRegExp(QString("swap.*"));
|
||||
regExp = QRegExp(QString("(^|bar[0-9].*)swap.*"));
|
||||
if ((foundKeys.indexOf(regExp) > -1) ||
|
||||
(configuration[QString("swapTooltip")].toInt() == 2)) {
|
||||
(configuration[QString("swapTooltip")].toInt() == 2) ||
|
||||
(foundBars.indexOf(regExp) > -1)) {
|
||||
sysmonEngine->disconnectSource(QString("mem/swap/free"), this);
|
||||
sysmonEngine->disconnectSource(QString("mem/swap/used"), this);
|
||||
}
|
||||
|
11
sources/awesome-widget/desktops/aw-bat-bar.desktop
Normal file
11
sources/awesome-widget/desktops/aw-bat-bar.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=bar3
|
||||
Comment=Simple bat bar
|
||||
X-AW-Value=bat
|
||||
X-AW-ActiveColor="0,0,0,255"
|
||||
X-AW-InactiveColor="255,255,255,255"
|
||||
X-AW-Type=Horizontal
|
||||
X-AW-Direction=LeftToRight
|
||||
X-AW-Height=25
|
||||
X-AW-Width=100
|
11
sources/awesome-widget/desktops/aw-cpu-bar.desktop
Normal file
11
sources/awesome-widget/desktops/aw-cpu-bar.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=bar0
|
||||
Comment=Simple cpu bar
|
||||
X-AW-Value=cpu
|
||||
X-AW-ActiveColor="0,0,0,255"
|
||||
X-AW-InactiveColor="255,255,255,255"
|
||||
X-AW-Type=Horizontal
|
||||
X-AW-Direction=LeftToRight
|
||||
X-AW-Height=25
|
||||
X-AW-Width=100
|
11
sources/awesome-widget/desktops/aw-mem-bar.desktop
Normal file
11
sources/awesome-widget/desktops/aw-mem-bar.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=bar1
|
||||
Comment=Simple mem bar
|
||||
X-AW-Value=mem
|
||||
X-AW-ActiveColor="0,0,0,255"
|
||||
X-AW-InactiveColor="255,255,255,255"
|
||||
X-AW-Type=Horizontal
|
||||
X-AW-Direction=LeftToRight
|
||||
X-AW-Height=25
|
||||
X-AW-Width=100
|
11
sources/awesome-widget/desktops/aw-swap-bar.desktop
Normal file
11
sources/awesome-widget/desktops/aw-swap-bar.desktop
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=bar2
|
||||
Comment=Simple swap bar
|
||||
X-AW-Value=swap
|
||||
X-AW-ActiveColor="0,0,0,255"
|
||||
X-AW-InactiveColor="255,255,255,255"
|
||||
X-AW-Type=Horizontal
|
||||
X-AW-Direction=LeftToRight
|
||||
X-AW-Height=25
|
||||
X-AW-Width=100
|
23
sources/awesome-widget/desktops/bar-template.desktop
Normal file
23
sources/awesome-widget/desktops/bar-template.desktop
Normal file
@ -0,0 +1,23 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
# name should be barN and uniq
|
||||
Name=bar100500
|
||||
Comment=Template for the AW bars
|
||||
# value to show. Supported types are
|
||||
# cpu, cpu[0-9], mem, swap, bat
|
||||
X-AW-Value=cpu
|
||||
# active color, RGBA
|
||||
# you should use double quotes
|
||||
X-AW-ActiveColor="0,0,0,255"
|
||||
# inactive color, RGBA
|
||||
# you should use double quotes
|
||||
X-AW-InactiveColor="255,255,255,255"
|
||||
# bar type. Supported types are
|
||||
# Horizontal, Vertical, Circle
|
||||
X-AW-Type=Horizontal
|
||||
# direction. LeftToRight or RightToLeft
|
||||
X-AW-Direction=LeftToRight
|
||||
# height in pixels
|
||||
X-AW-Height=25
|
||||
# width in pixels
|
||||
X-AW-Width=100
|
470
sources/awesome-widget/graphicalitem.cpp
Normal file
470
sources/awesome-widget/graphicalitem.cpp
Normal file
@ -0,0 +1,470 @@
|
||||
/***************************************************************************
|
||||
* This file is part of awesome-widgets *
|
||||
* *
|
||||
* awesome-widgets 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 3 of the *
|
||||
* License, or (at your option) any later version. *
|
||||
* *
|
||||
* awesome-widgets 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 awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#include "graphicalitem.h"
|
||||
#include "ui_graphicalitem.h"
|
||||
|
||||
#include <QBuffer>
|
||||
#include <QColorDialog>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QGraphicsEllipseItem>
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsView>
|
||||
#include <QSettings>
|
||||
|
||||
#include <pdebug/pdebug.h>
|
||||
|
||||
|
||||
GraphicalItem::GraphicalItem(QWidget *parent, const QString desktopName, const QStringList directories, const bool debugCmd)
|
||||
: QDialog(parent),
|
||||
fileName(desktopName),
|
||||
dirs(directories),
|
||||
debug(debugCmd),
|
||||
ui(new Ui::GraphicalItem)
|
||||
{
|
||||
readConfiguration();
|
||||
|
||||
ui->setupUi(this);
|
||||
connect(ui->pushButton_activeColor, SIGNAL(clicked()), this, SLOT(changeColor()));
|
||||
connect(ui->pushButton_inactiveColor, SIGNAL(clicked()), this, SLOT(changeColor()));
|
||||
}
|
||||
|
||||
|
||||
GraphicalItem::~GraphicalItem()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getImage(const float value)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Value" << value;
|
||||
if (_bar == QString("none")) return QString("");
|
||||
|
||||
QColor active = stringToColor(_activeColor);
|
||||
QColor inactive = stringToColor(_inactiveColor);
|
||||
float percent = value / 100.0;
|
||||
int scale[2] = {1, 1};
|
||||
QPen pen = QPen();
|
||||
QGraphicsScene *scene = new QGraphicsScene();
|
||||
scene->setBackgroundBrush(QBrush(Qt::NoBrush));
|
||||
QGraphicsView *view = new QGraphicsView(scene);
|
||||
view->setStyleSheet(QString("background: transparent"));
|
||||
view->setContentsMargins(0, 0, 0, 0);
|
||||
view->setFrameShape(QFrame::NoFrame);
|
||||
view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
view->resize(_width + 5.0, _height + 5.0);
|
||||
|
||||
// paint
|
||||
switch(_type) {
|
||||
case Vertical:
|
||||
pen.setWidth(_width);
|
||||
// inactive
|
||||
pen.setColor(inactive);
|
||||
scene->addLine(0.5 * _width, -0.5 * _width, 0.5 * _width, (1.0 - percent) * _height - 0.5 * _width, pen);
|
||||
// active
|
||||
pen.setColor(active);
|
||||
scene->addLine(0.5 * _width, (1.0 - percent) * _height + 0.5 * _width, 0.5 * _width, _height + 0.5 * _width, pen);
|
||||
// scale
|
||||
scale[1] = -2 * (int)_direction + 1;
|
||||
break;
|
||||
case Circle:
|
||||
QGraphicsEllipseItem *circle;
|
||||
pen.setWidth(1.0);
|
||||
// inactive
|
||||
pen.setColor(inactive);
|
||||
circle = scene->addEllipse(0.0, 0.0, _width, _height, pen, QBrush(inactive, Qt::SolidPattern));
|
||||
circle->setSpanAngle(- (1.0 - percent) * 360.0 * 16.0);
|
||||
circle->setStartAngle(90.0 * 16.0 - percent * 360.0 * 16.0);
|
||||
// active
|
||||
pen.setColor(active);
|
||||
circle = scene->addEllipse(0.0, 0.0, _width, _height, pen, QBrush(active, Qt::SolidPattern));
|
||||
circle->setSpanAngle(- percent * 360.0 * 16.0);
|
||||
circle->setStartAngle(90.0 * 16.0);
|
||||
// scale
|
||||
scale[0] = -2 *(int)_direction + 1;
|
||||
break;
|
||||
default:
|
||||
pen.setWidth(_height);
|
||||
// inactive
|
||||
pen.setColor(inactive);
|
||||
scene->addLine(percent * _width + 0.5 * _height, 0.5 * _height, _width + 0.5 * _height, 0.5 * _height, pen);
|
||||
// active
|
||||
pen.setColor(active);
|
||||
scene->addLine(-0.5 * _height, 0.5 * _height, percent * _width - 0.5 * _height, 0.5 * _height, pen);
|
||||
// scale
|
||||
scale[0] = -2 * (int)_direction + 1;
|
||||
break;
|
||||
}
|
||||
|
||||
// convert
|
||||
QPixmap pixmap = QPixmap::grabWidget(view).transformed(QTransform().scale(scale[0], scale[1]));
|
||||
QByteArray byteArray;
|
||||
QBuffer buffer(&byteArray);
|
||||
pixmap.save(&buffer, "PNG");
|
||||
QString url = QString("<img src=\"data:image/png;base64,%1\"/>").arg(QString(byteArray.toBase64()));
|
||||
delete view;
|
||||
delete scene;
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getFileName()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return fileName;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getName()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _name;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getComment()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _comment;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getBar()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _bar;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getActiveColor()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _activeColor;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getInactiveColor()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _inactiveColor;
|
||||
}
|
||||
|
||||
|
||||
GraphicalItem::Type GraphicalItem::getType()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _type;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getStrType()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString value;
|
||||
switch(_type) {
|
||||
case Vertical:
|
||||
value = QString("Vertical");
|
||||
break;
|
||||
case Circle:
|
||||
value = QString("Circle");
|
||||
break;
|
||||
default:
|
||||
value = QString("Horizontal");
|
||||
break;
|
||||
}\
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
GraphicalItem::Direction GraphicalItem::getDirection()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _direction;
|
||||
}
|
||||
|
||||
|
||||
QString GraphicalItem::getStrDirection()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString value;
|
||||
switch (_direction) {
|
||||
case RightToLeft:
|
||||
value = QString("RightToLeft");
|
||||
break;
|
||||
default:
|
||||
value = QString("LeftToRight");
|
||||
break;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
int GraphicalItem::getHeight()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _height;
|
||||
}
|
||||
|
||||
|
||||
int GraphicalItem::getWidth()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _width;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setName(const QString name)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Name" << name;
|
||||
|
||||
_name = name;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setComment(const QString comment)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Comment" << comment;
|
||||
|
||||
_comment = comment;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setBar(const QString bar)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Bar" << bar;
|
||||
|
||||
_bar = bar;
|
||||
if ((!_bar.contains(QRegExp(QString("cpu(?!cl).*")))) &&
|
||||
(!_bar.contains(QRegExp(QString("gpu")))) &&
|
||||
(!_bar.contains(QRegExp(QString("mem")))) &&
|
||||
(!_bar.contains(QRegExp(QString("swap")))) &&
|
||||
(!_bar.contains(QRegExp(QString("hdd[0-9].*")))) &&
|
||||
(!_bar.contains(QRegExp(QString("bat.*")))))
|
||||
_bar = QString("none");
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setActiveColor(const QString color)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Color" << color;
|
||||
|
||||
_activeColor = color;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setInactiveColor(const QString color)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Color" << color;
|
||||
|
||||
_inactiveColor = color;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setType(const QString type)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Type" << type;
|
||||
|
||||
if (type == QString("Vertical"))
|
||||
_type = Vertical;
|
||||
else if (type == QString("Circle"))
|
||||
_type = Circle;
|
||||
else
|
||||
_type = Horizontal;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setDirection(const QString direction)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Direction" << direction;
|
||||
|
||||
if (direction == QString("RightToLeft"))
|
||||
_direction = RightToLeft;
|
||||
else
|
||||
_direction = LeftToRight;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setHeight(const int height)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Height" << height;
|
||||
if (height <= 0) return;
|
||||
|
||||
_height = height;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::setWidth(const int width)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Width" << width;
|
||||
if (width <= 0) return;
|
||||
|
||||
_width = width;
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::readConfiguration()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
for (int i=dirs.count()-1; i>=0; i--) {
|
||||
if (!QDir(dirs[i]).entryList(QDir::Files).contains(fileName)) continue;
|
||||
QSettings settings(dirs[i] + QDir::separator() + fileName, QSettings::IniFormat);
|
||||
settings.beginGroup(QString("Desktop Entry"));
|
||||
setName(settings.value(QString("Name"), _name).toString());
|
||||
setComment(settings.value(QString("Comment"), _comment).toString());
|
||||
setBar(settings.value(QString("X-AW-Value"), _bar).toString());
|
||||
setActiveColor(settings.value(QString("X-AW-ActiveColor"), _activeColor).toString());
|
||||
setInactiveColor(settings.value(QString("X-AW-InactiveColor"), _inactiveColor).toString());
|
||||
setType(settings.value(QString("X-AW-Type"), getStrType()).toString());
|
||||
setDirection(settings.value(QString("X-AW-Direction"), getStrDirection()).toString());
|
||||
setHeight(settings.value(QString("X-AW-Height"), QString::number(_height)).toInt());
|
||||
setWidth(settings.value(QString("X-AW-Width"), QString::number(_width)).toInt());
|
||||
settings.endGroup();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::showConfiguration(const QStringList tags)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
ui->label_nameValue->setText(_name);
|
||||
ui->lineEdit_comment->setText(_comment);
|
||||
ui->comboBox_value->addItems(tags);
|
||||
ui->comboBox_value->addItem(_bar);
|
||||
ui->comboBox_value->setCurrentIndex(ui->comboBox_value->count() - 1);
|
||||
ui->pushButton_activeColor->setText(_activeColor);
|
||||
ui->pushButton_inactiveColor->setText(_inactiveColor);
|
||||
ui->comboBox_type->setCurrentIndex((int)_type);
|
||||
ui->comboBox_direction->setCurrentIndex((int)_direction);
|
||||
ui->spinBox_height->setValue(_height);
|
||||
ui->spinBox_width->setValue(_width);
|
||||
|
||||
int ret = exec();
|
||||
if (ret != 1) return;
|
||||
setName(ui->label_nameValue->text());
|
||||
setComment(ui->lineEdit_comment->text());
|
||||
setBar(ui->comboBox_value->currentText());
|
||||
setActiveColor(ui->pushButton_activeColor->text().remove(QChar('&')));
|
||||
setInactiveColor(ui->pushButton_inactiveColor->text().remove(QChar('&')));
|
||||
setType(ui->comboBox_type->currentText());
|
||||
setDirection(ui->comboBox_direction->currentText());
|
||||
setHeight(ui->spinBox_height->value());
|
||||
setWidth(ui->spinBox_width->value());
|
||||
|
||||
writeConfiguration();
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::tryDelete()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
for (int i=0; i<dirs.count(); i++)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Remove file" << dirs[i] + QDir::separator() + fileName <<
|
||||
QFile::remove(dirs[i] + QDir::separator() + fileName);
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::writeConfiguration()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QSettings settings(dirs[0] + QDir::separator() + fileName, QSettings::IniFormat);
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Configuration file" << settings.fileName();
|
||||
settings.beginGroup(QString("Desktop Entry"));
|
||||
|
||||
settings.setValue(QString("Encoding"), QString("UTF-8"));
|
||||
settings.setValue(QString("Name"), _name);
|
||||
settings.setValue(QString("Comment"), _comment);
|
||||
settings.setValue(QString("X-AW-Value"), _bar);
|
||||
settings.setValue(QString("X-AW-ActiveColor"), _activeColor);
|
||||
settings.setValue(QString("X-AW-InactiveColor"), _inactiveColor);
|
||||
settings.setValue(QString("X-AW-Type"), getStrType());
|
||||
settings.setValue(QString("X-AW-Direction"), getStrDirection());
|
||||
settings.setValue(QString("X-AW-Height"), _height);
|
||||
settings.setValue(QString("X-AW-Width"), _width);
|
||||
|
||||
settings.endGroup();
|
||||
settings.sync();
|
||||
}
|
||||
|
||||
|
||||
void GraphicalItem::changeColor()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QColor color = stringToColor(((QPushButton *)sender())->text());
|
||||
QColor newColor = QColorDialog::getColor(color, 0, i18n("Select color"),
|
||||
QColorDialog::ShowAlphaChannel);
|
||||
if (!newColor.isValid()) return;
|
||||
|
||||
QStringList colorText;
|
||||
colorText.append(QString("%1").arg(newColor.red()));
|
||||
colorText.append(QString("%1").arg(newColor.green()));
|
||||
colorText.append(QString("%1").arg(newColor.blue()));
|
||||
colorText.append(QString("%1").arg(newColor.alpha()));
|
||||
((QPushButton *)sender())->setText(colorText.join(QChar(',')));
|
||||
}
|
||||
|
||||
|
||||
QColor GraphicalItem::stringToColor(const QString color)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Color" << color;
|
||||
|
||||
QColor qcolor;
|
||||
QStringList listColor = color.split(QChar(','));
|
||||
while (listColor.count() < 4)
|
||||
listColor.append(QString("0"));
|
||||
qcolor.setRed(listColor[0].toInt());
|
||||
qcolor.setGreen(listColor[1].toInt());
|
||||
qcolor.setBlue(listColor[2].toInt());
|
||||
qcolor.setAlpha(listColor[3].toInt());
|
||||
|
||||
return qcolor;
|
||||
}
|
98
sources/awesome-widget/graphicalitem.h
Normal file
98
sources/awesome-widget/graphicalitem.h
Normal file
@ -0,0 +1,98 @@
|
||||
/***************************************************************************
|
||||
* This file is part of awesome-widgets *
|
||||
* *
|
||||
* awesome-widgets 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 3 of the *
|
||||
* License, or (at your option) any later version. *
|
||||
* *
|
||||
* awesome-widgets 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 awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef GRAPHICALITEM_H
|
||||
#define GRAPHICALITEM_H
|
||||
|
||||
#include <QColor>
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class GraphicalItem;
|
||||
}
|
||||
|
||||
class GraphicalItem : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum Direction {
|
||||
LeftToRight = 0,
|
||||
RightToLeft
|
||||
};
|
||||
enum Type {
|
||||
Horizontal = 0,
|
||||
Vertical,
|
||||
Circle
|
||||
};
|
||||
|
||||
explicit GraphicalItem(QWidget *parent = 0, const QString desktopName = QString(),
|
||||
const QStringList directories = QStringList(), const bool debugCmd = false);
|
||||
~GraphicalItem();
|
||||
QString getImage(const float value);
|
||||
// get methods
|
||||
QString getFileName();
|
||||
QString getName();
|
||||
QString getComment();
|
||||
QString getBar();
|
||||
QString getActiveColor();
|
||||
QString getInactiveColor();
|
||||
Type getType();
|
||||
QString getStrType();
|
||||
Direction getDirection();
|
||||
QString getStrDirection();
|
||||
int getHeight();
|
||||
int getWidth();
|
||||
// set methods
|
||||
void setName(const QString name = QString("none"));
|
||||
void setComment(const QString comment = QString("empty"));
|
||||
void setBar(const QString bar = QString("cpu"));
|
||||
void setActiveColor(const QString color = QString("0,0,0,130"));
|
||||
void setInactiveColor(const QString color = QString("255,255,255,130"));
|
||||
void setType(const QString type = QString("Horizontal"));
|
||||
void setDirection(const QString direction = QString("LeftToRight"));
|
||||
void setHeight(const int height = 100);
|
||||
void setWidth(const int width = 100);
|
||||
|
||||
public slots:
|
||||
void readConfiguration();
|
||||
void showConfiguration(const QStringList tags = QStringList());
|
||||
void tryDelete();
|
||||
void writeConfiguration();
|
||||
|
||||
private slots:
|
||||
void changeColor();
|
||||
|
||||
private:
|
||||
QColor stringToColor(const QString color);
|
||||
QString fileName;
|
||||
QStringList dirs;
|
||||
bool debug;
|
||||
Ui::GraphicalItem *ui;
|
||||
// properties
|
||||
QString _name = QString("none");
|
||||
QString _comment = QString("empty");
|
||||
QString _bar = QString("cpu");
|
||||
QString _activeColor = QString("0,0,0,130");
|
||||
QString _inactiveColor = QString("255,255,255,130");
|
||||
Type _type = Horizontal;
|
||||
Direction _direction = LeftToRight;
|
||||
int _height = 100;
|
||||
int _width = 100;
|
||||
};
|
||||
|
||||
#endif /* GRAPHICALITEM_H */
|
293
sources/awesome-widget/graphicalitem.ui
Normal file
293
sources/awesome-widget/graphicalitem.ui
Normal file
@ -0,0 +1,293 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>GraphicalItem</class>
|
||||
<widget class="QDialog" name="GraphicalItem">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>416</width>
|
||||
<height>325</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Configuration</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_name">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_name">
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_nameValue">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_comment">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_comment">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Comment</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_comment"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_value">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_value">
|
||||
<property name="text">
|
||||
<string>Value</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_value">
|
||||
<property name="editable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_activeColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_activeColor">
|
||||
<property name="text">
|
||||
<string>Active color</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_activeColor">
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_inactiveColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_inactiveColor">
|
||||
<property name="text">
|
||||
<string>Inactive color</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_inactiveColor">
|
||||
<property name="text">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_type">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_type">
|
||||
<property name="text">
|
||||
<string>Type</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_type">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Horizontal</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Vertical</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Circle</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_direction">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_direction">
|
||||
<property name="text">
|
||||
<string>Direction</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_direction">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">LeftToRight</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">RightToLeft</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_height">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_height">
|
||||
<property name="text">
|
||||
<string>Height</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_height">
|
||||
<property name="maximum">
|
||||
<number>2000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>25</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_width">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_width">
|
||||
<property name="text">
|
||||
<string>Width</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_width">
|
||||
<property name="maximum">
|
||||
<number>2000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>25</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<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>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>GraphicalItem</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>GraphicalItem</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
@ -7,3 +7,8 @@ Comment=Awesome widget information
|
||||
Name=System information
|
||||
Comment=System information
|
||||
Action=Popup
|
||||
|
||||
[Event/tag]
|
||||
Name=Tag information
|
||||
Comment=Tag information
|
||||
Action=Popup
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"PO-Revision-Date: 2014-09-21 20:19+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-11-21 05:12+0300\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: English <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -18,66 +18,172 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Run ksysguard"
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr "Show README"
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr "Update text"
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
msgstr "Custom command"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr "Check for updates"
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
msgid "Current version : %1"
|
||||
msgstr "Current version : %1"
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
msgid "New version : %1"
|
||||
msgstr "New version : %1"
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr "Click \"Ok\" to download"
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr "There are updates"
|
||||
|
||||
#: configuration.cpp:307
|
||||
msgid "Tag: %1"
|
||||
msgstr "Tag: %1"
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
msgid "Comment: %1"
|
||||
msgstr "Comment: %1"
|
||||
|
||||
#: configuration.cpp:382
|
||||
msgid "Name: %1"
|
||||
msgstr "Name: %1"
|
||||
|
||||
#: configuration.cpp:384
|
||||
msgid "Exec: %1"
|
||||
msgstr "Exec: %1"
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr "Package manager"
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr "Null lines"
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr "A set of minimalistic plasmoid widgets"
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr "Links:"
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr "Homepage"
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr "Repository"
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr "Bugtracker"
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr "Translation issue"
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr "AUR packages"
|
||||
|
||||
#: configuration.cpp:437
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr "This software is licensed under %1"
|
||||
|
||||
#: configuration.cpp:445
|
||||
msgid "Translators: %1"
|
||||
msgstr "Translators: %1"
|
||||
|
||||
#: configuration.cpp:446
|
||||
msgid "This software uses: %1"
|
||||
msgstr "This software uses: %1"
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr "Advanced"
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr "Tooltip"
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr "Appearance"
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr "About"
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr "Enter file name"
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr "File name"
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
msgid "Edit"
|
||||
msgstr "Edit"
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr "Copy"
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr "Remove"
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr "Select font"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgstr "Enable background"
|
||||
#: graphicalitem.cpp:442
|
||||
msgid "Select color"
|
||||
msgstr "Select color"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Enable popup on mouse click"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr "Enable background"
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
msgid "Custom time format"
|
||||
msgstr "Custom time format"
|
||||
@ -192,82 +298,130 @@ msgid "Line, which returns when AC is offline"
|
||||
msgstr "Line, which returns when AC is offline"
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Bars"
|
||||
msgstr "Bars"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr "Add"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Time interval"
|
||||
msgstr "Time interval"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr "Font"
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font size"
|
||||
msgstr "Font size"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "Font color"
|
||||
msgstr "Font color"
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "Font style"
|
||||
msgstr "Font style"
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "Font weight"
|
||||
msgstr "Font weight"
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgstr "MPD port"
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgstr "GPU device"
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "hddtemp cmd"
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "GPU device"
|
||||
msgstr "GPU device"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Music player"
|
||||
msgstr "Music player"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "MPD port"
|
||||
msgstr "MPD port"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr "MPD address"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
msgstr "Desktop check cmd"
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPRIS player name"
|
||||
msgstr "MPRIS player name"
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr "ACPI path"
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/\" by default"
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr "MPRIS player name"
|
||||
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
msgid "Custom scripts"
|
||||
msgstr "Custom scripts"
|
||||
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr "Configuration"
|
||||
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr "Name"
|
||||
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr "Comment"
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr "Value"
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
msgid "Active color"
|
||||
msgstr "Active color"
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
msgid "Inactive color"
|
||||
msgstr "Inactive color"
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr "Type"
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr "Direction"
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr "Height"
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr "Width"
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
@ -275,47 +429,47 @@ msgstr ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Number of values for tooltips"
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr "Background"
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr "CPU color"
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr "CPU clock color"
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr "Memory color"
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr "Swap color"
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr "Download speed color"
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr "Upload speed color"
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr "Battery active color"
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
msgid "Battery inactive color"
|
||||
msgstr "Battery inactive color"
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
@ -323,32 +477,38 @@ msgstr ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr "Add"
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Interval"
|
||||
#~ msgstr "Time interval"
|
||||
|
||||
#~ msgid "Desktop check cmd"
|
||||
#~ msgstr "Desktop check cmd"
|
||||
|
||||
#~ msgid "Custom command"
|
||||
#~ msgstr "Custom command"
|
||||
|
||||
#~ msgid "Battery device"
|
||||
#~ msgstr "Battery device"
|
||||
|
||||
@ -370,9 +530,6 @@ msgstr "esalexeev@gmail.com"
|
||||
#~ msgid "Appearance configuration"
|
||||
#~ msgstr "Appearance configuration"
|
||||
|
||||
#~ msgid "DE Configuration"
|
||||
#~ msgstr "DE Configuration"
|
||||
|
||||
#~ msgid "Tooltip configuration"
|
||||
#~ msgstr "Tooltip configuration"
|
||||
|
||||
@ -590,17 +747,11 @@ msgstr "esalexeev@gmail.com"
|
||||
#~ "$pkgcountN - number of packages which are available for updates, command "
|
||||
#~ "N. For example $pkgcount0"
|
||||
|
||||
#~ msgid "Custom"
|
||||
#~ msgstr "Custom"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
#~ msgstr ""
|
||||
#~ "$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
|
||||
#~ msgid "Current desktop"
|
||||
#~ msgstr "Current desktop"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$name - desktop name\n"
|
||||
#~ "$number - desktop number\n"
|
||||
|
@ -7,10 +7,10 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"PO-Revision-Date: 2014-09-05 11:18+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Spanish <kde-russian@lists.kde.ru>\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-12-15 19:51-0500\n"
|
||||
"Last-Translator: Ernesto Avilés Vázquez\n"
|
||||
"Language-Team: Spanish <kde-i18n-doc@kde.org>\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@ -18,66 +18,172 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Ejecutar ksysguard"
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr "Mostrar el README"
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr "Actualizar texto"
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
msgstr "Comando personalizado"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr "Comprobar actualizaciones"
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
msgid "Current version : %1"
|
||||
msgstr "Versión actual: %1"
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
msgid "New version : %1"
|
||||
msgstr "Nueva versión: %1"
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr "Haz clic en «Ok» para descargar"
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr "Hay actualizaciones disponibles"
|
||||
|
||||
#: configuration.cpp:307
|
||||
msgid "Tag: %1"
|
||||
msgstr "Etiqueta: %1"
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
msgid "Comment: %1"
|
||||
msgstr "Comentario: %1"
|
||||
|
||||
#: configuration.cpp:382
|
||||
msgid "Name: %1"
|
||||
msgstr "Nombre: %1"
|
||||
|
||||
#: configuration.cpp:384
|
||||
msgid "Exec: %1"
|
||||
msgstr "Ejecutar: %1"
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr "Gestor de paquetes"
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr "Número de líneas nulas"
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
"Versión %1\n"
|
||||
"(fecha de construcción %2)"
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr "Un conjunto de plasmoides minimalistas"
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr "Enlaces:"
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr "Página principal"
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr "Repositorio"
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr "Reporte de errores"
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr "Problemas de traducción"
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr "Paquetes AUR"
|
||||
|
||||
#: configuration.cpp:437
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr "Este software está licenciado bajo %1"
|
||||
|
||||
#: configuration.cpp:445
|
||||
msgid "Translators: %1"
|
||||
msgstr "Traductores: %1"
|
||||
|
||||
#: configuration.cpp:446
|
||||
msgid "This software uses: %1"
|
||||
msgstr "Este software usa: %1"
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr "Avanzado"
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr "Ventana emergente"
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr "Apariencia"
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr "Inserta el nombre de archivo"
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr "Nombre de archivo"
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
msgid "Edit"
|
||||
msgstr "Editar"
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr "Copiar"
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr "Eliminar"
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
msgstr "Elegir tipo de letra"
|
||||
|
||||
#: graphicalitem.cpp:442
|
||||
msgid "Select color"
|
||||
msgstr "Elegir color"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Habilitar ventana emergente al hacer clic"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr "Habilitar fondo"
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
msgid "Custom time format"
|
||||
msgstr "Formato personalizado para la hora"
|
||||
@ -101,16 +207,16 @@ msgid ""
|
||||
"$ss - seconds\n"
|
||||
"$s - seconds w\\o zero"
|
||||
msgstr ""
|
||||
"$dddd - día de la semana largo\n"
|
||||
"$ddd - día de la semana corto\n"
|
||||
"$dddd - día de la semana en formato largo\n"
|
||||
"$ddd - día de la semana en formato corto\n"
|
||||
"$dd - día\n"
|
||||
"$d - día (sin ceros)\n"
|
||||
"$MMMM - mes largo\n"
|
||||
"$MMM - mes corto\n"
|
||||
"$MMMM - mes en formato largo\n"
|
||||
"$MMM - mes en formato corto\n"
|
||||
"$MM - mes\n"
|
||||
"$M - mes (sin ceros)\n"
|
||||
"$yyyy - año\n"
|
||||
"$yy - año largo\n"
|
||||
"$yy - año en formato largo\n"
|
||||
"$hh - horas (solo formato de 24 horas)\n"
|
||||
"$h - horas (sin ceros, solo formato de 24 horas)\n"
|
||||
"$mm - minutos\n"
|
||||
@ -152,9 +258,8 @@ msgid "Editable"
|
||||
msgstr "Editable"
|
||||
|
||||
#: po/rc.cpp:50 rc.cpp:50
|
||||
#, fuzzy
|
||||
msgid "Fan devices"
|
||||
msgstr "Dispositivo de alimentación"
|
||||
msgstr "Dispositivos de ventilación"
|
||||
|
||||
#: po/rc.cpp:56 rc.cpp:56
|
||||
msgid "Mount points"
|
||||
@ -162,11 +267,11 @@ msgstr "Puntos de montaje"
|
||||
|
||||
#: po/rc.cpp:62 rc.cpp:62
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "Disco duro (velocidad)"
|
||||
msgstr "Discos duros (velocidad)"
|
||||
|
||||
#: po/rc.cpp:68 rc.cpp:68
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "Disco duro (temperatura)"
|
||||
msgstr "Discos duros (temperatura)"
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgid "Disable auto select device and set specified device"
|
||||
@ -182,7 +287,7 @@ msgstr "Etiqueta para alimentación conectada"
|
||||
|
||||
#: po/rc.cpp:83 rc.cpp:83
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Línea que devuelve si la alimentación está conectada"
|
||||
msgstr "Línea devuelta si la alimentación está conectada"
|
||||
|
||||
#: po/rc.cpp:86 rc.cpp:86
|
||||
msgid "AC offline tag"
|
||||
@ -190,69 +295,82 @@ msgstr "Etiqueta para la alimentación desconectada"
|
||||
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Línea que devuelve si la alimentación está desconectada"
|
||||
msgstr "Línea devuelta si la alimentación está desconectada"
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Bars"
|
||||
msgstr "Barras"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr "Añadir"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tiempo"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr "Fuente"
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Font size"
|
||||
msgstr "Tamaño de fuente"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Font color"
|
||||
msgstr "Color de fuente"
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
msgid "Font style"
|
||||
msgstr "Estilo de fuente"
|
||||
msgstr "Tipo de letra"
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font weight"
|
||||
msgstr "Grosor de la fuente"
|
||||
msgid "Font size"
|
||||
msgstr "Tamaño de letra"
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgstr "Disco duro"
|
||||
msgid "Font color"
|
||||
msgstr "Color de letra"
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgstr "Puerto de MPD"
|
||||
msgid "Font style"
|
||||
msgstr "Estilo de letra"
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo de GPU"
|
||||
msgid "Font weight"
|
||||
msgstr "Grosor de la letra"
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Comando hddtemp"
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo de GPU"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "HDD"
|
||||
msgstr "Disco duro"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Music player"
|
||||
msgstr "Reproductor de música"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "MPD port"
|
||||
msgstr "Puerto de MPD"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr "Dirección de MPD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr "Ruta ACPI"
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por defecto"
|
||||
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr ""
|
||||
msgstr "<b>NOTA:</b> La interfaz DBus del reproductor debería estar activada"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr ""
|
||||
msgstr "Nombre del reproductor MPRIS"
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
@ -260,98 +378,135 @@ msgstr ""
|
||||
"Editable\n"
|
||||
"del - eliminar elemento"
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
msgid "ACPI path"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
msgid "Custom scripts"
|
||||
msgstr "Scripts personalizados"
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por defecto"
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr "Configuración"
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr "Nombre"
|
||||
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr "Comentario"
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr "Valor"
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
msgid "Active color"
|
||||
msgstr "Color de activo"
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
msgid "Inactive color"
|
||||
msgstr "Color de inactivo"
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr "Tipo"
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr "Dirección"
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr "Alto"
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr "Ancho"
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
"Las etiquetas para CPU, frecuencia de la CPU, memoria, swap y red soportan "
|
||||
"ventanas emergentes. Para habilitarlas habilite la caja de seleccione la "
|
||||
"casilla de verificación pertinente."
|
||||
"ventanas emergentes. Para habilitarlas marca las cajas de selección "
|
||||
"necesarias."
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Número de valores para las ventanas emergentes"
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr ""
|
||||
msgstr "Fondo"
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr "Color de la CPU"
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr "Color de la frecuencia de la CPU"
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr "Color de la memoria"
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr "Color de la swap"
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr "Color de la velocidad de recepción"
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr "Color de la velocidad de envío"
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr ""
|
||||
msgstr "Color de la batería activa"
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#, fuzzy
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
msgid "Battery inactive color"
|
||||
msgstr "Dispositivo de batería"
|
||||
msgstr "Color de la batería inactiva"
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Puede encontrar información detallada en el <a href=\"http://arcanis.name/"
|
||||
"Puedes encontrar información detallada en el <a href=\"http://arcanis.name/"
|
||||
"projects/awesome-widgets/\">sitio del proyecto</a>"
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr "Añadir"
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Tu nombre"
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "Tus correos"
|
||||
msgstr "Tu email"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Interval"
|
||||
#~ msgstr "Intervalo de tiempo"
|
||||
|
||||
#~ msgid "Custom command"
|
||||
#~ msgstr "Comando personalizado"
|
||||
|
||||
#~ msgid "Battery device"
|
||||
#~ msgstr "Dispositivo de batería"
|
||||
@ -588,9 +743,6 @@ msgstr "Tus correos"
|
||||
#~ "$pkgcountN - número de paquetes con actualizaciones disponibles, comando "
|
||||
#~ "N. Por ejemplo $pkgcount0"
|
||||
|
||||
#~ msgid "Custom"
|
||||
#~ msgstr "Personalizado"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
#~ msgstr ""
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-09-05 11:20+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: French <kde-russian@lists.kde.ru>\n"
|
||||
@ -19,66 +19,172 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Lancer ksysguard"
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr "Voir le README"
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr "Mettre à jour le texte"
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
msgstr "Commande personnalisée"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
msgid "Current version : %1"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
msgid "New version : %1"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:307
|
||||
msgid "Tag: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
msgid "Comment: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:382
|
||||
msgid "Name: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:384
|
||||
msgid "Exec: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr "Gestionnaire de paquets"
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr "Nombre d'éléments pour les conseils"
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:437
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:445
|
||||
msgid "Translators: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:446
|
||||
msgid "This software uses: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr "Avancé"
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr "Conseil"
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr "Apparence"
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr "Moteur de données"
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
#, fuzzy
|
||||
msgid "Edit"
|
||||
msgstr "Modifiable"
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr "Supprimer"
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
#: graphicalitem.cpp:442
|
||||
#, fuzzy
|
||||
msgid "Select color"
|
||||
msgstr "Couleur de la police"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Popup lors d'un click souris"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
msgid "Custom time format"
|
||||
msgstr "Format de l'heure personnalisé"
|
||||
@ -196,66 +302,79 @@ msgid "Line, which returns when AC is offline"
|
||||
msgstr "Ligne, qui est renvoyée lorsque l'alimentation est débranchée"
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Bars"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr "Ajouter"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalle"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr "Police"
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font size"
|
||||
msgstr "Taille de la police"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "Font color"
|
||||
msgstr "Couleur de la police"
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "Font style"
|
||||
msgstr "Style de la police"
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "Font weight"
|
||||
msgstr "Épaisseur de la police"
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgstr "Disque dur"
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgstr "Port MPD"
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgstr "Périphérique graphique"
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Commande de température HDD"
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "GPU device"
|
||||
msgstr "Périphérique graphique"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "HDD"
|
||||
msgstr "Disque dur"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Music player"
|
||||
msgstr "Lecteur audio"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "MPD port"
|
||||
msgstr "Port MPD"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr "Adresse MPD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" par défaut"
|
||||
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
@ -263,16 +382,54 @@ msgstr ""
|
||||
"Modifiable\n"
|
||||
"del - supprimer un élément"
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
msgid "ACPI path"
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
#, fuzzy
|
||||
msgid "Custom scripts"
|
||||
msgstr "Personnalisé"
|
||||
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" par défaut"
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
#, fuzzy
|
||||
msgid "Active color"
|
||||
msgstr "Batterie"
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
#, fuzzy
|
||||
msgid "Inactive color"
|
||||
msgstr "Batterie"
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
@ -281,48 +438,48 @@ msgstr ""
|
||||
"les conseils visuels. Pour les activer cochez simplement les cases "
|
||||
"correspondantes."
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Nombre d'éléments pour les conseils"
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr "Couleur processeur"
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr "Couleur de l'horloge processeur"
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr "Couleur de la mémoire"
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr "Couleur de la mémoire d'échange"
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr "Couleur de la vitesse de téléchargement"
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr "Couleur du téléversement"
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
#, fuzzy
|
||||
msgid "Battery inactive color"
|
||||
msgstr "Batterie"
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
@ -330,32 +487,35 @@ msgstr ""
|
||||
"D'avantage d'informations se trouvent sur <a href=\"http://arcanis.name/"
|
||||
"projects/awesome-widgets/\">la page du projet</a>"
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr "Ajouter"
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Interval"
|
||||
#~ msgstr "Intervalle"
|
||||
|
||||
#~ msgid "Custom command"
|
||||
#~ msgstr "Commande personnalisée"
|
||||
|
||||
#~ msgid "Battery device"
|
||||
#~ msgstr "Batterie"
|
||||
|
||||
@ -585,9 +745,6 @@ msgstr "esalexeev@gmail.com"
|
||||
#~ "$pkgcountN - nombre de paquets à mettre à jour, commande N. Par exemple "
|
||||
#~ "$pkgcount0"
|
||||
|
||||
#~ msgid "Custom"
|
||||
#~ msgstr "Personnalisé"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
#~ msgstr ""
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -17,64 +17,168 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
msgid "Current version : %1"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
msgid "New version : %1"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:307
|
||||
msgid "Tag: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
msgid "Comment: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:382
|
||||
msgid "Name: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:384
|
||||
msgid "Exec: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:437
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:445
|
||||
msgid "Translators: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:446
|
||||
msgid "This software uses: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
msgid "Edit"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
|
||||
#: graphicalitem.cpp:442
|
||||
msgid "Select color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable popup on mouse click"
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
@ -169,39 +273,35 @@ msgid "Line, which returns when AC is offline"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Time interval"
|
||||
msgid "Bars"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Font size"
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Font color"
|
||||
msgid "Time interval"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
msgid "Font style"
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font weight"
|
||||
msgid "Font size"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgid "Font color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgid "Font style"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgid "Font weight"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
@ -209,113 +309,161 @@ msgid "hddtemp cmd"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "Music player"
|
||||
msgid "GPU device"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "MPD address"
|
||||
msgid "HDD"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
msgid "Music player"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgid "MPD port"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
msgid "ACPI path"
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
msgid "Custom scripts"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
msgid "Active color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
msgid "Inactive color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
msgid "Battery inactive color"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr ""
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"PO-Revision-Date: 2014-09-05 11:21+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-12-24 00:04+0300\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Brazilian Portuguese <kde-russian@lists.kde.ru>\n"
|
||||
"Language: pt_BR\n"
|
||||
@ -16,67 +16,185 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
"X-Language: pt_BR\n"
|
||||
"X-Source-Language: en\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Abrir ksysguard"
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr "Mostrar README"
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr "Atualizar texto"
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
msgstr "Comando personalizado"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr "Checar por atualizações"
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
#, qt-format
|
||||
msgid "Current version : %1"
|
||||
msgstr "Versão atual: %1"
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
#, qt-format
|
||||
msgid "New version : %1"
|
||||
msgstr "Nova versão: %1"
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr "Clique \"Ok\" para baixar"
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr "Há atualizações disponíveis"
|
||||
|
||||
#: configuration.cpp:307
|
||||
#, qt-format
|
||||
msgid "Tag: %1"
|
||||
msgstr "Tag: %1"
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
#, qt-format
|
||||
msgid "Comment: %1"
|
||||
msgstr "Comentário: %1"
|
||||
|
||||
#: configuration.cpp:382
|
||||
#, qt-format
|
||||
msgid "Name: %1"
|
||||
msgstr "Nome: %1"
|
||||
|
||||
#: configuration.cpp:384
|
||||
#, qt-format
|
||||
msgid "Exec: %1"
|
||||
msgstr "Exec: %1"
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr "Gerenciador de pacotes"
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr "Número de valores para dicas de contexto"
|
||||
msgstr "Linhas nulas"
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
#, qt-format
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
"Versão: %1\n"
|
||||
"(data de compilação %2)"
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr "Um conjunto de widgets plasmoid minimalistas."
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr "Links:"
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr "Homepage"
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr "Repositório"
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr "Bugtracker"
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr "Problema na tradução"
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr "Pacotes AUR"
|
||||
|
||||
#: configuration.cpp:437
|
||||
#, qt-format
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr "Este software é licenciado sob %1"
|
||||
|
||||
#: configuration.cpp:445
|
||||
#, qt-format
|
||||
msgid "Translators: %1"
|
||||
msgstr "Tradutores: %1"
|
||||
|
||||
#: configuration.cpp:446
|
||||
#, qt-format
|
||||
msgid "This software uses: %1"
|
||||
msgstr "Este software usa: %1"
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr "Avançado"
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr "Dica de contexto"
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr "Aparência"
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr "Engine de dados"
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr "Sobre"
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr "Digite o nome de arquivo"
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr "Nome de arquivo"
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
msgid "Edit"
|
||||
msgstr "Editar"
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr "Copiar"
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr "Remover"
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
msgstr "Selecionar fonte"
|
||||
|
||||
#: graphicalitem.cpp:442
|
||||
msgid "Select color"
|
||||
msgstr "Selecionar cor"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Ativar popup no clique do mouse"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr "Ativar plano de fundo"
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
msgid "Custom time format"
|
||||
msgstr "Formato de hora personalizado"
|
||||
@ -149,9 +267,8 @@ msgid "Editable"
|
||||
msgstr "Editável"
|
||||
|
||||
#: po/rc.cpp:50 rc.cpp:50
|
||||
#, fuzzy
|
||||
msgid "Fan devices"
|
||||
msgstr "Dispositivo do carregador"
|
||||
msgstr "Dispositivos de ventilação"
|
||||
|
||||
#: po/rc.cpp:56 rc.cpp:56
|
||||
msgid "Mount points"
|
||||
@ -191,66 +308,78 @@ msgid "Line, which returns when AC is offline"
|
||||
msgstr "Linha, que aparece quando o carregador está offline"
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Bars"
|
||||
msgstr "Barras"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr "Adicionar"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tempo"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font size"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "Font color"
|
||||
msgstr "Cor da fonte"
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "Font style"
|
||||
msgstr "Estilo da fonte"
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font weight"
|
||||
msgstr "Peso da fonte"
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgstr "Porta do MPD"
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo GPU"
|
||||
msgid "Font weight"
|
||||
msgstr "Grossura da fonte"
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "comando hddtemp "
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo GPU"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Music player"
|
||||
msgstr "Reprodutor de áudio"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "MPD port"
|
||||
msgstr "Porta do MPD"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr "Endereço do MPD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr "Caminho ACPI"
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
||||
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr ""
|
||||
msgstr "<b>NOTA:</> Interface do player DBus deverá ser uma ativa"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr ""
|
||||
msgstr "Nome do player MPRIS"
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
@ -258,16 +387,51 @@ msgstr ""
|
||||
"Editável\n"
|
||||
"del - remover item"
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
msgid "ACPI path"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
msgid "Custom scripts"
|
||||
msgstr "Scripts customizados"
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr "Configuração"
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr "NOme"
|
||||
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr "Comentário"
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr "Valor"
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
msgid "Active color"
|
||||
msgstr "Cor ativa"
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
msgid "Inactive color"
|
||||
msgstr "Cor inativa"
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr "Tipo"
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr "Direção"
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr "Altura"
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr "Largura"
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
@ -275,80 +439,82 @@ msgstr ""
|
||||
"Os rótulos de CPU, frequência de GPU, memória, swap e rede suportam dica de "
|
||||
"contexto gráfica. Para ativá-los, basta selecionar a caixa necessária."
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Número de valores para dicas de contexto"
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr ""
|
||||
msgstr "Plano de fundo"
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr "Cor da frequência da GPU"
|
||||
msgstr "Cor da CPU"
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr "Cor da frequência da GPU"
|
||||
msgstr "Cor do relógio da CPU"
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr "Cor da memória"
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr "Cor do swap"
|
||||
msgstr "Cor da swap"
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr "Cor da velocidade de download"
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr "Cor da velocidade de upload"
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr ""
|
||||
msgstr "Cor da bateria ativa"
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#, fuzzy
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
msgid "Battery inactive color"
|
||||
msgstr "Dispositivo do carregador"
|
||||
msgstr "Cor da bateria inativa"
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
"Detailed information may be found on <a "
|
||||
"href=\"http://arcanis.name/projects/awesome-widgets/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Informações detalhadas podem ser encontradas na <a href=\"http://arcanis."
|
||||
"name/projects/awesome-widgets/\">página do projeto</a>"
|
||||
"Informações detalhadas podem ser encontradas na <a "
|
||||
"href=\"http://arcanis.name/projects/awesome-widgets/\">página do projeto</a>"
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr "Adicionar"
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "under"
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "dreanazous@gmail.com"
|
||||
msgstr "under@insicuri.net"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Interval"
|
||||
#~ msgstr "Intervalo de tempo"
|
||||
|
||||
#~ msgid "Custom command"
|
||||
#~ msgstr "Comando personalizado"
|
||||
|
||||
#~ msgid "Battery device"
|
||||
#~ msgstr "Dispositivo do carregador"
|
||||
@ -584,9 +750,6 @@ msgstr "dreanazous@gmail.com"
|
||||
#~ "$pkgcountN - número de pacotes disponíveis para atualizar, comando N. Por "
|
||||
#~ "exemplo $pkgcount0"
|
||||
|
||||
#~ msgid "Custom"
|
||||
#~ msgstr "Personalizado"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
#~ msgstr ""
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"PO-Revision-Date: 2014-09-21 20:19+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-11-21 05:12+0300\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -18,66 +18,172 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Запустить ksysguard"
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr "Показать README"
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr "Обновить текст"
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
msgstr "Своя команда"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr "Проверить обновления"
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
msgid "Current version : %1"
|
||||
msgstr "Текущая версия : %1"
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
msgid "New version : %1"
|
||||
msgstr "Новая версия : %1"
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr "Нажмите \"Ok\" для загрузки"
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr "Найдены обновления"
|
||||
|
||||
#: configuration.cpp:307
|
||||
msgid "Tag: %1"
|
||||
msgstr "Тег: %1"
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
msgid "Comment: %1"
|
||||
msgstr "Комментарий: %1"
|
||||
|
||||
#: configuration.cpp:382
|
||||
msgid "Name: %1"
|
||||
msgstr "Имя: %1"
|
||||
|
||||
#: configuration.cpp:384
|
||||
msgid "Exec: %1"
|
||||
msgstr "Команда: %1"
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr "Пакетный менеджер"
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr "Число пустых линий"
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
"Версия %1\n"
|
||||
"(дата сборки %2)"
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr "Коллекция минималистичных плазмоидов"
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr "Ссылки:"
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr "Домашняя страница"
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr "Репозиторий"
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr "Баг-трекер"
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr "Тикет перевода"
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr "Пакеты в AUR"
|
||||
|
||||
#: configuration.cpp:437
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr "Данное приложение лицензировано под %1"
|
||||
|
||||
#: configuration.cpp:445
|
||||
msgid "Translators: %1"
|
||||
msgstr "Переводчики: %1"
|
||||
|
||||
#: configuration.cpp:446
|
||||
msgid "This software uses: %1"
|
||||
msgstr "Данное приложение использует: %1"
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr "Виджет"
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr "Расширенные"
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr "Тултип"
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr "Внешний вид"
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr "О программе"
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr "Введите имя файла"
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr "Имя файла"
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
msgid "Edit"
|
||||
msgstr "Править"
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr "Копировать"
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr "Удалить"
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr "Выберете шрифт"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgstr "Включить фон"
|
||||
#: graphicalitem.cpp:442
|
||||
msgid "Select color"
|
||||
msgstr "Выберете цвет"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Включить сообщения по клику мыши"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr "Включить фон"
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
msgid "Custom time format"
|
||||
msgstr "Свой формат времени"
|
||||
@ -192,66 +298,78 @@ msgid "Line, which returns when AC is offline"
|
||||
msgstr "Строка, возвращаемая при отключенном адаптере питания"
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Bars"
|
||||
msgstr "Бары"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr "Добавить"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Time interval"
|
||||
msgstr "Интервал обновления"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font size"
|
||||
msgstr "Размер шрифта"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "Font color"
|
||||
msgstr "Цвет шрифта"
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифта"
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифта"
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgstr "Устройство GPU"
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Команда hddtemp"
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "GPU device"
|
||||
msgstr "Устройство GPU"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Music player"
|
||||
msgstr "Музыкальный плеер"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr "Адрес сервера MPD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
msgstr "Команда для проверки рабочего стола"
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr "Пусть к ACPI"
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/\" по умолчанию"
|
||||
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr "<b>ВНИМАНИЕ:</b> DBus интерфейс плеера должен быть активен"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr "Имя плеера в MPRIS"
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
@ -259,15 +377,51 @@ msgstr ""
|
||||
"Редактируемо\n"
|
||||
"del - удалить строку"
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
msgid "ACPI path"
|
||||
msgstr "Пусть к ACPI"
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
msgid "Custom scripts"
|
||||
msgstr "Свои скрипты"
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/\" по умолчанию"
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr "Настройка"
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr "Имя"
|
||||
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr "Комментарий"
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr "Значение"
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
msgid "Active color"
|
||||
msgstr "Активный цвет"
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
msgid "Inactive color"
|
||||
msgstr "Неактивный цвет"
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr "Тип"
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr "Направление"
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr "Высота"
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr "Ширина"
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
@ -276,47 +430,47 @@ msgstr ""
|
||||
"графический тултип. Чтобы включить его, просто сделайте требуемые чекбоксы "
|
||||
"полностью чекнутыми."
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Число хранящихся значений"
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr "Фон"
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr "Цвет CPU"
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr "Цвет частоты CPU"
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr "Цвет памяти"
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr "Цвет swap"
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr "Цвет скорости загрузки"
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr "Цвет скорости отдачи"
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr "Цвет заряжаемой батареи"
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
msgid "Battery inactive color"
|
||||
msgstr "Цвет разряжаемой батареи"
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
@ -324,32 +478,38 @@ msgstr ""
|
||||
"Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
|
||||
"projects/awesome-widgets/\">домашней странице проекта</a>"
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr "Добавить"
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Interval"
|
||||
#~ msgstr "Интервал обновления"
|
||||
|
||||
#~ msgid "Desktop check cmd"
|
||||
#~ msgstr "Команда для проверки рабочего стола"
|
||||
|
||||
#~ msgid "Custom command"
|
||||
#~ msgstr "Своя команда"
|
||||
|
||||
#~ msgid "Battery device"
|
||||
#~ msgstr "Устройство батареи"
|
||||
|
||||
@ -371,9 +531,6 @@ msgstr "esalexeev@gmail.com"
|
||||
#~ msgid "Appearance configuration"
|
||||
#~ msgstr "Настройка внешнего вида"
|
||||
|
||||
#~ msgid "DE Configuration"
|
||||
#~ msgstr "Настройка DE"
|
||||
|
||||
#~ msgid "Tooltip configuration"
|
||||
#~ msgstr "Настройка тултипа"
|
||||
|
||||
@ -590,17 +747,11 @@ msgstr "esalexeev@gmail.com"
|
||||
#~ "$pkgcountN - число пакетов, которые доступны для обновления, для команды "
|
||||
#~ "N. Например, $pkgcount0"
|
||||
|
||||
#~ msgid "Custom"
|
||||
#~ msgstr "Своя команда"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
#~ msgstr ""
|
||||
#~ "$customN - получить информацию из своей команды N. Например $custom0"
|
||||
|
||||
#~ msgid "Current desktop"
|
||||
#~ msgstr "Текущий рабочий стол"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$name - desktop name\n"
|
||||
#~ "$number - desktop number\n"
|
||||
|
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-09-05 11:22+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Ukrainian <kde-russian@lists.kde.ru>\n"
|
||||
@ -18,66 +18,174 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Запустити ksysguard"
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr "Показати README"
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr "Оновити текст"
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
msgstr "Своя команда"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr "Шукати оновлення"
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
msgid "Current version : %1"
|
||||
msgstr "Поточна версія : %1"
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
msgid "New version : %1"
|
||||
msgstr "Нова версія : %1"
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr "Натисніть \"Ok\" для завантаження"
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr "Знайдені оновлення"
|
||||
|
||||
#: configuration.cpp:307
|
||||
msgid "Tag: %1"
|
||||
msgstr "Тег: %1"
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
msgid "Comment: %1"
|
||||
msgstr "Коментар: %1"
|
||||
|
||||
#: configuration.cpp:382
|
||||
msgid "Name: %1"
|
||||
msgstr "Ім’я: %1"
|
||||
|
||||
#: configuration.cpp:384
|
||||
msgid "Exec: %1"
|
||||
msgstr "Команда: %1"
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr "Пакетний менеджер"
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr "Кількість пустих рядків"
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
"Версія %1\n"
|
||||
"(дата створення %2)"
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr "Набір мінімалістичних плазмоїдів"
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr "Посилання:"
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr "Домашня сторінка"
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr "Репозиторій"
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr "Баг-трекер"
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr "Тікет перекладу"
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr "Пакети в AUR"
|
||||
|
||||
#: configuration.cpp:437
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr "Цю програму ліцензовано під %1"
|
||||
|
||||
#: configuration.cpp:445
|
||||
msgid "Translators: %1"
|
||||
msgstr "Перекладачі: %1"
|
||||
|
||||
#: configuration.cpp:446
|
||||
msgid "This software uses: %1"
|
||||
msgstr "Ця програма використовує: %1"
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr "Віджет"
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr "Розширені"
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr "Тултіп"
|
||||
msgstr "Підказки"
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr "Зовнішній вигляд"
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr "Про програму"
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr "Введіть ім’я файлу"
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr "Ім’я файлу"
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
#, fuzzy
|
||||
msgid "Edit"
|
||||
msgstr "Редагувати"
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr "Копіювати"
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr "Видалити"
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
msgstr "Оберіть шрифт"
|
||||
|
||||
#: graphicalitem.cpp:442
|
||||
#, fuzzy
|
||||
msgid "Select color"
|
||||
msgstr "Оберіть колір"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Включити спливаючі підказки при натисканні клавіші миші"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr "Включити фон"
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
msgid "Custom time format"
|
||||
msgstr "Свій формат часу"
|
||||
@ -154,7 +262,7 @@ msgstr "Можна редагувати"
|
||||
#: po/rc.cpp:50 rc.cpp:50
|
||||
#, fuzzy
|
||||
msgid "Fan devices"
|
||||
msgstr "AC пристрій"
|
||||
msgstr "Кулери"
|
||||
|
||||
#: po/rc.cpp:56 rc.cpp:56
|
||||
msgid "Mount points"
|
||||
@ -193,66 +301,79 @@ msgid "Line, which returns when AC is offline"
|
||||
msgstr "Рядок, що повертається при відключеному адаптері живлення"
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Bars"
|
||||
msgstr "Бари"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr "Додати"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Time interval"
|
||||
msgstr "Інтервал оновлення"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font size"
|
||||
msgstr "Розмір шрифту"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "Font color"
|
||||
msgstr "Колір шрифту"
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифту"
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифту"
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgstr "Пристій GPU"
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Команда hddtemp"
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "GPU device"
|
||||
msgstr "Пристій GPU"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Music player"
|
||||
msgstr "Музичний плеєр"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr "Адреса сервера MPD"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr "Шлях до ICPI"
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/\" за замовчуванням"
|
||||
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr ""
|
||||
msgstr "<b>УВАГА:</b> DBus інтерфейс плеєра має бути активним"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr ""
|
||||
msgstr "Ім’я плеєру в MPRIS"
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
@ -260,66 +381,104 @@ msgstr ""
|
||||
"Можна редагувати\n"
|
||||
"del - видалити рядок"
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
msgid "ACPI path"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" за замовчуванням"
|
||||
msgid "Custom scripts"
|
||||
msgstr "Свої скрипти"
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr "Налаштування"
|
||||
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr "Ім’я"
|
||||
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr "Коментар"
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr "Значення"
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
#, fuzzy
|
||||
msgid "Active color"
|
||||
msgstr "Активний колір"
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
#, fuzzy
|
||||
msgid "Inactive color"
|
||||
msgstr "Неактивний колір"
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr "Тип"
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr "Напрямок"
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr "Висота"
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr "Ширина"
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip."
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
"Поля \"CPU\", \"Частота CPU\", \"Пам’ятьґЄ, \"Swap\" та \"Мережа\" "
|
||||
"підтримують графічний тултіп. Щоб їх задіяти, просто зробіть необхідні "
|
||||
"Поля \"CPU\", \"Частота CPU\", \"Пам’ять\", \"Swap\" та \"Мережа\" "
|
||||
"підтримують графічні підказки. Щоб їх задіяти, просто зробіть необхідні "
|
||||
"чекбокси повністю чекнутими."
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Кількість значень для тултіпа"
|
||||
msgstr "Кількість значень для підказки"
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr ""
|
||||
msgstr "Фон"
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr "Колір CPU"
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr "Колір частоти CPU"
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr "Колір пам’яті"
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr "Колір swap"
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr "Колір швидкості скачування"
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr "Колір швидкості віддачі"
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr ""
|
||||
msgstr "Колір батареї, що заряджається"
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
#, fuzzy
|
||||
msgid "Battery inactive color"
|
||||
msgstr "Пристрій батареї"
|
||||
msgstr "Колір батарєї, що розряджається"
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
@ -327,32 +486,35 @@ msgstr ""
|
||||
"Детальна інформація може бути знайдена на <a href=\"http://arcanis.name/"
|
||||
"projects/awesome-widgets/\">домашній сторінці проекту</a>"
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr "Добавити"
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Slobodyan Victor"
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "sarumyan@i.ua"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Interval"
|
||||
#~ msgstr "Інтервал оновлення"
|
||||
|
||||
#~ msgid "Custom command"
|
||||
#~ msgstr "Своя команда"
|
||||
|
||||
#~ msgid "Battery device"
|
||||
#~ msgstr "Пристрій батареї"
|
||||
|
||||
@ -575,9 +737,6 @@ msgstr "sarumyan@i.ua"
|
||||
#~ "$pkgcountN - кількість пакетів, що доступні для оновлення, для команди N. "
|
||||
#~ "Наприклад: $pkgcount0"
|
||||
|
||||
#~ msgid "Custom"
|
||||
#~ msgstr "Своя команда"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
#~ msgstr ""
|
||||
|
@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-21 20:18+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-09-10 22:50+0800\n"
|
||||
"Last-Translator: Steve Lemuel <wlemuel@hotmail.com>\n"
|
||||
"Language-Team: American English <kde-i18n-doc@kde.org>\n"
|
||||
@ -17,66 +17,172 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: awesome-widget.cpp:78
|
||||
#: awesome-widget.cpp:95
|
||||
msgid "Run ksysguard"
|
||||
msgstr "运行任务管理器"
|
||||
|
||||
#: awesome-widget.cpp:81
|
||||
#: awesome-widget.cpp:98
|
||||
msgid "Show README"
|
||||
msgstr "显示帮助文档"
|
||||
|
||||
#: awesome-widget.cpp:84
|
||||
#: awesome-widget.cpp:101
|
||||
msgid "Update text"
|
||||
msgstr "刷新文本"
|
||||
|
||||
#: configuration.cpp:362 po/rc.cpp:151 rc.cpp:151
|
||||
msgid "Custom command"
|
||||
msgstr "自定义命令"
|
||||
#: awesome-widget.cpp:106 po/rc.cpp:98 rc.cpp:98
|
||||
msgid "Check for updates"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:392 po/rc.cpp:141 rc.cpp:141
|
||||
#: awesome-widget.cpp:491
|
||||
msgid "Current version : %1"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:492
|
||||
msgid "New version : %1"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:493
|
||||
msgid "Click \"Ok\" to download"
|
||||
msgstr ""
|
||||
|
||||
#: awesome-widget.cpp:494
|
||||
msgid "There are updates"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:307
|
||||
msgid "Tag: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:308 configuration.cpp:383
|
||||
msgid "Comment: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:382
|
||||
msgid "Name: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:384
|
||||
msgid "Exec: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:413 po/rc.cpp:153 rc.cpp:153
|
||||
msgid "Package manager"
|
||||
msgstr "包管理器"
|
||||
|
||||
#: configuration.cpp:393 po/rc.cpp:144 rc.cpp:144
|
||||
#: configuration.cpp:414 po/rc.cpp:156 rc.cpp:156
|
||||
msgid "Null lines"
|
||||
msgstr "空行"
|
||||
|
||||
#: configuration.cpp:405
|
||||
#: configuration.cpp:428
|
||||
msgid ""
|
||||
"Version %1\n"
|
||||
"(build date %2)"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:429
|
||||
msgid "A set of minimalistic plasmoid widgets"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:430
|
||||
msgid "Links:"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:431
|
||||
msgid "Homepage"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:432
|
||||
msgid "Repository"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:433
|
||||
msgid "Bugtracker"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:434
|
||||
msgid "Translation issue"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:435
|
||||
msgid "AUR packages"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:437
|
||||
msgid "This software is licensed under %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:445
|
||||
msgid "Translators: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:446
|
||||
msgid "This software uses: %1"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:448
|
||||
msgid "Widget"
|
||||
msgstr "窗口小部件"
|
||||
|
||||
#: configuration.cpp:406
|
||||
#: configuration.cpp:449
|
||||
msgid "Advanced"
|
||||
msgstr "高级设置"
|
||||
|
||||
#: configuration.cpp:407
|
||||
#: configuration.cpp:450
|
||||
msgid "Tooltip"
|
||||
msgstr "提示"
|
||||
|
||||
#: configuration.cpp:408
|
||||
#: configuration.cpp:451
|
||||
msgid "Appearance"
|
||||
msgstr "外观"
|
||||
|
||||
#: configuration.cpp:409
|
||||
#: configuration.cpp:452
|
||||
msgid "DataEngine"
|
||||
msgstr "数据引擎"
|
||||
|
||||
#: configuration.cpp:697 configuration.cpp:711
|
||||
#: configuration.cpp:453
|
||||
msgid "About"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:734 configuration.cpp:760 configuration.cpp:868
|
||||
#: configuration.cpp:910
|
||||
msgid "Enter file name"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:735 configuration.cpp:761 configuration.cpp:869
|
||||
#: configuration.cpp:911
|
||||
msgid "File name"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:793 configuration.cpp:819
|
||||
#, fuzzy
|
||||
msgid "Edit"
|
||||
msgstr "可编辑的"
|
||||
|
||||
#: configuration.cpp:794 configuration.cpp:820
|
||||
msgid "Copy"
|
||||
msgstr ""
|
||||
|
||||
#: configuration.cpp:795 configuration.cpp:821 configuration.cpp:843
|
||||
msgid "Remove"
|
||||
msgstr "移除"
|
||||
|
||||
#: configuration.cpp:766
|
||||
#: configuration.cpp:1037
|
||||
msgid "Select font"
|
||||
msgstr "选择字体"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable background"
|
||||
msgstr "启用背景"
|
||||
#: graphicalitem.cpp:442
|
||||
#, fuzzy
|
||||
msgid "Select color"
|
||||
msgstr "选择字体"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "鼠标点击时弹出对话框"
|
||||
|
||||
#: po/rc.cpp:6 rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr "启用背景"
|
||||
|
||||
#: po/rc.cpp:9 rc.cpp:9
|
||||
msgid "Custom time format"
|
||||
msgstr "自定义时间格式"
|
||||
@ -192,66 +298,79 @@ msgid "Line, which returns when AC is offline"
|
||||
msgstr "外接电源未使用时显示线条"
|
||||
|
||||
#: po/rc.cpp:92 rc.cpp:92
|
||||
msgid "Bars"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:162 po/rc.cpp:243 rc.cpp:95 rc.cpp:162 rc.cpp:243
|
||||
msgid "Add"
|
||||
msgstr "添加"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
msgid "Time interval"
|
||||
msgstr "时间周期"
|
||||
|
||||
#: po/rc.cpp:95 po/rc.cpp:196 rc.cpp:95 rc.cpp:196
|
||||
#: po/rc.cpp:104 po/rc.cpp:231 rc.cpp:104 rc.cpp:231
|
||||
msgid "Font"
|
||||
msgstr "字体"
|
||||
|
||||
#: po/rc.cpp:98 rc.cpp:98
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
msgid "Font size"
|
||||
msgstr "字体大小"
|
||||
|
||||
#: po/rc.cpp:101 rc.cpp:101
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "Font color"
|
||||
msgstr "字体颜色"
|
||||
|
||||
#: po/rc.cpp:104 rc.cpp:104
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "Font style"
|
||||
msgstr "字体样式"
|
||||
|
||||
#: po/rc.cpp:107 rc.cpp:107
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "Font weight"
|
||||
msgstr "字体宽度"
|
||||
|
||||
#: po/rc.cpp:110 rc.cpp:110
|
||||
msgid "HDD"
|
||||
msgstr "硬盘"
|
||||
|
||||
#: po/rc.cpp:113 rc.cpp:113
|
||||
msgid "MPD port"
|
||||
msgstr "MPD 端口"
|
||||
|
||||
#: po/rc.cpp:116 rc.cpp:116
|
||||
msgid "GPU device"
|
||||
msgstr "GPU 设备"
|
||||
|
||||
#: po/rc.cpp:119 rc.cpp:119
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "硬盘温度显示命令"
|
||||
|
||||
#: po/rc.cpp:122 rc.cpp:122
|
||||
msgid "GPU device"
|
||||
msgstr "GPU 设备"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
msgid "HDD"
|
||||
msgstr "硬盘"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Music player"
|
||||
msgstr "音乐播放器"
|
||||
|
||||
#: po/rc.cpp:125 rc.cpp:125
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
msgid "MPD port"
|
||||
msgstr "MPD 端口"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
msgid "MPD address"
|
||||
msgstr "MPD 地址"
|
||||
|
||||
#: po/rc.cpp:128 rc.cpp:128
|
||||
msgid "Desktop check cmd"
|
||||
msgstr "检测桌面命令"
|
||||
#: po/rc.cpp:137 rc.cpp:137
|
||||
msgid "ACPI path"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:131 rc.cpp:131
|
||||
#: po/rc.cpp:140 rc.cpp:140
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "默认为 \"/sys/class/power_supply/AC/online\""
|
||||
|
||||
#: po/rc.cpp:143 rc.cpp:143
|
||||
msgid "<b>NOTE:</b> Player DBus interface should be an active"
|
||||
msgstr "<b>提示:</b> 播放器 DBus 应当处于激活状态"
|
||||
|
||||
#: po/rc.cpp:134 rc.cpp:134
|
||||
#: po/rc.cpp:146 rc.cpp:146
|
||||
msgid "MPRIS player name"
|
||||
msgstr "MPRIS 播放器名"
|
||||
|
||||
#: po/rc.cpp:137 po/rc.cpp:147 rc.cpp:137 rc.cpp:147
|
||||
#: po/rc.cpp:149 rc.cpp:149
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
@ -259,16 +378,53 @@ msgstr ""
|
||||
"可编辑的\n"
|
||||
"del - 移除项目"
|
||||
|
||||
#: po/rc.cpp:154 rc.cpp:154
|
||||
msgid "ACPI path"
|
||||
#: po/rc.cpp:159 rc.cpp:159
|
||||
msgid "Custom scripts"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:157 rc.cpp:157
|
||||
#, fuzzy
|
||||
msgid "\"/sys/class/power_supply/\" by default"
|
||||
msgstr "默认为 \"/sys/class/power_supply/AC/online\""
|
||||
#: po/rc.cpp:165 rc.cpp:165
|
||||
msgid "Configuration"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:160 rc.cpp:160
|
||||
#: po/rc.cpp:168 rc.cpp:168
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:171 rc.cpp:171
|
||||
msgid "Comment"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:174 rc.cpp:174
|
||||
msgid "Value"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:177 rc.cpp:177
|
||||
#, fuzzy
|
||||
msgid "Active color"
|
||||
msgstr "电池使用状态提示颜色"
|
||||
|
||||
#: po/rc.cpp:180 rc.cpp:180
|
||||
#, fuzzy
|
||||
msgid "Inactive color"
|
||||
msgstr "电池未使用状态提示颜色"
|
||||
|
||||
#: po/rc.cpp:183 rc.cpp:183
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:186 rc.cpp:186
|
||||
msgid "Direction"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:189 rc.cpp:189
|
||||
msgid "Height"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:192 rc.cpp:192
|
||||
msgid "Width"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:195 rc.cpp:195
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
@ -276,47 +432,47 @@ msgstr ""
|
||||
"CPU, CPU 时钟,内存,虚拟内存和网络连接标签均支持图形化提示显示。 请在相应复"
|
||||
"选框中勾选以启用该功能。 "
|
||||
|
||||
#: po/rc.cpp:163 rc.cpp:163
|
||||
#: po/rc.cpp:198 rc.cpp:198
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "提示的数值"
|
||||
|
||||
#: po/rc.cpp:166 rc.cpp:166
|
||||
#: po/rc.cpp:201 rc.cpp:201
|
||||
msgid "Background"
|
||||
msgstr "背景"
|
||||
|
||||
#: po/rc.cpp:169 rc.cpp:169
|
||||
#: po/rc.cpp:204 rc.cpp:204
|
||||
msgid "CPU color"
|
||||
msgstr "CPU 颜色"
|
||||
|
||||
#: po/rc.cpp:172 rc.cpp:172
|
||||
#: po/rc.cpp:207 rc.cpp:207
|
||||
msgid "CPU clock color"
|
||||
msgstr "CPU 时钟颜色"
|
||||
|
||||
#: po/rc.cpp:175 rc.cpp:175
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
msgid "Memory color"
|
||||
msgstr "内存显示颜色"
|
||||
|
||||
#: po/rc.cpp:178 rc.cpp:178
|
||||
#: po/rc.cpp:213 rc.cpp:213
|
||||
msgid "Swap color"
|
||||
msgstr "虚拟内存颜色"
|
||||
|
||||
#: po/rc.cpp:181 rc.cpp:181
|
||||
#: po/rc.cpp:216 rc.cpp:216
|
||||
msgid "Download speed color"
|
||||
msgstr "下载速度颜色"
|
||||
|
||||
#: po/rc.cpp:184 rc.cpp:184
|
||||
#: po/rc.cpp:219 rc.cpp:219
|
||||
msgid "Upload speed color"
|
||||
msgstr "上传速度颜色"
|
||||
|
||||
#: po/rc.cpp:187 rc.cpp:187
|
||||
#: po/rc.cpp:222 rc.cpp:222
|
||||
msgid "Battery active color"
|
||||
msgstr "电池使用状态提示颜色"
|
||||
|
||||
#: po/rc.cpp:190 rc.cpp:190
|
||||
#: po/rc.cpp:225 rc.cpp:225
|
||||
msgid "Battery inactive color"
|
||||
msgstr "电池未使用状态提示颜色"
|
||||
|
||||
#: po/rc.cpp:193 rc.cpp:193
|
||||
#: po/rc.cpp:228 rc.cpp:228
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"awesome-widgets/\">project homepage</a>"
|
||||
@ -324,32 +480,38 @@ msgstr ""
|
||||
"详情请参照 <a href=\"http://arcanis.name/projects/ awesome-widgets/\">项目主"
|
||||
"页</a>"
|
||||
|
||||
#: po/rc.cpp:199 rc.cpp:199
|
||||
#: po/rc.cpp:234 rc.cpp:234
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:202 rc.cpp:202
|
||||
#: po/rc.cpp:237 rc.cpp:237
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:205 rc.cpp:205
|
||||
#: po/rc.cpp:240 rc.cpp:240
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:208 rc.cpp:208
|
||||
msgid "Add"
|
||||
msgstr "添加"
|
||||
|
||||
#: po/rc.cpp:209 rc.cpp:209
|
||||
#: po/rc.cpp:244 rc.cpp:244
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "用户名"
|
||||
|
||||
#: po/rc.cpp:210 rc.cpp:210
|
||||
#: po/rc.cpp:245 rc.cpp:245
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "用户邮箱"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Interval"
|
||||
#~ msgstr "时间周期"
|
||||
|
||||
#~ msgid "Desktop check cmd"
|
||||
#~ msgstr "检测桌面命令"
|
||||
|
||||
#~ msgid "Custom command"
|
||||
#~ msgstr "自定义命令"
|
||||
|
||||
#~ msgid "Battery device"
|
||||
#~ msgstr "电池设备"
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <math.h>
|
||||
|
||||
#include "customlabel.h"
|
||||
#include "graphicalitem.h"
|
||||
#include <pdebug/pdebug.h>
|
||||
|
||||
|
||||
@ -38,12 +39,12 @@ void AwesomeWidget::reinit()
|
||||
else
|
||||
textLabel->setPopupEnabled(true);
|
||||
updateText(true);
|
||||
textLabel->adjustSize();
|
||||
mainLayout->itemAt(0, 0)->setGeometry(textLabel->geometry());
|
||||
|
||||
keys = getKeys();
|
||||
foundKeys = findKeys();
|
||||
updateNetworkDevice();
|
||||
getGraphicalItems();
|
||||
foundBars = findGraphicalItems();
|
||||
updateNetworkDevice(false);
|
||||
connectToEngine();
|
||||
}
|
||||
|
||||
@ -63,11 +64,14 @@ void AwesomeWidget::sendNotification(const QString eventId, const QString messag
|
||||
}
|
||||
|
||||
|
||||
void AwesomeWidget::updateNetworkDevice()
|
||||
void AwesomeWidget::updateNetworkDevice(const bool delay)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
values[QString("netdev")] = getNetworkDevice();
|
||||
if (delay)
|
||||
networkDeviceUpdate = 30;
|
||||
else
|
||||
values[QString("netdev")] = getNetworkDevice();
|
||||
}
|
||||
|
||||
|
||||
@ -76,11 +80,17 @@ void AwesomeWidget::updateText(const bool clear)
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString text = configuration[QString("text")];
|
||||
if (!clear)
|
||||
if (!clear) {
|
||||
text.replace(QString("$$"), QString("$\\$\\"));
|
||||
for (int i=0; i<foundKeys.count(); i++)
|
||||
text.replace(QString("$") + foundKeys[i], values[foundKeys[i]]);
|
||||
for (int i=0; i<foundBars.count(); i++)
|
||||
text.replace(QString("$") + foundBars[i], getItemByTag(foundBars[i])->getImage(values[foundBars[i]].toFloat()));
|
||||
text.replace(QString("$\\$\\"), QString("$$"));
|
||||
}
|
||||
textLabel->setText(formatLine[0] + text + formatLine[1]);
|
||||
update();
|
||||
mainLayout->itemAt(0, 0)->updateGeometry();
|
||||
updateGeometry();
|
||||
}
|
||||
|
||||
|
||||
@ -88,7 +98,7 @@ void AwesomeWidget::updateTooltip()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
toolTipView->resize(100.0 * counts[QString("tooltip")], 100.0);
|
||||
toolTipView->resize(100.0 * counts[QString("tooltip")], 105.0);
|
||||
// boundaries
|
||||
QMap<QString, float> boundaries;
|
||||
boundaries[QString("cpu")] = 100.0;
|
||||
@ -126,7 +136,7 @@ void AwesomeWidget::updateTooltip()
|
||||
if (tooltipValues.contains(QString("up"))) trueKeys.append(QString("up"));
|
||||
if (tooltipValues.contains(QString("bat"))) trueKeys.append(QString("bat"));
|
||||
for (int i=0; i<trueKeys.count(); i++) {
|
||||
float normX = 100.0 / (tooltipValues[trueKeys[i]].count() + 0.0);
|
||||
float normX = 100.0 / (float)tooltipValues[trueKeys[i]].count();
|
||||
float normY = 100.0 / (1.5 * boundaries[trueKeys[i]]);
|
||||
if (trueKeys[i] == QString("bat"))
|
||||
isBattery = true;
|
||||
@ -137,9 +147,9 @@ void AwesomeWidget::updateTooltip()
|
||||
if (down) shift -= 100.0;
|
||||
for (int j=0; j<tooltipValues[trueKeys[i]].count()-1; j++) {
|
||||
float x1 = j * normX + shift;
|
||||
float y1 = - fabs(tooltipValues[trueKeys[i]][j]) * normY;
|
||||
float y1 = - fabs(tooltipValues[trueKeys[i]][j]) * normY + 5.0;
|
||||
float x2 = (j + 1) * normX + shift;
|
||||
float y2 = - fabs(tooltipValues[trueKeys[i]][j+1]) * normY;
|
||||
float y2 = - fabs(tooltipValues[trueKeys[i]][j+1]) * normY + 5.0;
|
||||
if (isBattery) {
|
||||
if (tooltipValues[trueKeys[i]][j+1] > 0)
|
||||
pen.setColor(QColor(configuration[QString("batteryColor")]));
|
||||
|
@ -64,41 +64,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_tooltipNum">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tooltipNum">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Number of values for tooltips</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_tooltipNum">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>19</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_tooltipNum">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_tooltipNum">
|
||||
<property name="minimum">
|
||||
<number>50</number>
|
||||
</property>
|
||||
@ -119,11 +94,8 @@
|
||||
<layout class="QHBoxLayout" name="layout_background">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_background">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Background</string>
|
||||
@ -134,27 +106,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_background">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_background">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_background"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -162,11 +114,8 @@
|
||||
<layout class="QHBoxLayout" name="layout_cpuColor">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_cpu">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CPU color</string>
|
||||
@ -177,27 +126,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_cpuColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_cpu">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_cpu"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -205,11 +134,8 @@
|
||||
<layout class="QHBoxLayout" name="layout_cpuclockColor">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_cpuclock">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CPU clock color</string>
|
||||
@ -220,27 +146,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_cpuclockColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_cpuclock">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_cpuclock"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -248,11 +154,8 @@
|
||||
<layout class="QHBoxLayout" name="layout_memColor">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_mem">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Memory color</string>
|
||||
@ -263,27 +166,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_memColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_mem">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_mem"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -291,11 +174,8 @@
|
||||
<layout class="QHBoxLayout" name="layout_swapColor">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_swap">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Swap color</string>
|
||||
@ -306,27 +186,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_swapColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_swap">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_swap"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -334,11 +194,8 @@
|
||||
<layout class="QHBoxLayout" name="layout_downColor">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_down">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Download speed color</string>
|
||||
@ -349,83 +206,24 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_downColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_down">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_down"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_upColor">
|
||||
<item>
|
||||
<spacer name="spacer_upColorLeft">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_up">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Upload speed color</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_upColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_up">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_up"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -433,11 +231,8 @@
|
||||
<layout class="QHBoxLayout" name="layout_batteryColor">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_battery">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Battery active color</string>
|
||||
@ -448,83 +243,24 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_batteryColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_battery">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_battery"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_batteryInColor">
|
||||
<item>
|
||||
<spacer name="space_batteryIn">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_batteryIn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Battery inactive color</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_batteryInColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_batteryIn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_batteryIn"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
@ -49,45 +49,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontActive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontActive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFontComboBox" name="fontComboBox_fontActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QFontComboBox" name="fontComboBox_fontActive"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -95,47 +66,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontSizeActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontSizeActive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontSizeActive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontSizeActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontSizeActive">
|
||||
<property name="minimum">
|
||||
<number>7</number>
|
||||
</property>
|
||||
@ -153,45 +93,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontColorActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontColorActive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font color</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontColorActive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_fontColorActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_fontColorActive"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -199,47 +110,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontWeightActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontWeightActive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font weight</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontWeightActive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontWeightActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontWeightActive">
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
</property>
|
||||
@ -260,44 +140,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontStyleActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontStyleActive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font style</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontStyleActive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_fontStyleActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">normal</string>
|
||||
@ -346,8 +198,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>406</width>
|
||||
<height>167</height>
|
||||
<width>448</width>
|
||||
<height>289</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
@ -355,45 +207,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontInactive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontInactive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFontComboBox" name="fontComboBox_fontInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QFontComboBox" name="fontComboBox_fontInactive"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -401,47 +224,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontSizeInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontSizeInactive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontSizeInactive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontSizeInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontSizeInactive">
|
||||
<property name="minimum">
|
||||
<number>7</number>
|
||||
</property>
|
||||
@ -459,45 +251,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontColorInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontColorInactive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font color</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontColorInactive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_fontColorInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="KColorCombo" name="kcolorcombo_fontColorInactive"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
@ -505,47 +268,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontWeightInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontWeightInactive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font weight</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontWeightInactive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontWeightInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontWeightInactive">
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
</property>
|
||||
@ -566,44 +298,16 @@
|
||||
<layout class="QHBoxLayout" name="layout_fontStyleInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontStyleInactive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font style</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontStyleInactive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_fontStyleInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">normal</string>
|
||||
|
@ -24,20 +24,24 @@
|
||||
#include <Plasma/Containment>
|
||||
#include <Plasma/Corona>
|
||||
#include <Plasma/Theme>
|
||||
#include <Plasma/ToolTipManager>
|
||||
#include <QDebug>
|
||||
#include <QDesktopWidget>
|
||||
#include <QFile>
|
||||
#include <QGraphicsGridLayout>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QGraphicsProxyWidget>
|
||||
#include <QGraphicsView>
|
||||
#include <QMouseEvent>
|
||||
#include <QProcessEnvironment>
|
||||
#include <QTextCodec>
|
||||
#include <QTimer>
|
||||
|
||||
#include <fontdialog/fontdialog.h>
|
||||
#include <pdebug/pdebug.h>
|
||||
|
||||
|
||||
CustomPlasmaLabel::CustomPlasmaLabel(DesktopPanel *wid, const int num, const bool debugCmd)
|
||||
: Plasma::Label(wid),
|
||||
: QLabel(0),
|
||||
debug(debugCmd),
|
||||
number(num),
|
||||
widget(wid)
|
||||
@ -48,6 +52,7 @@ CustomPlasmaLabel::CustomPlasmaLabel(DesktopPanel *wid, const int num, const boo
|
||||
|
||||
CustomPlasmaLabel::~CustomPlasmaLabel()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
}
|
||||
|
||||
|
||||
@ -59,13 +64,26 @@ int CustomPlasmaLabel::getNumber()
|
||||
}
|
||||
|
||||
|
||||
void CustomPlasmaLabel::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
void CustomPlasmaLabel::enterEvent(QEvent *event)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Event" << event->type();
|
||||
|
||||
if (event->type() == QEvent::Enter)
|
||||
widget->paintTooltip(number);
|
||||
|
||||
emit(QLabel::enterEvent(event));
|
||||
}
|
||||
|
||||
|
||||
void CustomPlasmaLabel::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Get signal" << event->button();
|
||||
|
||||
if (event->button() == Qt::LeftButton)
|
||||
widget->setCurrentDesktop(number);
|
||||
emit(QLabel::mousePressEvent(event));
|
||||
}
|
||||
|
||||
|
||||
@ -94,6 +112,7 @@ DesktopPanel::DesktopPanel(QObject *parent, const QVariantList &args)
|
||||
|
||||
DesktopPanel::~DesktopPanel()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
}
|
||||
|
||||
|
||||
@ -101,17 +120,53 @@ void DesktopPanel::init()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
extsysmonEngine = dataEngine(QString("ext-sysmon"));
|
||||
|
||||
layout = new QGraphicsGridLayout();
|
||||
layout->setContentsMargins(1, 1, 1, 1);
|
||||
setLayout(layout);
|
||||
|
||||
currentDesktop = 1;
|
||||
// tooltip
|
||||
toolTip = Plasma::ToolTipContent();
|
||||
toolTipScene = new QGraphicsScene();
|
||||
toolTipView = new QGraphicsView(toolTipScene);
|
||||
toolTipView->setStyleSheet(QString("background: transparent"));
|
||||
toolTipView->setContentsMargins(0, 0, 0, 0);
|
||||
toolTipView->setFrameShape(QFrame::NoFrame);
|
||||
toolTipView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
toolTipView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
Plasma::ToolTipManager::self()->setContent(this, toolTip);
|
||||
|
||||
// read variables
|
||||
configChanged();
|
||||
connect(this, SIGNAL(activate()), this, SLOT(changePanelsState()));
|
||||
connect(KWindowSystem::self(), SIGNAL(currentDesktopChanged(int)), this, SLOT(updateText(int)));
|
||||
}
|
||||
|
||||
|
||||
DesktopPanel::DesktopWindowsInfo DesktopPanel::getInfoByDesktop(const int num)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Number" << num;
|
||||
|
||||
|
||||
DesktopWindowsInfo info;
|
||||
info.desktop = KWindowSystem::workArea(num);
|
||||
|
||||
QList<WId> windows = KWindowSystem::windows();
|
||||
for (int i=0; i<windows.count(); i++) {
|
||||
KWindowInfo winInfo = KWindowSystem::windowInfo(windows[i],
|
||||
NET::Property::WMDesktop | NET::Property::WMGeometry |
|
||||
NET::Property::WMState | NET::Property::WMWindowType);
|
||||
if (!winInfo.isOnDesktop(num)) continue;
|
||||
if (winInfo.windowType(NET::WindowTypeMask::NormalMask) == NET::WindowType::Normal) {
|
||||
if (winInfo.isMinimized()) continue;
|
||||
info.windows.append(winInfo.geometry());
|
||||
info.winId.append(windows[i]);
|
||||
} else if (winInfo.windowType(NET::WindowTypeMask::DesktopMask) == NET::WindowType::Desktop) {
|
||||
info.desktopId.append(windows[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
@ -156,7 +211,7 @@ QString DesktopPanel::parsePattern(const QString rawLine, const int num)
|
||||
|
||||
QString line, fullMark, mark;
|
||||
line = rawLine;
|
||||
if (currentDesktop == num + 1)
|
||||
if (KWindowSystem::currentDesktop() == num + 1)
|
||||
mark = configuration[QString("mark")];
|
||||
else
|
||||
mark = QString("");
|
||||
@ -179,36 +234,45 @@ QString DesktopPanel::parsePattern(const QString rawLine, const int num)
|
||||
void DesktopPanel::reinit()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (desktopNames.isEmpty()) return;
|
||||
|
||||
// clear
|
||||
// labels
|
||||
for (int i=0; i<labels.count(); i++) {
|
||||
layout->removeItem(labels[i]);
|
||||
for (int i=0; i<proxyWidgets.count(); i++) {
|
||||
layout->removeItem(proxyWidgets[i]);
|
||||
proxyWidgets[i]->setWidget(0);
|
||||
delete labels[i];
|
||||
delete proxyWidgets[i];
|
||||
}
|
||||
labels.clear();
|
||||
// layout
|
||||
layout = new QGraphicsGridLayout();
|
||||
layout->setContentsMargins(1, 1, 1, 1);
|
||||
setLayout(layout);
|
||||
proxyWidgets.clear();
|
||||
desktopNames.clear();
|
||||
|
||||
// add
|
||||
int total = KWindowSystem::numberOfDesktops();
|
||||
for (int i=1; i<total+1; i++)
|
||||
desktopNames.append(KWindowSystem::desktopName(i));
|
||||
// layout
|
||||
if (configuration[QString("background")].toInt() == 0)
|
||||
setBackgroundHints(NoBackground);
|
||||
// labels
|
||||
for (int i=0; i<desktopNames.count(); i++) {
|
||||
labels.append(new CustomPlasmaLabel(this, i));
|
||||
proxyWidgets.append(new QGraphicsProxyWidget(this));
|
||||
labels.append(new CustomPlasmaLabel(this, i, debug));
|
||||
labels[i]->setWordWrap(false);
|
||||
labels[i]->setAttribute(Qt::WA_NoSystemBackground, true);
|
||||
labels[i]->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||
proxyWidgets[i]->setWidget(labels[i]);
|
||||
if (configuration[QString("layout")].toInt() == 0)
|
||||
layout->addItem(labels[i], 0, i);
|
||||
layout->addItem(proxyWidgets[i], 0, i);
|
||||
else
|
||||
layout->addItem(labels[i], i, 0);
|
||||
layout->addItem(proxyWidgets[i], i, 0);
|
||||
}
|
||||
|
||||
updateText(true);
|
||||
updateText(KWindowSystem::currentDesktop());
|
||||
for (int i=0; i<proxyWidgets.count(); i++) {
|
||||
labels[i]->adjustSize();
|
||||
proxyWidgets[i]->setGeometry(labels[i]->geometry());
|
||||
}
|
||||
emit(KWindowSystem::setCurrentDesktop(KWindowSystem::currentDesktop()));
|
||||
}
|
||||
|
||||
|
||||
@ -240,56 +304,96 @@ void DesktopPanel::changePanelsState()
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::paintTooltip(const int active)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (active == activeTooltip) return;
|
||||
|
||||
// prepare
|
||||
// clear
|
||||
toolTip.setImage(0);
|
||||
toolTip.setWindowsToPreview(QList<WId>());
|
||||
activeTooltip = active;
|
||||
DesktopWindowsInfo info = getInfoByDesktop(active + 1);
|
||||
float margin = 5.0 * info.desktop.width() / 400.0;
|
||||
toolTipView->resize(info.desktop.width() + 2.0 * margin, info.desktop.height() + 2.0 * margin);
|
||||
toolTipScene->clear();
|
||||
toolTipScene->setBackgroundBrush(QBrush(Qt::NoBrush));
|
||||
// borders
|
||||
toolTipScene->addLine(0, 0, 0, info.desktop.height() + 2.0 * margin);
|
||||
toolTipScene->addLine(0, info.desktop.height() + 2.0 * margin,
|
||||
info.desktop.width() + 2.0 * margin, info.desktop.height() + 2.0 * margin);
|
||||
toolTipScene->addLine(info.desktop.width() + 2.0 * margin, info.desktop.height() + 2.0 * margin,
|
||||
info.desktop.width() + 2.0 * margin, 0);
|
||||
toolTipScene->addLine(info.desktop.width() + 2.0 * margin, 0, 0, 0);
|
||||
|
||||
if (configuration[QString("tooltipType")].toInt() == 1) {
|
||||
// only contours
|
||||
QPen pen = QPen();
|
||||
pen.setWidthF(2.0 * info.desktop.width() / 400.0);
|
||||
pen.setColor(QColor(configuration[QString("tooltipColor")]));
|
||||
for (int i=0; i<info.windows.count(); i++) {
|
||||
toolTipScene->addLine(info.windows[i].left() + margin, info.windows[i].bottom() + margin,
|
||||
info.windows[i].left() + margin, info.windows[i].top() + margin, pen);
|
||||
toolTipScene->addLine(info.windows[i].left() + margin, info.windows[i].top() + margin,
|
||||
info.windows[i].right() + margin, info.windows[i].top() + margin, pen);
|
||||
toolTipScene->addLine(info.windows[i].right() + margin, info.windows[i].top() + margin,
|
||||
info.windows[i].right() + margin, info.windows[i].bottom() + margin, pen);
|
||||
toolTipScene->addLine(info.windows[i].right() + margin, info.windows[i].bottom() + margin,
|
||||
info.windows[i].left() + margin, info.windows[i].bottom() + margin, pen);
|
||||
}
|
||||
toolTip.setImage(QPixmap::grabWidget(toolTipView).scaledToWidth(configuration[QString("tooltipWidth")].toInt()));
|
||||
} else if (configuration[QString("tooltipType")].toInt() == 2) {
|
||||
// clean desktop
|
||||
toolTip.setWindowsToPreview(info.desktopId);
|
||||
} else {
|
||||
// desktop preview
|
||||
toolTip.setWindowsToPreview(info.winId);
|
||||
}
|
||||
|
||||
Plasma::ToolTipManager::self()->setContent(this, toolTip);
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::setCurrentDesktop(const int number)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Set desktop" << number + 1;
|
||||
|
||||
QString cmd = parsePattern(configuration[QString("desktopcmd")], number);
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Run cmd " << cmd;
|
||||
|
||||
QProcess command;
|
||||
command.startDetached(cmd);
|
||||
KWindowSystem::setCurrentDesktop(number + 1);
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::updateText(const bool first)
|
||||
void DesktopPanel::updateText(const int active)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString line, text;
|
||||
for (int i=0; i<labels.count(); i++) {
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Label" << i;
|
||||
if (first)
|
||||
line = configuration[QString("pattern")];
|
||||
else
|
||||
line = parsePattern(configuration[QString("pattern")], i);
|
||||
if (currentDesktop == i + 1)
|
||||
line = parsePattern(configuration[QString("pattern")], i);
|
||||
if (active == i + 1)
|
||||
text = currentFormatLine[0] + line + currentFormatLine[1];
|
||||
else
|
||||
text = formatLine[0] + line + formatLine[1];
|
||||
labels[i]->setText(text);
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
// data engine interaction
|
||||
void DesktopPanel::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Source name" << sourceName;
|
||||
|
||||
if (data.keys().count() == 0)
|
||||
return;
|
||||
if (sourceName == QString("desktop")) {
|
||||
currentDesktop = data[QString("currentNumber")].toInt();
|
||||
if (desktopNames.isEmpty()) {
|
||||
desktopNames = data[QString("list")].toString().split(QString(";;"));
|
||||
reinit();
|
||||
int height = 0;
|
||||
int width = 0;
|
||||
for (int i=0; i<proxyWidgets.count(); i++) {
|
||||
labels[i]->adjustSize();
|
||||
proxyWidgets[i]->setGeometry(labels[i]->geometry());
|
||||
if (configuration[QString("layout")].toInt() == 0) {
|
||||
width += proxyWidgets[i]->geometry().width();
|
||||
if (height < proxyWidgets[i]->geometry().height())
|
||||
height = proxyWidgets[i]->geometry().height();
|
||||
} else {
|
||||
height += proxyWidgets[i]->geometry().height();
|
||||
if (width < proxyWidgets[i]->geometry().width())
|
||||
width = proxyWidgets[i]->geometry().width();
|
||||
}
|
||||
updateText();
|
||||
}
|
||||
layout->setMinimumSize(width, height);
|
||||
}
|
||||
|
||||
|
||||
@ -306,6 +410,13 @@ void DesktopPanel::createConfigurationInterface(KConfigDialog *parent)
|
||||
uiToggleConfig.setupUi(toggleWidget);
|
||||
|
||||
uiWidConfig.textEdit_elements->setPlainText(configuration[QString("pattern")]);
|
||||
if (configuration[QString("tooltip")].toInt() == 0)
|
||||
uiWidConfig.checkBox_tooltip->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiWidConfig.checkBox_tooltip->setCheckState(Qt::Checked);
|
||||
uiWidConfig.comboBox_tooltipType->setCurrentIndex(configuration[QString("tooltipType")].toInt());
|
||||
uiWidConfig.spinBox_tooltip->setValue(configuration[QString("tooltipWidth")].toInt());
|
||||
uiWidConfig.kcolorcombo_tooltipColor->setColor(QColor(configuration[QString("tooltipColor")]));
|
||||
if (configuration[QString("background")].toInt() == 0)
|
||||
uiWidConfig.checkBox_background->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
@ -314,10 +425,8 @@ void DesktopPanel::createConfigurationInterface(KConfigDialog *parent)
|
||||
uiWidConfig.checkBox_layout->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiWidConfig.checkBox_layout->setCheckState(Qt::Checked);
|
||||
uiWidConfig.spinBox_interval->setValue(configuration[QString("interval")].toInt());
|
||||
uiWidConfig.comboBox_mark->setItemText(uiWidConfig.comboBox_mark->count()-1, configuration[QString("mark")]);
|
||||
uiWidConfig.comboBox_mark->setCurrentIndex(uiWidConfig.comboBox_mark->count()-1);
|
||||
uiWidConfig.lineEdit_desktopcmd->setText(configuration[QString("desktopcmd")]);
|
||||
|
||||
KConfigGroup cg = config();
|
||||
CFont font(cg.readEntry("currentFontFamily", "Terminus"));
|
||||
@ -386,15 +495,16 @@ void DesktopPanel::configAccepted()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
extsysmonEngine->disconnectSource(QString("desktop"), this);
|
||||
KConfigGroup cg = config();
|
||||
|
||||
cg.writeEntry("pattern", uiWidConfig.textEdit_elements->toPlainText());
|
||||
cg.writeEntry("tooltip", QString::number(uiWidConfig.checkBox_tooltip->checkState()));
|
||||
cg.writeEntry("tooltipType", QString::number(uiWidConfig.comboBox_tooltipType->currentIndex()));
|
||||
cg.writeEntry("tooltipWidth", QString::number(uiWidConfig.spinBox_tooltip->value()));
|
||||
cg.writeEntry("tooltipColor", uiWidConfig.kcolorcombo_tooltipColor->color().name());
|
||||
cg.writeEntry("background", QString::number(uiWidConfig.checkBox_background->checkState()));
|
||||
cg.writeEntry("layout", QString::number(uiWidConfig.checkBox_layout->checkState()));
|
||||
cg.writeEntry("interval", QString::number(uiWidConfig.spinBox_interval->value()));
|
||||
cg.writeEntry("mark", uiWidConfig.comboBox_mark->currentText());
|
||||
cg.writeEntry("desktopcmd", uiWidConfig.lineEdit_desktopcmd->text());
|
||||
|
||||
cg.writeEntry("currentFontFamily", uiAppConfig.fontComboBox_fontActive->currentFont().family());
|
||||
cg.writeEntry("currentFontSize", uiAppConfig.spinBox_fontSizeActive->value());
|
||||
@ -426,15 +536,15 @@ void DesktopPanel::configChanged()
|
||||
KConfigGroup cg = config();
|
||||
|
||||
configuration[QString("pattern")] = cg.readEntry("pattern", "[$fullmark$number/$total: $name]");
|
||||
configuration[QString("tooltip")] = cg.readEntry("tooltip", "2");
|
||||
configuration[QString("tooltipType")] = cg.readEntry("tooltipType", "0");
|
||||
configuration[QString("tooltipWidth")] = cg.readEntry("tooltipWidth", "200");
|
||||
configuration[QString("tooltipColor")] = cg.readEntry("tooltipColor", "#ffffff");
|
||||
configuration[QString("background")] = cg.readEntry("background", "2");
|
||||
configuration[QString("desktopcmd")] = cg.readEntry("desktopcmd", "qdbus org.kde.kwin /KWin setCurrentDesktop $number");
|
||||
configuration[QString("interval")] = cg.readEntry("interval", "1000");
|
||||
configuration[QString("layout")] = cg.readEntry("layout", "0");
|
||||
configuration[QString("mark")] = cg.readEntry("mark", "¤");
|
||||
configuration[QString("panels")] = cg.readEntry("panels", "-1");
|
||||
|
||||
extsysmonEngine->connectSource(QString("desktop"), this, configuration[QString("interval")].toInt());
|
||||
|
||||
CFont font = CFont(cg.readEntry("currentFontFamily", "Terminus"));
|
||||
font.setPointSize(cg.readEntry("currentFontSize", 10));
|
||||
font.setCurrentColor(QColor(cg.readEntry("currentFontColor", "#ff0000")));
|
||||
|
@ -20,8 +20,8 @@
|
||||
#define DESKTOP_PANEL_H
|
||||
|
||||
#include <Plasma/Applet>
|
||||
#include <Plasma/DataEngine>
|
||||
#include <Plasma/Label>
|
||||
#include <Plasma/ToolTipContent>
|
||||
#include <QLabel>
|
||||
|
||||
#include <ui_appearance.h>
|
||||
#include <ui_toggle.h>
|
||||
@ -29,21 +29,25 @@
|
||||
|
||||
|
||||
class QGraphicsGridLayout;
|
||||
class QGraphicsProxyWidget;
|
||||
class QGraphicsScene;
|
||||
class DesktopPanel;
|
||||
|
||||
|
||||
class CustomPlasmaLabel : public Plasma::Label
|
||||
class CustomPlasmaLabel : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CustomPlasmaLabel(DesktopPanel *wid, const int num,
|
||||
CustomPlasmaLabel(DesktopPanel *wid,
|
||||
const int num,
|
||||
const bool debugCmd = false);
|
||||
~CustomPlasmaLabel();
|
||||
int getNumber();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||
void enterEvent(QEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
|
||||
private:
|
||||
// debug
|
||||
@ -58,26 +62,34 @@ class DesktopPanel : public Plasma::Applet
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
typedef struct {
|
||||
QRect desktop;
|
||||
QList<WId> desktopId;
|
||||
QList<QRect> windows;
|
||||
QList<WId> winId;
|
||||
} DesktopWindowsInfo;
|
||||
|
||||
public:
|
||||
DesktopPanel(QObject *parent, const QVariantList &args);
|
||||
~DesktopPanel();
|
||||
void init();
|
||||
DesktopWindowsInfo getInfoByDesktop(const int num);
|
||||
QString parsePattern(const QString rawLine, const int num);
|
||||
|
||||
public slots:
|
||||
// dataengine
|
||||
void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);
|
||||
// configuration interface
|
||||
void configAccepted();
|
||||
void configChanged();
|
||||
// events
|
||||
void changePanelsState();
|
||||
void paintTooltip(const int active);
|
||||
void setCurrentDesktop(const int number);
|
||||
|
||||
private slots:
|
||||
void reinit();
|
||||
void setFontFormating();
|
||||
void setFormating();
|
||||
void updateText(const int active);
|
||||
|
||||
protected:
|
||||
void createConfigurationInterface(KConfigDialog *parent);
|
||||
@ -86,16 +98,18 @@ private:
|
||||
// functions
|
||||
QList<Plasma::Containment *> getPanels();
|
||||
QString panelLocationToStr(Plasma::Location loc);
|
||||
void updateText(const bool first = false);
|
||||
// ui
|
||||
QGraphicsGridLayout *layout;
|
||||
QList<QGraphicsProxyWidget *> proxyWidgets;
|
||||
QList<CustomPlasmaLabel *> labels;
|
||||
// tooltip
|
||||
Plasma::ToolTipContent toolTip;
|
||||
QGraphicsScene *toolTipScene;
|
||||
QGraphicsView *toolTipView;
|
||||
// debug
|
||||
bool debug;
|
||||
// data engine
|
||||
int currentDesktop;
|
||||
int activeTooltip = -1;
|
||||
int oldState;
|
||||
Plasma::DataEngine *extsysmonEngine;
|
||||
// configuration interface
|
||||
Ui::AppearanceWidget uiAppConfig;
|
||||
Ui::ConfigWindow uiWidConfig;
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"PO-Revision-Date: 2014-09-15 10:02+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-12-15 02:41+0300\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: English <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -18,39 +18,39 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr "Top Edge"
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr "Bottom Edge"
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr "Left Edge"
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr "Right Edge"
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
#: desktop-panel.cpp:201
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr "Unknown Position (%1)"
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr "Appearance"
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr "Toggle panels"
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr "Select font"
|
||||
|
||||
@ -58,7 +58,7 @@ msgstr "Select font"
|
||||
msgid "Active desktop"
|
||||
msgstr "Active desktop"
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr "Font"
|
||||
|
||||
@ -87,59 +87,87 @@ msgid "To control panels please set widget shortcut."
|
||||
msgstr "To control panels please set widget shortcut."
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr "Time interval"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr "Enable background"
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr "Mark"
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "A mark which will be shown if this desktop is active"
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Vertical layout"
|
||||
msgstr "Vertical layout"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr "Command to change desktop"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr "Command which will change the current desktop"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr "Add"
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr "Tooltip width"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr "Window border color on tooltip"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr "Enable background"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr "Vertical layout"
|
||||
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr "Enable tooltip"
|
||||
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr "Windows"
|
||||
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr "Contours"
|
||||
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
msgid "Clean desktop"
|
||||
msgstr "Clean desktop"
|
||||
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ msgid "Show windows instead of contours"
|
||||
#~ msgstr "Show windows instead of contours"
|
||||
|
||||
#~ msgid "Time interval"
|
||||
#~ msgstr "Time interval"
|
||||
|
||||
#~ msgid "Command to change desktop"
|
||||
#~ msgstr "Command to change desktop"
|
||||
|
||||
#~ msgid "Command which will change the current desktop"
|
||||
#~ msgstr "Command which will change the current desktop"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "Add stretch to left/top of the layout"
|
||||
|
||||
|
@ -7,10 +7,10 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"PO-Revision-Date: 2014-06-05 10:21+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Spanish <kde-spanish@lists.kde.ru>\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-12-15 19:56-0500\n"
|
||||
"Last-Translator: Ernesto Avilés Vázquez\n"
|
||||
"Language-Team: Spanish <kde-i18n-doc@kde.org>\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@ -18,127 +18,147 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr ""
|
||||
msgstr "Borde superior"
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr ""
|
||||
msgstr "Borde inferior"
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr ""
|
||||
msgstr "Borde izquierdo"
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr ""
|
||||
msgstr "Borde derecho"
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
#: desktop-panel.cpp:201
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr ""
|
||||
msgstr "Posición desconocida (%1)"
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr "Apariencia"
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr ""
|
||||
msgstr "Conmutar paneles"
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
msgstr "Elegir tipo de letra"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
msgstr "Escritorio activo"
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr "Fuente"
|
||||
msgstr "Tipo de letra"
|
||||
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Tamaño de fuente"
|
||||
msgstr "Tamaño de letra"
|
||||
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Color de fuente"
|
||||
msgstr "Color de letra"
|
||||
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Grosor de la fuente"
|
||||
msgstr "Grosor de letra"
|
||||
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Estilo de fuente"
|
||||
msgstr "Estilo de letra"
|
||||
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
msgstr "Escritorio inactivo"
|
||||
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "To control panels please set widget shortcut."
|
||||
msgstr ""
|
||||
"Para controlar los paneles establece el atajo del teclado para el widget."
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tiempo"
|
||||
msgid "Mark"
|
||||
msgstr "Marca"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "Una marca será mostrada si este escritorio está activo"
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr "Añadir"
|
||||
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr "Ancho de la ventana emergente"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr "Color del borde de la ventana emergente"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr "Habilitar fondo"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr "Orientación vertical"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr "Habilitar ventana emergente"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr "Ventanas"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "Ctrl+B"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr "Contornos"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Ctrl+I"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
msgid "Clean desktop"
|
||||
msgstr "Limpiar escritorio"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Ctrl+U"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Tu nombre"
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "Tus correos"
|
||||
msgstr "Tu email"
|
||||
|
||||
#~ msgid "Time interval"
|
||||
#~ msgstr "Intervalo de tiempo"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "Añadir extensión a la izquierda/superior de la distribución"
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-06-05 19:24+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: French <kde-french@lists.kde.ru>\n"
|
||||
@ -19,39 +19,39 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
#: desktop-panel.cpp:201
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr "Apparence"
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
|
||||
@ -59,7 +59,7 @@ msgstr ""
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr "Police"
|
||||
|
||||
@ -88,59 +88,78 @@ msgid "To control panels please set widget shortcut."
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalle"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Vertical layout"
|
||||
msgstr "Positionnement vertical"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Ctrl+B"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr "Positionnement vertical"
|
||||
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
msgid "Clean desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ msgid "Time interval"
|
||||
#~ msgstr "Intervalle"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "Étirer le positionnement vers haut/gauche"
|
||||
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -17,39 +17,39 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
#: desktop-panel.cpp:201
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
|
||||
@ -57,7 +57,7 @@ msgstr ""
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
@ -86,55 +86,71 @@ msgid "To control panels please set widget shortcut."
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Vertical layout"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Ctrl+B"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
msgid "Clean desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr ""
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"PO-Revision-Date: 2014-06-09 01:47+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-12-24 00:05+0300\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Brazilian Portuguese <kde-russian@lists.kde.ru>\n"
|
||||
"Language: pt_BR\n"
|
||||
@ -16,50 +16,53 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
"X-Language: pt_BR\n"
|
||||
"X-Source-Language: C\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr ""
|
||||
msgstr "Canto do topo"
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr ""
|
||||
msgstr "Canto de baixo"
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr ""
|
||||
msgstr "Canto esquerdo"
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr ""
|
||||
msgstr "Canto direito"
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
#: desktop-panel.cpp:201
|
||||
#, qt-format
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr ""
|
||||
msgstr "Posição desconhecida (%1)"
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr "Aparência"
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr ""
|
||||
msgstr "Ativar painéis"
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
msgstr "Selecionar fonte"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
msgstr "Desktop ativo"
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr "Tamanho da fonte"
|
||||
msgstr "Fonte"
|
||||
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
@ -71,7 +74,7 @@ msgstr "Cor da fonte"
|
||||
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Peso da fonte"
|
||||
msgstr "Grossura da fonte"
|
||||
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
@ -79,65 +82,84 @@ msgstr "Estilo da fonte"
|
||||
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
msgstr "Desktop inativo"
|
||||
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "To control panels please set widget shortcut."
|
||||
msgstr ""
|
||||
msgstr "Para controlar paines por favor defina o atalho do widget"
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tempo"
|
||||
msgid "Mark"
|
||||
msgstr "Marca"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "Uma marca a ser mostrada se este desktop estiver ativo"
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr "Adicionar"
|
||||
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr "Largura da dica de contexto"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr "Cor da borda de janela na dica de contexto"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr "Ativar plano de fundo"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr "Layout vertical"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr "Ativar dica de contexto"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr "Janelas"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "Ctrl+B"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr "Contornos"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Ctrl+I"
|
||||
msgstr ""
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
msgid "Clean desktop"
|
||||
msgstr "Limpar desktop"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Ctrl+U"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "under"
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "dreanazous@gmail.com"
|
||||
msgstr "under@insicuri.net"
|
||||
|
||||
#~ msgid "Time interval"
|
||||
#~ msgstr "Intervalo de tempo"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "Adicionar esticamento à esquerda/topo do layout"
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"PO-Revision-Date: 2014-09-15 10:03+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-12-15 02:41+0300\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -18,39 +18,39 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr "Верхний край"
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr "Нижний край"
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr "Левый край"
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr "Правый край"
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
#: desktop-panel.cpp:201
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr "Неизвестное положение (%1)"
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr "Виджет"
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr "Внешний вид"
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr "Скрыть панели"
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr "Выберете шрифт"
|
||||
|
||||
@ -58,7 +58,7 @@ msgstr "Выберете шрифт"
|
||||
msgid "Active desktop"
|
||||
msgstr "Активный рабочий стол"
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
@ -87,59 +87,87 @@ msgid "To control panels please set widget shortcut."
|
||||
msgstr "Чтобы управлять панелями, настройте комбинацию клавиш."
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr "Интервал обновления"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr "Включить фон"
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr "Метка"
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "Метка, которая будет показана, если данный рабочий стол активен"
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальная разметка"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr "Команда"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr "Команда которая изменит текущий рабочий стол"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr "Добавить"
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr "Ширина тултипа"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr "Цвет границ окна в тултипе"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr "Включить фон"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальная разметка"
|
||||
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr "Включить тултип"
|
||||
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr "Окна"
|
||||
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr "Контуры"
|
||||
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
msgid "Clean desktop"
|
||||
msgstr "Пустой рабочий стол"
|
||||
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ msgid "Show windows instead of contours"
|
||||
#~ msgstr "Показывать окна вместо контуров"
|
||||
|
||||
#~ msgid "Time interval"
|
||||
#~ msgstr "Интервал обновления"
|
||||
|
||||
#~ msgid "Command to change desktop"
|
||||
#~ msgstr "Команда"
|
||||
|
||||
#~ msgid "Command which will change the current desktop"
|
||||
#~ msgstr "Команда которая изменит текущий рабочий стол"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "Добавить пустое место слева/сверху виджета"
|
||||
|
||||
|
@ -1,147 +1,167 @@
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
#
|
||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Ukrainian <kde-ukrainian@lists.kde.ru>\n"
|
||||
"Language: ua\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
msgid "Top Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
msgid "Bottom Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
msgid "Left Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
msgid "Right Edge"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
msgid "Widget"
|
||||
msgstr "Віджет"
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
msgid "Appearance"
|
||||
msgstr "Зовнішній вигляд"
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
msgid "Toggle panels"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
msgid "Select font"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Розмір шрифту"
|
||||
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Колір шрифту"
|
||||
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифту"
|
||||
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифту"
|
||||
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "To control panels please set widget shortcut."
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr "Інтервал оновлення"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальна розмітка"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "Ctrl+B"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Ctrl+I"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Ctrl+U"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Slobodyan Victor"
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "sarumyan@i.ua"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "Додати порожнє місце ліворуч/вгорі віджету"
|
||||
|
||||
#~ msgid "Add stretch to right/bottom of the layout"
|
||||
#~ msgstr "Додати порожнє місце праворуч/внизу віджету"
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
#
|
||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Ukrainian <kde-ukrainian@lists.kde.ru>\n"
|
||||
"Language: ua\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr "Верхній край"
|
||||
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr "Нижній край"
|
||||
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr "Лівий край"
|
||||
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr "Правий край"
|
||||
|
||||
#: desktop-panel.cpp:201
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr "Невідоме положення (%1)"
|
||||
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr "Віджет"
|
||||
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr "Зовнішній вигляд"
|
||||
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr "Перемикання панелей"
|
||||
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr "Вибрати шрифт"
|
||||
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr "Активний робочий стіл"
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Розмір шрифту"
|
||||
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Колір шрифту"
|
||||
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифту"
|
||||
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифту"
|
||||
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr "Неактивний робочий стіл"
|
||||
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "To control panels please set widget shortcut."
|
||||
msgstr "Для управління панелями будьдаска встановіть комбінацію клавіш для віджету"
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Mark"
|
||||
msgstr "Позначка"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "Позначка, що буде показана, якщо цей робочий стіл є активним"
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr "Додати"
|
||||
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr "Ширина підказки"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr "px"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr "Колір границі вікна підказки"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr "Включити фон"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальна розмітка"
|
||||
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr "Включити підказки"
|
||||
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr "Вікна"
|
||||
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr "Контури"
|
||||
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
msgid "Clean desktop"
|
||||
msgstr "Очистити робочий стіл"
|
||||
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Slobodyan Victor"
|
||||
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "sarumyan@i.ua"
|
||||
|
||||
#~ msgid "Time interval"
|
||||
#~ msgstr "Інтервал оновлення"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "Додати порожнє місце ліворуч/вгорі віджету"
|
||||
|
||||
#~ msgid "Add stretch to right/bottom of the layout"
|
||||
#~ msgstr "Додати порожнє місце праворуч/внизу віджету"
|
||||
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
|
||||
"POT-Creation-Date: 2014-09-15 10:02+0400\n"
|
||||
"POT-Creation-Date: 2014-12-15 02:40+0300\n"
|
||||
"PO-Revision-Date: 2014-09-15 10:04+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: American English <kde-russian@lists.kde.ru>\n"
|
||||
@ -18,39 +18,39 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#: desktop-panel.cpp:141
|
||||
#: desktop-panel.cpp:193
|
||||
msgid "Top Edge"
|
||||
msgstr "顶部边缘"
|
||||
|
||||
#: desktop-panel.cpp:143
|
||||
#: desktop-panel.cpp:195
|
||||
msgid "Bottom Edge"
|
||||
msgstr "底部边缘"
|
||||
|
||||
#: desktop-panel.cpp:145
|
||||
#: desktop-panel.cpp:197
|
||||
msgid "Left Edge"
|
||||
msgstr "左端边缘"
|
||||
|
||||
#: desktop-panel.cpp:147
|
||||
#: desktop-panel.cpp:199
|
||||
msgid "Right Edge"
|
||||
msgstr "右端边缘"
|
||||
|
||||
#: desktop-panel.cpp:149
|
||||
#: desktop-panel.cpp:201
|
||||
msgid "Unknown Position (%1)"
|
||||
msgstr "未知位置(%1)"
|
||||
|
||||
#: desktop-panel.cpp:367
|
||||
#: desktop-panel.cpp:473
|
||||
msgid "Widget"
|
||||
msgstr "窗口小部件"
|
||||
|
||||
#: desktop-panel.cpp:368
|
||||
#: desktop-panel.cpp:474
|
||||
msgid "Appearance"
|
||||
msgstr "外观"
|
||||
|
||||
#: desktop-panel.cpp:369
|
||||
#: desktop-panel.cpp:475
|
||||
msgid "Toggle panels"
|
||||
msgstr "控制面板状态切换(显示/隐藏)"
|
||||
|
||||
#: desktop-panel.cpp:489
|
||||
#: desktop-panel.cpp:596
|
||||
msgid "Select font"
|
||||
msgstr "选择字体"
|
||||
|
||||
@ -58,7 +58,7 @@ msgstr "选择字体"
|
||||
msgid "Active desktop"
|
||||
msgstr "当前激活桌面"
|
||||
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:63 rc.cpp:6 rc.cpp:24 rc.cpp:63
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 po/rc.cpp:48 rc.cpp:6 rc.cpp:24 rc.cpp:48
|
||||
msgid "Font"
|
||||
msgstr "字体"
|
||||
|
||||
@ -87,59 +87,85 @@ msgid "To control panels please set widget shortcut."
|
||||
msgstr "设置控制面板的快捷键"
|
||||
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Time interval"
|
||||
msgstr "时间间隔"
|
||||
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Enable background"
|
||||
msgstr "启用背景"
|
||||
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Mark"
|
||||
msgstr "标记"
|
||||
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "当前桌面处于激活状态下,该当标记显示。 "
|
||||
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Vertical layout"
|
||||
msgstr "垂直布局"
|
||||
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Command to change desktop"
|
||||
msgstr "桌面切换命令"
|
||||
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr "当前桌面更改命令"
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Ctrl+B"
|
||||
msgstr "Ctrl+B"
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Ctrl+I"
|
||||
msgstr "Ctrl+I"
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "Ctrl+U"
|
||||
msgstr "Ctrl+U"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Add"
|
||||
msgstr "添加"
|
||||
|
||||
#: po/rc.cpp:76 rc.cpp:76
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid "Tooltip width"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:66 rc.cpp:66
|
||||
msgid "px"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Window border color on tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Enable background"
|
||||
msgstr "启用背景"
|
||||
|
||||
#: po/rc.cpp:75 rc.cpp:75
|
||||
msgid "Vertical layout"
|
||||
msgstr "垂直布局"
|
||||
|
||||
#: po/rc.cpp:78 rc.cpp:78
|
||||
msgid "Enable tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:81 rc.cpp:81
|
||||
msgid "Windows"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:84 rc.cpp:84
|
||||
msgid "Contours"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:87 rc.cpp:87
|
||||
#, fuzzy
|
||||
msgid "Clean desktop"
|
||||
msgstr "当前激活桌面"
|
||||
|
||||
#: po/rc.cpp:88 rc.cpp:88
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "用户名"
|
||||
|
||||
#: po/rc.cpp:77 rc.cpp:77
|
||||
#: po/rc.cpp:89 rc.cpp:89
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "用户邮箱"
|
||||
|
||||
#~ msgid "Time interval"
|
||||
#~ msgstr "时间间隔"
|
||||
|
||||
#~ msgid "Command to change desktop"
|
||||
#~ msgstr "桌面切换命令"
|
||||
|
||||
#~ msgid "Command which will change the current desktop"
|
||||
#~ msgstr "当前桌面更改命令"
|
||||
|
||||
#~ msgid "Add stretch to left/top of the layout"
|
||||
#~ msgstr "添加左上角拉伸"
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>729</width>
|
||||
<height>428</height>
|
||||
<width>721</width>
|
||||
<height>420</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
@ -20,81 +20,16 @@
|
||||
<string notr="true">Widget</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="4" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_interval">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_interval">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Time interval</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_interval">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_interval">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>10000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>500</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="checkBox_background">
|
||||
<property name="text">
|
||||
<string>Enable background</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<item row="9" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_mark">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mark">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Mark</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -179,37 +114,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="checkBox_layout">
|
||||
<property name="text">
|
||||
<string>Vertical layout</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_desktopcmd">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_desktopcmd">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Command to change desktop</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_desktopcmd">
|
||||
<property name="toolTip">
|
||||
<string>Command which will change the current desktop</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<layout class="QHBoxLayout" name="layput_mainFormating">
|
||||
<item>
|
||||
@ -402,8 +306,167 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_tooltip">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tooltip">
|
||||
<property name="text">
|
||||
<string>Tooltip width</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_tooltip">
|
||||
<property name="suffix">
|
||||
<string>px</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>25</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_tooltipColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tooltipColor">
|
||||
<property name="text">
|
||||
<string>Window border color on tooltip</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_tooltipColor"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_background">
|
||||
<item>
|
||||
<spacer name="spacer_background">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_background">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable background</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_layout">
|
||||
<item>
|
||||
<spacer name="spacer_layout">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_layout">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Vertical layout</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_tooltip_2">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_tooltip">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::RightToLeft</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable tooltip</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_tooltipType">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Windows</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Contours</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Clean desktop</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KColorCombo</class>
|
||||
<extends>QComboBox</extends>
|
||||
<header>kcolorcombo.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
@ -1,5 +1,7 @@
|
||||
# set project name
|
||||
set (SUBPROJECT plasma_engine_extsysmon)
|
||||
set (PLUGIN_NAME ${SUBPROJECT})
|
||||
message (STATUS "Subproject ${SUBPROJECT}")
|
||||
|
||||
# find required libaries
|
||||
find_package (KDE4 REQUIRED)
|
||||
@ -13,18 +15,20 @@ include_directories (${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../
|
||||
${PROJECT_TRDPARTY_DIR})
|
||||
|
||||
set (PLUGIN_NAME ${SUBPROJECT})
|
||||
file (GLOB SUBPROJECT_DESKTOP_IN *.desktop)
|
||||
file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN})
|
||||
file (GLOB_RECURSE SUBPROJECT_SOURCE *.cpp ${PROJECT_TRDPARTY_DIR}/task/*.cpp)
|
||||
set (TASK_HEADER ${PROJECT_TRDPARTY_DIR}/task/task.h)
|
||||
file (GLOB SUBPROJECT_UI *.ui)
|
||||
file (GLOB SUBPROJECT_CONF *.conf)
|
||||
set (SUBPROJECT_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/scripts)
|
||||
|
||||
# prepare
|
||||
configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP})
|
||||
|
||||
# make
|
||||
qt4_wrap_cpp (TASK_MOC_SOURCE ${TASK_HEADER})
|
||||
kde4_add_ui_files (SUBPROJECT_SOURCE ${SUBPROJECT_UI})
|
||||
kde4_add_plugin (${PLUGIN_NAME} ${SUBPROJECT_SOURCE} ${TASK_MOC_SOURCE})
|
||||
target_link_libraries (${PLUGIN_NAME} ${KDE4_KDECORE_LIBS} ${KDE4_PLASMA_LIBS})
|
||||
|
||||
@ -32,3 +36,4 @@ target_link_libraries (${PLUGIN_NAME} ${KDE4_KDECORE_LIBS} ${KDE4_PLASMA_LIBS})
|
||||
install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR})
|
||||
install (FILES ${SUBPROJECT_CONF} DESTINATION ${CONFIG_INSTALL_DIR})
|
||||
install (DIRECTORY ${SUBPROJECT_SCRIPTS} DESTINATION ${DATA_INSTALL_DIR}/${PLUGIN_NAME} USE_SOURCE_PERMISSIONS)
|
||||
|
351
sources/ext-sysmon/extscript.cpp
Normal file
351
sources/ext-sysmon/extscript.cpp
Normal file
@ -0,0 +1,351 @@
|
||||
/***************************************************************************
|
||||
* This file is part of awesome-widgets *
|
||||
* *
|
||||
* awesome-widgets 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 3 of the *
|
||||
* License, or (at your option) any later version. *
|
||||
* *
|
||||
* awesome-widgets 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 awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#include "extscript.h"
|
||||
#include "ui_extscript.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QSettings>
|
||||
#include <QTextCodec>
|
||||
|
||||
#include <pdebug/pdebug.h>
|
||||
#include <task/taskadds.h>
|
||||
|
||||
|
||||
ExtScript::ExtScript(QWidget *parent, const QString scriptName, const QStringList directories, const bool debugCmd) :
|
||||
QDialog(parent),
|
||||
fileName(scriptName),
|
||||
dirs(directories),
|
||||
debug(debugCmd),
|
||||
ui(new Ui::ExtScript)
|
||||
{
|
||||
_name = fileName;
|
||||
readConfiguration();
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
|
||||
ExtScript::~ExtScript()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
QString ExtScript::getComment()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _comment;
|
||||
}
|
||||
|
||||
|
||||
QString ExtScript::getExec()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _exec;
|
||||
}
|
||||
|
||||
|
||||
QString ExtScript::getFileName()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return fileName;
|
||||
}
|
||||
|
||||
|
||||
int ExtScript::getInterval()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _interval;
|
||||
}
|
||||
|
||||
|
||||
QString ExtScript::getName()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _name;
|
||||
}
|
||||
|
||||
|
||||
QString ExtScript::getPrefix()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _prefix;
|
||||
}
|
||||
|
||||
|
||||
ExtScript::Redirect ExtScript::getRedirect()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _redirect;
|
||||
}
|
||||
|
||||
|
||||
QString ExtScript::getStrRedirect()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString value;
|
||||
switch (_redirect) {
|
||||
case stdout2stderr:
|
||||
value = QString("stdout2stderr");
|
||||
break;
|
||||
case stderr2stdout:
|
||||
value = QString("stderr2stdout");
|
||||
break;
|
||||
default:
|
||||
value = QString("nothing");
|
||||
break;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
bool ExtScript::hasOutput()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _output;
|
||||
}
|
||||
|
||||
|
||||
bool ExtScript::isActive()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
return _active;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setActive(const bool state)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "State" << state;
|
||||
|
||||
_active = state;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setComment(const QString comment)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Comment" << comment;
|
||||
|
||||
_comment = comment;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setExec(const QString exec)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Executable" << exec;
|
||||
|
||||
_exec = exec;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setHasOutput(const bool state)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "State" << state;
|
||||
|
||||
_output = state;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setInterval(const int interval)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Interval" << interval;
|
||||
if (interval <= 0) return;
|
||||
|
||||
_interval = interval;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setName(const QString name)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Name" << name;
|
||||
|
||||
_name = name;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setPrefix(const QString prefix)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Prefix" << prefix;
|
||||
|
||||
_prefix = prefix;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::setRedirect(const QString redirect)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Redirect" << redirect;
|
||||
|
||||
if (redirect == QString("stdout2sdterr"))
|
||||
_redirect = stdout2stderr;
|
||||
else if (redirect == QString("stderr2sdtout"))
|
||||
_redirect = stderr2stdout;
|
||||
else
|
||||
_redirect = nothing;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::readConfiguration()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
for (int i=dirs.count()-1; i>=0; i--) {
|
||||
if (!QDir(dirs[i]).entryList(QDir::Files).contains(fileName)) continue;
|
||||
QSettings settings(dirs[i] + QDir::separator() + fileName, QSettings::IniFormat);
|
||||
settings.beginGroup(QString("Desktop Entry"));
|
||||
setName(settings.value(QString("Name"), _name).toString());
|
||||
setComment(settings.value(QString("Comment"), _comment).toString());
|
||||
setExec(settings.value(QString("Exec"), _exec).toString());
|
||||
setPrefix(settings.value(QString("X-AW-Prefix"), _prefix).toString());
|
||||
setActive(settings.value(QString("X-AW-Active"), QVariant(_active).toString()).toString() == QString("true"));
|
||||
setHasOutput(settings.value(QString("X-AW-Output"), QVariant(_output).toString()).toString() == QString("true"));
|
||||
setRedirect(settings.value(QString("X-AW-Redirect"), getStrRedirect()).toString());
|
||||
setInterval(settings.value(QString("X-AW-Interval"), _interval).toInt());
|
||||
settings.endGroup();
|
||||
}
|
||||
|
||||
if (!_output)
|
||||
setRedirect(QString("stdout2stderr"));
|
||||
}
|
||||
|
||||
|
||||
ExtScript::ScriptData ExtScript::run(const int time)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
ScriptData response;
|
||||
response.active = _active;
|
||||
response.name = _name;
|
||||
response.refresh = false;
|
||||
if (!_active) return response;
|
||||
if (time != _interval) return response;
|
||||
response.refresh = true;
|
||||
|
||||
QStringList cmdList;
|
||||
if (!_prefix.isEmpty())
|
||||
cmdList.append(_prefix);
|
||||
cmdList.append(_exec);
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmdList.join(QChar(' '));
|
||||
TaskResult process = runTask(cmdList.join(QChar(' ')));
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
|
||||
|
||||
QString info = QString::number(process.exitCode) + QString(":") +
|
||||
QTextCodec::codecForMib(106)->toUnicode(process.error).trimmed();
|
||||
QString qoutput = QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed();
|
||||
switch(_redirect) {
|
||||
case stdout2stderr:
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Debug" << info;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Output" << qoutput;
|
||||
break;
|
||||
case stderr2stdout:
|
||||
response.output = info + QString("\t") + qoutput;
|
||||
break;
|
||||
default:
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Debug" << info;
|
||||
response.output = qoutput;
|
||||
break;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::showConfiguration()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
ui->lineEdit_name->setText(_name);
|
||||
ui->lineEdit_comment->setText(_comment);
|
||||
ui->lineEdit_command->setText(_exec);
|
||||
ui->lineEdit_prefix->setText(_prefix);
|
||||
if (_active)
|
||||
ui->checkBox_active->setCheckState(Qt::Checked);
|
||||
else
|
||||
ui->checkBox_active->setCheckState(Qt::Unchecked);
|
||||
if (_output)
|
||||
ui->checkBox_output->setCheckState(Qt::Checked);
|
||||
else
|
||||
ui->checkBox_output->setCheckState(Qt::Unchecked);
|
||||
ui->comboBox_redirect->setCurrentIndex((int)_redirect);
|
||||
ui->spinBox_interval->setValue(_interval);
|
||||
|
||||
int ret = exec();
|
||||
if (ret != 1) return;
|
||||
setName(ui->lineEdit_name->text());
|
||||
setComment(ui->lineEdit_comment->text());
|
||||
setExec(ui->lineEdit_command->text());
|
||||
setPrefix(ui->lineEdit_prefix->text());
|
||||
setActive(ui->checkBox_active->checkState() == Qt::Checked);
|
||||
setHasOutput(ui->checkBox_output->checkState() == Qt::Checked);
|
||||
setRedirect(ui->comboBox_redirect->currentText());
|
||||
setInterval(ui->spinBox_interval->value());
|
||||
|
||||
writeConfiguration();
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::tryDelete()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
for (int i=0; i<dirs.count(); i++)
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Remove file" << dirs[i] + QDir::separator() + fileName <<
|
||||
QFile::remove(dirs[i] + QDir::separator() + fileName);
|
||||
}
|
||||
|
||||
|
||||
void ExtScript::writeConfiguration()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QSettings settings(dirs[0] + QDir::separator() + fileName, QSettings::IniFormat);
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Configuration file" << settings.fileName();
|
||||
settings.beginGroup(QString("Desktop Entry"));
|
||||
|
||||
settings.setValue(QString("Encoding"), QString("UTF-8"));
|
||||
settings.setValue(QString("Name"), _name);
|
||||
settings.setValue(QString("Comment"), _comment);
|
||||
settings.setValue(QString("Exec"), _exec);
|
||||
settings.setValue(QString("X-AW-Prefix"), _prefix);
|
||||
settings.setValue(QString("X-AW-Active"), QVariant(_active).toString());
|
||||
settings.setValue(QString("X-AW-Output"), QVariant(_active).toString());
|
||||
settings.setValue(QString("X-AW-Redirect"), getStrRedirect());
|
||||
settings.setValue(QString("X-AW-Interval"), _interval);
|
||||
|
||||
settings.endGroup();
|
||||
settings.sync();
|
||||
}
|
94
sources/ext-sysmon/extscript.h
Normal file
94
sources/ext-sysmon/extscript.h
Normal file
@ -0,0 +1,94 @@
|
||||
/***************************************************************************
|
||||
* This file is part of awesome-widgets *
|
||||
* *
|
||||
* awesome-widgets 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 3 of the *
|
||||
* License, or (at your option) any later version. *
|
||||
* *
|
||||
* awesome-widgets 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 awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTSCRIPT_H
|
||||
#define EXTSCRIPT_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class ExtScript;
|
||||
}
|
||||
|
||||
class ExtScript : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum Redirect {
|
||||
stdout2stderr = 0,
|
||||
nothing,
|
||||
stderr2stdout
|
||||
};
|
||||
typedef struct {
|
||||
bool active;
|
||||
QString name;
|
||||
QString output;
|
||||
bool refresh;
|
||||
} ScriptData;
|
||||
|
||||
explicit ExtScript(QWidget *parent = 0, const QString scriptName = QString(),
|
||||
const QStringList directories = QStringList(), const bool debugCmd = false);
|
||||
~ExtScript();
|
||||
// get methods
|
||||
QString getComment();
|
||||
QString getExec();
|
||||
QString getFileName();
|
||||
int getInterval();
|
||||
QString getName();
|
||||
QString getPrefix();
|
||||
Redirect getRedirect();
|
||||
QString getStrRedirect();
|
||||
bool hasOutput();
|
||||
bool isActive();
|
||||
// set methods
|
||||
void setActive(const bool state = true);
|
||||
void setComment(const QString comment = QString("empty"));
|
||||
void setExec(const QString exec = QString("/usr/bin/true"));
|
||||
void setHasOutput(const bool state = true);
|
||||
void setInterval(const int interval = 1);
|
||||
void setName(const QString name = QString("none"));
|
||||
void setPrefix(const QString prefix = QString(""));
|
||||
void setRedirect(const QString redirect = QString("nothing"));
|
||||
|
||||
public slots:
|
||||
void readConfiguration();
|
||||
ScriptData run(const int time);
|
||||
void showConfiguration();
|
||||
void tryDelete();
|
||||
void writeConfiguration();
|
||||
|
||||
|
||||
private:
|
||||
QString fileName;
|
||||
QStringList dirs;
|
||||
bool debug;
|
||||
Ui::ExtScript *ui;
|
||||
// properties
|
||||
bool _active = true;
|
||||
QString _comment = QString("empty");
|
||||
QString _exec = QString("/usr/bin/true");
|
||||
int _interval = 1;
|
||||
QString _name = QString("none");
|
||||
bool _output = true;
|
||||
QString _prefix = QString("");
|
||||
Redirect _redirect = nothing;
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTSCRIPT_H */
|
283
sources/ext-sysmon/extscript.ui
Normal file
283
sources/ext-sysmon/extscript.ui
Normal file
@ -0,0 +1,283 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ExtScript</class>
|
||||
<widget class="QDialog" name="ExtScript">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>420</width>
|
||||
<height>301</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Configuration</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_name">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_name">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_name"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_comment">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_comment">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Comment</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_comment"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_command">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_command">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Command</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_command"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_prefix">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_prefix">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Prefix</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_prefix"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_active">
|
||||
<item>
|
||||
<spacer name="spacer_active">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_active">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Active</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_output">
|
||||
<item>
|
||||
<spacer name="spacer_output">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_output">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Has output</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_redirect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_redirect">
|
||||
<property name="text">
|
||||
<string>Redirect</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_redirect">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">stdout2stderr</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">nothing</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">stderr2stdout</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_interval">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_interval">
|
||||
<property name="text">
|
||||
<string>Interval</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_interval">
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<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>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>ExtScript</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>ExtScript</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
@ -4,12 +4,6 @@
|
||||
# ACPI devices
|
||||
#ACPIPATH=/sys/class/power_supply/
|
||||
|
||||
# Custom command, separator is '@@'
|
||||
#CUSTOM=curl ip4.telize.com
|
||||
|
||||
# Command which returns number of the current desktop
|
||||
#DESKTOPCMD=qdbus org.kde.kwin /KWin currentDesktop
|
||||
|
||||
# Set GPU device
|
||||
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'disable' or 'auto'
|
||||
#GPUDEV=auto
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <Plasma/DataContainer>
|
||||
#include <KDE/KGlobal>
|
||||
#include <KDE/KStandardDirs>
|
||||
#include <KDE/KWindowSystem>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
@ -29,6 +30,7 @@
|
||||
#include <QTextCodec>
|
||||
#include <QThread>
|
||||
|
||||
#include <extscript.h>
|
||||
#include <pdebug/pdebug.h>
|
||||
#include <task/taskadds.h>
|
||||
|
||||
@ -36,7 +38,7 @@
|
||||
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
||||
: Plasma::DataEngine(parent, args)
|
||||
{
|
||||
Q_UNUSED(args)
|
||||
Q_UNUSED(args);
|
||||
|
||||
// debug
|
||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||
@ -48,6 +50,7 @@ ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
||||
|
||||
setMinimumPollingInterval(333);
|
||||
readConfiguration();
|
||||
initScripts();
|
||||
}
|
||||
|
||||
|
||||
@ -109,40 +112,28 @@ QString ExtendedSysMon::getAutoMpris()
|
||||
}
|
||||
|
||||
|
||||
QStringList ExtendedSysMon::getDesktopNames()
|
||||
void ExtendedSysMon::initScripts()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QStringList list;
|
||||
QString fileName = KGlobal::dirs()->findResource("config", "kwinrc");
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Configuration file" << fileName;
|
||||
QFile configFile(fileName);
|
||||
if (!configFile.open(QIODevice::ReadOnly)) return list;
|
||||
// create directory at $HOME
|
||||
QString localDir = KStandardDirs::locateLocal("data", "plasma_engine_extsysmon/scripts");
|
||||
if (KStandardDirs::makeDir(localDir))
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Created directory" << localDir;
|
||||
|
||||
QString fileStr;
|
||||
QStringList value;
|
||||
bool desktopSection = false;
|
||||
while (true) {
|
||||
fileStr = QString(configFile.readLine()).trimmed();
|
||||
if ((fileStr.isEmpty()) && (!configFile.atEnd())) continue;
|
||||
if ((fileStr[0] == QChar('#')) && (!configFile.atEnd())) continue;
|
||||
if ((fileStr[0] == QChar(';')) && (!configFile.atEnd())) continue;
|
||||
if (fileStr[0] == QChar('[')) desktopSection = false;
|
||||
if (fileStr == QString("[Desktops]")) desktopSection = true;
|
||||
if (desktopSection) {
|
||||
if (fileStr.contains(QChar('='))) {
|
||||
value.clear();
|
||||
for (int i=1; i<fileStr.split(QChar('=')).count(); i++)
|
||||
value.append(fileStr.split(QChar('='))[i]);
|
||||
if (fileStr.split(QChar('='))[0].contains(QString("Name_")))
|
||||
list.append(value.join(QChar('=')));
|
||||
}
|
||||
QStringList dirs = KGlobal::dirs()->findDirs("data", "plasma_engine_extsysmon/scripts");
|
||||
QStringList names;
|
||||
for (int i=0; i<dirs.count(); i++) {
|
||||
QStringList files = QDir(dirs[i]).entryList(QDir::Files, QDir::Name);
|
||||
for (int j=0; j<files.count(); j++) {
|
||||
if (!files[j].endsWith(QString(".desktop"))) continue;
|
||||
if (names.contains(files[j])) continue;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Found file" << files[j] << "in" << dirs[i];
|
||||
names.append(files[j]);
|
||||
externalScripts.append(new ExtScript(0, files[j], dirs, debug));
|
||||
times.append(1);
|
||||
}
|
||||
if (configFile.atEnd()) break;
|
||||
}
|
||||
configFile.close();
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
@ -173,9 +164,6 @@ void ExtendedSysMon::readConfiguration()
|
||||
// pre-setup
|
||||
QMap<QString, QString> rawConfig;
|
||||
rawConfig[QString("ACPIPATH")] = QString("/sys/class/power_supply/");
|
||||
rawConfig[QString("CUSTOM")] = QString("curl ip4.telize.com");
|
||||
rawConfig[QString("DESKTOP")] = QString("");
|
||||
rawConfig[QString("DESKTOPCMD")] = QString("qdbus org.kde.kwin /KWin currentDesktop");
|
||||
rawConfig[QString("GPUDEV")] = QString("auto");
|
||||
rawConfig[QString("HDDDEV")] = QString("all");
|
||||
rawConfig[QString("HDDTEMPCMD")] = QString("sudo hddtemp");
|
||||
@ -225,16 +213,12 @@ QMap<QString, QString> ExtendedSysMon::updateConfiguration(const QMap<QString, Q
|
||||
key = rawConfig.keys()[i];
|
||||
value = rawConfig[key];
|
||||
key.remove(QChar(' '));
|
||||
if ((key != QString("CUSTOM")) &&
|
||||
(key != QString("DESKTOPCMD")) &&
|
||||
(key != QString("HDDTEMPCMD")) &&
|
||||
if ((key != QString("HDDTEMPCMD")) &&
|
||||
(key != QString("PKGCMD")))
|
||||
value.remove(QChar(' '));
|
||||
config[key] = value;
|
||||
}
|
||||
// update values
|
||||
// desktop names
|
||||
config[QString("DESKTOP")] = getDesktopNames().join(QString(";;"));
|
||||
// gpudev
|
||||
if (config[QString("GPUDEV")] == QString("disable"))
|
||||
config[QString("GPUDEV")] = QString("disable");
|
||||
@ -285,7 +269,7 @@ QMap<QString, QVariant> ExtendedSysMon::getBattery(const QString acpiPath)
|
||||
|
||||
QMap<QString, QVariant> battery;
|
||||
battery[QString("ac")] = false;
|
||||
battery[QString("bat0")] = 0;
|
||||
battery[QString("bat")] = 0;
|
||||
QFile acFile(acpiPath + QString("/AC/online"));
|
||||
if (acFile.open(QIODevice::ReadOnly)) {
|
||||
if (QString(acFile.readLine()).trimmed().toInt() == 1)
|
||||
@ -293,64 +277,51 @@ QMap<QString, QVariant> ExtendedSysMon::getBattery(const QString acpiPath)
|
||||
}
|
||||
acFile.close();
|
||||
// batterites
|
||||
QStringList allDevices = QDir(acpiPath).entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
QStringList allDevices = QDir(acpiPath).entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
|
||||
QStringList batDevices;
|
||||
QRegExp batRegexp = QRegExp(QString("BAT.*"));
|
||||
for (int i=0; i<allDevices.count(); i++)
|
||||
if (allDevices[i].indexOf(batRegexp) > -1)
|
||||
if (allDevices[i].contains(batRegexp))
|
||||
batDevices.append(allDevices[i]);
|
||||
for (int i=0; i<batDevices.count(); i++) {
|
||||
QFile batFile(acpiPath + QString("/") + batDevices[i] + QString("/capacity"));
|
||||
if (batFile.open(QIODevice::ReadOnly))
|
||||
battery[QString("bat") + QString::number(i+1)] = QString(batFile.readLine()).trimmed().toInt();
|
||||
battery[QString("bat") + QString::number(i)] = QString(batFile.readLine()).trimmed().toInt();
|
||||
batFile.close();
|
||||
}
|
||||
float number = 0.0;
|
||||
float average = 0.0;
|
||||
for (int i=0; i<battery.keys().count(); i++) {
|
||||
if (battery.keys()[i] == QString("ac")) continue;
|
||||
if (battery.keys()[i] == QString("bat0")) continue;
|
||||
if (battery.keys()[i] == QString("bat")) continue;
|
||||
average += battery[battery.keys()[i]].toInt();
|
||||
number++;
|
||||
}
|
||||
battery[QString("bat0")] = int(average / number);
|
||||
battery[QString("bat")] = int(average / number);
|
||||
|
||||
return battery;
|
||||
}
|
||||
|
||||
|
||||
QMap<QString, QVariant> ExtendedSysMon::getCurrentDesktop(const QString cmd)
|
||||
QMap<QString, QVariant> ExtendedSysMon::getCurrentDesktop()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
|
||||
|
||||
TaskResult process = runTask(QString("bash -c \"") + cmd + QString("\""));
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
|
||||
|
||||
QString qoutput = QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed();
|
||||
int number = qoutput.toInt();
|
||||
int number = KWindowSystem::currentDesktop();
|
||||
int total = KWindowSystem::numberOfDesktops();
|
||||
QMap<QString, QVariant> currentDesktop;
|
||||
currentDesktop[QString("currentName")] = configuration[QString("DESKTOP")].split(QString(";;"))[number-1];
|
||||
currentDesktop[QString("currentName")] = KWindowSystem::desktopName(number);
|
||||
currentDesktop[QString("currentNumber")] = number;
|
||||
currentDesktop[QString("list")] = configuration[QString("DESKTOP")];
|
||||
currentDesktop[QString("number")] = configuration[QString("DESKTOP")].split(QString(";;")).count();
|
||||
QStringList list;
|
||||
for (int i=1; i<total+1; i++)
|
||||
list.append(KWindowSystem::desktopName(i));
|
||||
currentDesktop[QString("list")] = list.join(QString(";;"));
|
||||
currentDesktop[QString("number")] = total;
|
||||
|
||||
return currentDesktop;
|
||||
}
|
||||
|
||||
|
||||
QString ExtendedSysMon::getCustomCmd(const QString cmd)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
|
||||
|
||||
TaskResult process = runTask(QString("bash -c \"") + cmd + QString("\""));
|
||||
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
|
||||
|
||||
return QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed();
|
||||
}
|
||||
|
||||
|
||||
float ExtendedSysMon::getGpu(const QString device)
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
@ -361,7 +332,7 @@ float ExtendedSysMon::getGpu(const QString device)
|
||||
return value;
|
||||
QString cmd = QString("");
|
||||
if (device == QString("nvidia"))
|
||||
cmd = QString("nvidia-smi -q -d UTILIZATION");
|
||||
cmd = QString("nvidia-smi -q -x");
|
||||
else if (device == QString("ati"))
|
||||
cmd = QString("aticonfig --od-getclocks");
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
|
||||
@ -371,9 +342,10 @@ float ExtendedSysMon::getGpu(const QString device)
|
||||
QString qoutput = QTextCodec::codecForMib(106)->toUnicode(process.output).trimmed();
|
||||
if (configuration[QString("GPUDEV")] == QString("nvidia"))
|
||||
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("Gpu"))) {
|
||||
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("<gpu_util>"))) {
|
||||
QString load = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]
|
||||
.split(QChar(' '), QString::SkipEmptyParts)[2]
|
||||
.remove(QString("<gpu_util>"))
|
||||
.remove(QString("</gpu_util>"))
|
||||
.remove(QChar('%'));
|
||||
value = load.toFloat();
|
||||
}
|
||||
@ -402,7 +374,7 @@ float ExtendedSysMon::getGpuTemp(const QString device)
|
||||
return value;
|
||||
QString cmd = QString("");
|
||||
if (device == QString("nvidia"))
|
||||
cmd = QString("nvidia-smi -q -d TEMPERATURE");
|
||||
cmd = QString("nvidia-smi -q -x");
|
||||
else if (device == QString("ati"))
|
||||
cmd = QString("aticonfig --od-gettemperature");
|
||||
if (debug) qDebug() << PDEBUG << ":" << "cmd" << cmd;
|
||||
@ -412,9 +384,10 @@ float ExtendedSysMon::getGpuTemp(const QString device)
|
||||
QString qoutput = QTextCodec::codecForMib(106)->toUnicode(process.output);
|
||||
if (configuration[QString("GPUDEV")] == QString("nvidia"))
|
||||
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("GPU Current Temp"))) {
|
||||
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("<gpu_temp>"))) {
|
||||
QString temp = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]
|
||||
.split(QChar(' '), QString::SkipEmptyParts)[4];
|
||||
.remove(QString("<gpu_temp>"))
|
||||
.remove(QString("C</gpu_temp>"));
|
||||
value = temp.toFloat();
|
||||
}
|
||||
}
|
||||
@ -595,12 +568,17 @@ bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
||||
setData(source, battery.keys()[i], battery[battery.keys()[i]].toInt());
|
||||
}
|
||||
} else if (source == QString("custom")) {
|
||||
for (int i=0; i<configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts).count(); i++) {
|
||||
setData(source, QString("custom") + QString::number(i),
|
||||
getCustomCmd(configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts)[i]));
|
||||
for (int i=0; i<externalScripts.count(); i++) {
|
||||
ExtScript::ScriptData data = externalScripts[i]->run(times[i]);
|
||||
if (!data.active) return true;
|
||||
if (data.refresh) {
|
||||
times[i] = 1;
|
||||
setData(source, QString("custom") + QString::number(i), data.output);
|
||||
} else
|
||||
times[i]++;
|
||||
}
|
||||
} else if (source == QString("desktop")) {
|
||||
QMap<QString, QVariant> desktop = getCurrentDesktop(configuration[QString("DESKTOPCMD")]);
|
||||
QMap<QString, QVariant> desktop = getCurrentDesktop();
|
||||
for (int i=0; i<desktop.keys().count(); i++)
|
||||
setData(source, desktop.keys()[i], desktop[desktop.keys()[i]]);
|
||||
} else if (source == QString("gpu")) {
|
||||
|
@ -21,6 +21,9 @@
|
||||
#include <Plasma/DataEngine>
|
||||
#include <QProcess>
|
||||
|
||||
|
||||
class ExtScript;
|
||||
|
||||
class ExtendedSysMon : public Plasma::DataEngine
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -29,8 +32,7 @@ public:
|
||||
ExtendedSysMon(QObject *parent, const QVariantList &args);
|
||||
// update functions
|
||||
QMap<QString, QVariant> getBattery(const QString acpiPath);
|
||||
QMap<QString, QVariant> getCurrentDesktop(const QString cmd);
|
||||
QString getCustomCmd(const QString cmd);
|
||||
QMap<QString, QVariant> getCurrentDesktop();
|
||||
float getGpu(const QString device);
|
||||
float getGpuTemp(const QString device);
|
||||
float getHddTemp(const QString cmd, const QString device);
|
||||
@ -49,14 +51,17 @@ protected:
|
||||
private:
|
||||
// configuration
|
||||
QMap<QString, QString> configuration;
|
||||
QList<ExtScript *> externalScripts;
|
||||
QList<int> times;
|
||||
bool debug;
|
||||
// reread configuration
|
||||
QString getAllHdd();
|
||||
QString getAutoGpu();
|
||||
QString getAutoMpris();
|
||||
QStringList getDesktopNames();
|
||||
void initScripts();
|
||||
void readConfiguration();
|
||||
QMap<QString, QString> updateConfiguration(const QMap<QString, QString> rawConfig);
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTSYSMON_H */
|
||||
|
10
sources/ext-sysmon/scripts/get-external-ip.desktop
Normal file
10
sources/ext-sysmon/scripts/get-external-ip.desktop
Normal file
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=aw-get-external-ip
|
||||
Comment=Custom command to get external IP
|
||||
Exec=curl ip4.telize.com
|
||||
X-AW-Prefix=
|
||||
X-AW-Active=true
|
||||
X-AW-Output=true
|
||||
X-AW-Redirect=nothing
|
||||
X-AW-Interval=1
|
18
sources/ext-sysmon/scripts/script-template.desktop
Normal file
18
sources/ext-sysmon/scripts/script-template.desktop
Normal file
@ -0,0 +1,18 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=aw-script-template
|
||||
Comment=Template for external script
|
||||
# path to command
|
||||
Exec=/path/to/some/command
|
||||
# usually you need to leave this field blank
|
||||
# use this field to setup script language for example
|
||||
X-AW-Prefix=/prefix/to/command/if/required
|
||||
# is the script active. true or false
|
||||
X-AW-Active=false
|
||||
# is the script has output. true or false
|
||||
X-AW-Output=false
|
||||
# use redirect for the script
|
||||
# stderr2stdout, nothing, stdout2stderr
|
||||
X-AW-Redirect=nothing
|
||||
# update interval in default AW intervals
|
||||
X-AW-Interval=1
|
30
sources/version.h.in
Normal file
30
sources/version.h.in
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef VERSION_H
|
||||
#define VERSION_H
|
||||
|
||||
// information
|
||||
#define NAME "Awesome Widgets"
|
||||
#define VERSION "@PROJECT_VERSION@"
|
||||
#define AUTHOR "@PROJECT_AUTHOR@"
|
||||
#define TRANSLATORS "Ernesto Aviles Vzqz (Spanish), Mermouy (French), underr (Brazillian Portuguese), Viktor Slobodyan (Ukrainian), Lemueler (Chinese)"
|
||||
#define EMAIL "@PROJECT_CONTACT@"
|
||||
#define LICENSE "@PROJECT_LICENSE@"
|
||||
#define TRDPARTY_LICENSE "tasks,BSD,https://github.com/mhogomchungu/tasks"
|
||||
|
||||
// links
|
||||
#define HOMEPAGE "http://arcanis.name/projects/awesome-widgets/"
|
||||
#define REPOSITORY "https://github.com/arcan1s/awesome-widgets"
|
||||
#define RELEASES "https://github.com/arcan1s/awesome-widgets/releases/tag/V."
|
||||
#define VERSION_API "https://api.github.com/repos/arcan1s/awesome-widgets/releases"
|
||||
#define BUGTRACKER "https://github.com/arcan1s/awesome-widgets/issues"
|
||||
#define TRANSLATION "https://github.com/arcan1s/awesome-widgets/issues/14"
|
||||
#define AUR_PACKAGES "https://aur.archlinux.org/packages/kdeplasma-applets-awesome-widgets/"
|
||||
|
||||
// build information
|
||||
#define BUILD_DATE "@CURRENT_DATE@"
|
||||
#define DATE "2013-@CURRENT_YEAR@"
|
||||
|
||||
// cmake properties
|
||||
#define CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
|
||||
#define CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
|
||||
|
||||
#endif /* VERSION_H */
|
Reference in New Issue
Block a user