[Tux4kids-commits] r1216 - in tux4kids-admin/trunk: . libtux4kidsadmin_tuxmath libtux4kidsadmin_tuxtype tux4kids-admin tux4kids-admin/plugins tux4kids-admin/plugins/tuxtypePlugin

Michał Świtakowski swistakers-guest at alioth.debian.org
Wed Jul 15 21:37:18 UTC 2009


Author: swistakers-guest
Date: 2009-07-15 21:37:18 +0000 (Wed, 15 Jul 2009)
New Revision: 1216

Added:
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/CMakeLists.txt
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.cpp
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.h
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.pro
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype_global.h
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.cpp
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.h
   tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype_p.h
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/CMakeLists.txt
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.cpp
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.h
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.ui
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.h
   tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.pro
Modified:
   tux4kids-admin/trunk/CMakeLists.txt
   tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath.h
   tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath_global.h
   tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmath.h
   tux4kids-admin/trunk/tux4kids-admin/CMakeLists.txt
   tux4kids-admin/trunk/tux4kids-admin/tux4kids-admin.pro
Log:
added tuxtype stuff

Modified: tux4kids-admin/trunk/CMakeLists.txt
===================================================================
--- tux4kids-admin/trunk/CMakeLists.txt	2009-07-15 21:32:45 UTC (rev 1215)
+++ tux4kids-admin/trunk/CMakeLists.txt	2009-07-15 21:37:18 UTC (rev 1216)
@@ -2,6 +2,7 @@
 
 add_subdirectory( libtux4kidsadmin )
 add_subdirectory( libtux4kidsadmin_tuxmath )
+add_subdirectory( libtux4kidsadmin_tuxtype )
 add_subdirectory( tux4kids-admin )
 
 find_package( Qt4 REQUIRED )

Modified: tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath.h
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath.h	2009-07-15 21:32:45 UTC (rev 1215)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -3,7 +3,7 @@
 
 #include "libtux4kidsadmin_tuxmath_global.h"
 
