Bring most mimetypes in line with XDG specifications. The following are not fully verified in source as of this commit due to ubiquity: html, empty, info, make, man, misc, source, unknown

pull/1/head
Timothy Pearson 10 years ago
parent 847b6192a9
commit 50be8112bd

@ -102,7 +102,7 @@ TargetItem::TargetItem( TQListView *lv, bool group, const TQString &text )
: ProjectItem( Target, lv, text ) : ProjectItem( Target, lv, text )
{ {
sources.setAutoDelete( true ); sources.setAutoDelete( true );
setPixmap( 0, group ? SmallIcon( "tar" ) : SmallIcon( "binary" ) ); setPixmap( 0, group ? SmallIcon( "application-x-tar" ) : SmallIcon( "application-octet-stream" ) );
} }
@ -115,7 +115,7 @@ FileItem::FileItem( TQListView *lv, const TQString &text, bool set_is_subst )
{ {
if(!is_subst) if(!is_subst)
{ {
setPixmap( 0, SmallIcon( "document" ) ); setPixmap( 0, SmallIcon( "text-x-generic" ) );
} }
else else
{ {

@ -91,7 +91,7 @@ GenericName[uz@cyrillic]=Automake лойиҳаси
GenericName[zh_CN]=Automake 工程 GenericName[zh_CN]=Automake 工程
GenericName[zh_TW]=Automake 專案 GenericName[zh_TW]=Automake 專案
X-TDE-ServiceTypes=TDevelop/Project X-TDE-ServiceTypes=TDevelop/Project
Icon=make Icon=text-x-text-x-makefile
X-TDE-Library=libkdevautoproject X-TDE-Library=libkdevautoproject
X-TDevelop-Version=5 X-TDevelop-Version=5
X-TDevelop-Args= X-TDevelop-Args=

@ -86,7 +86,7 @@ GenericName[tr]=TDE Automake Projesi
GenericName[zh_CN]=TDE Automake 工程 GenericName[zh_CN]=TDE Automake 工程
GenericName[zh_TW]=TDE Automake 專案 GenericName[zh_TW]=TDE Automake 專案
X-TDE-ServiceTypes=TDevelop/Project X-TDE-ServiceTypes=TDevelop/Project
Icon=make Icon=text-x-text-x-makefile
X-TDE-Library=libkdevautoproject X-TDE-Library=libkdevautoproject
X-TDevelop-Version=5 X-TDevelop-Version=5
X-TDevelop-Args=kde X-TDevelop-Args=kde

@ -160,7 +160,7 @@ void KFileDnDDetailView::startDrag(){
} }
TQPixmap pixmap; TQPixmap pixmap;
if( urls.count() > 1 ){ if( urls.count() > 1 ){
pixmap = DesktopIcon( "tdemultiple", 16 ); pixmap = DesktopIcon( "application-vnd.tde.tdemultiple", 16 );
} }
if( pixmap.isNull() ) if( pixmap.isNull() )
pixmap = currentFileItem()->pixmap( 16 ); pixmap = currentFileItem()->pixmap( 16 );

@ -149,7 +149,7 @@ TQDragObject* KFileDnDIconView::dragObject() {
} }
TQPixmap pixmap; TQPixmap pixmap;
if( urls.count() > 1 ) if( urls.count() > 1 )
pixmap = DesktopIcon( "tdemultiple", iconSize() ); pixmap = DesktopIcon( "application-vnd.tde.tdemultiple", iconSize() );
if( pixmap.isNull() ) if( pixmap.isNull() )
pixmap = currentFileItem()->pixmap( iconSize() ); pixmap = currentFileItem()->pixmap( iconSize() );
TQPoint hotspot; TQPoint hotspot;

@ -50,7 +50,7 @@ GroupItem::GroupItem( TQListView *lv, GroupType type, const TQString &text, QMak
this->owner = spitem; this->owner = spitem;
groupType = type; groupType = type;
// files.setAutoDelete( true ); // files.setAutoDelete( true );
setPixmap( 0, SmallIcon( "tar" ) ); setPixmap( 0, SmallIcon( "application-x-tar" ) );
} }
GroupItem::GroupType GroupItem::groupTypeForExtension( const TQString &ext ) GroupItem::GroupType GroupItem::groupTypeForExtension( const TQString &ext )
@ -298,7 +298,7 @@ FileItem::FileItem( TQListView *lv, const TQString &text )
// if excluded is set the file is excluded in the subproject/project. // if excluded is set the file is excluded in the subproject/project.
// by default excluded is set to false, thus file is included // by default excluded is set to false, thus file is included
// excluded = exclude; // excluded = exclude;
setPixmap( 0, SmallIcon( "document" ) ); setPixmap( 0, SmallIcon( "text-x-generic" ) );
} }

