New release 1.2.0

widget:
  + added $ac label - return (*) if AC is online or ( ) if offline
  + error cheking
  * $bat now reading from /sys/*
config:
  + added battery and ac device configurations
This commit is contained in:
arcan1s
2013-02-28 18:13:29 +04:00
parent 9ccf1b597a
commit 9e708c6660
20 changed files with 266 additions and 2121 deletions

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>519</width>
<height>455</height>
<height>519</height>
</rect>
</property>
<property name="sizePolicy">
@ -19,7 +19,7 @@
<property name="minimumSize">
<size>
<width>519</width>
<height>455</height>
<height>519</height>
</size>
</property>
<property name="maximumSize">
@ -43,13 +43,13 @@
<property name="minimumSize">
<size>
<width>511</width>
<height>450</height>
<height>508</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>450</height>
<height>508</height>
</size>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
@ -847,6 +847,152 @@
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="batdev">
<item>
<widget class="QLabel" name="label_null01">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>111</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>111</width>
<height>25</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_batdev">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>25</height>
</size>
</property>
<property name="text">
<string notr="true">Battery device</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_batdev">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>25</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="acdev">
<item>
<widget class="QLabel" name="label_null02">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>111</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>111</width>
<height>25</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_acdev">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>25</height>
</size>
</property>
<property name="text">
<string notr="true">AC device</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_acdev">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>25</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QWidget" name="widget_interval" native="true">
<property name="sizePolicy">
@ -1421,6 +1567,8 @@
<zorder>widget_bat</zorder>
<zorder>widget_cpuclock</zorder>
<zorder>widget_weight</zorder>
<zorder>horizontalLayoutWidget</zorder>
<zorder>horizontalLayoutWidget_2</zorder>
</widget>
</item>
<item row="1" column="0">
@ -1470,6 +1618,8 @@
<tabstop>checkBox_bat</tabstop>
<tabstop>lineEdit_bat</tabstop>
<tabstop>slider_bat</tabstop>
<tabstop>lineEdit_batdev</tabstop>
<tabstop>lineEdit_acdev</tabstop>
<tabstop>spinBox_interval</tabstop>
<tabstop>fontComboBox</tabstop>
<tabstop>spinBox_fontSize</tabstop>