/sw/bin/moc ./kis_multi_integer_filter_widget.h -o kis_multi_integer_filter_widget.moc
/bin/sh ../../../libtool --mode=compile --tag=CXX g++-3.3 -DHAVE_CONFIG_H -I. -I. -I../../.. -I./../ -I./../../core/ -I./../../core/color_strategy -I./../../core/resources -I./../../core/filters -I./../../core/compositeop -I./../../core/paintop -I./../../core/tool -I./../../core/tiles -I../../../lib/kofficeui -I../../../lib/kofficeui -I../../../lib/kofficecore -I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store -I../../../lib/kwmf -I../../../lib/kwmf -I../../../lib/interfaces -I../../../lib/kopainter -I../../../lib/kopainter -I/sw/include -I/sw/include/qt -I/usr/X11R6/include -I/sw/include -DQT_THREAD_SUPPORT -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/flex/include -fno-common -no-cpp-precomp -DMACOSX -DARTS_NO_ALARM -I/sw/include -I/usr/X11R6/include -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -Os -Os -fPIC -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_KNEWSTUFF -c -o kis_multi_integer_filter_widget.lo `test -f 'kis_multi_integer_filter_widget.cc' || echo './'`kis_multi_integer_filter_widget.cc
g++-3.3 -DHAVE_CONFIG_H -I. -I. -I../../.. -I./../ -I./../../core/ -I./../../core/color_strategy -I./../../core/resources -I./../../core/filters -I./../../core/compositeop -I./../../core/paintop -I./../../core/tool -I./../../core/tiles -I../../../lib/kofficeui -I../../../lib/kofficeui -I../../../lib/kofficecore -I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store -I../../../lib/kwmf -I../../../lib/kwmf -I../../../lib/interfaces -I../../../lib/kopainter -I../../../lib/kopainter -I/sw/include -I/sw/include/qt -I/usr/X11R6/include -I/sw/include -DQT_THREAD_SUPPORT -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/flex/include -fno-common -no-cpp-precomp -DMACOSX -DARTS_NO_ALARM -I/sw/include -I/usr/X11R6/include -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -Os -Os -fPIC -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_KNEWSTUFF -c kis_multi_integer_filter_widget.cc -fno-common -DPIC -o .libs/kis_multi_integer_filter_widget.o
distcc[29109] ERROR: compile /Users/ranger/.ccache/kis_multi_.tmp.g4.bastardville.29105.ii on localhost failed
In file included from ../../core/kis_filter_registry.h:27,
from ../../core/kis_filter.h:32,
from kis_multi_integer_filter_widget.cc:27:
../../core/kis_generic_registry.h:31: error: parse error before numeric
constant
../../core/kis_generic_registry.h:36: error: destructors must be member
functions
../../core/kis_generic_registry.h:36: error: virtual outside class declaration
../../core/kis_generic_registry.h:36: confused by earlier errors, bailing out
make: *** [kis_multi_integer_filter_widget.lo] Error 1#ifdef __APPLE__
/* work around a header bug on Mac OS X 10.3 */
#include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
#undef _T
#endif
#endif
# 31 "../../core/kis_generic_registry.h"
template<typename 0x00100000L>
class KisGenericRegistry {
typedef std::map<KisID, 0x00100000L> storageMap;
public:
KisGenericRegistry() { };#include <map>
#include <qstring.h>
#include <qstringlist.h>
#include <kdebug.h>
#include "kis_global.h"
#include "kis_id.h"
template<typename _T>
class KisGenericRegistry {
typedef std::map<KisID, _T> storageMap;
public:
KisGenericRegistry() { };
virtual ~KisGenericRegistry() { };
public:
void add(_T item)
{
m_storage.insert( typename storageMap::value_type( item->id(), item) );
}
void add(KisID id, _T item)
{
m_storage.insert(typename storageMap::value_type(id, item));
kdDebug(DBG_AREA_REGISTRY ) << "Added ID: " << id.id() << ", " << id.name() << "\n";
}
_T get(const KisID& name) const
{
_T p;
typename storageMap::const_iterator it = m_storage.find(name);
if (it != m_storage.end()) {
p = it -> second;
}
if (!p) {
kdDebug(DBG_AREA_REGISTRY) << "No item " << name.id() << ", " << name.name() << " found\n";
return 0;
}
return p;
}
/**
* Get a single entry based on the identifying part of KisID, not the
* the descriptive part.
*/
_T get(const QString& id) const
{
return get(KisID(id, ""));
}
bool exists(const KisID& id) const
{
typename storageMap::const_iterator it = m_storage.find(id);
return (it != m_storage.end());
}
bool exists(const QString& id) const
{
return exists(KisID(id, ""));
}
KisIDList listKeys() const
{
KisIDList list;
typename storageMap::const_iterator it = m_storage.begin();
typename storageMap::const_iterator endit = m_storage.end();
while( it != endit )
{
list.append(it->first);
++it;
}
return list;
}
protected:
KisGenericRegistry(const KisGenericRegistry&) { };
KisGenericRegistry operator=(const KisGenericRegistry&) { };
storageMap m_storage;
};
#endif