@ -58,7 +58,7 @@ AdaSupportPart::AdaSupportPart (TQObject *parent, const char *name, const TQStri
d->problemReporter = new ProblemReporter (this); d->problemReporter = new ProblemReporter (this);
// connect (core (), TQT_SIGNAL (configWidget (KDialogBase*)), // connect (core (), TQT_SIGNAL (configWidget (KDialogBase*)),
// d->problemReporter, TQT_SLOT (configWidget (KDialogBase*))); // d->problemReporter, TQT_SLOT (configWidget (KDialogBase*)));
d->problemReporter->setIcon( SmallIcon("info") ); d->problemReporter->setIcon( SmallIcon("application-vnd.tde.info") );
mainWindow( )->embedOutputView( d->problemReporter, i18n("Problems"), i18n("Problem reporter")); mainWindow( )->embedOutputView( d->problemReporter, i18n("Problems"), i18n("Problem reporter"));
TQWhatsThis::add(d->problemReporter, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. " TQWhatsThis::add(d->problemReporter, i18n("<b>Problem reporter</b><p>This window shows various \"problems\" in your project. "
"It displays errors reported by a language parser.")); "It displays errors reported by a language parser."));

@ -1,6 +1,6 @@
[Desktop Entry] [Desktop Entry]
Exec=tdecmshell %{APPNAMELC} Exec=tdecmshell %{APPNAMELC}
Icon=misc Icon=application-vnd.tde.misc
Type=Application Type=Application
X-TDE-ModuleType=Library X-TDE-ModuleType=Library

@ -449,7 +449,7 @@ void CppSupportPart::configWidget( KDialogBase *dlg )
connect( dlg, TQT_SIGNAL( okClicked() ), w, TQT_SLOT( storeConfig() ) ); connect( dlg, TQT_SIGNAL( okClicked() ), w, TQT_SLOT( storeConfig() ) );
vbox = dlg->addVBoxPage(i18n("C++ Parsing"), i18n("C++ Parsing"), vbox = dlg->addVBoxPage(i18n("C++ Parsing"), i18n("C++ Parsing"),
BarIcon( "source_cpp", TDEIcon::SizeMedium) ); BarIcon( "text-x-c++src", TDEIcon::SizeMedium) );
ConfigureProblemReporter* ww = new ConfigureProblemReporter( vbox ); ConfigureProblemReporter* ww = new ConfigureProblemReporter( vbox );
ww->setPart( this ); ww->setPart( this );
connect(dlg, TQT_SIGNAL(okClicked()), ww, TQT_SLOT(accept())); connect(dlg, TQT_SIGNAL(okClicked()), ww, TQT_SLOT(accept()));
@ -581,7 +581,7 @@ void CppSupportPart::embedProblemReporter( bool force )
if ( force || m_backgroundParserConfig->useProblemReporter() ) if ( force || m_backgroundParserConfig->useProblemReporter() )
{ {
m_problemReporter = new ProblemReporter( this, 0, "problemReporterWidget" ); m_problemReporter = new ProblemReporter( this, 0, "problemReporterWidget" );
m_problemReporter->setIcon( SmallIcon( "info" ) ); m_problemReporter->setIcon( SmallIcon( "application-vnd.tde.info" ) );
m_problemReporter->setCaption( i18n( "Problem Reporter" ) ); m_problemReporter->setCaption( i18n( "Problem Reporter" ) );
mainWindow( ) ->embedOutputView( m_problemReporter, i18n( "Problems" ), i18n( "Problem reporter" ) ); mainWindow( ) ->embedOutputView( m_problemReporter, i18n( "Problems" ), i18n( "Problem reporter" ) );
} }

@ -291,7 +291,7 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi
"<b>Libraries</b>")); "<b>Libraries</b>"));
action = new TDEAction(i18n("Examine Core File..."), "core", 0, action = new TDEAction(i18n("Examine Core File..."), "application-x-core", 0,
this, TQT_SLOT(slotExamineCore()), this, TQT_SLOT(slotExamineCore()),
actionCollection(), "debug_core"); actionCollection(), "debug_core");
action->setToolTip( i18n("Examine core file") ); action->setToolTip( i18n("Examine core file") );