-class LIBTUX4KIDSADMIN_TUXMATHSHARED_EXPORT Libtux4kidsadminTuxmath {
+class LIBTUX4KIDSADMIN_TUXMATH_SHARED_EXPORT Libtux4kidsadminTuxmath {
 public:
     Libtux4kidsadminTuxmath();
 };

Modified: tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath_global.h
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath_global.h	2009-07-15 21:32:45 UTC (rev 1215)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/libtux4kidsadmin_tuxmath_global.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -4,9 +4,9 @@
 #include <QtCore/qglobal.h>
 
 #if defined(LIBTUX4KIDSADMIN_TUXMATH_LIBRARY)
-#  define LIBTUX4KIDSADMIN_TUXMATHSHARED_EXPORT Q_DECL_EXPORT
+#  define LIBTUX4KIDSADMIN_TUXMATH_SHARED_EXPORT Q_DECL_EXPORT
 #else
-#  define LIBTUX4KIDSADMIN_TUXMATHSHARED_EXPORT Q_DECL_IMPORT
+#  define LIBTUX4KIDSADMIN_TUXMATH_SHARED_EXPORT Q_DECL_IMPORT
 #endif
 
 #endif // LIBTUX4KIDSADMIN_TUXMATH_GLOBAL_H

Modified: tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmath.h
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmath.h	2009-07-15 21:32:45 UTC (rev 1215)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxmath/profileDirTuxmath.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -6,7 +6,7 @@
 
 class ProfileDirTuxmathPrivate;
 
-class LIBTUX4KIDSADMIN_TUXMATHSHARED_EXPORT ProfileDirTuxmath : public ProfileDir
+class LIBTUX4KIDSADMIN_TUXMATH_SHARED_EXPORT ProfileDirTuxmath : public ProfileDir
 {
 	Q_OBJECT
 public:

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/CMakeLists.txt
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/CMakeLists.txt	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/CMakeLists.txt	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,22 @@
+project(libtux4kidsadmin_tuxtype)
+cmake_minimum_required(VERSION 2.6)
+
+SET(LIBTUX4KIDSADMIN_TUXTYPE_SOURCES 
+	libtux4kidsadmin_tuxtype.cpp
+	profileDirTuxtype.cpp )
+
+SET(LIBTUX4KIDSADMIN_TUXTYPE_MOC_HEADERS 
+	profileDirTuxtype.h )
+
+# enable warnings
+ADD_DEFINITIONS( -Wall -DLIBTUX4KIDSADMIN_TUXTYPE_LIBRARY )
+#ADD_DEFINITIONS(-DQT_NO_DEBUG)
+
+FIND_PACKAGE( Qt4 REQUIRED )
+SET(QT_DONT_USE_QTGUI 1)
+INCLUDE( ${QT_USE_FILE} )
+INCLUDE_DIRECTORIES( ../libtux4kidsadmin )
+QT4_WRAP_CPP( LIBTUX4KIDSADMIN_TUXTYPE_MOC_SOURCES ${LIBTUX4KIDSADMIN_TUXTYPE_MOC_HEADERS} )
+
+ADD_LIBRARY(tux4kidsadmin_tuxtype SHARED ${LIBTUX4KIDSADMIN_TUXTYPE_SOURCES} ${LIBTUX4KIDSADMIN_TUXTYPE_MOC_SOURCES} )
+TARGET_LINK_LIBRARIES( tux4kidsadmin_tuxtype ${QT_LIBRARIES} tux4kidsadmin )
\ No newline at end of file

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.cpp
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.cpp	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.cpp	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,6 @@
+#include "libtux4kidsadmin_tuxtype.h"
+
+
+Libtux4kidsadminTuxtype::Libtux4kidsadminTuxtype()
+{
+}

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.h
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.h	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,11 @@
+#ifndef LIBTUX4KIDSADMIN_TUXTYPE_H
+#define LIBTUX4KIDSADMIN_TUXTYPE_H
+
+#include "libtux4kidsadmin_tuxtype_global.h"
+
+class LIBTUX4KIDSADMIN_TUXTYPE_SHARED_EXPORT Libtux4kidsadminTuxtype {
+public:
+    Libtux4kidsadminTuxtype();
+};
+
+#endif // LIBTUX4KIDSADMIN_TUXTYPE_H

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.pro
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.pro	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype.pro	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,13 @@
+QT -= gui
+TARGET = tux4kidsadmintuxtype
+TEMPLATE = lib
+DEFINES += LIBTUX4KIDSADMIN_TUXTYPE_LIBRARY
+SOURCES += libtux4kidsadmin_tuxtype.cpp \
+    profileDirTuxtype.cpp
+HEADERS += libtux4kidsadmin_tuxtype.h \
+    libtux4kidsadmin_tuxtype_global.h \
+    profileDirTuxtype.h \
+    profileDirTuxtype_p.h
+INCLUDEPATH += ../libtux4kidsadmin
+LIBS += -ltux4kidsadmin \
+    -L../libtux4kidsadmin

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype_global.h
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype_global.h	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/libtux4kidsadmin_tuxtype_global.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,12 @@
+#ifndef LIBTUX4KIDSADMIN_TUXTYPE_GLOBAL_H
+#define LIBTUX4KIDSADMIN_TUXTYPE_GLOBAL_H
+
+#include <QtCore/qglobal.h>
+
+#if defined(LIBTUX4KIDSADMIN_TUXTYPE_LIBRARY)
+#  define LIBTUX4KIDSADMIN_TUXTYPE_SHARED_EXPORT Q_DECL_EXPORT
+#else
+#  define LIBTUX4KIDSADMIN_TUXTYPE_SHARED_EXPORT Q_DECL_IMPORT
+#endif
+
+#endif // LIBTUX4KIDSADMIN_TUXTYPE_GLOBAL_H

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.cpp
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.cpp	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.cpp	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,31 @@
+#include "profileDirTuxtype.h"
+#include "profileDirTuxtype_p.h"
+
+#include <QString>
+
+/************** ProfileDirTuxtypePrivate ****************/
+
+ProfileDirTuxtypePrivate::ProfileDirTuxtypePrivate(QString path)
+		: ProfileDirPrivate(path)
+{
+}
+
+ProfileDirTuxtypePrivate::~ProfileDirTuxtypePrivate()
+{
+}
+
+/************** ProfileDirTuxtype *********************/
+
+ProfileDirTuxtype::ProfileDirTuxtype(QString path, QObject *parent)
+		: ProfileDir(*new ProfileDirTuxtypePrivate(path), parent)
+{
+}
+
+ProfileDirTuxtype::ProfileDirTuxtype(ProfileDirTuxtypePrivate &dd, QObject *parent)
+		: ProfileDir(dd, parent)
+{
+}
+
+ProfileDirTuxtype::~ProfileDirTuxtype()
+{
+}

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.h
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.h	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,23 @@
+#ifndef PROFILEDIRTUXTYPE_H
+#define PROFILEDIRTUXTYPE_H
+
+#include "profileDir.h"
+#include "libtux4kidsadmin_tuxtype_global.h"
+
+class ProfileDirTuxtypePrivate;
+
+class LIBTUX4KIDSADMIN_TUXTYPE_SHARED_EXPORT ProfileDirTuxtype : public ProfileDir
+{
+	Q_OBJECT
+public:
+	ProfileDirTuxtype(QString path, QObject *parent = 0);
+	~ProfileDirTuxtype();
+protected:
+	ProfileDirTuxtype(ProfileDirTuxtypePrivate &dd, QObject *parent);
+
+private:
+	Q_DECLARE_PRIVATE(ProfileDirTuxtype)
+	Q_DISABLE_COPY(ProfileDirTuxtype)
+};
+
+#endif // PROFILEDIRTUXTYPE_H

Added: tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype_p.h
===================================================================
--- tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype_p.h	                        (rev 0)
+++ tux4kids-admin/trunk/libtux4kidsadmin_tuxtype/profileDirTuxtype_p.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,15 @@
+#ifndef PROFILEDIRTUXTYPEPRIVATE_H
+#define PROFILEDIRTUXTYPEPRIVATE_H
+
+#include "profileDir_p.h"
+
+class ProfileDirTuxtypePrivate : public ProfileDirPrivate
+{
+public:
+	Q_DECLARE_PUBLIC(ProfileDir)
+
+	ProfileDirTuxtypePrivate(QString path);
+	virtual ~ProfileDirTuxtypePrivate();
+};
+
+#endif // PROFILEDIRTUXTYPEPRIVATE_H

Modified: tux4kids-admin/trunk/tux4kids-admin/CMakeLists.txt
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/CMakeLists.txt	2009-07-15 21:32:45 UTC (rev 1215)
+++ tux4kids-admin/trunk/tux4kids-admin/CMakeLists.txt	2009-07-15 21:37:18 UTC (rev 1216)
@@ -3,6 +3,7 @@
 add_subdirectory( src/ )
 add_subdirectory( plugins/dummy/ )
 add_subdirectory( plugins/tuxmathPlugin )
+add_subdirectory( plugins/tuxtypePlugin )
 
 find_package( Qt4 REQUIRED )
 #INCLUDE_DIRECTORIES( tux4kids-admin/plugins ../libtux4kidsadmin_tuxmath ../libtux4kidsadmin )

Added: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/CMakeLists.txt
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/CMakeLists.txt	                        (rev 0)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/CMakeLists.txt	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,31 @@
+PROJECT(tuxtypePlugin)
+cmake_minimum_required(VERSION 2.6)
+
+SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/../ )
+SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/../ )
+
+# enable warnings
+ADD_DEFINITIONS(-Wall -DQT_PLUGIN -DQT_SHARED)
+#ADD_DEFINITIONS(-DQT_NO_DEBUG)
+
+SET(TUXTYPE_PLUGIN_MOC_HEADERS 
+	tuxtypePlugin.h
+	tuxtypeMainWidget.h )
+
+SET(TUXTYPE_PLUGIN_SOURCES 
+	tuxtypePlugin.cpp 
+	tuxtypeMainWidget.cpp )
+
+SET(TUXTYPE_PLUGIN_UIS 
+	tuxtypeMainWidget.ui )
+
+FIND_PACKAGE( Qt4 REQUIRED )
+INCLUDE( ${QT_USE_FILE} )
+INCLUDE_DIRECTORIES( ../ ../../../libtux4kidsadmin_tuxtype ../../../libtux4kidsadmin ${CMAKE_CURRENT_BINARY_DIR} )
+
+QT4_WRAP_UI( TUXTYPE_PLUGIN_UI_HEADERS ${TUXTYPE_PLUGIN_UIS} )
+QT4_WRAP_CPP( TUXTYPE_PLUGIN_MOC_SOURCES ${TUXTYPE_PLUGIN_MOC_HEADERS} )
+
+ADD_LIBRARY(TuxtypePlugin SHARED ${TUXTYPE_PLUGIN_MOC_SOURCES} ${TUXTYPE_PLUGIN_SOURCES} ${TUXTYPE_PLUGIN_UI_HEADERS} )
+TARGET_LINK_LIBRARIES( TuxtypePlugin ${QT_LIBRARIES} tux4kidsadmin_tuxtype tux4kidsadmin )
+

