summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/history_docker
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/viewplugins/history_docker')
-rw-r--r--krita/plugins/viewplugins/history_docker/Makefile.am18
-rw-r--r--krita/plugins/viewplugins/history_docker/historydocker.cc58
-rw-r--r--krita/plugins/viewplugins/history_docker/historydocker.h34
-rw-r--r--krita/plugins/viewplugins/history_docker/kritahistorydocker.desktop73
4 files changed, 183 insertions, 0 deletions
diff --git a/krita/plugins/viewplugins/history_docker/Makefile.am b/krita/plugins/viewplugins/history_docker/Makefile.am
new file mode 100644
index 000000000..0432d54d2
--- /dev/null
+++ b/krita/plugins/viewplugins/history_docker/Makefile.am
@@ -0,0 +1,18 @@
+#kde_services_DATA = kritahistorydocker.desktop
+
+INCLUDES = -I$(srcdir)/../../../sdk \
+ -I$(srcdir)/../../../core \
+ -I$(srcdir)/../../../kritacolor/ \
+ -I$(srcdir)/../../../ui \
+ $(KOFFICE_INCLUDES) \
+ $(all_includes)
+
+kritahistorydocker_la_SOURCES = historydocker.cc
+
+kde_module_LTLIBRARIES = kritahistorydocker.la
+noinst_HEADERS = historydocker.h
+
+kritahistorydocker_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
+kritahistorydocker_la_LIBADD = ../../../libkritacommon.la
+
+kritahistorydocker_la_METASOURCES = AUTO
diff --git a/krita/plugins/viewplugins/history_docker/historydocker.cc b/krita/plugins/viewplugins/history_docker/historydocker.cc
new file mode 100644
index 000000000..20b1d0130
--- /dev/null
+++ b/krita/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<KritaHistoryDocker> KritaHistoryDockerFactory;
+K_EXPORT_COMPONENT_FACTORY( kritahistorydocker, KritaHistoryDockerFactory( "krita" ) )
+
+KritaHistoryDocker::KritaHistoryDocker(QObject *parent, const char *name, const QStringList &)
+ : KParts::Plugin(parent, name)
+{
+
+
+
+ if ( parent->inherits("KisView") )
+ {
+ setInstance(KritaHistoryDockerFactory::instance());
+ // Create history docker
+ // Add the docker to the docker manager
+ // Connect the undo system to the docker
+ }
+
+}
+
+KritaHistoryDocker::~KritaHistoryDocker()
+{
+}
diff --git a/krita/plugins/viewplugins/history_docker/historydocker.h b/krita/plugins/viewplugins/history_docker/historydocker.h
new file mode 100644
index 000000000..8556d37c7
--- /dev/null
+++ b/krita/plugins/viewplugins/history_docker/historydocker.h
@@ -0,0 +1,34 @@
+/*
+ * This file is part of Krita
+ *
+ * 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 KritaHistoryDocker : public KParts::Plugin
+{
+public:
+ KritaHistoryDocker(QObject *parent, const char *name, const QStringList &);
+ virtual ~KritaHistoryDocker();
+};
+
+
+#endif //_HISTORYDOCKER_H
diff --git a/krita/plugins/viewplugins/history_docker/kritahistorydocker.desktop b/krita/plugins/viewplugins/history_docker/kritahistorydocker.desktop
new file mode 100644
index 000000000..52d5e40a2
--- /dev/null
+++ b/krita/plugins/viewplugins/history_docker/kritahistorydocker.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 Krita
+Comment[bg]=Основната функционалност на Krita
+Comment[ca]=Amarrador d'història d'ordres per a Krita
+Comment[cy]=Bachydd yr hanes gorchmynion ar gyfer Krita
+Comment[da]=Dokning af kommandohistorik for Krita
+Comment[de]=Befehlsverlauf-Docker für Krita
+Comment[el]=Άρθρωμα προσάρτησης ιστορικού εντολών για το Krita
+Comment[es]=Anclaje con el histórico de órdenes para Krita
+Comment[et]=Krita käskude ajaloo dokk
+Comment[fa]=پیونددهنده تاریخچۀ فرمان برای Krita
+Comment[fr]=Ancrage de l'historique des commandes pour Krita
+Comment[fy]=Komponint mei bewurkingshistoarje foar Krita"
+Comment[gl]=Un módulo acoplado co historial de comandos para Krita
+Comment[hu]=Krita parancselőzmény-dokkoló
+Comment[is]=Skipanasöguspjald fyrir Krita
+Comment[it]=Aggancia-cronologia dei comandi di Krita
+Comment[ja]=Krita コマンド履歴ドックパネル
+Comment[km]=កន្លែង​ចត​ប្រវត្តិ​ពាក្យបញ្ជា​សម្រាប់ Krita
+Comment[nb]=Kommandohistorie-dokker for Krita
+Comment[nds]=Befehlsvörgeschicht-Docker för Krita
+Comment[ne]=क्रिताका लागि आदेश इतिहास
+Comment[nl]=Component met bewerkingsgeschiedenis voor Krita
+Comment[pl]=Doker historii poleceń dla Krita
+Comment[pt]=Um módulo acoplado de histórico de comandos do Krita
+Comment[pt_BR]=Um módulo acoplado de histórico de comandos do Krita
+Comment[ru]=Панель истории команд Krita
+Comment[sk]=História príkazov pre Krita
+Comment[sl]=Zgodovina ukazov za Krito
+Comment[sr]=Сидраш историјата наредби за Krita-у
+Comment[sr@Latn]=Sidraš istorijata naredbi za Krita-u
+Comment[sv]=Dockning av kommandohistorik för Krita
+Comment[uk]=Швартувальник історії команд для Krita
+Comment[uz]=Krita uchun buyruqlar tarixi paneli
+Comment[uz@cyrillic]=Krita учун буйруқлар тарихи панели
+Comment[zh_TW]=Krita 的指令紀錄停駐點
+ServiceTypes=Krita/ViewPlugin
+Type=Service
+X-KDE-Library=kritahistorydocker
+X-Krita-Version=2