@ -78,7 +78,7 @@ GenericName[tg]=Интеграл ёфтани созгузор
GenericName[tr]=Hata Ayıklayıcı Önucu GenericName[tr]=Hata Ayıklayıcı Önucu
GenericName[zh_CN]=调试器前端 GenericName[zh_CN]=调试器前端
GenericName[zh_TW]=除錯器前端 GenericName[zh_TW]=除錯器前端
Icon=debugger Icon=application-x-debugger
X-TDE-ServiceTypes=TDevelop/Plugin X-TDE-ServiceTypes=TDevelop/Plugin
X-TDE-Library=libkdevdebugger X-TDE-Library=libkdevdebugger
X-TDevelop-Version=5 X-TDevelop-Version=5

@ -79,7 +79,7 @@ GenericName[tr]=C++ Desteği
GenericName[zh_CN]=C++ 支持 GenericName[zh_CN]=C++ 支持
GenericName[zh_TW]=C++ 支援 GenericName[zh_TW]=C++ 支援
X-TDE-ServiceTypes=TDevelop/LanguageSupport X-TDE-ServiceTypes=TDevelop/LanguageSupport
Icon=source_cpp Icon=text-x-text-x-csrcpp
X-TDE-Library=libkdevcppsupport X-TDE-Library=libkdevcppsupport
X-TDevelop-Version=5 X-TDevelop-Version=5
X-TDevelop-Language=C++ X-TDevelop-Language=C++

@ -78,7 +78,7 @@ GenericName[tr]=C Desteği
GenericName[zh_CN]=C 支持 GenericName[zh_CN]=C 支持
GenericName[zh_TW]=C 支援 GenericName[zh_TW]=C 支援
X-TDE-ServiceTypes=TDevelop/LanguageSupport X-TDE-ServiceTypes=TDevelop/LanguageSupport
Icon=source_cpp Icon=text-x-text-x-csrcpp
X-TDE-Library=libkdevcppsupport X-TDE-Library=libkdevcppsupport
X-TDevelop-Version=5 X-TDevelop-Version=5
X-TDevelop-Language=C X-TDevelop-Language=C

@ -147,7 +147,7 @@ JavaSupportPart::JavaSupportPart(TQObject *parent, const char *name, const TQStr
this, TQT_SLOT(partRemoved(KParts::Part*))); this, TQT_SLOT(partRemoved(KParts::Part*)));
m_problemReporter = new ProblemReporter( this, 0, "problemReporterWidget" ); m_problemReporter = new ProblemReporter( this, 0, "problemReporterWidget" );
m_problemReporter->setIcon( SmallIcon("info") ); m_problemReporter->setIcon( SmallIcon("application-vnd.tde.info") );
mainWindow( )->embedOutputView( m_problemReporter, i18n("Problems"), i18n("Problem reporter")); mainWindow( )->embedOutputView( m_problemReporter, i18n("Problems"), i18n("Problem reporter"));
connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)), connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)),

@ -53,7 +53,7 @@ KJSProblems::KJSProblems(kjsSupportPart *part, TQWidget *parent, const char *nam
addColumn ("File"); addColumn ("File");
addColumn ("Line #"); addColumn ("Line #");
addColumn ("Problem:"); addColumn ("Problem:");
setIcon( SmallIcon("info") ); setIcon( SmallIcon("application-vnd.tde.info") );
} }
@ -65,7 +65,7 @@ KJSProblems::~KJSProblems()
void KJSProblems::clearItems() void KJSProblems::clearItems()
{ {
clear(); clear();
setIcon( SmallIcon("info") ); setIcon( SmallIcon("application-vnd.tde.info") );
} }
void KJSProblems::addLine(const TQString &file, int lineNo, const TQString &message) void KJSProblems::addLine(const TQString &file, int lineNo, const TQString &message)

