From 5159cd2beb2e87806a5b54e9991b7895285c9d3e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 01:04:16 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- tdecore/kconfig_compiler/example/Makefile.am | 27 --------- tdecore/kconfig_compiler/example/autoexample.cpp | 64 ---------------------- tdecore/kconfig_compiler/example/example.cpp | 52 ------------------ tdecore/kconfig_compiler/example/example.kcfg | 63 --------------------- .../example/exampleprefs_base.kcfgc | 18 ------ tdecore/kconfig_compiler/example/general_base.ui | 46 ---------------- tdecore/kconfig_compiler/example/myoptions_base.ui | 35 ------------ 7 files changed, 305 deletions(-) delete mode 100644 tdecore/kconfig_compiler/example/Makefile.am delete mode 100644 tdecore/kconfig_compiler/example/autoexample.cpp delete mode 100644 tdecore/kconfig_compiler/example/example.cpp delete mode 100644 tdecore/kconfig_compiler/example/example.kcfg delete mode 100644 tdecore/kconfig_compiler/example/exampleprefs_base.kcfgc delete mode 100644 tdecore/kconfig_compiler/example/general_base.ui delete mode 100644 tdecore/kconfig_compiler/example/myoptions_base.ui (limited to 'tdecore/kconfig_compiler/example') diff --git a/tdecore/kconfig_compiler/example/Makefile.am b/tdecore/kconfig_compiler/example/Makefile.am deleted file mode 100644 index 4e7a59fec..000000000 --- a/tdecore/kconfig_compiler/example/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -AM_CPPFLAGS = -I$(top_srcdir)/tdecore -I$(top_srcdir) $(all_includes) - -check_PROGRAMS = example # autoexample -EXTRA_PROGRAMS = autoexample - -example_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor -example_LDADD = $(LIB_TDECORE) -example_SOURCES = example.cpp exampleprefs_base.cpp - -autoexample_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor -autoexample_LDADD = $(LIB_TDECORE) $(LIB_TDEUI) -autoexample_SOURCES = exampleprefs_base.cpp general_base.ui myoptions_base.ui \ - autoexample.cpp - -example.o exampleprefs_base.o: exampleprefs_base.h -# avoid running the below command in parallel -exampleprefs_base.cpp: exampleprefs_base.h -exampleprefs_base.cpp exampleprefs_base.h: $(srcdir)/example.kcfg ../kconfig_compiler $(srcdir)/exampleprefs_base.kcfgc - ../kconfig_compiler $(srcdir)/example.kcfg $(srcdir)/exampleprefs_base.kcfgc - -METASOURCES = AUTO - -CLEANFILES = exampleprefs_base.h exampleprefs_base.cpp - -## The example's messages should not go into tdelibs.pot -messages: rc.cpp - true diff --git a/tdecore/kconfig_compiler/example/autoexample.cpp b/tdecore/kconfig_compiler/example/autoexample.cpp deleted file mode 100644 index 53e02f68d..000000000 --- a/tdecore/kconfig_compiler/example/autoexample.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/* - This file is part of KDE. - - Copyright (c) 2003 Cornelius Schumacher - - 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 "general_base.h" -#include "myoptions_base.h" - -#include "exampleprefs_base.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -int main( int argc, char **argv ) -{ - TDEAboutData aboutData( "example", I18N_NOOP("autoconfig example"), "0.1" ); - aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" ); - - TDECmdLineArgs::init( argc, argv, &aboutData ); - - TDEApplication app; - - ExamplePrefsBase configSkeleton( "dummy1", "dummy2" ); - configSkeleton.readConfig(); - - TDEConfigDialog *dialog = new TDEConfigDialog( 0, "settings", &configSkeleton ); - - GeneralBase *general = new GeneralBase( 0 ); - dialog->addPage( general, i18n("General"), "General", "" ); - - MyOptionsBase *myOptions = new MyOptionsBase( 0 ); - dialog->addPage( myOptions, i18n("MyOptions"), "MyOptions", "" ); - - app.setMainWidget( dialog ); - - dialog->show(); - - return app.exec(); -} diff --git a/tdecore/kconfig_compiler/example/example.cpp b/tdecore/kconfig_compiler/example/example.cpp deleted file mode 100644 index cf808c9b2..000000000 --- a/tdecore/kconfig_compiler/example/example.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* - This file is part of KDE. - - Copyright (c) 2003 Cornelius Schumacher - - 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 "exampleprefs_base.h" - -#include -#include -#include -#include -#include -#include -#include -#include - -int main( int argc, char **argv ) -{ - TDEAboutData aboutData( "example", I18N_NOOP("cfgc example"), "0.1" ); - aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" ); - - TDECmdLineArgs::init( argc, argv, &aboutData ); - - TDEApplication app; - - ExamplePrefsBase *prefs = new ExamplePrefsBase("Trans1", "Folder2"); - - prefs->readConfig(); - - prefs->setAnotherOption(17); - - kdWarning() << "Another Option = " << prefs->anotherOption() << endl; - kdWarning() << "Another Option2 = " << prefs->anotherOption2() << endl; - kdWarning() << "MyPaths = " << prefs->myPaths() << endl; - kdWarning() << "MyPaths2 = " << prefs->myPaths2() << endl; -} diff --git a/tdecore/kconfig_compiler/example/example.kcfg b/tdecore/kconfig_compiler/example/example.kcfg deleted file mode 100644 index 076bfb644..000000000 --- a/tdecore/kconfig_compiler/example/example.kcfg +++ /dev/null @@ -1,63 +0,0 @@ - - - qdir.h - - - - - - - - true - - - - 5 - - - - And this is a longer description of this option. Just wondering, how will the translations of those be handled? - - - - - - One - - - - - - Default String - - - - QDir::homeDirPath()+QString::fromLatin1(".hidden_file") - - - - /home,~ - - - - QStringList(QDir::homeDirPath()) - - - - 10 - - - up,down - - - - - 1 - - - diff --git a/tdecore/kconfig_compiler/example/exampleprefs_base.kcfgc b/tdecore/kconfig_compiler/example/exampleprefs_base.kcfgc deleted file mode 100644 index a9ac98dc7..000000000 --- a/tdecore/kconfig_compiler/example/exampleprefs_base.kcfgc +++ /dev/null @@ -1,18 +0,0 @@ -# Code generation options for kconfig_compiler -ClassName=ExamplePrefsBase -# -# Singleton=false -# -# Inherits=TDEConfigSkeleton -# -# IncludeFiles=libtdepim/kpimprefs.h -# -# MemberVariables=public -# -### The following line includes the file exampleprefs_base_addon.h -### It can be used to add extra functions and variables to the -### class. -# CustomAdditions=true -# -### Provide setFooBar(int) style functions -Mutators=true diff --git a/tdecore/kconfig_compiler/example/general_base.ui b/tdecore/kconfig_compiler/example/general_base.ui deleted file mode 100644 index 9b41370c7..000000000 --- a/tdecore/kconfig_compiler/example/general_base.ui +++ /dev/null @@ -1,46 +0,0 @@ - -GeneralBase - - - GeneralBase - - - - 0 - 0 - 600 - 486 - - - - AutoExampleDialog - - - - unnamed - - - - kcfg_OneOption - - - OneOption - - - - - kcfg_AnotherOption2 - - - - - textLabel1 - - - AnotherOption: - - - - - - diff --git a/tdecore/kconfig_compiler/example/myoptions_base.ui b/tdecore/kconfig_compiler/example/myoptions_base.ui deleted file mode 100644 index 3c0c2e6cb..000000000 --- a/tdecore/kconfig_compiler/example/myoptions_base.ui +++ /dev/null @@ -1,35 +0,0 @@ - -MyOptionsBase - - - MyOptionsBase - - - - 0 - 0 - 600 - 486 - - - - - unnamed - - - - textLabel1 - - - MyString: - - - - - kcfg_MyString - - - - - - -- cgit v1.2.1