forked from mirror/openmw-tes3mp
Merged merge request !18
This commit is contained in:
commit
dd08194c75
3 changed files with 31 additions and 2 deletions
|
@ -55,7 +55,8 @@
|
|||
Bug #4475: Scripted animations should not cause movement
|
||||
Bug #4479: "Game" category on Advanced page is getting too long
|
||||
Bug #4480: Segfalt in QuickKeysMenu when item no longer in inventory
|
||||
Feature #2606: Implemented (optional) case sensitive global search
|
||||
Bug #4110: Fixed undo / redo menu text losing the assigned shortcuts
|
||||
Feature #2606: Editor: Implemented (optional) case sensitive global search
|
||||
Feature #3276: Editor: Search- Show number of (remaining) search results and indicate a search without any results
|
||||
Feature #3641: Editor: Limit FPS in 3d preview window
|
||||
Feature #4222: 360° screenshots
|
||||
|
|
|
@ -101,15 +101,39 @@ void CSVDoc::View::setupFileMenu()
|
|||
file->addAction(exit);
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
void updateUndoRedoAction(QAction *action, const std::string &settingsKey)
|
||||
{
|
||||
QKeySequence seq;
|
||||
CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq);
|
||||
action->setShortcut(seq);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CSVDoc::View::undoActionChanged()
|
||||
{
|
||||
updateUndoRedoAction(mUndo, "document-edit-undo");
|
||||
}
|
||||
|
||||
void CSVDoc::View::redoActionChanged()
|
||||
{
|
||||
updateUndoRedoAction(mRedo, "document-edit-redo");
|
||||
}
|
||||
|
||||
void CSVDoc::View::setupEditMenu()
|
||||
{
|
||||
QMenu *edit = menuBar()->addMenu (tr ("Edit"));
|
||||
|
||||
mUndo = mDocument->getUndoStack().createUndoAction (this, tr("Undo"));
|
||||
setupShortcut("document-edit-undo", mUndo);
|
||||
connect(mUndo, SIGNAL (changed ()), this, SLOT (undoActionChanged ()));
|
||||
edit->addAction (mUndo);
|
||||
|
||||
mRedo= mDocument->getUndoStack().createRedoAction (this, tr("Redo"));
|
||||
mRedo = mDocument->getUndoStack().createRedoAction (this, tr("Redo"));
|
||||
connect(mRedo, SIGNAL (changed ()), this, SLOT (redoActionChanged ()));
|
||||
setupShortcut("document-edit-redo", mRedo);
|
||||
edit->addAction (mRedo);
|
||||
|
||||
|
|
|
@ -152,6 +152,10 @@ namespace CSVDoc
|
|||
|
||||
void settingChanged (const CSMPrefs::Setting *setting);
|
||||
|
||||
void undoActionChanged();
|
||||
|
||||
void redoActionChanged();
|
||||
|
||||
void newView();
|
||||
|
||||
void save();
|
||||
|
|
Loading…
Reference in a new issue