summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/viewplugins/history_docker
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/viewplugins/history_docker')
-rw-r--r--chalk/plugins/viewplugins/history_docker/Makefile.am18
-rw-r--r--chalk/plugins/viewplugins/history_docker/chalkhistorydocker.desktop73
-rw-r--r--chalk/plugins/viewplugins/history_docker/historydocker.cc58
-rw-r--r--chalk/plugins/viewplugins/history_docker/historydocker.h34
4 files changed, 183 insertions, 0 deletions
diff --git a/chalk/plugins/viewplugins/history_docker/Makefile.am b/chalk/plugins/viewplugins/history_docker/Makefile.am
new file mode 100644
index 00000000..53511b3d
--- /dev/null
+++ b/chalk/plugins/viewplugins/history_docker/Makefile.am
@@ -0,0 +1,18 @@
+#kde_services_DATA = chalkhistorydocker.desktop
+
+INCLUDES = -I$(srcdir)/../../../sdk \
+ -I$(srcdir)/../../../core \
+ -I$(srcdir)/../../../chalkcolor/ \
+ -I$(srcdir)/../../../ui \
+ $(KOFFICE_INCLUDES) \
+ $(all_includes)
+
+chalkhistorydocker_la_SOURCES = historydocker.cc
+
+kde_module_LTLIBRARIES = chalkhistorydocker.la
+noinst_HEADERS = historydocker.h
+
+chalkhistorydocker_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
+chalkhistorydocker_la_LIBADD = ../../../libchalkcommon.la
+
+chalkhistorydocker_la_METASOURCES = AUTO
diff --git a/chalk/plugins/viewplugins/history_docker/chalkhistorydocker.desktop b/chalk/plugins/viewplugins/history_docker/chalkhistorydocker.desktop
new file mode 100644
index 00000000..270393ce
--- /dev/null
+++ b/chalk/plugins/viewplugins/history_docker/chalkhistorydocker.desktop
@@ -0,0 +1,73 @@
+[Desktop Entry]
+Name=History Docker
+Name[ca]=Amarrador d'història
+Name[cy]=Bachydd Hanes
+Name[da]=Historikdokning
+Name[de]=Verlauf-Docker
+Name[el]=Προσάρτηση ιστορικού
+Name[eo]=Historidokilo
+Name[es]=Anclaje del histórico
+Name[et]=Ajaloo dokk
+Name[fa]=پیونددهندۀ سابقه‌نما
+Name[fr]=Ancrage d'historique
+Name[fy]=Histoarjekomponint
+Name[gl]=Acoplador de Histórico
+Name[hu]=Előzménydokkoló
+Name[is]=Söguspjald
+Name[it]=Aggancia-cronologia
+Name[ja]=履歴ドックパネル
+Name[km]=កន្លែង​ចត​ប្រវត្តិ
+Name[nb]=Hiastoriedokker
+Name[nds]=Vörgeschicht-Docker
+Name[ne]=इतिहास डकर
+Name[nl]=Geschiedeniscomponent
+Name[pl]=Doker historii
+Name[pt]=Acoplador de Histórico
+Name[pt_BR]=Acoplador de Histórico
+Name[ru]=История команд
+Name[sk]=História
+Name[sl]=Zgodovina
+Name[sr]=Сидраш историјата
+Name[sr@Latn]=Sidraš istorijata
+Name[sv]=Historikdockning
+Name[uk]=Швартувальник історії
+Name[zh_TW]=歷史紀錄停駐點
+Comment=Command history docker for Chalk
+Comment[bg]=Основната функционалност на Chalk
+Comment[ca]=Amarrador d'història d'ordres per a Chalk
+Comment[cy]=Bachydd yr hanes gorchmynion ar gyfer Chalk
+Comment[da]=Dokning af kommandohistorik for Chalk
+Comment[de]=Befehlsverlauf-Docker für Chalk
+Comment[el]=Άρθρωμα προσάρτησης ιστορικού εντολών για το Chalk
+Comment[es]=Anclaje con el histórico de órdenes para Chalk
+Comment[et]=Chalk käskude ajaloo dokk
+Comment[fa]=پیونددهنده تاریخچۀ فرمان برای Chalk
+Comment[fr]=Ancrage de l'historique des commandes pour Chalk
+Comment[fy]=Komponint mei bewurkingshistoarje foar Chalk"
+Comment[gl]=Un módulo acoplado co historial de comandos para Chalk
+Comment[hu]=Chalk parancselőzmény-dokkoló
+Comment[is]=Skipanasöguspjald fyrir Chalk
+Comment[it]=Aggancia-cronologia dei comandi di Chalk
+Comment[ja]=Chalk コマンド履歴ドックパネル
+Comment[km]=កន្លែង​ចត​ប្រវត្តិ​ពាក្យបញ្ជា​សម្រាប់ Chalk
+Comment[nb]=Kommandohistorie-dokker for Chalk
+Comment[nds]=Befehlsvörgeschicht-Docker för Chalk
+Comment[ne]=क्रिताका लागि आदेश इतिहास
+Comment[nl]=Component met bewerkingsgeschiedenis voor Chalk
+Comment[pl]=Doker historii poleceń dla Chalk
+Comment[pt]=Um módulo acoplado de histórico de comandos do Chalk
+Comment[pt_BR]=Um módulo acoplado de histórico de comandos do Chalk
+Comment[ru]=Панель истории команд Chalk
+Comment[sk]=História príkazov pre Chalk
+Comment[sl]=Zgodovina ukazov za Krito
+Comment[sr]=Сидраш историјата наредби за Chalk-у
+Comment[sr@Latn]=Sidraš istorijata naredbi za Chalk-u
+Comment[sv]=Dockning av kommandohistorik för Chalk
+Comment[uk]=Швартувальник історії команд для Chalk
+Comment[uz]=Chalk uchun buyruqlar tarixi paneli
+Comment[uz@cyrillic]=Chalk учун буйруқлар тарихи панели
+Comment[zh_TW]=Chalk 的指令紀錄停駐點
+ServiceTypes=Chalk/ViewPlugin
+Type=Service
+X-KDE-Library=chalkhistorydocker
+X-Chalk-Version=2
diff --git a/chalk/plugins/viewplugins/history_docker/historydocker.cc b/chalk/plugins/viewplugins/history_docker/historydocker.cc
new file mode 100644
index 00000000..e4f36813
--- /dev/null
+++ b/chalk/plugins/viewplugins/history_docker/historydocker.cc
@@ -0,0 +1,58 @@
+/*
+ * This file is part of the KDE project
+ *
+ * Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include <klocale.h>
+#include <kiconloader.h>
+#include <kinstance.h>
+#include <kmessagebox.h>
+#include <kstandarddirs.h>
+#include <ktempfile.h>
+#include <kdebug.h>
+#include <kgenericfactory.h>
+
+#include <kis_doc.h>
+#include <kis_global.h>
+#include <kis_types.h>
+#include <kis_view.h>
+
+#include "historydocker.h"
+
+typedef KGenericFactory<ChalkHistoryDocker> ChalkHistoryDockerFactory;
+K_EXPORT_COMPONENT_FACTORY( chalkhistorydocker, ChalkHistoryDockerFactory( "chalk" ) )
+
+ChalkHistoryDocker::ChalkHistoryDocker(TQObject *tqparent, const char *name, const TQStringList &)
+ : KParts::Plugin(tqparent, name)
+{
+
+
+
+ if ( tqparent->inherits("KisView") )
+ {
+ setInstance(ChalkHistoryDockerFactory::instance());
+ // Create history docker
+ // Add the docker to the docker manager
+ // Connect the undo system to the docker
+ }
+
+}
+
+ChalkHistoryDocker::~ChalkHistoryDocker()
+{
+}
diff --git a/chalk/plugins/viewplugins/history_docker/historydocker.h b/chalk/plugins/viewplugins/history_docker/historydocker.h
new file mode 100644
index 00000000..82aee9bf
--- /dev/null
+++ b/chalk/plugins/viewplugins/history_docker/historydocker.h
@@ -0,0 +1,34 @@
+/*
+ * This file is part of Chalk
+ *
+ * Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef _HISTORYDOCKER_H
+#define _HISTORYDOCKER_H
+
+#include <kparts/plugin.h>
+
+class ChalkHistoryDocker : public KParts::Plugin
+{
+public:
+ ChalkHistoryDocker(TQObject *tqparent, const char *name, const TQStringList &);
+ virtual ~ChalkHistoryDocker();
+};
+
+
+#endif //_HISTORYDOCKER_H