diff options
Diffstat (limited to 'parts/valgrind')
| -rw-r--r-- | parts/valgrind/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | parts/valgrind/dialog_widget.ui | 4 | ||||
| -rw-r--r-- | parts/valgrind/kdevvalgrind.desktop | 71 | ||||
| -rw-r--r-- | parts/valgrind/valgrind_dialog.cpp | 15 | ||||
| -rw-r--r-- | parts/valgrind/valgrind_dialog.h | 2 | ||||
| -rw-r--r-- | parts/valgrind/valgrind_part.cpp | 32 | ||||
| -rw-r--r-- | parts/valgrind/valgrind_part.h | 2 | ||||
| -rw-r--r-- | parts/valgrind/valgrind_widget.cpp | 20 | ||||
| -rw-r--r-- | parts/valgrind/valgrind_widget.h | 2 |
9 files changed, 49 insertions, 106 deletions
diff --git a/parts/valgrind/CMakeLists.txt b/parts/valgrind/CMakeLists.txt index 9c32760f..8b4406c9 100644 --- a/parts/valgrind/CMakeLists.txt +++ b/parts/valgrind/CMakeLists.txt @@ -26,7 +26,12 @@ link_directories( ##### other data ################################ -install( FILES kdevvalgrind.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kdevvalgrind.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR tdevelop-desktops +) + install( FILES kdevpart_valgrind.rc DESTINATION ${DATA_INSTALL_DIR}/kdevvalgrind ) diff --git a/parts/valgrind/dialog_widget.ui b/parts/valgrind/dialog_widget.ui index 74b4a941..f09997c1 100644 --- a/parts/valgrind/dialog_widget.ui +++ b/parts/valgrind/dialog_widget.ui @@ -331,10 +331,10 @@ <tabstop>ctParamEdit</tabstop> <tabstop>kcExecutableEdit</tabstop> </tabstops> -<Q_SLOTS> +<slots> <slot access="private" specifier="non virtual">checkBoxToggled()</slot> <slot>init()</slot> -</Q_SLOTS> +</slots> <layoutdefaults spacing="6" margin="11"/> <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> <includes> diff --git a/parts/valgrind/kdevvalgrind.desktop b/parts/valgrind/kdevvalgrind.desktop index 546d64b1..97646113 100644 --- a/parts/valgrind/kdevvalgrind.desktop +++ b/parts/valgrind/kdevvalgrind.desktop @@ -1,71 +1,12 @@ [Desktop Entry] -Type=Service -Exec=blubb -Comment=Valgrind is a tool that helps you find memory management problems in programs. http://valgrind.org/ -Comment[ca]=Valgrind és una eina que us ajuda a trobar problemes en la gestió de la memòria en els programes. http://valgrind.org/ -Comment[da]=Valgrind er et værktøj der hjælper dig med at finde hukommelseshåndteringsproblemer i programmer. http://valgrind.org/ -Comment[de]=Valgrind ist ein Werkzeug zum Auffinden von Speicherverwaltungsproblemen in Anwendungen. http://valgrind.org/ -Comment[el]=Το Valgrind είναι ένα εργαλείο που βοηθά στην εύρεση προβλημάτων διαχείρισης μνήμης στα προγράμματα. http://valgrind.org/ -Comment[es]=Valgrind es una herramienta que le ayuda a encontrar problemas de gestión de memoria en los programas. http://valgrind.org/ -Comment[et]=Valgrind aitab leida programmides mälulekkeid ja muid mäluga seotud asju. http://valgrind.org/ -Comment[fr]=Valgrind est un outil qui vous aide à trouver les problèmes de gestion de la mémoire dans les programmes. http://valgrind.org/ -Comment[hu]=A Valgrind memóriakezelési hibák keresésére alkalmas program - http://valgrind.org -Comment[it]=Valgrind è uno strumento che ti aiuta a trovare problemi di gestione della memoria nei programmi. http://valgrind.org/ -Comment[ja]=Valgrind は、プログラム内のメモリ管理問題を発見することを手助けするツールです。http://valgrind.org/ -Comment[ms]=Valgrind adalah alatan yang membantu anda mencari masalah pengurusan memori dalam program. http://valgrind.org/ -Comment[nds]=Valgrind is en Warktüüch för't Finnen vun t Spiekerpleegproblemen in Programmen. http://valgrind.org/ -Comment[nl]=Valgrind is een hulpprogramma dat u helpt bij het opsporen van geheugenproblemen in programma's. http://valgrind.org/ -Comment[pl]=Valgrind jest narzędziem pomagającym znaleźć w programach problemy z zarządzaniem pamięcią. http://valgrind.org/ -Comment[pt]=O Valgrind é uma ferramenta que o ajuda a descobrir os problemas de gestão de memória nos programas. http://www.valgrind.org/ -Comment[pt_BR]=Valgrind é uma ferramenta ajuda você a encontrar problemas de gerenciamento de memória nos programas. http://www.valgrind.org/ -Comment[ru]=Valgrind - средство нахождения проблем управления памятью в программах. http://valgrind.org/ -Comment[sk]=Valgrind je nástroj, ktorý pomáha nájsť problémy so správou pamäte v programoch. http://valgrind.org/ -Comment[sr]=Valgrind је алат који вам помаже да нађете проблеме са употребом меморије у програмима. http://valgrind.org/ -Comment[sr@Latn]=Valgrind je alat koji vam pomaže da nađete probleme sa upotrebom memorije u programima. http://valgrind.org/ -Comment[sv]=Valgrind är ett verktyg som hjälper dig hitta minneshanteringsproblem i program. Se http://valgrind.org/. -Comment[zh_TW]=Valgrind 能協助您找到程式中記憶體管理上的問題。http://valgrind.org/ Name=KDevvalgrind -Name[da]=TDevelop Valgrind -Name[de]=Unterstützung für Valgrind (TDevelop) -Name[hi]=के-डेववेलग्रिंड -Name[nds]=Ünnerstütten för Valgrind (TDevelop) -Name[sk]=KDev valgrind -Name[sv]=TDevelop valgrind -Name[zh_TW]=TDevelop Valgrind + GenericName=Valgrind Frontend -GenericName[ca]=Entorn per a Valgrind -GenericName[da]=Valgrind-grænseflade -GenericName[de]=Oberfläche für Valgrind -GenericName[el]=Πρόγραμμα Valgrind -GenericName[es]=Interfaz para Valgrind -GenericName[et]=Valgrindi kasutajaliides -GenericName[eu]=Valgrind interfazea -GenericName[fa]=پایانۀ Valgrind -GenericName[fr]=Interface de Valgrind -GenericName[ga]=Comhéadan Valgrind -GenericName[gl]=Frontal para Valgrind -GenericName[hi]=वेलग्रिन्ड फ्रन्टएण्ड -GenericName[hu]=Valgrind-kezelő -GenericName[it]=Interfaccia a Valgrind -GenericName[ja]=Valgrind フロントエンド -GenericName[ms]=Frontend Valgrind -GenericName[nds]=Valgrind-Böversiet -GenericName[ne]=भलग्रिन्ड फ्रन्टइन्ड -GenericName[nl]=Valgrind-frontend -GenericName[pl]=Interfejs do Valgrinda -GenericName[pt]=Interface para o Valgrind -GenericName[pt_BR]=Frontend do Valgrind -GenericName[ru]=Интерфейс к Valgrind -GenericName[sk]=Valgrind rozhranie -GenericName[sl]=VMesnik za Valgrind -GenericName[sr]=Кориснички интерфејс за Valgrind -GenericName[sr@Latn]=Korisnički interfejs za Valgrind -GenericName[sv]=Valgrind-gränssnitt -GenericName[ta]=Valgrind முன் பகுதி -GenericName[tg]=Интерфейс дар Valgrind -GenericName[tr]=Valgrind Önucu -GenericName[zh_CN]=Valgrind 前端 -GenericName[zh_TW]=Valgrind 前端介面 + +Comment=Valgrind is a tool that helps you find memory management problems in programs. http://valgrind.org/ + +Type=Service +Exec=blubb Icon=tdevelop X-TDE-ServiceTypes=TDevelop/Plugin X-TDevelop-Scope=Global diff --git a/parts/valgrind/valgrind_dialog.cpp b/parts/valgrind/valgrind_dialog.cpp index d32a74e4..ccf2fb8e 100644 --- a/parts/valgrind/valgrind_dialog.cpp +++ b/parts/valgrind/valgrind_dialog.cpp @@ -3,11 +3,11 @@ #include <tqregexp.h> #include <tqwidgetstack.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <tdelocale.h> #include <kurlrequester.h> #include <klineedit.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <tdemessagebox.h> #include "dialog_widget.h" @@ -25,10 +25,10 @@ ValgrindDialog::ValgrindDialog( Type type, TQWidget* parent ) w->executableEdit->setFocus(); w->stack->raiseWidget(m_type); setMainWidget( w ); - connect( w->executableEdit->lineEdit(), TQT_SIGNAL( textChanged( const TQString &)), this, TQT_SLOT( valgrindTextChanged())); - connect( w->valExecutableEdit->lineEdit(), TQT_SIGNAL( textChanged( const TQString &)), this, TQT_SLOT( valgrindTextChanged())); - connect( w->ctExecutableEdit->lineEdit(), TQT_SIGNAL( textChanged( const TQString &)), this, TQT_SLOT( valgrindTextChanged())); - connect( w->kcExecutableEdit->lineEdit(), TQT_SIGNAL( textChanged( const TQString &)), this, TQT_SLOT( valgrindTextChanged())); + connect( w->executableEdit->lineEdit(), TQ_SIGNAL( textChanged( const TQString &)), this, TQ_SLOT( valgrindTextChanged())); + connect( w->valExecutableEdit->lineEdit(), TQ_SIGNAL( textChanged( const TQString &)), this, TQ_SLOT( valgrindTextChanged())); + connect( w->ctExecutableEdit->lineEdit(), TQ_SIGNAL( textChanged( const TQString &)), this, TQ_SLOT( valgrindTextChanged())); + connect( w->kcExecutableEdit->lineEdit(), TQ_SIGNAL( textChanged( const TQString &)), this, TQ_SLOT( valgrindTextChanged())); enableButtonOK( false ); } @@ -201,6 +201,3 @@ bool ValgrindDialog::isNewValgrindVersion( ) const return proc->exitStatus(); return true; } - -// kate: space-indent on; indent-width 2; tab-width 2; show-tabs on; - diff --git a/parts/valgrind/valgrind_dialog.h b/parts/valgrind/valgrind_dialog.h index 99e7bd55..6e4f598b 100644 --- a/parts/valgrind/valgrind_dialog.h +++ b/parts/valgrind/valgrind_dialog.h @@ -13,7 +13,7 @@ class DialogWidget; **/ class ValgrindDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT public: enum Type { Memcheck = 0, Calltree = 1 }; diff --git a/parts/valgrind/valgrind_part.cpp b/parts/valgrind/valgrind_part.cpp index 1b262175..b857ee53 100644 --- a/parts/valgrind/valgrind_part.cpp +++ b/parts/valgrind/valgrind_part.cpp @@ -8,7 +8,7 @@ #include <tdelocale.h> #include <kdevgenericfactory.h> #include <tdeaction.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <tdemessagebox.h> #include <tdefiledialog.h> #include <kdebug.h> @@ -23,26 +23,26 @@ #include "valgrinditem.h" typedef KDevGenericFactory<ValgrindPart> ValgrindFactory; -static const KDevPluginInfo data("kdevvalgrind"); -K_EXPORT_COMPONENT_FACTORY( libkdevvalgrind, ValgrindFactory( data ) ) +static const KDevPluginInfo pluginData("kdevvalgrind"); +K_EXPORT_COMPONENT_FACTORY( libkdevvalgrind, ValgrindFactory( pluginData ) ) ValgrindPart::ValgrindPart( TQObject *parent, const char *name, const TQStringList& ) - : KDevPlugin( &data, parent, name ? name : "ValgrindPart" ) + : KDevPlugin( &pluginData, parent, name ? name : "ValgrindPart" ) { setInstance( ValgrindFactory::instance() ); setXMLFile( "kdevpart_valgrind.rc" ); proc = new KShellProcess(); - connect( proc, TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int )), - this, TQT_SLOT(receivedStdout( TDEProcess*, char*, int )) ); - connect( proc, TQT_SIGNAL(receivedStderr( TDEProcess*, char*, int )), - this, TQT_SLOT(receivedStderr( TDEProcess*, char*, int )) ); - connect( proc, TQT_SIGNAL(processExited( TDEProcess* )), - this, TQT_SLOT(processExited( TDEProcess* )) ); - connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)), - this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) ); - connect( core(), TQT_SIGNAL(projectOpened()), - this, TQT_SLOT(projectOpened()) ); + connect( proc, TQ_SIGNAL(receivedStdout( TDEProcess*, char*, int )), + this, TQ_SLOT(receivedStdout( TDEProcess*, char*, int )) ); + connect( proc, TQ_SIGNAL(receivedStderr( TDEProcess*, char*, int )), + this, TQ_SLOT(receivedStderr( TDEProcess*, char*, int )) ); + connect( proc, TQ_SIGNAL(processExited( TDEProcess* )), + this, TQ_SLOT(processExited( TDEProcess* )) ); + connect( core(), TQ_SIGNAL(stopButtonClicked(KDevPlugin*)), + this, TQ_SLOT(slotStopButtonClicked(KDevPlugin*)) ); + connect( core(), TQ_SIGNAL(projectOpened()), + this, TQ_SLOT(projectOpened()) ); m_widget = new ValgrindWidget( this ); m_widget->setIcon( SmallIcon("fork") ); @@ -59,12 +59,12 @@ ValgrindPart::ValgrindPart( TQObject *parent, const char *name, const TQStringLi "some abuses of the POSIX pthread API." ) ); TDEAction* action = new TDEAction( i18n("&Valgrind Memory Leak Check"), 0, this, - TQT_SLOT(slotExecValgrind()), actionCollection(), "tools_valgrind" ); + TQ_SLOT(slotExecValgrind()), actionCollection(), "tools_valgrind" ); action->setToolTip(i18n("Valgrind memory leak check")); action->setWhatsThis(i18n("<b>Valgrind memory leak check</b><p>Runs Valgrind - a tool to help you find memory-management problems in your programs.")); action = new TDEAction( i18n("P&rofile with KCachegrind"), 0, this, - TQT_SLOT(slotExecCalltree()), actionCollection(), "tools_calltree" ); + TQ_SLOT(slotExecCalltree()), actionCollection(), "tools_calltree" ); action->setToolTip(i18n("Profile with KCachegrind")); action->setWhatsThis(i18n("<b>Profile with KCachegrind</b><p>Runs your program in calltree and then displays profiler information in KCachegrind.")); diff --git a/parts/valgrind/valgrind_part.h b/parts/valgrind/valgrind_part.h index 6a05737b..b1464104 100644 --- a/parts/valgrind/valgrind_part.h +++ b/parts/valgrind/valgrind_part.h @@ -15,7 +15,7 @@ class TDEProcess; class ValgrindPart : public KDevPlugin { - Q_OBJECT + TQ_OBJECT public: diff --git a/parts/valgrind/valgrind_widget.cpp b/parts/valgrind/valgrind_widget.cpp index 70484704..75f0c506 100644 --- a/parts/valgrind/valgrind_widget.cpp +++ b/parts/valgrind/valgrind_widget.cpp @@ -101,17 +101,17 @@ ValgrindWidget::ValgrindWidget( ValgrindPart *part ) vbl->addWidget( lv ); popup = new TQPopupMenu( lv, "valPopup" ); - popup->insertItem( i18n( "&Open Valgrind Output..." ), _part, TQT_SLOT(loadOutput()), 0, 0 ); + popup->insertItem( i18n( "&Open Valgrind Output..." ), _part, TQ_SLOT(loadOutput()), 0, 0 ); popup->insertSeparator(); - popup->insertItem( i18n( "Expand All Items" ), this, TQT_SLOT(expandAll()), 0, 2 ); - popup->insertItem( i18n( "Collapse All Items" ), this, TQT_SLOT(collapseAll()), 0, 3 ); - - connect( popup, TQT_SIGNAL(aboutToShow()), - this, TQT_SLOT(aboutToShowPopup()) ); - connect( lv, TQT_SIGNAL(executed(TQListViewItem*)), - this, TQT_SLOT(executed(TQListViewItem*)) ); - connect( lv, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), - this, TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); + popup->insertItem( i18n( "Expand All Items" ), this, TQ_SLOT(expandAll()), 0, 2 ); + popup->insertItem( i18n( "Collapse All Items" ), this, TQ_SLOT(collapseAll()), 0, 3 ); + + connect( popup, TQ_SIGNAL(aboutToShow()), + this, TQ_SLOT(aboutToShowPopup()) ); + connect( lv, TQ_SIGNAL(executed(TQListViewItem*)), + this, TQ_SLOT(executed(TQListViewItem*)) ); + connect( lv, TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQ_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); } diff --git a/parts/valgrind/valgrind_widget.h b/parts/valgrind/valgrind_widget.h index bb525758..e0539ee2 100644 --- a/parts/valgrind/valgrind_widget.h +++ b/parts/valgrind/valgrind_widget.h @@ -14,7 +14,7 @@ class TQPopupMenu; class ValgrindWidget : public TQWidget { - Q_OBJECT + TQ_OBJECT public: |
