summaryrefslogtreecommitdiffstats
path: root/konqueror/sidebar/test
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /konqueror/sidebar/test
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konqueror/sidebar/test')
-rw-r--r--konqueror/sidebar/test/Makefile.am23
-rw-r--r--konqueror/sidebar/test/konqsidebartest.cpp26
-rw-r--r--konqueror/sidebar/test/konqsidebartest.h43
-rw-r--r--konqueror/sidebar/test/test.desktop68
4 files changed, 160 insertions, 0 deletions
diff --git a/konqueror/sidebar/test/Makefile.am b/konqueror/sidebar/test/Makefile.am
new file mode 100644
index 000000000..ebaeff299
--- /dev/null
+++ b/konqueror/sidebar/test/Makefile.am
@@ -0,0 +1,23 @@
+# this has all of the subdirectories that make will recurse into. if
+# there are none, comment this out
+SUBDIRS = .
+
+# set the include path for X, qt and KDE
+INCLUDES = -I$(srcdir)/.. $(all_includes)
+
+# these are the headers for your project
+noinst_HEADERS = konqsidebartest.h
+
+# let automoc handle all of the meta source files (moc)
+METASOURCES = AUTO
+
+kde_module_LTLIBRARIES = konq_sidebartest.la
+
+# the Part's source, library search path, and link libraries
+konq_sidebartest_la_SOURCES = konqsidebartest.cpp
+konq_sidebartest_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
+konq_sidebartest_la_LIBADD = $(LIB_KPARTS) $(LIB_KIO) ../libkonqsidebarplugin.la
+
+# this is where the part's XML-GUI resource file goes
+partrcdir = $(kde_datadir)/konqsidebartng/entries
+partrc_DATA = test.desktop
diff --git a/konqueror/sidebar/test/konqsidebartest.cpp b/konqueror/sidebar/test/konqsidebartest.cpp
new file mode 100644
index 000000000..56dfff2fe
--- /dev/null
+++ b/konqueror/sidebar/test/konqsidebartest.cpp
@@ -0,0 +1,26 @@
+/***************************************************************************
+ konqsidebartest.cpp
+ -------------------
+ begin : Sat June 2 16:25:27 CEST 2001
+ copyright : (C) 2001 Joseph Wenninger
+ email : jowenn@kde.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. *
+ * *
+ ***************************************************************************/
+#include "konqsidebartest.moc"
+#include <kinstance.h>
+
+extern "C"
+{
+ KDE_EXPORT void* create_konq_sidebartest(KInstance *instance,QObject *par,QWidget *widp,QString &desktopname,const char *name)
+ {
+ return new SidebarTest(instance,par,widp,desktopname,name);
+ }
+};
diff --git a/konqueror/sidebar/test/konqsidebartest.h b/konqueror/sidebar/test/konqsidebartest.h
new file mode 100644
index 000000000..0c304e949
--- /dev/null
+++ b/konqueror/sidebar/test/konqsidebartest.h
@@ -0,0 +1,43 @@
+/***************************************************************************
+ konqsidebartest.h
+ -------------------
+ begin : Sat June 2 16:25:27 CEST 2001
+ copyright : (C) 2001 Joseph Wenninger
+ email : jowenn@kde.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. *
+ * *
+ ***************************************************************************/
+#ifndef _konq_sidebar_test_h_
+#define _konq_sidebar_test_h_
+#include <konqsidebarplugin.h>
+#include <qlabel.h>
+#include <qlayout.h>
+
+class SidebarTest : public KonqSidebarPlugin
+ {
+ Q_OBJECT
+ public:
+ SidebarTest(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName_, const char* name=0):
+ KonqSidebarPlugin(inst,parent,widgetParent,desktopName_,name)
+ {
+ widget=new QLabel("Init Value",widgetParent);
+ }
+ ~SidebarTest(){;}
+ virtual QWidget *getWidget(){return widget;}
+ virtual void *provides(const QString &) {return 0;}
+ protected:
+ QLabel *widget;
+ virtual void handleURL(const KURL &url)
+ {
+ widget->setText(url.url());
+ }
+ };
+
+#endif
diff --git a/konqueror/sidebar/test/test.desktop b/konqueror/sidebar/test/test.desktop
new file mode 100644
index 000000000..9ede79467
--- /dev/null
+++ b/konqueror/sidebar/test/test.desktop
@@ -0,0 +1,68 @@
+[Desktop Entry]
+Type=Link
+URL=
+Icon=wizard
+Name=Test
+Name[af]=Toets
+Name[ar]=إختبار
+Name[az]=Sınaq
+Name[be]=Праверка
+Name[bg]=Проба
+Name[bn]=পরীক্ষা
+Name[br]=Arnodiñ
+Name[bs]=Proba
+Name[ca]=Prova
+Name[cy]=Arbrofi
+Name[el]=Δοκιμή
+Name[eo]=Testo
+Name[es]=Prueba
+Name[eu]=Froga
+Name[fa]=آزمون
+Name[fi]=Testi
+Name[ga]=Tástáil
+Name[gl]=Probar
+Name[he]=ניסיון
+Name[hi]=जांच
+Name[hu]=Próba
+Name[id]=Tes
+Name[is]=Prufa
+Name[it]=Prova
+Name[ja]=テスト
+Name[ka]=ტესტი
+Name[kk]=Сынау
+Name[km]=សាកល្បង
+Name[ko]=시험
+Name[lo]=ທົດສອບ
+Name[lt]=Testas
+Name[lv]=Tests
+Name[mk]=Тест
+Name[mn]=Тест
+Name[ms]=Uji
+Name[ne]=परीक्षण
+Name[nso]=Teko
+Name[pa]=ਜਾਂਚ
+Name[pt]=Teste
+Name[pt_BR]=Testar
+Name[ru]=Тест
+Name[rw]=Isuzuma
+Name[se]=Geahččaleapmi
+Name[sl]=Preizkus
+Name[sr]=Тест
+Name[ta]=சோதனை
+Name[te]=పరీక్ష
+Name[tg]=Озмоиш
+Name[th]=ทดสอบ
+Name[tt]=Sınaw
+Name[uk]=Тест
+Name[uz]=Sinov
+Name[uz@cyrillic]=Синов
+Name[ven]=Mulingo
+Name[vi]=Thử
+Name[wa]=Sayî
+Name[xh]=Uvavanyo
+Name[zh_CN]=测试
+Name[zh_TW]=測試
+Name[zu]=Isivivinyo
+
+Open=false
+X-KDE-KonqSidebarModule=konq_sidebartest