Added: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.cpp
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.cpp	                        (rev 0)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.cpp	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,14 @@
+#include "tuxtypeMainWidget.h"
+#include "ui_tuxtypeMainWidget.h"
+
+TuxtypeMainWidget::TuxtypeMainWidget(QWidget *parent) :
+		QWidget(parent),
+		m_ui(new Ui::TuxtypeMainWidget)
+{
+	m_ui->setupUi(this);
+}
+
+TuxtypeMainWidget::~TuxtypeMainWidget()
+{
+	delete m_ui;
+}

Added: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.h
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.h	                        (rev 0)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,22 @@
+#ifndef TUXTYPEMAINWIDGET_H
+#define TUXTYPEMAINWIDGET_H
+
+#include <QtGui/QWidget>
+
+namespace Ui {
+	class TuxtypeMainWidget;
+}
+
+class TuxtypeMainWidget : public QWidget {
+	Q_OBJECT
+	Q_DISABLE_COPY(TuxtypeMainWidget)
+public:
+	explicit TuxtypeMainWidget(QWidget *parent = 0);
+	virtual ~TuxtypeMainWidget();
+
+private:
+
+	Ui::TuxtypeMainWidget *m_ui;
+};
+
+#endif // TUXTYPEMAINWIDGET_H

Added: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.ui
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.ui	                        (rev 0)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypeMainWidget.ui	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>TuxtypeMainWidget</class>
+ <widget class="QWidget" name="TuxtypeMainWidget">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <widget class="QLabel" name="label">
+   <property name="geometry">
+    <rect>
+     <x>70</x>
+     <y>50</y>
+     <width>57</width>
+     <height>16</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>tuxtype</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

