diff options
Diffstat (limited to 'kexi/plugins/migration')
-rw-r--r-- | kexi/plugins/migration/Makefile.am | 20 | ||||
-rw-r--r-- | kexi/plugins/migration/keximigrationhandler.desktop | 102 | ||||
-rw-r--r-- | kexi/plugins/migration/keximigrationpart.cpp | 46 | ||||
-rw-r--r-- | kexi/plugins/migration/keximigrationpart.h | 38 |
4 files changed, 206 insertions, 0 deletions
diff --git a/kexi/plugins/migration/Makefile.am b/kexi/plugins/migration/Makefile.am new file mode 100644 index 00000000..e496773e --- /dev/null +++ b/kexi/plugins/migration/Makefile.am @@ -0,0 +1,20 @@ +include $(top_srcdir)/kexi/Makefile.global + +kde_module_LTLIBRARIES = kexihandler_migration.la + +kexihandler_migration_la_SOURCES = keximigrationpart.cpp + +kexihandler_migration_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) $(VER_INFO) -module +kexihandler_migration_la_LIBADD = ../../core/libkexicore.la \ + ../../migration/libkeximigrate.la + +INCLUDES= -I$(top_srcdir)/kexi/core -I$(top_srcdir)/kexi \ + -I$(top_srcdir)/kexi/widget -I$(top_srcdir)/kexi/migration \ + -I$(top_srcdir)/kexi/kexiDB $(all_includes) + +METASOURCES = AUTO + +servicesdir=$(kde_servicesdir)/kexi +services_DATA=keximigrationhandler.desktop + +include ../Makefile.common diff --git a/kexi/plugins/migration/keximigrationhandler.desktop b/kexi/plugins/migration/keximigrationhandler.desktop new file mode 100644 index 00000000..4ca99b05 --- /dev/null +++ b/kexi/plugins/migration/keximigrationhandler.desktop @@ -0,0 +1,102 @@ +[Desktop Entry] +Type=Service +ServiceTypes=Kexi/Handler + +GenericName=Migration Plugin +GenericName[bg]=Приставка за мигриране +GenericName[ca]=Connector de migració +GenericName[cy]=Ategyn Mudo +GenericName[da]=Migrationsplugin +GenericName[de]=Migrations-Modul +GenericName[el]=Πρόσθετο μεταφοράς +GenericName[eo]=Migradkromaĵo +GenericName[es]=Complemento para migración +GenericName[et]=Migreerumisplugin +GenericName[eu]=Migraziorako plugina +GenericName[fa]=وصلۀ جابهجایی +GenericName[fi]=Yhdistämisliitännäinen +GenericName[fr]=Module de migration +GenericName[fy]=Migraasjeplugin +GenericName[ga]=Breiseán Migration +GenericName[gl]=Plugin de Migración +GenericName[he]=תוסף Migration +GenericName[hr]=Migracijski dodatak +GenericName[hu]=Migrálási modul +GenericName[is]=Gagnaflutnings íforrit +GenericName[it]=Plugin di migrazione +GenericName[ja]=データ移行プラグイン +GenericName[km]=កម្មវិធីជំនួយផ្លាស់ប្ដូរកន្លែង +GenericName[lv]=Migrācijas spraudnis +GenericName[ms]=Plugin Migrasi +GenericName[nb]=Programtillegg for migrering +GenericName[nds]=Datenutlagern-Moduul +GenericName[ne]=माइग्रेसन प्लगइन +GenericName[nl]=Migratieplugin +GenericName[nn]=Programtillegg for migrering +GenericName[pl]=Wtyczka migracji +GenericName[pt]='Plugin' de Migração +GenericName[pt_BR]=Plugin de Migração +GenericName[ru]=Миграция +GenericName[sk]=Modul pre migráciu +GenericName[sl]=Vstavek za prehod +GenericName[sr]=Миграциони прикључак +GenericName[sr@Latn]=Migracioni priključak +GenericName[sv]=Övergångsinsticksprogram +GenericName[uk]=Втулок міграції +GenericName[uz]=Migratsiya plagini +GenericName[uz@cyrillic]=Миграция плагини +GenericName[zh_CN]=升迁插件 +GenericName[zh_TW]=轉移外掛程式 +Name=Migration Plugin +Name[bg]=Приставка за мигриране +Name[ca]=Connector de migració +Name[cy]=Ategyn Mudo +Name[da]=Migrationsplugin +Name[de]=Migrations-Modul +Name[el]=Πρόσθετο μεταφοράς +Name[eo]=Migradkromaĵo +Name[es]=Complemento para migración +Name[et]=Migreerumisplugin +Name[eu]=Migraziorako plugina +Name[fa]=وصلۀ جابهجایی +Name[fi]=Yhdistämisliitännäinen +Name[fr]=Module de migration +Name[fy]=Migrationplugin +Name[ga]=Breiseán Migration +Name[gl]=Plugin de Migración +Name[he]=תוסף Migration +Name[hi]=माइग्रेशन प्लगइन +Name[hr]=Migracijski dodatak +Name[hu]=Migrálási modul +Name[is]=Gagnaflutnings íforrit +Name[it]=Plugin di migrazione +Name[ja]=データ移行プラグイン +Name[km]=កម្មវិធីជំនួយសម្រាប់ផ្លាស់ប្ដូរ +Name[lv]=Migrācijas spraudnis +Name[ms]=Plugin Migrasi +Name[nb]=Programtillegg for migrering +Name[nds]=Datenutlagern-Moduul +Name[ne]=माइग्रेसन प्लगइन +Name[nl]=Migratieplugin +Name[nn]=Programtillegg for migrering +Name[pl]=Wtyczka migracji +Name[pt]='Plugin' de Migração +Name[pt_BR]=Plugin de Migração +Name[ru]=Модуль миграции +Name[sk]=Modul pre migráciu +Name[sl]=Vstavek za prehod +Name[sr]=Миграциони прикључак +Name[sr@Latn]=Migracioni priključak +Name[sv]=Övergångsinsticksprogram +Name[uk]=Втулок міграції +Name[uz]=Migratsiya plagini +Name[uz@cyrillic]=Миграция плагини +Name[zh_CN]=升迁插件 +Name[zh_TW]=轉移外掛程式 +X-KDE-Library=kexihandler_migration +X-KDE-ParentApp=kexi +X-Kexi-PartVersion=2 +X-Kexi-TypeName=migration +X-Kexi-GroupIcon=migration +X-Kexi-ItemIcon=migration +X-Kexi-NoObject=true diff --git a/kexi/plugins/migration/keximigrationpart.cpp b/kexi/plugins/migration/keximigrationpart.cpp new file mode 100644 index 00000000..0f6c408b --- /dev/null +++ b/kexi/plugins/migration/keximigrationpart.cpp @@ -0,0 +1,46 @@ +/* This file is part of the KDE project + Copyright (C) 2004 Jaroslaw Staniek <[email protected]> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. +*/ + +#include "keximigrationpart.h" + +#include <migration/importwizard.h> + +#include <kgenericfactory.h> + +KexiMigrationPart::KexiMigrationPart(QObject *parent, const char *name, const QStringList &args) + : KexiInternalPart(parent, name, args) +{ +} + +KexiMigrationPart::~KexiMigrationPart() +{ +} + +QWidget *KexiMigrationPart::createWidget(const char* /*widgetClass*/, KexiMainWindow* mainWin, + QWidget *parent, const char *objName, QMap<QString,QString>* args ) +{ + Q_UNUSED( mainWin ); + + KexiMigration::ImportWizard *w = new KexiMigration::ImportWizard(parent, args); + w->setName(objName); + return w; +} + +K_EXPORT_COMPONENT_FACTORY( kexihandler_migration, + KGenericFactory<KexiMigrationPart>("kexihandler_migration") ) diff --git a/kexi/plugins/migration/keximigrationpart.h b/kexi/plugins/migration/keximigrationpart.h new file mode 100644 index 00000000..528aac82 --- /dev/null +++ b/kexi/plugins/migration/keximigrationpart.h @@ -0,0 +1,38 @@ +/* This file is part of the KDE project + Copyright (C) 2004 Jaroslaw Staniek <[email protected]> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. +*/ + +#ifndef KEXI_MIGRATION_PART_H +#define KEXI_MIGRATION_PART_H + +#include <core/kexiinternalpart.h> + +/*! @short Internal part for data/project migration wizard. */ +class KexiMigrationPart : public KexiInternalPart +{ + public: + KexiMigrationPart(QObject *parent, const char *name, const QStringList &args); + virtual ~KexiMigrationPart(); + + /*! Reimplement this if your internal part has to return widgets + or QDialog objects. */ + virtual QWidget *createWidget(const char* /*widgetClass*/, KexiMainWindow* mainWin, + QWidget *parent, const char *objName = 0, QMap<QString,QString>* args = 0); +}; + +#endif |