@ -101,7 +101,7 @@ PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStrin
action->setWhatsThis(i18n("<b>New class</b><p>Runs New Class wizard.")); action->setWhatsThis(i18n("<b>New class</b><p>Runs New Class wizard."));
m_phpErrorView = new PHPErrorView(this, 0, "phpErrorWidget"); m_phpErrorView = new PHPErrorView(this, 0, "phpErrorWidget");
m_phpErrorView->setIcon( SmallIcon("info") ); m_phpErrorView->setIcon( SmallIcon("application-vnd.tde.info") );
TQWhatsThis::add(m_phpErrorView, i18n("<b>PHP problems</b><p>This view shows PHP parser warnings, errors, and fatal errors.")); TQWhatsThis::add(m_phpErrorView, i18n("<b>PHP problems</b><p>This view shows PHP parser warnings, errors, and fatal errors."));
mainWindow()->embedOutputView(m_phpErrorView, i18n("Problems"), i18n("Problems")); mainWindow()->embedOutputView(m_phpErrorView, i18n("Problems"), i18n("Problems"));

@ -36,7 +36,7 @@ Comment[tr]=Fortran Kaynak Dosyası
Comment[zh_CN]=Fortran 源文件 Comment[zh_CN]=Fortran 源文件
Comment[zh_TW]=Fortran 程式源碼檔 Comment[zh_TW]=Fortran 程式源碼檔
Hidden=false Hidden=false
Icon=source_f Icon=text-x-text-x-fortran
MimeType=text/x-fortran MimeType=text/x-fortran
Patterns=*.f;*.F;*.f77;*.f90;*.f95;*.for;*.ftn;*.fpp Patterns=*.f;*.F;*.f77;*.f90;*.f95;*.for;*.ftn;*.fpp
Type=MimeType Type=MimeType

@ -42,7 +42,7 @@ AbbrevConfigWidget::AbbrevConfigWidget(AbbrevPart *part, TQWidget *parent, const
templ->suffixes, templ->suffixes,
templ->code, templ->code,
templ->code ); templ->code );
it->setPixmap( 0, SmallIcon("template_source")); it->setPixmap( 0, SmallIcon("application-vnd.tde.template_source"));
} }
checkWordCompletion->setChecked( part->autoWordCompletionEnabled() ); checkWordCompletion->setChecked( part->autoWordCompletionEnabled() );
@ -95,7 +95,7 @@ void AbbrevConfigWidget::codeChanged()
if( item ){ if( item ){
item->setText( 3, editCode->text() ); item->setText( 3, editCode->text() );
if (item->text(3) == item->text(4)) if (item->text(3) == item->text(4))
item->setPixmap( 0, SmallIcon("template_source") ); item->setPixmap( 0, SmallIcon("application-vnd.tde.template_source") );
else else
item->setPixmap( 0, SmallIcon("document-save") ); item->setPixmap( 0, SmallIcon("document-save") );
} }

@ -76,7 +76,7 @@ GenericName[tr]=Kısaltma Genişlemesi
GenericName[zh_CN]=缩写扩展 GenericName[zh_CN]=缩写扩展
GenericName[zh_TW]=縮寫擴展 GenericName[zh_TW]=縮寫擴展
X-TDE-ServiceTypes=TDevelop/Plugin X-TDE-ServiceTypes=TDevelop/Plugin
Icon=fontsizeup Icon=font-x-genericsizeup
X-TDE-Library=libkdevabbrev X-TDE-Library=libkdevabbrev
X-TDevelop-Version=5 X-TDevelop-Version=5
X-TDevelop-Scope=Global X-TDevelop-Scope=Global

@ -211,7 +211,7 @@ void BookmarksWidget::createURL( EditorData * data )
{ {
TQListViewItem * file = new BookmarkItem( this, data->url ); TQListViewItem * file = new BookmarkItem( this, data->url );
file->setOpen( true ); file->setOpen( true );
file->setPixmap( 0, SmallIcon( "document" ) ); file->setPixmap( 0, SmallIcon( "text-x-generic" ) );
TQValueListIterator< TQPair<int,TQString> > it = data->marks.begin(); TQValueListIterator< TQPair<int,TQString> > it = data->marks.begin();
while ( it != data->marks.end() ) while ( it != data->marks.end() )

@ -76,7 +76,7 @@ void DocumentationItem::init( )
icon = "contents"; icon = "contents";
break; break;
default: default:
icon = "document"; icon = "text-x-generic";
} }
setPixmap(0, SmallIcon(icon)); setPixmap(0, SmallIcon(icon));

