History

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

Brad Hefta-Gaub committed 10 years ago

Commit b0c286b2 parents 519a90f 202a45678 files · +2143 −1227Browse files

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

Unified · Split

interface/src/Menu.cpp+5−20
@@ -70,17 +70,9 @@ Menu::Menu() { · 69 unmodified lines
7070 dialogsManager.data(), &DialogsManager::toggleLoginDialog);
7171 }
7272
73− // File > Update -- FIXME: needs implementation
74− auto action = addActionToQMenuAndActionHash(fileMenu, "Update");
75− action->setDisabled(true);
76−
7773 // File > Help
7874 addActionToQMenuAndActionHash(fileMenu, MenuOption::Help, 0, qApp, SLOT(showHelp()));
7975
80− // File > Crash Reporter...-- FIXME: needs implementation
81− auto crashReporterAction = addActionToQMenuAndActionHash(fileMenu, "Crash Reporter...");
82− crashReporterAction->setDisabled(true);
83−
8476 // File > About
8577 addActionToQMenuAndActionHash(fileMenu, MenuOption::AboutApp, 0, qApp, SLOT(aboutApp()), QAction::AboutRole);
8678
@@ -167,7 +159,7 @@ Menu::Menu() { · 80 unmodified lines
167159 QObject* avatar = avatarManager->getMyAvatar();
168160
169161 // Avatar > Attachments...
170− action = addActionToQMenuAndActionHash(avatarMenu, MenuOption::Attachments);
162+ auto action = addActionToQMenuAndActionHash(avatarMenu, MenuOption::Attachments);
171163 connect(action, &QAction::triggered, [] {
172164 DependencyManager::get<OffscreenUi>()->show(QString("hifi/dialogs/AttachmentsDialog.qml"), "AttachmentsDialog");
173165 });
@@ -262,16 +254,10 @@ Menu::Menu() { · 88 unmodified lines
262254 // Navigate menu ----------------------------------
263255 MenuWrapper* navigateMenu = addMenu("Navigate");
264256
265− // Navigate > Home -- FIXME: needs implementation
266− auto homeAction = addActionToQMenuAndActionHash(navigateMenu, "Home");
267− homeAction->setDisabled(true);
268−
257+ // Navigate > Show Address Bar
269258 addActionToQMenuAndActionHash(navigateMenu, MenuOption::AddressBar, Qt::CTRL | Qt::Key_L,
270259 dialogsManager.data(), SLOT(toggleAddressBar()));
271260
272− // Navigate > Directory -- FIXME: needs implementation
273− addActionToQMenuAndActionHash(navigateMenu, "Directory");
274−
275261 // Navigate > Bookmark related menus -- Note: the Bookmark class adds its own submenus here.
276262 qApp->getBookmarks()->setupMenus(this, navigateMenu);
277263
@@ -302,20 +288,19 @@ Menu::Menu() { · 24 unmodified lines
302288 DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/GeneralPreferencesDialog.qml"), "GeneralPreferencesDialog");
303289 });
304290
305−
306− // Settings > Avatar...-- FIXME: needs implementation
291+ // Settings > Avatar...
307292 action = addActionToQMenuAndActionHash(settingsMenu, "Avatar...");
308293 connect(action, &QAction::triggered, [] {
309294 DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/AvatarPreferencesDialog.qml"), "AvatarPreferencesDialog");
310295 });
311296
312− // Settings > Audio...-- FIXME: needs implementation
297+ // Settings > Audio...
313298 action = addActionToQMenuAndActionHash(settingsMenu, "Audio...");
314299 connect(action, &QAction::triggered, [] {
315300 DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/AudioPreferencesDialog.qml"), "AudioPreferencesDialog");
316301 });
317302
318− // Settings > LOD...-- FIXME: needs implementation
303+ // Settings > LOD...
319304 action = addActionToQMenuAndActionHash(settingsMenu, "LOD...");
320305 connect(action, &QAction::triggered, [] {
321306 DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/LodPreferencesDialog.qml"), "LodPreferencesDialog");