History

Merge branch 'master' of https://github.com/highfidelity/hifi

barnold1953 committed 12 years ago

Commit 5b366fe2 parents 97c0a2f 075861152 files · +1375 −142Browse files

Showing the changes to interface/src/Menu.cpp (1 of 52 files). Show all

Unified · Split

interface/src/Menu.cpp+11−0
@@ -37,6 +37,7 @@ · 36 unmodified lines
3737 #include "Menu.h"
3838 #include "scripting/MenuScriptingInterface.h"
3939 #include "Util.h"
40+#include "ui/AnimationsDialog.h"
4041 #include "ui/AttachmentsDialog.h"
4142 #include "ui/InfoView.h"
4243 #include "ui/MetavoxelEditor.h"
@@ -193,6 +194,7 @@ Menu::Menu() : · 150 unmodified lines
193194 QAction::PreferencesRole);
194195
195196 addActionToQMenuAndActionHash(editMenu, MenuOption::Attachments, 0, this, SLOT(editAttachments()));
197+ addActionToQMenuAndActionHash(editMenu, MenuOption::Animations, 0, this, SLOT(editAnimations()));
196198
197199 addDisabledActionAndSeparator(editMenu, "Physics");
198200 QObject* avatar = appInstance->getAvatar();
@@ -863,6 +865,15 @@ void Menu::editAttachments() { · 664 unmodified lines
863865 }
864866 }
865867
868+void Menu::editAnimations() {
869+ if (!_animationsDialog) {
870+ _animationsDialog = new AnimationsDialog();
871+ _animationsDialog->show();
872+ } else {
873+ _animationsDialog->close();
874+ }
875+}
876+
866877 void Menu::goToDomain(const QString newDomain) {
867878 if (NodeList::getInstance()->getDomainHandler().getHostname() != newDomain) {
868879 // send a node kill request, indicating to other clients that they should play the "disappeared" effect