2012-12-11 12:22:43 +00:00
|
|
|
|
|
|
|
#include "subviews.hpp"
|
|
|
|
|
|
|
|
#include "../doc/subviewfactoryimp.hpp"
|
|
|
|
|
|
|
|
#include "tablesubview.hpp"
|
2012-12-13 12:35:08 +00:00
|
|
|
#include "dialoguesubview.hpp"
|
2012-12-11 12:22:43 +00:00
|
|
|
|
|
|
|
void CSVWorld::addSubViewFactories (CSVDoc::SubViewFactoryManager& manager)
|
|
|
|
{
|
2013-02-08 08:58:19 +00:00
|
|
|
manager.add (CSMWorld::UniversalId::Type_Gmsts,
|
|
|
|
new CSVDoc::SubViewFactoryWithCreateFlag<TableSubView> (false));
|
|
|
|
|
2013-03-21 13:31:32 +00:00
|
|
|
manager.add (CSMWorld::UniversalId::Type_Skills,
|
|
|
|
new CSVDoc::SubViewFactoryWithCreateFlag<TableSubView> (false));
|
|
|
|
|
2013-04-02 13:33:28 +00:00
|
|
|
static const CSMWorld::UniversalId::Type sTableTypes[] =
|
|
|
|
{
|
|
|
|
CSMWorld::UniversalId::Type_Globals,
|
|
|
|
CSMWorld::UniversalId::Type_Classes,
|
|
|
|
CSMWorld::UniversalId::Type_Factions,
|
2013-04-04 12:34:39 +00:00
|
|
|
CSMWorld::UniversalId::Type_Races,
|
2013-04-02 13:33:28 +00:00
|
|
|
|
|
|
|
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));
|
2013-03-25 12:22:06 +00:00
|
|
|
|
2013-04-02 10:00:45 +00:00
|
|
|
|
2013-03-25 12:22:06 +00:00
|
|
|
// manager.add (CSMWorld::UniversalId::Type_Global,
|
|
|
|
// new CSVDoc::SubViewFactoryWithCreateFlag<DialogueSubView> (true));
|
2012-12-11 12:22:43 +00:00
|
|
|
}
|