|
|
|
@ -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);
|
|
|
|
|