mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
|
|
#include "subviews.hpp"
|
|
|
|
#include "../doc/subviewfactoryimp.hpp"
|
|
|
|
#include "tablesubview.hpp"
|
|
#include "dialoguesubview.hpp"
|
|
|
|
void CSVWorld::addSubViewFactories (CSVDoc::SubViewFactoryManager& manager)
|
|
{
|
|
manager.add (CSMWorld::UniversalId::Type_Gmsts,
|
|
new CSVDoc::SubViewFactoryWithCreateFlag<TableSubView> (false));
|
|
|
|
manager.add (CSMWorld::UniversalId::Type_Skills,
|
|
new CSVDoc::SubViewFactoryWithCreateFlag<TableSubView> (false));
|
|
|
|
static const CSMWorld::UniversalId::Type sTableTypes[] =
|
|
{
|
|
CSMWorld::UniversalId::Type_Globals,
|
|
CSMWorld::UniversalId::Type_Classes,
|
|
CSMWorld::UniversalId::Type_Factions,
|
|
CSMWorld::UniversalId::Type_Races,
|
|
CSMWorld::UniversalId::Type_Sounds,
|
|
CSMWorld::UniversalId::Type_Scripts,
|
|
CSMWorld::UniversalId::Type_Regions,
|
|
CSMWorld::UniversalId::Type_Birthsigns,
|
|
CSMWorld::UniversalId::Type_Spells,
|
|
|
|
CSMWorld::UniversalId::Type_None // end marker
|
|
};
|
|
|
|
for (int i=0; sTableTypes[i]!=CSMWorld::UniversalId::Type_None; ++i)
|
|
manager.add (sTableTypes[i], new CSVDoc::SubViewFactoryWithCreateFlag<TableSubView> (true));
|
|
|
|
|
|
// manager.add (CSMWorld::UniversalId::Type_Global,
|
|
// new CSVDoc::SubViewFactoryWithCreateFlag<DialogueSubView> (true));
|
|
} |