mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
restructured main menu
This commit is contained in:
parent
2497c18702
commit
0fad2e7f40
@ -84,50 +84,10 @@ void CSVDoc::View::setupWorldMenu()
|
|||||||
{
|
{
|
||||||
QMenu *world = menuBar()->addMenu (tr ("&World"));
|
QMenu *world = menuBar()->addMenu (tr ("&World"));
|
||||||
|
|
||||||
QAction *globals = new QAction (tr ("Globals"), this);
|
|
||||||
connect (globals, SIGNAL (triggered()), this, SLOT (addGlobalsSubView()));
|
|
||||||
world->addAction (globals);
|
|
||||||
|
|
||||||
QAction *gmsts = new QAction (tr ("Game settings"), this);
|
|
||||||
connect (gmsts, SIGNAL (triggered()), this, SLOT (addGmstsSubView()));
|
|
||||||
world->addAction (gmsts);
|
|
||||||
|
|
||||||
QAction *skills = new QAction (tr ("Skills"), this);
|
|
||||||
connect (skills, SIGNAL (triggered()), this, SLOT (addSkillsSubView()));
|
|
||||||
world->addAction (skills);
|
|
||||||
|
|
||||||
QAction *classes = new QAction (tr ("Classes"), this);
|
|
||||||
connect (classes, SIGNAL (triggered()), this, SLOT (addClassesSubView()));
|
|
||||||
world->addAction (classes);
|
|
||||||
|
|
||||||
QAction *factions = new QAction (tr ("Factions"), this);
|
|
||||||
connect (factions, SIGNAL (triggered()), this, SLOT (addFactionsSubView()));
|
|
||||||
world->addAction (factions);
|
|
||||||
|
|
||||||
QAction *races = new QAction (tr ("Races"), this);
|
|
||||||
connect (races, SIGNAL (triggered()), this, SLOT (addRacesSubView()));
|
|
||||||
world->addAction (races);
|
|
||||||
|
|
||||||
QAction *sounds = new QAction (tr ("Sounds"), this);
|
|
||||||
connect (sounds, SIGNAL (triggered()), this, SLOT (addSoundsSubView()));
|
|
||||||
world->addAction (sounds);
|
|
||||||
|
|
||||||
QAction *scripts = new QAction (tr ("Scripts"), this);
|
|
||||||
connect (scripts, SIGNAL (triggered()), this, SLOT (addScriptsSubView()));
|
|
||||||
world->addAction (scripts);
|
|
||||||
|
|
||||||
QAction *regions = new QAction (tr ("Regions"), this);
|
QAction *regions = new QAction (tr ("Regions"), this);
|
||||||
connect (regions, SIGNAL (triggered()), this, SLOT (addRegionsSubView()));
|
connect (regions, SIGNAL (triggered()), this, SLOT (addRegionsSubView()));
|
||||||
world->addAction (regions);
|
world->addAction (regions);
|
||||||
|
|
||||||
QAction *birthsigns = new QAction (tr ("Birthsigns"), this);
|
|
||||||
connect (birthsigns, SIGNAL (triggered()), this, SLOT (addBirthsignsSubView()));
|
|
||||||
world->addAction (birthsigns);
|
|
||||||
|
|
||||||
QAction *spells = new QAction (tr ("Spells"), this);
|
|
||||||
connect (spells, SIGNAL (triggered()), this, SLOT (addSpellsSubView()));
|
|
||||||
world->addAction (spells);
|
|
||||||
|
|
||||||
QAction *cells = new QAction (tr ("Cells"), this);
|
QAction *cells = new QAction (tr ("Cells"), this);
|
||||||
connect (cells, SIGNAL (triggered()), this, SLOT (addCellsSubView()));
|
connect (cells, SIGNAL (triggered()), this, SLOT (addCellsSubView()));
|
||||||
world->addAction (cells);
|
world->addAction (cells);
|
||||||
@ -140,17 +100,71 @@ void CSVDoc::View::setupWorldMenu()
|
|||||||
connect (references, SIGNAL (triggered()), this, SLOT (addReferencesSubView()));
|
connect (references, SIGNAL (triggered()), this, SLOT (addReferencesSubView()));
|
||||||
world->addAction (references);
|
world->addAction (references);
|
||||||
|
|
||||||
|
world->addSeparator(); // items that don't represent single record lists follow here
|
||||||
|
|
||||||
QAction *regionMap = new QAction (tr ("Region Map"), this);
|
QAction *regionMap = new QAction (tr ("Region Map"), this);
|
||||||
connect (regionMap, SIGNAL (triggered()), this, SLOT (addRegionMapSubView()));
|
connect (regionMap, SIGNAL (triggered()), this, SLOT (addRegionMapSubView()));
|
||||||
world->addAction (regionMap);
|
world->addAction (regionMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVDoc::View::setupMechanicsMenu()
|
||||||
|
{
|
||||||
|
QMenu *mechanics = menuBar()->addMenu (tr ("&Mechanics"));
|
||||||
|
|
||||||
|
QAction *globals = new QAction (tr ("Globals"), this);
|
||||||
|
connect (globals, SIGNAL (triggered()), this, SLOT (addGlobalsSubView()));
|
||||||
|
mechanics->addAction (globals);
|
||||||
|
|
||||||
|
QAction *gmsts = new QAction (tr ("Game settings"), this);
|
||||||
|
connect (gmsts, SIGNAL (triggered()), this, SLOT (addGmstsSubView()));
|
||||||
|
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);
|
||||||
|
connect (scripts, SIGNAL (triggered()), this, SLOT (addScriptsSubView()));
|
||||||
|
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);
|
||||||
|
connect (spells, SIGNAL (triggered()), this, SLOT (addSpellsSubView()));
|
||||||
|
mechanics->addAction (spells);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CSVDoc::View::setupAssetsMenu()
|
||||||
|
{
|
||||||
|
QMenu *assets = menuBar()->addMenu (tr ("&Assets"));
|
||||||
|
|
||||||
|
QAction *sounds = new QAction (tr ("Sounds"), this);
|
||||||
|
connect (sounds, SIGNAL (triggered()), this, SLOT (addSoundsSubView()));
|
||||||
|
assets->addAction (sounds);
|
||||||
|
}
|
||||||
|
|
||||||
void CSVDoc::View::setupUi()
|
void CSVDoc::View::setupUi()
|
||||||
{
|
{
|
||||||
setupFileMenu();
|
setupFileMenu();
|
||||||
setupEditMenu();
|
setupEditMenu();
|
||||||
setupViewMenu();
|
setupViewMenu();
|
||||||
setupWorldMenu();
|
setupWorldMenu();
|
||||||
|
setupMechanicsMenu();
|
||||||
|
setupAssetsMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVDoc::View::updateTitle()
|
void CSVDoc::View::updateTitle()
|
||||||
|
@ -60,6 +60,10 @@ namespace CSVDoc
|
|||||||
|
|
||||||
void setupWorldMenu();
|
void setupWorldMenu();
|
||||||
|
|
||||||
|
void setupMechanicsMenu();
|
||||||
|
|
||||||
|
void setupAssetsMenu();
|
||||||
|
|
||||||
void setupUi();
|
void setupUi();
|
||||||
|
|
||||||
void updateTitle();
|
void updateTitle();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user