mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-26 03:11:30 +00:00
fixed eol-style
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@21 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
a083be01aa
commit
d549cd09c5
5 changed files with 349 additions and 349 deletions
|
@ -1,82 +1,82 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2003 Reed Mideke.
|
Copyright (C) 2003 Reed Mideke.
|
||||||
|
|
||||||
This file is part of GtkRadiant.
|
This file is part of GtkRadiant.
|
||||||
|
|
||||||
GtkRadiant is free software; you can redistribute it and/or modify
|
GtkRadiant is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
GtkRadiant is distributed in the hope that it will be useful,
|
GtkRadiant is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GtkRadiant; if not, write to the Free Software
|
along with GtkRadiant; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//
|
//
|
||||||
// bkgrnd2d Plugin
|
// bkgrnd2d Plugin
|
||||||
//
|
//
|
||||||
// Code by reyalP aka Reed Mideke
|
// Code by reyalP aka Reed Mideke
|
||||||
//
|
//
|
||||||
// Based on spritemodel source code by hydra
|
// Based on spritemodel source code by hydra
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
|
|
||||||
class CBackgroundImage {
|
class CBackgroundImage {
|
||||||
private:
|
private:
|
||||||
qtexture_t *m_tex;
|
qtexture_t *m_tex;
|
||||||
VIEWTYPE m_vt;
|
VIEWTYPE m_vt;
|
||||||
|
|
||||||
// which components of a vec3_t correspond to x and y in the image
|
// which components of a vec3_t correspond to x and y in the image
|
||||||
unsigned m_ix,m_iy;
|
unsigned m_ix,m_iy;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CBackgroundImage(VIEWTYPE vt);
|
CBackgroundImage(VIEWTYPE vt);
|
||||||
// ~CBackgroundImage();
|
// ~CBackgroundImage();
|
||||||
|
|
||||||
float m_alpha; // vertex alpha
|
float m_alpha; // vertex alpha
|
||||||
bool m_bActive;
|
bool m_bActive;
|
||||||
|
|
||||||
// x and y axis are in relation to the screen, not world, making rendering
|
// x and y axis are in relation to the screen, not world, making rendering
|
||||||
// the same for each view type. Whoever sets them is responsible for
|
// the same for each view type. Whoever sets them is responsible for
|
||||||
// shuffling.
|
// shuffling.
|
||||||
// units are world units.
|
// units are world units.
|
||||||
// TODO should be private
|
// TODO should be private
|
||||||
float m_xmin,m_ymin,m_xmax,m_ymax;
|
float m_xmin,m_ymin,m_xmax,m_ymax;
|
||||||
|
|
||||||
// load file, create new tex, cleanup old tex, set new tex
|
// load file, create new tex, cleanup old tex, set new tex
|
||||||
bool Load(const char *filename);
|
bool Load(const char *filename);
|
||||||
void Cleanup(); // free texture, free tex, set make tex NULL
|
void Cleanup(); // free texture, free tex, set make tex NULL
|
||||||
bool SetExtentsMM(); // set extents by ET mapcoordsmaxs/mapcoordsmins
|
bool SetExtentsMM(); // set extents by ET mapcoordsmaxs/mapcoordsmins
|
||||||
bool SetExtentsSel(); // set extents by selection
|
bool SetExtentsSel(); // set extents by selection
|
||||||
void Render();
|
void Render();
|
||||||
bool Valid() { return (m_tex && (m_xmin != m_xmax) && (m_ymin != m_ymax)); }
|
bool Valid() { return (m_tex && (m_xmin != m_xmax) && (m_ymin != m_ymax)); }
|
||||||
};
|
};
|
||||||
|
|
||||||
class CBackgroundRender : public IGL2DWindow {
|
class CBackgroundRender : public IGL2DWindow {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
CBackgroundRender();
|
CBackgroundRender();
|
||||||
virtual ~CBackgroundRender();
|
virtual ~CBackgroundRender();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int refCount;
|
int refCount;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// IGL2DWindow IGL3DWindow interface
|
// IGL2DWindow IGL3DWindow interface
|
||||||
void IncRef() { refCount++; }
|
void IncRef() { refCount++; }
|
||||||
void DecRef() { refCount--; if (refCount <= 0) delete this; }
|
void DecRef() { refCount--; if (refCount <= 0) delete this; }
|
||||||
void Draw2D( VIEWTYPE vt );
|
void Draw2D( VIEWTYPE vt );
|
||||||
void Register();
|
void Register();
|
||||||
};
|
};
|
||||||
|
|
||||||
extern CBackgroundImage backgroundXY,backgroundXZ,backgroundYZ;
|
extern CBackgroundImage backgroundXY,backgroundXZ,backgroundYZ;
|
||||||
extern CBackgroundRender render;
|
extern CBackgroundRender render;
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2003 Reed Mideke.
|
Copyright (C) 2003 Reed Mideke.
|
||||||
|
|
||||||
This file is part of GtkRadiant.
|
This file is part of GtkRadiant.
|
||||||
|
|
||||||
GtkRadiant is free software; you can redistribute it and/or modify
|
GtkRadiant is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
GtkRadiant is distributed in the hope that it will be useful,
|
GtkRadiant is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GtkRadiant; if not, write to the Free Software
|
along with GtkRadiant; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//
|
//
|
||||||
// bkgrnd2d Plugin dialog box
|
// bkgrnd2d Plugin dialog box
|
||||||
//
|
//
|
||||||
// Code by reyalP aka Reed Mideke
|
// Code by reyalP aka Reed Mideke
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef _BKGRND2D_DIALOG_H_
|
#ifndef _BKGRND2D_DIALOG_H_
|
||||||
#define _BKGRND2D_DIALOG_H_
|
#define _BKGRND2D_DIALOG_H_
|
||||||
|
|
||||||
void InitBackgroundDialog();
|
void InitBackgroundDialog();
|
||||||
void ShowBackgroundDialog();
|
void ShowBackgroundDialog();
|
||||||
void ShowBackgroundDialogPG(int page);
|
void ShowBackgroundDialogPG(int page);
|
||||||
|
|
||||||
#endif // _BKGRND2D_DIALOG_H_
|
#endif // _BKGRND2D_DIALOG_H_
|
||||||
|
|
|
@ -1,79 +1,79 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2003 Reed Mideke.
|
Copyright (C) 2003 Reed Mideke.
|
||||||
|
|
||||||
This file is part of GtkRadiant.
|
This file is part of GtkRadiant.
|
||||||
|
|
||||||
GtkRadiant is free software; you can redistribute it and/or modify
|
GtkRadiant is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
GtkRadiant is distributed in the hope that it will be useful,
|
GtkRadiant is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GtkRadiant; if not, write to the Free Software
|
along with GtkRadiant; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//
|
//
|
||||||
// bkgrnd2d Plugin
|
// bkgrnd2d Plugin
|
||||||
//
|
//
|
||||||
// Code by reyalP aka Reed Mideke
|
// Code by reyalP aka Reed Mideke
|
||||||
//
|
//
|
||||||
// Based on spritemodel source code by hydra
|
// Based on spritemodel source code by hydra
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef _PLUGIN_H_
|
#ifndef _PLUGIN_H_
|
||||||
#define _PLUGIN_H_
|
#define _PLUGIN_H_
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\todo need general notice about lib purpose etc.
|
\todo need general notice about lib purpose etc.
|
||||||
and the external dependencies (such as GLib, STL, mathlib etc.)
|
and the external dependencies (such as GLib, STL, mathlib etc.)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
// for CPtrArray for idata.h
|
// for CPtrArray for idata.h
|
||||||
#include "missing.h"
|
#include "missing.h"
|
||||||
|
|
||||||
#include "synapse.h"
|
#include "synapse.h"
|
||||||
#include "iplugin.h"
|
#include "iplugin.h"
|
||||||
#include "itoolbar.h"
|
#include "itoolbar.h"
|
||||||
#define USE_QERTABLE_DEFINE
|
#define USE_QERTABLE_DEFINE
|
||||||
#include "qerplugin.h"
|
#include "qerplugin.h"
|
||||||
#include "igl.h"
|
#include "igl.h"
|
||||||
#include "ifilesystem.h"
|
#include "ifilesystem.h"
|
||||||
#include "ientity.h"
|
#include "ientity.h"
|
||||||
#include "idata.h"
|
#include "idata.h"
|
||||||
|
|
||||||
// verbose messages
|
// verbose messages
|
||||||
#define BKGRND2D_DEBUG
|
#define BKGRND2D_DEBUG
|
||||||
|
|
||||||
extern _QERFuncTable_1 g_FuncTable;
|
extern _QERFuncTable_1 g_FuncTable;
|
||||||
extern _QERQglTable g_QglTable;
|
extern _QERQglTable g_QglTable;
|
||||||
extern _QERFileSystemTable g_FileSystemTable;
|
extern _QERFileSystemTable g_FileSystemTable;
|
||||||
extern _QEREntityTable g_EntityTable;
|
extern _QEREntityTable g_EntityTable;
|
||||||
extern _QERAppDataTable g_DataTable;
|
extern _QERAppDataTable g_DataTable;
|
||||||
extern void *g_pMainWidget;
|
extern void *g_pMainWidget;
|
||||||
|
|
||||||
extern CSynapseServer* g_pSynapseServer;
|
extern CSynapseServer* g_pSynapseServer;
|
||||||
|
|
||||||
class CSynapseClientBkgrnd2d : public CSynapseClient
|
class CSynapseClientBkgrnd2d : public CSynapseClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// CSynapseClient API
|
// CSynapseClient API
|
||||||
bool RequestAPI(APIDescriptor_t *pAPI);
|
bool RequestAPI(APIDescriptor_t *pAPI);
|
||||||
const char* GetInfo();
|
const char* GetInfo();
|
||||||
const char* GetName();
|
const char* GetName();
|
||||||
|
|
||||||
CSynapseClientBkgrnd2d() { }
|
CSynapseClientBkgrnd2d() { }
|
||||||
virtual ~CSynapseClientBkgrnd2d() { }
|
virtual ~CSynapseClientBkgrnd2d() { }
|
||||||
};
|
};
|
||||||
#define MSG_PREFIX "bkgrnd2d: "
|
#define MSG_PREFIX "bkgrnd2d: "
|
||||||
#define MSG_WARN "bkgrnd2d WARNING: "
|
#define MSG_WARN "bkgrnd2d WARNING: "
|
||||||
#define BKGRND2D_MINOR "bkgrnd2d"
|
#define BKGRND2D_MINOR "bkgrnd2d"
|
||||||
#define FILETYPE_KEY "bkgrnd2d"
|
#define FILETYPE_KEY "bkgrnd2d"
|
||||||
|
|
||||||
#endif // _PLUGIN_H_
|
#endif // _PLUGIN_H_
|
||||||
|
|
|
@ -236,4 +236,4 @@ namespace std
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,152 +1,152 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2001-2006, William Joseph.
|
Copyright (C) 2001-2006, William Joseph.
|
||||||
All Rights Reserved.
|
All Rights Reserved.
|
||||||
|
|
||||||
This file is part of GtkRadiant.
|
This file is part of GtkRadiant.
|
||||||
|
|
||||||
GtkRadiant is free software; you can redistribute it and/or modify
|
GtkRadiant is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
GtkRadiant is distributed in the hope that it will be useful,
|
GtkRadiant is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GtkRadiant; if not, write to the Free Software
|
along with GtkRadiant; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(INCLUDED_MODULESYSTEM_MODULESMAP_H)
|
#if !defined(INCLUDED_MODULESYSTEM_MODULESMAP_H)
|
||||||
#define INCLUDED_MODULESYSTEM_MODULESMAP_H
|
#define INCLUDED_MODULESYSTEM_MODULESMAP_H
|
||||||
|
|
||||||
#include "modulesystem.h"
|
#include "modulesystem.h"
|
||||||
#include "string/string.h"
|
#include "string/string.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
class ModulesMap : public Modules<Type>
|
class ModulesMap : public Modules<Type>
|
||||||
{
|
{
|
||||||
typedef std::map<CopiedString, Module*> modules_t;
|
typedef std::map<CopiedString, Module*> modules_t;
|
||||||
modules_t m_modules;
|
modules_t m_modules;
|
||||||
public:
|
public:
|
||||||
~ModulesMap()
|
~ModulesMap()
|
||||||
{
|
{
|
||||||
for(modules_t::iterator i = m_modules.begin(); i != m_modules.end(); ++i)
|
for(modules_t::iterator i = m_modules.begin(); i != m_modules.end(); ++i)
|
||||||
{
|
{
|
||||||
(*i).second->release();
|
(*i).second->release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef modules_t::const_iterator iterator;
|
typedef modules_t::const_iterator iterator;
|
||||||
|
|
||||||
iterator begin() const
|
iterator begin() const
|
||||||
{
|
{
|
||||||
return m_modules.begin();
|
return m_modules.begin();
|
||||||
}
|
}
|
||||||
iterator end() const
|
iterator end() const
|
||||||
{
|
{
|
||||||
return m_modules.end();
|
return m_modules.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
void insert(const char* name, Module& module)
|
void insert(const char* name, Module& module)
|
||||||
{
|
{
|
||||||
module.capture();
|
module.capture();
|
||||||
if(globalModuleServer().getError())
|
if(globalModuleServer().getError())
|
||||||
{
|
{
|
||||||
module.release();
|
module.release();
|
||||||
globalModuleServer().setError(false);
|
globalModuleServer().setError(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_modules.insert(modules_t::value_type(name, &module));
|
m_modules.insert(modules_t::value_type(name, &module));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Type* find(const char* name)
|
Type* find(const char* name)
|
||||||
{
|
{
|
||||||
modules_t::iterator i = m_modules.find(name);
|
modules_t::iterator i = m_modules.find(name);
|
||||||
if(i != m_modules.end())
|
if(i != m_modules.end())
|
||||||
{
|
{
|
||||||
return static_cast<Type*>(Module_getTable(*(*i).second));
|
return static_cast<Type*>(Module_getTable(*(*i).second));
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Type* findModule(const char* name)
|
Type* findModule(const char* name)
|
||||||
{
|
{
|
||||||
return find(name);
|
return find(name);
|
||||||
}
|
}
|
||||||
void foreachModule(typename Modules<Type>::Visitor& visitor)
|
void foreachModule(typename Modules<Type>::Visitor& visitor)
|
||||||
{
|
{
|
||||||
for(modules_t::iterator i = m_modules.begin(); i != m_modules.end(); ++i)
|
for(modules_t::iterator i = m_modules.begin(); i != m_modules.end(); ++i)
|
||||||
{
|
{
|
||||||
visitor.visit((*i).first.c_str(), *static_cast<const Type*>(Module_getTable(*(*i).second)));
|
visitor.visit((*i).first.c_str(), *static_cast<const Type*>(Module_getTable(*(*i).second)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
class InsertModules : public ModuleServer::Visitor
|
class InsertModules : public ModuleServer::Visitor
|
||||||
{
|
{
|
||||||
ModulesMap<Type>& m_modules;
|
ModulesMap<Type>& m_modules;
|
||||||
public:
|
public:
|
||||||
InsertModules(ModulesMap<Type>& modules)
|
InsertModules(ModulesMap<Type>& modules)
|
||||||
: m_modules(modules)
|
: m_modules(modules)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void visit(const char* name, Module& module)
|
void visit(const char* name, Module& module)
|
||||||
{
|
{
|
||||||
m_modules.insert(name, module);
|
m_modules.insert(name, module);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
class ModulesRef
|
class ModulesRef
|
||||||
{
|
{
|
||||||
ModulesMap<Type> m_modules;
|
ModulesMap<Type> m_modules;
|
||||||
public:
|
public:
|
||||||
ModulesRef(const char* names)
|
ModulesRef(const char* names)
|
||||||
{
|
{
|
||||||
if(!globalModuleServer().getError())
|
if(!globalModuleServer().getError())
|
||||||
{
|
{
|
||||||
if(string_equal(names, "*"))
|
if(string_equal(names, "*"))
|
||||||
{
|
{
|
||||||
InsertModules<Type> visitor(m_modules);
|
InsertModules<Type> visitor(m_modules);
|
||||||
globalModuleServer().foreachModule(typename Type::Name(), typename Type::Version(), visitor);
|
globalModuleServer().foreachModule(typename Type::Name(), typename Type::Version(), visitor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StringTokeniser tokeniser(names);
|
StringTokeniser tokeniser(names);
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
const char* name = tokeniser.getToken();
|
const char* name = tokeniser.getToken();
|
||||||
if(string_empty(name))
|
if(string_empty(name))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Module* module = globalModuleServer().findModule(typename Type::Name(), typename Type::Version(), name);
|
Module* module = globalModuleServer().findModule(typename Type::Name(), typename Type::Version(), name);
|
||||||
if(module == 0)
|
if(module == 0)
|
||||||
{
|
{
|
||||||
globalModuleServer().setError(true);
|
globalModuleServer().setError(true);
|
||||||
globalErrorStream() << "ModulesRef::initialise: type=" << makeQuoted(typename Type::Name()) << " version=" << makeQuoted(typename Type::Version()) << " name=" << makeQuoted(name) << " - not found\n";
|
globalErrorStream() << "ModulesRef::initialise: type=" << makeQuoted(typename Type::Name()) << " version=" << makeQuoted(typename Type::Version()) << " name=" << makeQuoted(name) << " - not found\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_modules.insert(name, *module);
|
m_modules.insert(name, *module);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ModulesMap<Type>& get()
|
ModulesMap<Type>& get()
|
||||||
{
|
{
|
||||||
return m_modules;
|
return m_modules;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue