summaryrefslogtreecommitdiffstats
path: root/ksim/monitors/filesystem
diff options
context:
space:
mode:
Diffstat (limited to 'ksim/monitors/filesystem')
-rw-r--r--ksim/monitors/filesystem/CMakeLists.txt5
-rw-r--r--ksim/monitors/filesystem/DFree.desktop77
-rw-r--r--ksim/monitors/filesystem/filesystemwidget.cpp18
-rw-r--r--ksim/monitors/filesystem/filesystemwidget.h2
-rw-r--r--ksim/monitors/filesystem/fsystemconfig.h2
-rw-r--r--ksim/monitors/filesystem/ksimfsystem.cpp4
-rw-r--r--ksim/monitors/filesystem/ksimfsystem.h2
7 files changed, 17 insertions, 93 deletions
diff --git a/ksim/monitors/filesystem/CMakeLists.txt b/ksim/monitors/filesystem/CMakeLists.txt
index cc6d0cb..bcb591e 100644
--- a/ksim/monitors/filesystem/CMakeLists.txt
+++ b/ksim/monitors/filesystem/CMakeLists.txt
@@ -37,7 +37,8 @@ tde_add_kpart( ksim_filesystem AUTOMOC
##### other data ################################
-install( FILES DFree.desktop
+tde_create_translated_desktop(
+ SOURCE DFree.desktop
DESTINATION ${DATA_INSTALL_DIR}/ksim/monitors
+ PO_DIR ksim-desktops
)
-
diff --git a/ksim/monitors/filesystem/DFree.desktop b/ksim/monitors/filesystem/DFree.desktop
index 3b7cb9e..f445d39 100644
--- a/ksim/monitors/filesystem/DFree.desktop
+++ b/ksim/monitors/filesystem/DFree.desktop
@@ -1,84 +1,7 @@
[Desktop Entry]
Icon=drive-harddisk-mounted
Name=DFree
-Name[af]=Dfree
-Name[bg]=Дялове
-Name[ca]=Disc lliure
-Name[cs]=Volný disk
-Name[eo]=Diskuzo
-Name[et]=Vaba kettaruum
-Name[he]=מחיצות
-Name[hi]=डी-फ्री
-Name[it]=Disco libero
-Name[kk]=Тіркеген бөлімдер
-Name[ko]=디스크 사용량
-Name[ne]=डिफ्रि
-Name[pt_BR]=Disco Livre
-Name[ru]=Смонтированные разделы
-Name[sk]=Voľný disk
-Name[sv]=Ledigt diskutrymme
-Name[ta]= Dபிரீ
-Name[tg]=DОзод
-Name[th]=พื้นที่ว่างของดิสก์
Comment=Mounted Partitions Monitor
-Comment[af]=Gekoppelde Partisies Monitor
-Comment[ar]=مراقب الأقسام المضمومة
-Comment[bg]=Мониторинг на монтираните дялове
-Comment[bs]=Nadzor montiranih particija
-Comment[ca]=Monitor de les particions muntades
-Comment[cs]=Monitor připojených diskových oddílů
-Comment[cy]=Monitr Rhaniadau Mowntiedig
-Comment[da]=Overvågning af monterede partitioner
-Comment[de]=Anzeige für eingebundene Laufwerke
-Comment[el]=Επόπτης προσαρτημένων κατατμήσεων
-Comment[eo]=Vidigilo por la kroĉitaj subdiskoj
-Comment[es]=Monitor de particiones montadas
-Comment[et]=Ühendatud partitsioonide monitooring
-Comment[eu]=Muntatutako Partizioen Begiralea
-Comment[fa]=نمایشگر افرازهای سوارشده
-Comment[fi]=Liitettyjen osioiden valvonta
-Comment[fr]=Surveillant des lecteurs montés
-Comment[ga]=Monatóir Rannta Feistithe
-Comment[he]=צג מחיצות מחוברות
-Comment[hi]=माउन्टेड पार्टीशन्स मॉनीटर
-Comment[hu]=Lemezcsatlakoztatás-figyelő
-Comment[is]=Eftirlit með tengdum disksneiðum
-Comment[it]=Controllo delle partizioni montate
-Comment[ja]=マウントされたパーティションのモニタ
-Comment[ka]= მონტირებული პარტიციების მონიტორი
-Comment[kk]=Тіркеген бөлімдерді бақылау
-Comment[km]=កម្មវិធី​ត្រួតពិនិត្យ​ភាគ​ដែល​បាន​ម៉ោន
-Comment[lt]=Sumontuotų skirsnių stebėtojas
-Comment[mk]=Монитор на монтираните партиции
-Comment[ms]=Pemerhati Partisi yang telah Dilekapkan
-Comment[nb]=Overvåkning av monterte partisjoner
-Comment[nds]=Kieker för inhangte Partitschonen
-Comment[ne]=माउन्ट गरिएको विभाजन मोनिटर
-Comment[nl]=Monitor van aangekoppelde partities
-Comment[nn]=Overvaking av monterte partisjonar
-Comment[pa]=ਮਾਊਂਟ ਭਾਗ ਨਿਗਰਾਨ
-Comment[pl]=Stan zamontowanych partycji
-Comment[pt]=Monitor de Partições Montadas
-Comment[pt_BR]=Monitor das Partições Montadas
-Comment[ro]=Monitor partiţii montate
-Comment[ru]=Монитор смонтированных разделов
-Comment[sk]=Monitor pripojených diskových oddielov
-Comment[sl]=Nadzornik priklopljenih razdelkov
-Comment[sr]=Надгледање монтираних партиција
-Comment[sr@Latn]=Nadgledanje montiranih particija
-Comment[sv]=Övervakar monterade partitioner
-Comment[ta]=ஏற்றப்பட்ட பகுக்கப்பட்ட கண்காணி
-Comment[tg]=Дидабони Қисмҳои Насбшуда
-Comment[th]=สอดส่องพาร์ติชันที่เมานท์ไว้แล้ว
-Comment[tr]=Bağlanmış Disk Bölümü İzleyici
-Comment[uk]=Монітор змонтованих розділів
-Comment[uz]=Diskning ulangan qismlarini nazorat qilish plagini
-Comment[uz@cyrillic]=Дискнинг уланган қисмларини назорат қилиш плагини
-Comment[wa]=Corwaitoe des montêyès pårticions
-Comment[xh]=Ulwahlulo Lonyuso lwe Monitor
-Comment[zh_CN]=已挂载分区监视器
-Comment[zh_TW]=已掛載的分割區監視器
-Comment[zu]=Umlawuli Wezahlukaniso Ezinyukile
X-KSIM-VERSION=0.1
X-KSIM-LIBRARY=filesystem
X-KSIM-PREFS=File System
diff --git a/ksim/monitors/filesystem/filesystemwidget.cpp b/ksim/monitors/filesystem/filesystemwidget.cpp
index 2fb77e1..21aebff 100644
--- a/ksim/monitors/filesystem/filesystemwidget.cpp
+++ b/ksim/monitors/filesystem/filesystemwidget.cpp
@@ -141,7 +141,7 @@ bool FilesystemWidget::eventFilter(TQObject *o, TQEvent *e)
while ((filesystem = it.current()) != 0) {
++it;
- if (TQT_BASE_OBJECT(filesystem->display()) == TQT_BASE_OBJECT(o)) {
+ if (filesystem->display() == o) {
progressBar = filesystem->display();
break;
}
@@ -149,15 +149,15 @@ bool FilesystemWidget::eventFilter(TQObject *o, TQEvent *e)
++i;
}
- if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(progressBar) && e->type() == TQEvent::MouseButtonPress)
+ if (o == progressBar && e->type() == TQEvent::MouseButtonPress)
{
- switch(TQT_TQMOUSEEVENT(e)->button()) {
- case Qt::RightButton:
+ switch(static_cast<TQMouseEvent*>(e)->button()) {
+ case TQt::RightButton:
showMenu(i);
break;
default:
break;
- case Qt::LeftButton:
+ case TQt::LeftButton:
if (parentWidget()->inherits("KSim::PluginView"))
static_cast<KSim::PluginView *>(parentWidget())->doCommand();
break;
@@ -200,11 +200,11 @@ void FilesystemWidget::createProcess(const TQString &command, const TQString &po
{
m_process = new TDEProcess();
connect(m_process,
- TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- TQT_SLOT(receivedStderr(TDEProcess *, char *, int)));
+ TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ TQ_SLOT(receivedStderr(TDEProcess *, char *, int)));
connect(m_process,
- TQT_SIGNAL(processExited(TDEProcess *)),
- TQT_SLOT(processExited(TDEProcess *)));
+ TQ_SIGNAL(processExited(TDEProcess *)),
+ TQ_SLOT(processExited(TDEProcess *)));
(*m_process) << command << point;
void(m_process->start(TDEProcess::NotifyOnExit, TDEProcess::Stderr));
diff --git a/ksim/monitors/filesystem/filesystemwidget.h b/ksim/monitors/filesystem/filesystemwidget.h
index 2a8f116..6e7f330 100644
--- a/ksim/monitors/filesystem/filesystemwidget.h
+++ b/ksim/monitors/filesystem/filesystemwidget.h
@@ -29,7 +29,7 @@ class TQVBoxLayout;
class FilesystemWidget : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
FilesystemWidget(TQWidget *parent, const char *name);
diff --git a/ksim/monitors/filesystem/fsystemconfig.h b/ksim/monitors/filesystem/fsystemconfig.h
index fe37957..8322bcd 100644
--- a/ksim/monitors/filesystem/fsystemconfig.h
+++ b/ksim/monitors/filesystem/fsystemconfig.h
@@ -32,7 +32,7 @@ class TQListBoxItem;
class FsystemConfig : public KSim::PluginPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
FsystemConfig(KSim::PluginObject *parent, const char *name);
diff --git a/ksim/monitors/filesystem/ksimfsystem.cpp b/ksim/monitors/filesystem/ksimfsystem.cpp
index 278a891..262ae93 100644
--- a/ksim/monitors/filesystem/ksimfsystem.cpp
+++ b/ksim/monitors/filesystem/ksimfsystem.cpp
@@ -100,7 +100,7 @@ Fsystem::Fsystem(KSim::PluginObject *parent, const char *name)
createFreeInfo();
m_updateTimer = new TQTimer(this);
- connect(m_updateTimer, TQT_SIGNAL(timeout()), TQT_SLOT(updateFS()));
+ connect(m_updateTimer, TQ_SIGNAL(timeout()), TQ_SLOT(updateFS()));
m_updateTimer->start(config()->readNumEntry("updateValue", 60) * 1000);
}
@@ -193,7 +193,7 @@ Fsystem::MountEntryList Fsystem::makeList(const TQStringList &list) const
TQStringList::ConstIterator it;
for (it = list.begin(); it != list.end(); ++it) {
splitList = TQStringList::split(":", (*it));
- newList.append(tqMakePair(splitList[0], splitList[1]));
+ newList.append(qMakePair(splitList[0], splitList[1]));
}
return newList;
diff --git a/ksim/monitors/filesystem/ksimfsystem.h b/ksim/monitors/filesystem/ksimfsystem.h
index 1583ba1..63e192c 100644
--- a/ksim/monitors/filesystem/ksimfsystem.h
+++ b/ksim/monitors/filesystem/ksimfsystem.h
@@ -47,7 +47,7 @@ class PluginModule : public KSim::PluginObject
class Fsystem : public KSim::PluginView, public FsystemIface
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**