mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
splitting off characters menu from mechanics menu (was getting too big)
This commit is contained in:
parent
3b85d97087
commit
88e09159c4
@ -136,41 +136,46 @@ void CSVDoc::View::setupMechanicsMenu()
|
|||||||
connect (gmsts, SIGNAL (triggered()), this, SLOT (addGmstsSubView()));
|
connect (gmsts, SIGNAL (triggered()), this, SLOT (addGmstsSubView()));
|
||||||
mechanics->addAction (gmsts);
|
mechanics->addAction (gmsts);
|
||||||
|
|
||||||
QAction *skills = new QAction (tr ("Skills"), this);
|
|
||||||
connect (skills, SIGNAL (triggered()), this, SLOT (addSkillsSubView()));
|
|
||||||
mechanics->addAction (skills);
|
|
||||||
|
|
||||||
QAction *classes = new QAction (tr ("Classes"), this);
|
|
||||||
connect (classes, SIGNAL (triggered()), this, SLOT (addClassesSubView()));
|
|
||||||
mechanics->addAction (classes);
|
|
||||||
|
|
||||||
QAction *factions = new QAction (tr ("Factions"), this);
|
|
||||||
connect (factions, SIGNAL (triggered()), this, SLOT (addFactionsSubView()));
|
|
||||||
mechanics->addAction (factions);
|
|
||||||
|
|
||||||
QAction *races = new QAction (tr ("Races"), this);
|
|
||||||
connect (races, SIGNAL (triggered()), this, SLOT (addRacesSubView()));
|
|
||||||
mechanics->addAction (races);
|
|
||||||
|
|
||||||
QAction *scripts = new QAction (tr ("Scripts"), this);
|
QAction *scripts = new QAction (tr ("Scripts"), this);
|
||||||
connect (scripts, SIGNAL (triggered()), this, SLOT (addScriptsSubView()));
|
connect (scripts, SIGNAL (triggered()), this, SLOT (addScriptsSubView()));
|
||||||
mechanics->addAction (scripts);
|
mechanics->addAction (scripts);
|
||||||
|
|
||||||
QAction *birthsigns = new QAction (tr ("Birthsigns"), this);
|
|
||||||
connect (birthsigns, SIGNAL (triggered()), this, SLOT (addBirthsignsSubView()));
|
|
||||||
mechanics->addAction (birthsigns);
|
|
||||||
|
|
||||||
QAction *spells = new QAction (tr ("Spells"), this);
|
QAction *spells = new QAction (tr ("Spells"), this);
|
||||||
connect (spells, SIGNAL (triggered()), this, SLOT (addSpellsSubView()));
|
connect (spells, SIGNAL (triggered()), this, SLOT (addSpellsSubView()));
|
||||||
mechanics->addAction (spells);
|
mechanics->addAction (spells);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CSVDoc::View::setupCharacterMenu()
|
||||||
|
{
|
||||||
|
QMenu *characters = menuBar()->addMenu (tr ("Characters"));
|
||||||
|
|
||||||
|
QAction *skills = new QAction (tr ("Skills"), this);
|
||||||
|
connect (skills, SIGNAL (triggered()), this, SLOT (addSkillsSubView()));
|
||||||
|
characters->addAction (skills);
|
||||||
|
|
||||||
|
QAction *classes = new QAction (tr ("Classes"), this);
|
||||||
|
connect (classes, SIGNAL (triggered()), this, SLOT (addClassesSubView()));
|
||||||
|
characters->addAction (classes);
|
||||||
|
|
||||||
|
QAction *factions = new QAction (tr ("Factions"), this);
|
||||||
|
connect (factions, SIGNAL (triggered()), this, SLOT (addFactionsSubView()));
|
||||||
|
characters->addAction (factions);
|
||||||
|
|
||||||
|
QAction *races = new QAction (tr ("Races"), this);
|
||||||
|
connect (races, SIGNAL (triggered()), this, SLOT (addRacesSubView()));
|
||||||
|
characters->addAction (races);
|
||||||
|
|
||||||
|
QAction *birthsigns = new QAction (tr ("Birthsigns"), this);
|
||||||
|
connect (birthsigns, SIGNAL (triggered()), this, SLOT (addBirthsignsSubView()));
|
||||||
|
characters->addAction (birthsigns);
|
||||||
|
|
||||||
QAction *topics = new QAction (tr ("Topics"), this);
|
QAction *topics = new QAction (tr ("Topics"), this);
|
||||||
connect (topics, SIGNAL (triggered()), this, SLOT (addTopicsSubView()));
|
connect (topics, SIGNAL (triggered()), this, SLOT (addTopicsSubView()));
|
||||||
mechanics->addAction (topics);
|
characters->addAction (topics);
|
||||||
|
|
||||||
QAction *journals = new QAction (tr ("Journals"), this);
|
QAction *journals = new QAction (tr ("Journals"), this);
|
||||||
connect (journals, SIGNAL (triggered()), this, SLOT (addJournalsSubView()));
|
connect (journals, SIGNAL (triggered()), this, SLOT (addJournalsSubView()));
|
||||||
mechanics->addAction (journals);
|
characters->addAction (journals);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVDoc::View::setupAssetsMenu()
|
void CSVDoc::View::setupAssetsMenu()
|
||||||
@ -189,6 +194,7 @@ void CSVDoc::View::setupUi()
|
|||||||
setupViewMenu();
|
setupViewMenu();
|
||||||
setupWorldMenu();
|
setupWorldMenu();
|
||||||
setupMechanicsMenu();
|
setupMechanicsMenu();
|
||||||
|
setupCharacterMenu();
|
||||||
setupAssetsMenu();
|
setupAssetsMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,6 +63,8 @@ namespace CSVDoc
|
|||||||
|
|
||||||
void setupMechanicsMenu();
|
void setupMechanicsMenu();
|
||||||
|
|
||||||
|
void setupCharacterMenu();
|
||||||
|
|
||||||
void setupAssetsMenu();
|
void setupAssetsMenu();
|
||||||
|
|
||||||
void setupUi();
|
void setupUi();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user