mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 23:47:21 +00:00
edited configuration interface of the plasmoid
This commit is contained in:
parent
bf799ce061
commit
2a3011bdef
@ -1,7 +1,9 @@
|
|||||||
Ver.1.1.1:
|
Ver.1.2.0:
|
||||||
+ [gui] added suppoort of macvlan
|
+ [gui] added suppoort of macvlan
|
||||||
+ [gui] added ability to remove profile
|
+ [gui] added ability to remove profile
|
||||||
+ [gui] added support of hidden wifi network
|
+ [gui] added support of hidden wifi network
|
||||||
|
+ [gui] added contextual menu to tables
|
||||||
|
* [plasmoid] edited configuration interface
|
||||||
|
|
||||||
Ver.1.1.0 (netctl-1.7 update):
|
Ver.1.1.0 (netctl-1.7 update):
|
||||||
+ [gui] added frequency
|
+ [gui] added frequency
|
||||||
|
@ -3,12 +3,14 @@ Netctl GUI
|
|||||||
|
|
||||||
Information
|
Information
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Qt4/Qt5 graphical interface for netctl. It may work with profiles and may create new profiles. Also it may create a connection to WiFi. Moreover, it provides a widget and DataEngine for KDE.
|
Qt4/Qt5 graphical interface for netctl. It may work with profiles and may create new profiles. Also it may create a connection to WiFi. Moreover, it provides a widget and DataEngine for KDE.
|
||||||
|
|
||||||
**NOTE** LOOKING FOR TRANSLATORS!
|
**NOTE** LOOKING FOR TRANSLATORS!
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
It is recommended to use graphical interface for widget configuration. DataEngine settings are stored in `/usr/share/config/netctl.conf`:
|
It is recommended to use graphical interface for widget configuration. DataEngine settings are stored in `/usr/share/config/netctl.conf`:
|
||||||
|
|
||||||
* `CMD` - netctl command. Default value is `/usr/bin/netctl`.
|
* `CMD` - netctl command. Default value is `/usr/bin/netctl`.
|
||||||
@ -24,23 +26,27 @@ Instruction
|
|||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* netctl
|
* netctl
|
||||||
* qt5-base (if Qt5 is used) or qt4 (if Qt4 is used)
|
* qt5-base (if Qt5 is used) or qt4 (if Qt4 is used)
|
||||||
|
|
||||||
Optional dependencies
|
Optional dependencies
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
* kdebase-workspace (widget)
|
* kdebase-workspace (widget)
|
||||||
* sudo (sudo support)
|
* sudo (sudo support)
|
||||||
* wpa_supplicant (WiFi support)
|
* wpa_supplicant (WiFi support)
|
||||||
|
|
||||||
Make dependencies
|
Make dependencies
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
* automoc4
|
* automoc4
|
||||||
* cmake
|
* cmake
|
||||||
* qt5-tools (if Qt5 is used)
|
* qt5-tools (if Qt5 is used)
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* download sources
|
* download sources
|
||||||
* extract it and install the application:
|
* extract it and install the application:
|
||||||
|
|
||||||
@ -63,10 +69,9 @@ Additional information
|
|||||||
TODO (wish list)
|
TODO (wish list)
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
* add contextual actions to tables
|
|
||||||
|
|
||||||
Links
|
Links
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* [Homepage](http://arcanis.name/projects/netctl-gui)
|
* [Homepage](http://arcanis.name/projects/netctl-gui)
|
||||||
* Page on [kde-apps](http://kde-apps.org/content/show.php?content=164490)
|
* Page on [kde-apps](http://kde-apps.org/content/show.php?content=164490)
|
||||||
* Archlinux [AUR](https://aur.archlinux.org/pkgbase/netctl-gui/) package
|
* Archlinux [AUR](https://aur.archlinux.org/pkgbase/netctl-gui/) package
|
||||||
|
@ -7,8 +7,8 @@ cmake_policy (SET CMP0015 NEW)
|
|||||||
|
|
||||||
project (netctl-gui)
|
project (netctl-gui)
|
||||||
set (PROJECT_VERSION_MAJOR 1)
|
set (PROJECT_VERSION_MAJOR 1)
|
||||||
set (PROJECT_VERSION_MINOR 1)
|
set (PROJECT_VERSION_MINOR 2)
|
||||||
set (PROJECT_VERSION_PATCH 1)
|
set (PROJECT_VERSION_PATCH 0)
|
||||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||||
configure_file (${CMAKE_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
configure_file (${CMAKE_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
||||||
|
|
||||||
|
419
sources/plasmoid/appearance.ui
Normal file
419
sources/plasmoid/appearance.ui
Normal file
@ -0,0 +1,419 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>AppearanceWindow</class>
|
||||||
|
<widget class="QWidget" name="AppearanceWindow">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>480</width>
|
||||||
|
<height>341</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>480</width>
|
||||||
|
<height>320</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string notr="true">Configuration Window</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="8" column="0">
|
||||||
|
<spacer name="verticalSpacer_appearance">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_inactiveIcon">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_inactiveIcon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Inactive icon</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEdit_inactiveIcon"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_inactiveIcon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_fontColor">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_fontColor">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Font color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_fontColor">
|
||||||
|
<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_fontColor">
|
||||||
|
<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="toolTip">
|
||||||
|
<string>Set font color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="Line" name="line_appearance">
|
||||||
|
<property name="lineWidth">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="midLineWidth">
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_fontSize">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_fontSize">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Font size</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_fontSize">
|
||||||
|
<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_fontSize">
|
||||||
|
<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="toolTip">
|
||||||
|
<string>Set font size</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<number>7</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>48</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>12</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_fontWeight">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_fontWeight">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Font weight</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_fontWeight">
|
||||||
|
<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_fontWeight">
|
||||||
|
<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="toolTip">
|
||||||
|
<string>Set font weight</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<number>300</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>600</number>
|
||||||
|
</property>
|
||||||
|
<property name="singleStep">
|
||||||
|
<number>50</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>400</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_fontStyle">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_fontStyle">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Font style</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_fontStyle">
|
||||||
|
<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_fontStyle">
|
||||||
|
<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="toolTip">
|
||||||
|
<string>Set font style</string>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>normal</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>italic</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_font">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_font">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Font</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_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_font">
|
||||||
|
<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>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Set font family</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_activeIcon">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_activeIcon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Active icon</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEdit_activeIcon"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_activeIcon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>KColorCombo</class>
|
||||||
|
<extends>QComboBox</extends>
|
||||||
|
<header>kcolorcombo.h</header>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>fontComboBox_font</tabstop>
|
||||||
|
<tabstop>spinBox_fontSize</tabstop>
|
||||||
|
<tabstop>kcolorcombo_fontColor</tabstop>
|
||||||
|
<tabstop>spinBox_fontWeight</tabstop>
|
||||||
|
<tabstop>comboBox_fontStyle</tabstop>
|
||||||
|
<tabstop>lineEdit_activeIcon</tabstop>
|
||||||
|
<tabstop>pushButton_activeIcon</tabstop>
|
||||||
|
<tabstop>lineEdit_inactiveIcon</tabstop>
|
||||||
|
<tabstop>pushButton_inactiveIcon</tabstop>
|
||||||
|
</tabstops>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -1,715 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<ui version="4.0">
|
|
||||||
<class>ConfigWindow</class>
|
|
||||||
<widget class="QWidget" name="ConfigWindow">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>480</width>
|
|
||||||
<height>343</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>480</width>
|
|
||||||
<height>320</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
|
||||||
<string notr="true">Configuration Window</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
|
||||||
<property name="currentIndex">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="tabConfiguration">
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Configuration</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_info">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_autoUpdate">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_autoUpdate">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>150</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Auto update interval, msec</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_autoUpdate">
|
|
||||||
<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_autoUpdate">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="layoutDirection">
|
|
||||||
<enum>Qt::LeftToRight</enum>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>333</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>
|
|
||||||
<layout class="QHBoxLayout" name="layout_gui">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_gui">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Path to GUI</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_gui"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_gui">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Browse</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_netctl">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_netctl">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Path to netctl</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_netctl"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_netctl">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Browse</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_sudo">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_sudo">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>150</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Use sudo for netctl</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_sudo"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_sudo">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Browse</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_wifi">
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_wifi">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>150</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Show 'Start WiFi menu'</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_wifi"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_wifi">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Browse</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_showBigInterface">
|
|
||||||
<property name="text">
|
|
||||||
<string>Show more detailed interface</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_showNetDev">
|
|
||||||
<property name="text">
|
|
||||||
<string>Show network devices</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_showExtIp">
|
|
||||||
<property name="text">
|
|
||||||
<string>Show external IP</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="checkBox_showIntIp">
|
|
||||||
<property name="text">
|
|
||||||
<string>Show internal IP</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_configuration">
|
|
||||||
<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 class="QWidget" name="tabAppearance">
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Appearance</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_font">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_font">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_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_font">
|
|
||||||
<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>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Set font family</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_fontSize">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_fontSize">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font size</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_fontSize">
|
|
||||||
<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_fontSize">
|
|
||||||
<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="toolTip">
|
|
||||||
<string>Set font size</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>7</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>48</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>12</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_fontColor">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_fontColor">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_fontColor">
|
|
||||||
<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_fontColor">
|
|
||||||
<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="toolTip">
|
|
||||||
<string>Set font color</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_fontWeight">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_fontWeight">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font weight</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_fontWeight">
|
|
||||||
<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_fontWeight">
|
|
||||||
<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="toolTip">
|
|
||||||
<string>Set font weight</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>300</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>600</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep">
|
|
||||||
<number>50</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>400</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_fontStyle">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_fontStyle">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Font style</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_fontStyle">
|
|
||||||
<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_fontStyle">
|
|
||||||
<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="toolTip">
|
|
||||||
<string>Set font style</string>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>normal</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>italic</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="Line" name="line_appearance">
|
|
||||||
<property name="lineWidth">
|
|
||||||
<number>5</number>
|
|
||||||
</property>
|
|
||||||
<property name="midLineWidth">
|
|
||||||
<number>5</number>
|
|
||||||
</property>
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="layout_activeIcon">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_activeIcon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Active icon</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_activeIcon"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_activeIcon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Browse</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_inactiveIcon">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_inactiveIcon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>80</width>
|
|
||||||
<height>23</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Inactive icon</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_inactiveIcon"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_inactiveIcon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>100</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Browse</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer_appearance">
|
|
||||||
<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>
|
|
||||||
<customwidgets>
|
|
||||||
<customwidget>
|
|
||||||
<class>KColorCombo</class>
|
|
||||||
<extends>QComboBox</extends>
|
|
||||||
<header>kcolorcombo.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
|
||||||
<tabstops>
|
|
||||||
<tabstop>tabWidget</tabstop>
|
|
||||||
<tabstop>spinBox_autoUpdate</tabstop>
|
|
||||||
<tabstop>lineEdit_gui</tabstop>
|
|
||||||
<tabstop>pushButton_gui</tabstop>
|
|
||||||
<tabstop>lineEdit_netctl</tabstop>
|
|
||||||
<tabstop>pushButton_netctl</tabstop>
|
|
||||||
<tabstop>checkBox_sudo</tabstop>
|
|
||||||
<tabstop>lineEdit_sudo</tabstop>
|
|
||||||
<tabstop>pushButton_sudo</tabstop>
|
|
||||||
<tabstop>checkBox_wifi</tabstop>
|
|
||||||
<tabstop>lineEdit_wifi</tabstop>
|
|
||||||
<tabstop>pushButton_wifi</tabstop>
|
|
||||||
<tabstop>checkBox_showBigInterface</tabstop>
|
|
||||||
<tabstop>checkBox_showNetDev</tabstop>
|
|
||||||
<tabstop>checkBox_showExtIp</tabstop>
|
|
||||||
<tabstop>checkBox_showIntIp</tabstop>
|
|
||||||
<tabstop>fontComboBox_font</tabstop>
|
|
||||||
<tabstop>spinBox_fontSize</tabstop>
|
|
||||||
<tabstop>kcolorcombo_fontColor</tabstop>
|
|
||||||
<tabstop>spinBox_fontWeight</tabstop>
|
|
||||||
<tabstop>comboBox_fontStyle</tabstop>
|
|
||||||
<tabstop>lineEdit_activeIcon</tabstop>
|
|
||||||
<tabstop>pushButton_activeIcon</tabstop>
|
|
||||||
<tabstop>lineEdit_inactiveIcon</tabstop>
|
|
||||||
<tabstop>pushButton_inactiveIcon</tabstop>
|
|
||||||
</tabstops>
|
|
||||||
<resources/>
|
|
||||||
<connections/>
|
|
||||||
</ui>
|
|
@ -16,7 +16,8 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include "netctl.h"
|
#include "netctl.h"
|
||||||
#include "ui_configwindow.h"
|
#include <ui_appearance.h>
|
||||||
|
#include <ui_widget.h>
|
||||||
|
|
||||||
#include <KConfigDialog>
|
#include <KConfigDialog>
|
||||||
#include <KFileDialog>
|
#include <KFileDialog>
|
||||||
@ -373,7 +374,7 @@ void Netctl::selectActiveIcon()
|
|||||||
{
|
{
|
||||||
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_activeIcon->setText(url.path());
|
uiAppConfig.lineEdit_activeIcon->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -381,7 +382,7 @@ void Netctl::selectGuiExe()
|
|||||||
{
|
{
|
||||||
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_gui->setText(url.path());
|
uiWidConfig.lineEdit_gui->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -389,7 +390,7 @@ void Netctl::selectInactiveIcon()
|
|||||||
{
|
{
|
||||||
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_inactiveIcon->setText(url.path());
|
uiAppConfig.lineEdit_inactiveIcon->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -397,7 +398,7 @@ void Netctl::selectNetctlExe()
|
|||||||
{
|
{
|
||||||
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_netctl->setText(url.path());
|
uiWidConfig.lineEdit_netctl->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -405,7 +406,7 @@ void Netctl::selectSudoExe()
|
|||||||
{
|
{
|
||||||
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_sudo->setText(url.path());
|
uiWidConfig.lineEdit_sudo->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -413,47 +414,49 @@ void Netctl::selectWifiExe()
|
|||||||
{
|
{
|
||||||
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
KUrl url = KFileDialog::getOpenUrl(KUrl(), "*");
|
||||||
if (!url.isEmpty())
|
if (!url.isEmpty())
|
||||||
uiConfig.lineEdit_wifi->setText(url.path());
|
uiWidConfig.lineEdit_wifi->setText(url.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Netctl::createConfigurationInterface(KConfigDialog *parent)
|
void Netctl::createConfigurationInterface(KConfigDialog *parent)
|
||||||
{
|
{
|
||||||
QWidget *configwin = new QWidget;
|
QWidget *configWidget = new QWidget;
|
||||||
uiConfig.setupUi(configwin);
|
uiWidConfig.setupUi(configWidget);
|
||||||
|
QWidget *appWidget = new QWidget;
|
||||||
|
uiAppConfig.setupUi(appWidget);
|
||||||
QString text = QString(NAME) + " - " + QString(VERSION) + "\n" + "(c) " +
|
QString text = QString(NAME) + " - " + QString(VERSION) + "\n" + "(c) " +
|
||||||
QString(DATE) + " " + QString(AUTHOR);
|
QString(DATE) + " " + QString(AUTHOR);
|
||||||
uiConfig.label_info->setText(text);
|
uiWidConfig.label_info->setText(text);
|
||||||
|
|
||||||
uiConfig.spinBox_autoUpdate->setValue(autoUpdateInterval);
|
uiWidConfig.spinBox_autoUpdate->setValue(autoUpdateInterval);
|
||||||
uiConfig.lineEdit_gui->setText(paths[QString("gui")]);
|
uiWidConfig.lineEdit_gui->setText(paths[QString("gui")]);
|
||||||
uiConfig.lineEdit_netctl->setText(paths[QString("netctl")]);
|
uiWidConfig.lineEdit_netctl->setText(paths[QString("netctl")]);
|
||||||
if (useSudo)
|
if (useSudo)
|
||||||
uiConfig.checkBox_sudo->setCheckState(Qt::Checked);
|
uiWidConfig.checkBox_sudo->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_sudo->setCheckState(Qt::Unchecked);
|
uiWidConfig.checkBox_sudo->setCheckState(Qt::Unchecked);
|
||||||
uiConfig.lineEdit_sudo->setText(paths[QString("sudo")]);
|
uiWidConfig.lineEdit_sudo->setText(paths[QString("sudo")]);
|
||||||
if (useWifi)
|
if (useWifi)
|
||||||
uiConfig.checkBox_wifi->setCheckState(Qt::Checked);
|
uiWidConfig.checkBox_wifi->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_wifi->setCheckState(Qt::Unchecked);
|
uiWidConfig.checkBox_wifi->setCheckState(Qt::Unchecked);
|
||||||
uiConfig.lineEdit_wifi->setText(paths[QString("wifi")]);
|
uiWidConfig.lineEdit_wifi->setText(paths[QString("wifi")]);
|
||||||
if (bigInterface[QString("main")])
|
if (bigInterface[QString("main")])
|
||||||
uiConfig.checkBox_showBigInterface->setCheckState(Qt::Checked);
|
uiWidConfig.checkBox_showBigInterface->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showBigInterface->setCheckState(Qt::Unchecked);
|
uiWidConfig.checkBox_showBigInterface->setCheckState(Qt::Unchecked);
|
||||||
if (bigInterface[QString("netDev")])
|
if (bigInterface[QString("netDev")])
|
||||||
uiConfig.checkBox_showNetDev->setCheckState(Qt::Checked);
|
uiWidConfig.checkBox_showNetDev->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showNetDev->setCheckState(Qt::Unchecked);
|
uiWidConfig.checkBox_showNetDev->setCheckState(Qt::Unchecked);
|
||||||
if (bigInterface[QString("extIp")])
|
if (bigInterface[QString("extIp")])
|
||||||
uiConfig.checkBox_showExtIp->setCheckState(Qt::Checked);
|
uiWidConfig.checkBox_showExtIp->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showExtIp->setCheckState(Qt::Unchecked);
|
uiWidConfig.checkBox_showExtIp->setCheckState(Qt::Unchecked);
|
||||||
if (bigInterface[QString("intIp")])
|
if (bigInterface[QString("intIp")])
|
||||||
uiConfig.checkBox_showIntIp->setCheckState(Qt::Checked);
|
uiWidConfig.checkBox_showIntIp->setCheckState(Qt::Checked);
|
||||||
else
|
else
|
||||||
uiConfig.checkBox_showIntIp->setCheckState(Qt::Unchecked);
|
uiWidConfig.checkBox_showIntIp->setCheckState(Qt::Unchecked);
|
||||||
setBigInterface();
|
setBigInterface();
|
||||||
|
|
||||||
KConfigGroup cg = config();
|
KConfigGroup cg = config();
|
||||||
@ -463,30 +466,31 @@ void Netctl::createConfigurationInterface(KConfigDialog *parent)
|
|||||||
int fontWeight = cg.readEntry("fontWeight", 400);
|
int fontWeight = cg.readEntry("fontWeight", 400);
|
||||||
QString fontStyle = cg.readEntry("fontStyle", "normal");
|
QString fontStyle = cg.readEntry("fontStyle", "normal");
|
||||||
QFont font = QFont(fontFamily, 12, 400, FALSE);
|
QFont font = QFont(fontFamily, 12, 400, FALSE);
|
||||||
uiConfig.fontComboBox_font->setCurrentFont(font);
|
uiAppConfig.fontComboBox_font->setCurrentFont(font);
|
||||||
uiConfig.spinBox_fontSize->setValue(fontSize);
|
uiAppConfig.spinBox_fontSize->setValue(fontSize);
|
||||||
uiConfig.kcolorcombo_fontColor->setColor(fontColor);
|
uiAppConfig.kcolorcombo_fontColor->setColor(fontColor);
|
||||||
uiConfig.spinBox_fontWeight->setValue(fontWeight);
|
uiAppConfig.spinBox_fontWeight->setValue(fontWeight);
|
||||||
if (fontStyle == "normal")
|
if (fontStyle == "normal")
|
||||||
uiConfig.comboBox_fontStyle->setCurrentIndex(0);
|
uiAppConfig.comboBox_fontStyle->setCurrentIndex(0);
|
||||||
else if (fontStyle == "italic")
|
else if (fontStyle == "italic")
|
||||||
uiConfig.comboBox_fontStyle->setCurrentIndex(1);
|
uiAppConfig.comboBox_fontStyle->setCurrentIndex(1);
|
||||||
uiConfig.lineEdit_activeIcon->setText(paths[QString("active")]);
|
uiAppConfig.lineEdit_activeIcon->setText(paths[QString("active")]);
|
||||||
uiConfig.lineEdit_inactiveIcon->setText(paths[QString("inactive")]);
|
uiAppConfig.lineEdit_inactiveIcon->setText(paths[QString("inactive")]);
|
||||||
|
|
||||||
parent->addPage(configwin, i18n("Netctl plasmoid"), Applet::icon());
|
parent->addPage(configWidget, i18n("Netctl plasmoid"), Applet::icon());
|
||||||
|
parent->addPage(appWidget, i18n("Appearance"), QString("preferences-desktop-theme"));
|
||||||
|
|
||||||
connect(uiConfig.checkBox_showBigInterface, SIGNAL(stateChanged(int)), this,
|
connect(uiWidConfig.checkBox_showBigInterface, SIGNAL(stateChanged(int)), this,
|
||||||
SLOT(setBigInterface()));
|
SLOT(setBigInterface()));
|
||||||
connect(uiConfig.checkBox_sudo, SIGNAL(stateChanged(int)), this, SLOT(setSudo()));
|
connect(uiWidConfig.checkBox_sudo, SIGNAL(stateChanged(int)), this, SLOT(setSudo()));
|
||||||
connect(uiConfig.checkBox_wifi, SIGNAL(stateChanged(int)), this, SLOT(setWifi()));
|
connect(uiWidConfig.checkBox_wifi, SIGNAL(stateChanged(int)), this, SLOT(setWifi()));
|
||||||
|
|
||||||
connect(uiConfig.pushButton_gui, SIGNAL(clicked()), this, SLOT(selectGuiExe()));
|
connect(uiWidConfig.pushButton_gui, SIGNAL(clicked()), this, SLOT(selectGuiExe()));
|
||||||
connect(uiConfig.pushButton_netctl, SIGNAL(clicked()), this, SLOT(selectNetctlExe()));
|
connect(uiWidConfig.pushButton_netctl, SIGNAL(clicked()), this, SLOT(selectNetctlExe()));
|
||||||
connect(uiConfig.pushButton_sudo, SIGNAL(clicked()), this, SLOT(selectSudoExe()));
|
connect(uiWidConfig.pushButton_sudo, SIGNAL(clicked()), this, SLOT(selectSudoExe()));
|
||||||
connect(uiConfig.pushButton_wifi, SIGNAL(clicked()), this, SLOT(selecWifiExe()));
|
connect(uiWidConfig.pushButton_wifi, SIGNAL(clicked()), this, SLOT(selecWifiExe()));
|
||||||
connect(uiConfig.pushButton_activeIcon, SIGNAL(clicked()), this, SLOT(selectActiveIcon()));
|
connect(uiAppConfig.pushButton_activeIcon, SIGNAL(clicked()), this, SLOT(selectActiveIcon()));
|
||||||
connect(uiConfig.pushButton_inactiveIcon, SIGNAL(clicked()), this, SLOT(selectInactiveIcon()));
|
connect(uiAppConfig.pushButton_inactiveIcon, SIGNAL(clicked()), this, SLOT(selectInactiveIcon()));
|
||||||
|
|
||||||
connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
|
connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
|
||||||
connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
|
connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
|
||||||
@ -498,43 +502,43 @@ void Netctl::configAccepted()
|
|||||||
disconnectFromEngine();
|
disconnectFromEngine();
|
||||||
KConfigGroup cg = config();
|
KConfigGroup cg = config();
|
||||||
|
|
||||||
cg.writeEntry("autoUpdateInterval", uiConfig.spinBox_autoUpdate->value());
|
cg.writeEntry("autoUpdateInterval", uiWidConfig.spinBox_autoUpdate->value());
|
||||||
cg.writeEntry("guiPath", uiConfig.lineEdit_gui->text());
|
cg.writeEntry("guiPath", uiWidConfig.lineEdit_gui->text());
|
||||||
cg.writeEntry("netctlPath", uiConfig.lineEdit_netctl->text());
|
cg.writeEntry("netctlPath", uiWidConfig.lineEdit_netctl->text());
|
||||||
if (uiConfig.checkBox_sudo->checkState() == 0)
|
if (uiWidConfig.checkBox_sudo->checkState() == 0)
|
||||||
cg.writeEntry("useSudo", false);
|
cg.writeEntry("useSudo", false);
|
||||||
else
|
else
|
||||||
cg.writeEntry("useSudo", true);
|
cg.writeEntry("useSudo", true);
|
||||||
cg.writeEntry("sudoPath", uiConfig.lineEdit_sudo->text());
|
cg.writeEntry("sudoPath", uiWidConfig.lineEdit_sudo->text());
|
||||||
if (uiConfig.checkBox_wifi->checkState() == 0)
|
if (uiWidConfig.checkBox_wifi->checkState() == 0)
|
||||||
cg.writeEntry("useWifi", false);
|
cg.writeEntry("useWifi", false);
|
||||||
else
|
else
|
||||||
cg.writeEntry("useWifi", true);
|
cg.writeEntry("useWifi", true);
|
||||||
cg.writeEntry("wifiPath", uiConfig.lineEdit_wifi->text());
|
cg.writeEntry("wifiPath", uiWidConfig.lineEdit_wifi->text());
|
||||||
if (uiConfig.checkBox_showBigInterface->checkState() == 0)
|
if (uiWidConfig.checkBox_showBigInterface->checkState() == 0)
|
||||||
cg.writeEntry("showBigInterface", false);
|
cg.writeEntry("showBigInterface", false);
|
||||||
else
|
else
|
||||||
cg.writeEntry("showBigInterface", true);
|
cg.writeEntry("showBigInterface", true);
|
||||||
if (uiConfig.checkBox_showNetDev->checkState() == 0)
|
if (uiWidConfig.checkBox_showNetDev->checkState() == 0)
|
||||||
cg.writeEntry("showNetDev", false);
|
cg.writeEntry("showNetDev", false);
|
||||||
else
|
else
|
||||||
cg.writeEntry("showNetDev", true);
|
cg.writeEntry("showNetDev", true);
|
||||||
if (uiConfig.checkBox_showExtIp->checkState() == 0)
|
if (uiWidConfig.checkBox_showExtIp->checkState() == 0)
|
||||||
cg.writeEntry("showExtIp", false);
|
cg.writeEntry("showExtIp", false);
|
||||||
else
|
else
|
||||||
cg.writeEntry("showExtIp", true);
|
cg.writeEntry("showExtIp", true);
|
||||||
if (uiConfig.checkBox_showIntIp->checkState() == 0)
|
if (uiWidConfig.checkBox_showIntIp->checkState() == 0)
|
||||||
cg.writeEntry("showIntIp", false);
|
cg.writeEntry("showIntIp", false);
|
||||||
else
|
else
|
||||||
cg.writeEntry("showIntIp", true);
|
cg.writeEntry("showIntIp", true);
|
||||||
|
|
||||||
cg.writeEntry("fontFamily", uiConfig.fontComboBox_font->currentFont().family());
|
cg.writeEntry("fontFamily", uiAppConfig.fontComboBox_font->currentFont().family());
|
||||||
cg.writeEntry("fontSize", uiConfig.spinBox_fontSize->value());
|
cg.writeEntry("fontSize", uiAppConfig.spinBox_fontSize->value());
|
||||||
cg.writeEntry("fontColor", uiConfig.kcolorcombo_fontColor->color().name());
|
cg.writeEntry("fontColor", uiAppConfig.kcolorcombo_fontColor->color().name());
|
||||||
cg.writeEntry("fontWeight", uiConfig.spinBox_fontWeight->value());
|
cg.writeEntry("fontWeight", uiAppConfig.spinBox_fontWeight->value());
|
||||||
cg.writeEntry("fontStyle", uiConfig.comboBox_fontStyle->currentText());
|
cg.writeEntry("fontStyle", uiAppConfig.comboBox_fontStyle->currentText());
|
||||||
cg.writeEntry("activeIconPath", uiConfig.lineEdit_activeIcon->text());
|
cg.writeEntry("activeIconPath", uiAppConfig.lineEdit_activeIcon->text());
|
||||||
cg.writeEntry("inactiveIconPath", uiConfig.lineEdit_inactiveIcon->text());
|
cg.writeEntry("inactiveIconPath", uiAppConfig.lineEdit_inactiveIcon->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -577,34 +581,34 @@ void Netctl::configChanged()
|
|||||||
|
|
||||||
void Netctl::setBigInterface()
|
void Netctl::setBigInterface()
|
||||||
{
|
{
|
||||||
if (uiConfig.checkBox_showBigInterface->checkState() == 0) {
|
if (uiWidConfig.checkBox_showBigInterface->checkState() == 0) {
|
||||||
uiConfig.checkBox_showNetDev->setDisabled(true);
|
uiWidConfig.checkBox_showNetDev->setDisabled(true);
|
||||||
uiConfig.checkBox_showExtIp->setDisabled(true);
|
uiWidConfig.checkBox_showExtIp->setDisabled(true);
|
||||||
uiConfig.checkBox_showIntIp->setDisabled(true);
|
uiWidConfig.checkBox_showIntIp->setDisabled(true);
|
||||||
}
|
}
|
||||||
else if (uiConfig.checkBox_showBigInterface->checkState() == 2) {
|
else if (uiWidConfig.checkBox_showBigInterface->checkState() == 2) {
|
||||||
uiConfig.checkBox_showNetDev->setEnabled(true);
|
uiWidConfig.checkBox_showNetDev->setEnabled(true);
|
||||||
uiConfig.checkBox_showExtIp->setEnabled(true);
|
uiWidConfig.checkBox_showExtIp->setEnabled(true);
|
||||||
uiConfig.checkBox_showIntIp->setEnabled(true);
|
uiWidConfig.checkBox_showIntIp->setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Netctl::setSudo()
|
void Netctl::setSudo()
|
||||||
{
|
{
|
||||||
if (uiConfig.checkBox_sudo->checkState() == 0)
|
if (uiWidConfig.checkBox_sudo->checkState() == 0)
|
||||||
uiConfig.lineEdit_sudo->setDisabled(true);
|
uiWidConfig.lineEdit_sudo->setDisabled(true);
|
||||||
else if (uiConfig.checkBox_sudo->checkState() == 2)
|
else if (uiWidConfig.checkBox_sudo->checkState() == 2)
|
||||||
uiConfig.lineEdit_sudo->setEnabled(true);
|
uiWidConfig.lineEdit_sudo->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Netctl::setWifi()
|
void Netctl::setWifi()
|
||||||
{
|
{
|
||||||
if (uiConfig.checkBox_wifi->checkState() == 0)
|
if (uiWidConfig.checkBox_wifi->checkState() == 0)
|
||||||
uiConfig.lineEdit_wifi->setDisabled(true);
|
uiWidConfig.lineEdit_wifi->setDisabled(true);
|
||||||
else if (uiConfig.checkBox_wifi->checkState() == 2)
|
else if (uiWidConfig.checkBox_wifi->checkState() == 2)
|
||||||
uiConfig.checkBox_wifi->setEnabled(true);
|
uiWidConfig.checkBox_wifi->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
#include <Plasma/Label>
|
#include <Plasma/Label>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
|
||||||
#include <ui_configwindow.h>
|
#include <ui_appearance.h>
|
||||||
|
#include <ui_widget.h>
|
||||||
|
|
||||||
|
|
||||||
class QGraphicsLinearLayout;
|
class QGraphicsLinearLayout;
|
||||||
@ -93,7 +94,8 @@ private:
|
|||||||
void connectToEngine();
|
void connectToEngine();
|
||||||
void disconnectFromEngine();
|
void disconnectFromEngine();
|
||||||
// configuration interface
|
// configuration interface
|
||||||
Ui::ConfigWindow uiConfig;
|
Ui::AppearanceWindow uiAppConfig;
|
||||||
|
Ui::ConfigWindow uiWidConfig;
|
||||||
// configuration
|
// configuration
|
||||||
int autoUpdateInterval;
|
int autoUpdateInterval;
|
||||||
QMap<QString, bool> bigInterface;
|
QMap<QString, bool> bigInterface;
|
||||||
|
299
sources/plasmoid/widget.ui
Normal file
299
sources/plasmoid/widget.ui
Normal file
@ -0,0 +1,299 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>ConfigWindow</class>
|
||||||
|
<widget class="QWidget" name="ConfigWindow">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>480</width>
|
||||||
|
<height>341</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>480</width>
|
||||||
|
<height>320</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string notr="true">Configuration Window</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_info">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_showNetDev">
|
||||||
|
<property name="text">
|
||||||
|
<string>Show network devices</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_wifi">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="checkBox_wifi">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>150</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Show 'Start WiFi menu'</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEdit_wifi"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_wifi">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_showBigInterface">
|
||||||
|
<property name="text">
|
||||||
|
<string>Show more detailed interface</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_showIntIp">
|
||||||
|
<property name="text">
|
||||||
|
<string>Show internal IP</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_gui">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_gui">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Path to GUI</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEdit_gui"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_gui">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_autoUpdate">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_autoUpdate">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>150</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Auto update interval, msec</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_autoUpdate">
|
||||||
|
<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_autoUpdate">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::LeftToRight</enum>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<number>333</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="8" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_showExtIp">
|
||||||
|
<property name="text">
|
||||||
|
<string>Show external IP</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_netctl">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_netctl">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>80</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Path to netctl</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEdit_netctl"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_netctl">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_sudo">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="checkBox_sudo">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>150</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Use sudo for netctl</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEdit_sudo"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_sudo">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>23</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="10" column="0">
|
||||||
|
<spacer name="verticalSpacer_configuration">
|
||||||
|
<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>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>spinBox_autoUpdate</tabstop>
|
||||||
|
<tabstop>lineEdit_gui</tabstop>
|
||||||
|
<tabstop>pushButton_gui</tabstop>
|
||||||
|
<tabstop>lineEdit_netctl</tabstop>
|
||||||
|
<tabstop>pushButton_netctl</tabstop>
|
||||||
|
<tabstop>checkBox_sudo</tabstop>
|
||||||
|
<tabstop>lineEdit_sudo</tabstop>
|
||||||
|
<tabstop>pushButton_sudo</tabstop>
|
||||||
|
<tabstop>checkBox_wifi</tabstop>
|
||||||
|
<tabstop>lineEdit_wifi</tabstop>
|
||||||
|
<tabstop>pushButton_wifi</tabstop>
|
||||||
|
</tabstops>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
Loading…
Reference in New Issue
Block a user