Added: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp	                        (rev 0)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.cpp	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,30 @@
+#include <QDebug>
+
+#include "tuxtypePlugin.h"
+
+TuxtypePlugin::TuxtypePlugin(QObject *parent) : QObject(parent)
+{
+	qDebug() << "tux type plugin constructed";
+}
+
+TuxtypePlugin::~TuxtypePlugin()
+{
+	qDebug() << "tux type plugin destroyed";
+}
+
+QString TuxtypePlugin::name() const
+{
+	return tr("tuxtype plugin");
+}
+
+QString TuxtypePlugin::version() const
+{
+	return "0.0.1";
+}
+
+QWidget *TuxtypePlugin::mainWidget()
+{
+	return m_mainWidget;
+}
+
+Q_EXPORT_PLUGIN2(TuxtypePlugin, TuxtypePlugin);

Added: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.h
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.h	                        (rev 0)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.h	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,23 @@
+#ifndef TUXTYPE_PLUGIN_H
+#define TUXTYPE_PLUGIN_H
+
+#include <QObject>
+
+#include "pluginInterface.h"
+
+class TuxtypePlugin : public QObject, PluginInterface
+{
+	Q_OBJECT
+	Q_INTERFACES(PluginInterface)
+
+public:
+	TuxtypePlugin(QObject *parent = 0);
+	~TuxtypePlugin();
+
+	QString name() const;
+	QString version() const;
+	QWidget *mainWidget();
+
+};
+
+#endif

Added: tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.pro
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.pro	                        (rev 0)
+++ tux4kids-admin/trunk/tux4kids-admin/plugins/tuxtypePlugin/tuxtypePlugin.pro	2009-07-15 21:37:18 UTC (rev 1216)
@@ -0,0 +1,15 @@
+TEMPLATE = lib
+CONFIG += plugin
+INCLUDEPATH += ../ \
+	       ../../../libtux4kidsadmin \
+	       ../../../libtux4kidsadmin_tuxtype
+HEADERS = tuxtypePlugin.h \
+    tuxtypeMainWidget.h
+SOURCES = tuxtypePlugin.cpp \
+    tuxtypeMainWidget.cpp
+TARGET = $$qtLibraryTarget(TuxtypePlugin)
+DESTDIR = ../
+FORMS += tuxtypeMainWidget.ui
+LIBS += -ltux4kidsadmin -L../../../libtux4kidsadmin
+LIBS += -ltux4kidsadmintuxtype -L../../../libtux4kidsadmin_tuxtype
+

Modified: tux4kids-admin/trunk/tux4kids-admin/tux4kids-admin.pro
===================================================================
--- tux4kids-admin/trunk/tux4kids-admin/tux4kids-admin.pro	2009-07-15 21:32:45 UTC (rev 1215)
+++ tux4kids-admin/trunk/tux4kids-admin/tux4kids-admin.pro	2009-07-15 21:37:18 UTC (rev 1216)
@@ -2,7 +2,8 @@
 
 SUBDIRS	= src \
     plugins/dummy \
-    plugins/tuxmathPlugin
+    plugins/tuxmathPlugin \
+    plugins/tuxtypePlugin
 
 TRANSLATIONS = translations/tux4kids-admin_pl.ts \
 




More information about the Tux4kids-commits mailing list