@ -219,7 +219,7 @@ InputString::InputString(const TQString & label,
if (m == StringFile || m == StringDir) { if (m == StringFile || m == StringDir) {
br = new TQPushButton(this); br = new TQPushButton(this);
br->setPixmap(SmallIcon(m==StringFile? "document" : "folder")); br->setPixmap(SmallIcon(m==StringFile? "text-x-generic" : "folder"));
TQToolTip::add(br, m==StringFile? i18n("Browse to a file") : i18n("Browse to a folder")); TQToolTip::add(br, m==StringFile? i18n("Browse to a file") : i18n("Browse to a folder"));
layout->addWidget(br, 0, 2); layout->addWidget(br, 0, 2);
} }
@ -362,7 +362,7 @@ InputStrList::InputStrList(const TQString & label,
if (lm != ListString) { if (lm != ListString) {
if (lm & ListFile) { if (lm & ListFile) {
brFile = new TQPushButton(dw); brFile = new TQPushButton(dw);
brFile->setPixmap(SmallIcon("document")); brFile->setPixmap(SmallIcon("text-x-generic"));
TQToolTip::add(brFile, i18n("Browse to a file")); TQToolTip::add(brFile, i18n("Browse to a file"));
boxlayout->addWidget(brFile); boxlayout->addWidget(brFile);
} }

@ -145,7 +145,7 @@ private:
FileGroupsFileItem::FileGroupsFileItem(TQListViewItem *parent, const TQString &fileName) FileGroupsFileItem::FileGroupsFileItem(TQListViewItem *parent, const TQString &fileName)
: TQListViewItem(parent), fullname(fileName) : TQListViewItem(parent), fullname(fileName)
{ {
setPixmap(0, SmallIcon("document")); setPixmap(0, SmallIcon("text-x-generic"));
TQFileInfo fi(fileName); TQFileInfo fi(fileName);
setText(0, fi.fileName()); setText(0, fi.fileName());
setText(1, "./" + fi.dirPath()); setText(1, "./" + fi.dirPath());

@ -61,7 +61,7 @@ Comment[sv]=Skriptinsticksprogrammet erbjuder KScript-baserad styrning av progra
Comment[tr]=Betik Yazma eklentisi TDevelop uygulamasına KScript tabanlı betik yazmayı sunar. Comment[tr]=Betik Yazma eklentisi TDevelop uygulamasına KScript tabanlı betik yazmayı sunar.
Comment[zh_CN]=脚本插件可为 TDevelop 应用程序提供基于 KScript 的脚本。 Comment[zh_CN]=脚本插件可为 TDevelop 应用程序提供基于 KScript 的脚本。
Comment[zh_TW]=文稿外掛程式提供 TDevelop 應用程式一個 KScript 基礎的文稿機制。 Comment[zh_TW]=文稿外掛程式提供 TDevelop 應用程式一個 KScript 基礎的文稿機制。
Icon=shellscript Icon=text-x-text-x-script
X-TDE-ServiceTypes=TDevelop/Plugin X-TDE-ServiceTypes=TDevelop/Plugin
X-TDevelop-Plugin-Version=1 X-TDevelop-Plugin-Version=1

@ -35,7 +35,7 @@ Comment[sv]=Funktion för integrering av Subversion i projekt
Comment[tr]=Subversion Proje Bütünleştirme Aracı Comment[tr]=Subversion Proje Bütünleştirme Aracı
Comment[zh_CN]=Subversion 工程集成功能 Comment[zh_CN]=Subversion 工程集成功能
Comment[zh_TW]=Subversion 專案整合工具 Comment[zh_TW]=Subversion 專案整合工具
Icon=misc Icon=application-vnd.tde.misc
Exec=blubb Exec=blubb
X-TDE-ServiceTypes=TDevelop/VCSIntegrator X-TDE-ServiceTypes=TDevelop/VCSIntegrator
X-TDE-Library=libsubversionintegrator X-TDE-Library=libsubversionintegrator

@ -27,7 +27,7 @@ GenericName[pt_BR]=Subversão
GenericName[ru]=Интеграция Subversion GenericName[ru]=Интеграция Subversion
GenericName[ta]=துணை பதிப்பு GenericName[ta]=துணை பதிப்பு
GenericName[tg]=Зер-ривоят GenericName[tg]=Зер-ривоят
Icon=misc Icon=application-vnd.tde.misc
X-TDE-ServiceTypes=TDevelop/VersionControl X-TDE-ServiceTypes=TDevelop/VersionControl
X-TDE-Library=libkdevsubversion X-TDE-Library=libkdevsubversion
X-TDevelop-Version=5 X-TDevelop-Version=5

Loading…
Cancel
Save