aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/hal
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-12-24 18:03:08 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-12-24 18:03:08 +0000
commitd07a2db555ffa5bf06117f16c236c6da2e86e536 (patch)
tree3d8b683abefa745e0815c294ca7ab6fccd2e8f37 /src/plugins/General/hal
parent777ce62b4e83e382db04db7ea2c4a8fa5b1680cb (diff)
downloadqmmp-d07a2db555ffa5bf06117f16c236c6da2e86e536.tar.gz
qmmp-d07a2db555ffa5bf06117f16c236c6da2e86e536.tar.bz2
qmmp-d07a2db555ffa5bf06117f16c236c6da2e86e536.zip
added icons for udisks/hal devices
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2016 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/hal')
-rw-r--r--src/plugins/General/hal/halplugin.cpp14
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_cs.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_de.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_es.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_it.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_ja.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_lt.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_nl.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_pl.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_ru.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_tr.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_uk_UA.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_zh_CN.ts4
-rw-r--r--src/plugins/General/hal/translations/hal_plugin_zh_TW.ts4
14 files changed, 39 insertions, 27 deletions
diff --git a/src/plugins/General/hal/halplugin.cpp b/src/plugins/General/hal/halplugin.cpp
index 205fd49b7..7d17b037d 100644
--- a/src/plugins/General/hal/halplugin.cpp
+++ b/src/plugins/General/hal/halplugin.cpp
@@ -20,7 +20,8 @@
#include <QtDBus>
#include <QActionGroup>
-
+#include <QApplication>
+#include <QStyle>
#include <qmmpui/generalhandler.h>
#include <qmmpui/mediaplayer.h>
#include <qmmpui/playlistmanager.h>
@@ -168,6 +169,17 @@ void HalPlugin::updateActions()
}
action->setText(actionText);
action->setData(dev_path);
+
+ if (caps.contains("volume.disc"))
+ {
+ if(device->property("volume.fstype").toString() == "iso9660")
+ action->setIcon(qApp->style()->standardIcon(QStyle::SP_DriveDVDIcon));
+ else
+ action->setIcon(qApp->style()->standardIcon(QStyle::SP_DriveCDIcon));
+ }
+ else
+ action->setIcon(qApp->style()->standardIcon(QStyle::SP_DriveHDIcon));
+
m_actions->addAction(action);
GeneralHandler::instance()->addAction(action, GeneralHandler::TOOLS_MENU);
addPath(dev_path);
diff --git a/src/plugins/General/hal/translations/hal_plugin_cs.ts b/src/plugins/General/hal/translations/hal_plugin_cs.ts
index 0d27139b8..9b9d0a58f 100644
--- a/src/plugins/General/hal/translations/hal_plugin_cs.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_cs.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Přidat CD „%1“</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Přidat svazek „%1“</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_de.ts b/src/plugins/General/hal/translations/hal_plugin_de.ts
index 3f4864ea3..82eb4b199 100644
--- a/src/plugins/General/hal/translations/hal_plugin_de.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_de.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>CD „%1“ hinzufügen</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Gerät „%1“ hinzufügen</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_es.ts b/src/plugins/General/hal/translations/hal_plugin_es.ts
index 079d78f36..b3aa0a3ba 100644
--- a/src/plugins/General/hal/translations/hal_plugin_es.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_es.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Añadir CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Añadir volumen &quot;%1&quot;</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_it.ts b/src/plugins/General/hal/translations/hal_plugin_it.ts
index 480075d32..dfddc25e8 100644
--- a/src/plugins/General/hal/translations/hal_plugin_it.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_it.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Aggiungi CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Aggiungi libreria &quot;%1&quot;</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_ja.ts b/src/plugins/General/hal/translations/hal_plugin_ja.ts
index 8c0860d20..ee178c8d0 100644
--- a/src/plugins/General/hal/translations/hal_plugin_ja.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_ja.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Cd &quot;%1&quot; を追加</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>量目 &quot;%1&quot; を追加</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_lt.ts b/src/plugins/General/hal/translations/hal_plugin_lt.ts
index 0feaa3374..3ba021f18 100644
--- a/src/plugins/General/hal/translations/hal_plugin_lt.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_lt.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Pridėti CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Pridėti tomą &quot;%1&quot;</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_nl.ts b/src/plugins/General/hal/translations/hal_plugin_nl.ts
index 3166b4ee8..12095d8e8 100644
--- a/src/plugins/General/hal/translations/hal_plugin_nl.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_nl.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Voeg CD &quot;%1&quot; toe</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Voeg Station &quot;%1&quot; toe</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_pl.ts b/src/plugins/General/hal/translations/hal_plugin_pl.ts
index ecbc1e0de..9a4bcb7ca 100644
--- a/src/plugins/General/hal/translations/hal_plugin_pl.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_pl.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Dodaj CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Dodaj urządzenie &quot;%1&quot;</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_ru.ts b/src/plugins/General/hal/translations/hal_plugin_ru.ts
index a171f86cf..73e1444e2 100644
--- a/src/plugins/General/hal/translations/hal_plugin_ru.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_ru.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Добавить CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Добавить том &quot;%1&quot;</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_tr.ts b/src/plugins/General/hal/translations/hal_plugin_tr.ts
index 5a0507613..f40d338f0 100644
--- a/src/plugins/General/hal/translations/hal_plugin_tr.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_tr.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>CD &quot;%1&quot; Ekle</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>&quot;%1&quot; Aygıtını Ekle</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_uk_UA.ts b/src/plugins/General/hal/translations/hal_plugin_uk_UA.ts
index b03395f57..0584acdaa 100644
--- a/src/plugins/General/hal/translations/hal_plugin_uk_UA.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_uk_UA.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>Додати CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>Додати том &quot;%1&quot;</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_zh_CN.ts b/src/plugins/General/hal/translations/hal_plugin_zh_CN.ts
index 264040eca..ceacdc389 100644
--- a/src/plugins/General/hal/translations/hal_plugin_zh_CN.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_zh_CN.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>添加 CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>添加卷 &quot;%1&quot;</translation>
</message>
diff --git a/src/plugins/General/hal/translations/hal_plugin_zh_TW.ts b/src/plugins/General/hal/translations/hal_plugin_zh_TW.ts
index a997a9591..1a2daa78d 100644
--- a/src/plugins/General/hal/translations/hal_plugin_zh_TW.ts
+++ b/src/plugins/General/hal/translations/hal_plugin_zh_TW.ts
@@ -37,12 +37,12 @@
<context>
<name>HalPlugin</name>
<message>
- <location filename="../halplugin.cpp" line="161"/>
+ <location filename="../halplugin.cpp" line="162"/>
<source>Add CD &quot;%1&quot;</source>
<translation>添加 CD &quot;%1&quot;</translation>
</message>
<message>
- <location filename="../halplugin.cpp" line="167"/>
+ <location filename="../halplugin.cpp" line="168"/>
<source>Add Volume &quot;%1&quot;</source>
<translation>添加卷 &quot;%1&quot;</translation>
</message>