forked from teamnwah/openmw-tes3coop
added subviews for resources tables
This commit is contained in:
parent
b2c957a56f
commit
19828df799
3 changed files with 83 additions and 0 deletions
|
@ -204,6 +204,32 @@ void CSVDoc::View::setupAssetsMenu()
|
|||
QAction *sounds = new QAction (tr ("Sounds"), this);
|
||||
connect (sounds, SIGNAL (triggered()), this, SLOT (addSoundsSubView()));
|
||||
assets->addAction (sounds);
|
||||
|
||||
assets->addSeparator(); // resources follow here
|
||||
|
||||
QAction *meshes = new QAction (tr ("Meshes"), this);
|
||||
connect (meshes, SIGNAL (triggered()), this, SLOT (addMeshesSubView()));
|
||||
assets->addAction (meshes);
|
||||
|
||||
QAction *icons = new QAction (tr ("Icons"), this);
|
||||
connect (icons, SIGNAL (triggered()), this, SLOT (addIconsSubView()));
|
||||
assets->addAction (icons);
|
||||
|
||||
QAction *musics = new QAction (tr ("Music"), this);
|
||||
connect (musics, SIGNAL (triggered()), this, SLOT (addMusicsSubView()));
|
||||
assets->addAction (musics);
|
||||
|
||||
QAction *soundsRes = new QAction (tr ("Sound Files"), this);
|
||||
connect (soundsRes, SIGNAL (triggered()), this, SLOT (addSoundsResSubView()));
|
||||
assets->addAction (soundsRes);
|
||||
|
||||
QAction *textures = new QAction (tr ("Textures"), this);
|
||||
connect (textures, SIGNAL (triggered()), this, SLOT (addTexturesSubView()));
|
||||
assets->addAction (textures);
|
||||
|
||||
QAction *videos = new QAction (tr ("Videos"), this);
|
||||
connect (videos, SIGNAL (triggered()), this, SLOT (addVideosSubView()));
|
||||
assets->addAction (videos);
|
||||
}
|
||||
|
||||
void CSVDoc::View::setupUi()
|
||||
|
@ -487,6 +513,36 @@ void CSVDoc::View::addBodyPartsSubView()
|
|||
addSubView (CSMWorld::UniversalId::Type_BodyParts);
|
||||
}
|
||||
|
||||
void CSVDoc::View::addMeshesSubView()
|
||||
{
|
||||
addSubView (CSMWorld::UniversalId::Type_Meshes);
|
||||
}
|
||||
|
||||
void CSVDoc::View::addIconsSubView()
|
||||
{
|
||||
addSubView (CSMWorld::UniversalId::Type_Icons);
|
||||
}
|
||||
|
||||
void CSVDoc::View::addMusicsSubView()
|
||||
{
|
||||
addSubView (CSMWorld::UniversalId::Type_Musics);
|
||||
}
|
||||
|
||||
void CSVDoc::View::addSoundsResSubView()
|
||||
{
|
||||
addSubView (CSMWorld::UniversalId::Type_SoundsRes);
|
||||
}
|
||||
|
||||
void CSVDoc::View::addTexturesSubView()
|
||||
{
|
||||
addSubView (CSMWorld::UniversalId::Type_Textures);
|
||||
}
|
||||
|
||||
void CSVDoc::View::addVideosSubView()
|
||||
{
|
||||
addSubView (CSMWorld::UniversalId::Type_Videos);
|
||||
}
|
||||
|
||||
void CSVDoc::View::abortOperation (int type)
|
||||
{
|
||||
mDocument->abortOperation (type);
|
||||
|
|
|
@ -182,6 +182,18 @@ namespace CSVDoc
|
|||
|
||||
void addBodyPartsSubView();
|
||||
|
||||
void addMeshesSubView();
|
||||
|
||||
void addIconsSubView();
|
||||
|
||||
void addMusicsSubView();
|
||||
|
||||
void addSoundsResSubView();
|
||||
|
||||
void addTexturesSubView();
|
||||
|
||||
void addVideosSubView();
|
||||
|
||||
void toggleShowStatusBar (bool show);
|
||||
|
||||
void loadErrorLog();
|
||||
|
|
|
@ -70,6 +70,21 @@ void CSVWorld::addSubViewFactories (CSVDoc::SubViewFactoryManager& manager)
|
|||
manager.add (CSMWorld::UniversalId::Type_JournalInfos,
|
||||
new CSVDoc::SubViewFactoryWithCreator<TableSubView, CreatorFactory<InfoCreator> > (false));
|
||||
|
||||
// Subviews for resources tables
|
||||
manager.add (CSMWorld::UniversalId::Type_Meshes,
|
||||
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
||||
manager.add (CSMWorld::UniversalId::Type_Icons,
|
||||
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
||||
manager.add (CSMWorld::UniversalId::Type_Musics,
|
||||
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
||||
manager.add (CSMWorld::UniversalId::Type_SoundsRes,
|
||||
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
||||
manager.add (CSMWorld::UniversalId::Type_Textures,
|
||||
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
||||
manager.add (CSMWorld::UniversalId::Type_Videos,
|
||||
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
||||
|
||||
|
||||
// Subviews for editing/viewing individual records
|
||||
manager.add (CSMWorld::UniversalId::Type_Script, new CSVDoc::SubViewFactory<ScriptSubView>);
|
||||
|
||||
|
|
Loading…
Reference in a new issue