From 2e25fa39cd67cca2472d3eabdb478feb517d72a5 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:03:37 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- kfile-plugins/tga/CMakeLists.txt | 35 -------- kfile-plugins/tga/Makefile.am | 22 ----- kfile-plugins/tga/kfile_tga.cpp | 165 ------------------------------------ kfile-plugins/tga/kfile_tga.desktop | 64 -------------- kfile-plugins/tga/kfile_tga.h | 38 --------- 5 files changed, 324 deletions(-) delete mode 100644 kfile-plugins/tga/CMakeLists.txt delete mode 100644 kfile-plugins/tga/Makefile.am delete mode 100644 kfile-plugins/tga/kfile_tga.cpp delete mode 100644 kfile-plugins/tga/kfile_tga.desktop delete mode 100644 kfile-plugins/tga/kfile_tga.h (limited to 'kfile-plugins/tga') diff --git a/kfile-plugins/tga/CMakeLists.txt b/kfile-plugins/tga/CMakeLists.txt deleted file mode 100644 index eddb0d44..00000000 --- a/kfile-plugins/tga/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -################################################# -# -# (C) 2010-2011 Calvin Morrison -# mutantturkey@gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_BINARY_DIR} - ${TDE_INCLUDE_DIR} - ${TQT_INCLUDE_DIRS} -) - -link_directories( - ${TQT_LIBRARY_DIRS} -) - - -#### other data ################################# - -install( FILES kfile_tga.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) - - -#### kfile_tga (module) ######################### - -tde_add_kpart( kfile_tga AUTOMOC - SOURCES kfile_tga.cpp - LINK kio-shared - DESTINATION ${PLUGIN_INSTALL_DIR} -) diff --git a/kfile-plugins/tga/Makefile.am b/kfile-plugins/tga/Makefile.am deleted file mode 100644 index 3856c26f..00000000 --- a/kfile-plugins/tga/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -## Makefile.am for tga file meta info plugin - -# set the include path for X, qt and KDE -INCLUDES = $(all_includes) - -# these are the headers for your project -noinst_HEADERS = kfile_tga.h - -kde_module_LTLIBRARIES = kfile_tga.la - -kfile_tga_la_SOURCES = kfile_tga.cpp -kfile_tga_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -kfile_tga_la_LIBADD = $(LIB_KSYCOCA) - -# let automoc handle all of the meta source files (moc) -METASOURCES = AUTO - -messages: rc.cpp - $(XGETTEXT) kfile_tga.cpp -o $(podir)/kfile_tga.pot - -services_DATA = kfile_tga.desktop -servicesdir = $(kde_servicesdir) diff --git a/kfile-plugins/tga/kfile_tga.cpp b/kfile-plugins/tga/kfile_tga.cpp deleted file mode 100644 index b102deb6..00000000 --- a/kfile-plugins/tga/kfile_tga.cpp +++ /dev/null @@ -1,165 +0,0 @@ -/* This file is part of the KDE project - * Copyright (C) 2002 Shane Wright - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation version 2. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - */ - -#include -#include "kfile_tga.h" - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#if !defined(__osf__) -#include -#else -typedef unsigned long uint32_t; -typedef unsigned short uint16_t; -typedef unsigned char uint8_t; -#endif - -typedef KGenericFactory TgaFactory; - -K_EXPORT_COMPONENT_FACTORY(kfile_tga, TgaFactory( "kfile_tga" )) - -KTgaPlugin::KTgaPlugin(TQObject *parent, const char *name, - const TQStringList &args) - - : KFilePlugin(parent, name, args) -{ - KFileMimeTypeInfo* info = addMimeTypeInfo( "image/x-targa" ); - - KFileMimeTypeInfo::GroupInfo* group = 0L; - - group = addGroupInfo(info, "Technical", i18n("Technical Details")); - - KFileMimeTypeInfo::ItemInfo* item; - - item = addItemInfo(group, "Dimensions", i18n("Dimensions"), TQVariant::Size); - setHint( item, KFileMimeTypeInfo::Size ); - setUnit(item, KFileMimeTypeInfo::Pixels); - - item = addItemInfo(group, "BitDepth", i18n("Bit Depth"), TQVariant::Int); - setUnit(item, KFileMimeTypeInfo::BitsPerPixel); - - item = addItemInfo(group, "ColorMode", i18n("Color Mode"), TQVariant::String); - item = addItemInfo(group, "Compression", i18n("Compression"), TQVariant::String); - -} - -bool KTgaPlugin::readInfo( KFileMetaInfo& info, uint what) -{ - - - TQFile file(info.path()); - - if (!file.open(IO_ReadOnly)) - { - kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()).data() << endl; - return false; - } - - TQDataStream dstream(&file); - - // TGA files are little-endian - dstream.setByteOrder(TQDataStream::LittleEndian); - - // the vars for the image data - uint8_t tga_idlength; - uint8_t tga_colormaptype; - uint8_t tga_imagetype; - uint16_t tga_colormap_fei; - uint16_t tga_colormap_length; - uint8_t tga_colormap_entrysize; - uint16_t tga_imagespec_origin_x; - uint16_t tga_imagespec_origin_y; - uint16_t tga_imagespec_width; - uint16_t tga_imagespec_height; - uint8_t tga_imagespec_depth; - uint8_t tga_imagespec_descriptor; - - // read the image data - dstream >> tga_idlength; - dstream >> tga_colormaptype; - dstream >> tga_imagetype; - dstream >> tga_colormap_fei; - dstream >> tga_colormap_length; - dstream >> tga_colormap_entrysize; - dstream >> tga_imagespec_origin_x; - dstream >> tga_imagespec_origin_y; - dstream >> tga_imagespec_width; - dstream >> tga_imagespec_height; - dstream >> tga_imagespec_depth; - dstream >> tga_imagespec_descriptor; - - // output the useful bits - KFileMetaInfoGroup group = appendGroup(info, "Technical"); - appendItem(group, "Dimensions", TQSize(tga_imagespec_width, tga_imagespec_height)); - appendItem(group, "BitDepth", tga_imagespec_depth); - - switch (tga_imagetype) { - case 1 : - case 9 : - case 32 : - appendItem(group, "ColorMode", i18n("Color-Mapped")); - break; - case 2 : - case 10 : - case 33 : - appendItem(group, "ColorMode", i18n("RGB")); - break; - case 3 : - case 11 : - appendItem(group, "ColorMode", i18n("Black and White")); - break; - default : - appendItem(group, "ColorMode", i18n("Unknown")); - } - - switch (tga_imagetype) { - case 1 : - case 2 : - case 3 : - appendItem(group, "Compression", i18n("Uncompressed")); - break; - case 9 : - case 10 : - case 11 : - appendItem(group, "Compression", i18n("Runlength Encoded")); - break; - case 32 : - appendItem(group, "Compression", i18n("Huffman, Delta & RLE")); - break; - case 33 : - appendItem(group, "Compression", i18n("Huffman, Delta, RLE (4-pass quadtree)")); - break; - default : - appendItem(group, "Compression", i18n("Unknown")); - }; - - return true; -} - -#include "kfile_tga.moc" diff --git a/kfile-plugins/tga/kfile_tga.desktop b/kfile-plugins/tga/kfile_tga.desktop deleted file mode 100644 index c581e5ff..00000000 --- a/kfile-plugins/tga/kfile_tga.desktop +++ /dev/null @@ -1,64 +0,0 @@ -[Desktop Entry] -Type=Service -Name=Truevision Targa Info -Name[ar]=معلومات Truevision Targa -Name[br]=Gorretaol Truevision Targa -Name[ca]=Informació de Targa Truevision -Name[cs]=Truevision Targa info -Name[cy]=Gwybodaeth Truevision Targa -Name[da]=Truevision Targa-info -Name[de]=Truevision Targa-Info -Name[el]=Πληροφορίες Truevision Targa -Name[eo]=TARGA-informo -Name[es]=Info de Targa visión verdadera -Name[et]=Truevision Targa info -Name[fa]=اطلاعات Truevision Targa -Name[fi]=Truevision Targa -tiedot -Name[fr]=Informations Truevision -Name[gl]=Inf. Truevision Targa -Name[he]=מידע Truevision Targa -Name[hi]=ट्रू-विज़न टाग्रा जानकारी -Name[hr]=Truevision Targa Infomacije -Name[hu]=Truevision/Targa-jellemzők -Name[is]=Truevision Targa upplýsingar -Name[it]=Informazioni Truevision Targa -Name[ja]=TGA (Truevision Targa) 情報 -Name[kk]=Truevision Targa мәліметі -Name[km]=ព័ត៌មាន Truevision Targa -Name[lt]=Truevision Targa informacija -Name[ms]=Maklumat Targa Truevision -Name[nb]=Truevision Targa-info -Name[nds]="Truevision Targa"-Info -Name[ne]=ट्रुभिजन टार्गा सूचना -Name[nl]=Truevision Targa-info -Name[nn]=Truevision Targa-info -Name[nso]=Tshedimoso ya Targa ya pono ya Nnete -Name[pl]=Informacja o pliku Truevision Targa -Name[pt]=Informação do Targa da Truevision -Name[pt_BR]=Informação sobre Truevision Targa -Name[ro]=Informaţii Targa Truevision -Name[ru]=Информация о Truevision Targa -Name[se]=Truevision Targa-dieđut -Name[sl]=Podatki o Truevision Targa -Name[sr]=Truevision Targa информације -Name[sr@Latn]=Truevision Targa informacije -Name[sv]=Information om Truevision Targa -Name[ta]=சரியான பார்வை தார்கா தகவல் -Name[tg]=Иттилоот оиди Truevision Targa -Name[th]=ข้อมูลแฟ้ม Truevision Targa -Name[tr]=Truevision Targa Bilgisi -Name[uk]=Інформація по Truevision Targa -Name[uz]=TGA haqida maʼlumot -Name[uz@cyrillic]=TGA ҳақида маълумот -Name[ven]=Mafhungo a Targa ya mbonalelo ya vhukuma -Name[wa]=Informåcion sol imådje Truevision Targa -Name[xh]=Ulwazi lwe Truevision Targa -Name[zh_CN]=Truevision Targa 信息 -Name[zh_HK]=Truevision Targa 資訊 -Name[zh_TW]=Truevision Targa 資訊 -Name[zu]=Ulwazi lwe-Truevision Targa -ServiceTypes=KFilePlugin -X-TDE-Library=kfile_tga -MimeType=image/x-targa -PreferredGroups=Technical -PreferredItems=Dimensions,BitDepth,ColorMode,Compression diff --git a/kfile-plugins/tga/kfile_tga.h b/kfile-plugins/tga/kfile_tga.h deleted file mode 100644 index f98229df..00000000 --- a/kfile-plugins/tga/kfile_tga.h +++ /dev/null @@ -1,38 +0,0 @@ -/* This file is part of the KDE project - * Copyright (C) 2002 Shane Wright - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation version 2. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - */ - -#ifndef __KFILE_TGA_H__ -#define __KFILE_TGA_H__ - -#include - -class TQStringList; - -class KTgaPlugin: public KFilePlugin -{ - Q_OBJECT - - -public: - KTgaPlugin( TQObject *parent, const char *name, const TQStringList& args ); - - virtual bool readInfo( KFileMetaInfo& info, uint what); -}; - -#endif -- cgit v1.2.3