Showing the changes to interface/src/Menu.cpp (1 of 78 files). Show all
Unified · Split
| @@ -70,17 +70,9 @@ Menu::Menu() { · 69 unmodified lines | ||
| 70 | 70 | dialogsManager.data(), &DialogsManager::toggleLoginDialog); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | − // File > Update -- FIXME: needs implementation | |
| 74 | − auto action = addActionToQMenuAndActionHash(fileMenu, "Update"); | |
| 75 | − action->setDisabled(true); | |
| 76 | − | |
| 77 | 73 | // File > Help |
| 78 | 74 | addActionToQMenuAndActionHash(fileMenu, MenuOption::Help, 0, qApp, SLOT(showHelp())); |
| 79 | 75 | |
| 80 | − // File > Crash Reporter...-- FIXME: needs implementation | |
| 81 | − auto crashReporterAction = addActionToQMenuAndActionHash(fileMenu, "Crash Reporter..."); | |
| 82 | − crashReporterAction->setDisabled(true); | |
| 83 | − | |
| 84 | 76 | // File > About |
| 85 | 77 | addActionToQMenuAndActionHash(fileMenu, MenuOption::AboutApp, 0, qApp, SLOT(aboutApp()), QAction::AboutRole); |
| 86 | 78 | |
| @@ -167,7 +159,7 @@ Menu::Menu() { · 80 unmodified lines | ||
| 167 | 159 | QObject* avatar = avatarManager->getMyAvatar(); |
| 168 | 160 | |
| 169 | 161 | // Avatar > Attachments... |
| 170 | − action = addActionToQMenuAndActionHash(avatarMenu, MenuOption::Attachments); | |
| 162 | + auto action = addActionToQMenuAndActionHash(avatarMenu, MenuOption::Attachments); | |
| 171 | 163 | connect(action, &QAction::triggered, [] { |
| 172 | 164 | DependencyManager::get<OffscreenUi>()->show(QString("hifi/dialogs/AttachmentsDialog.qml"), "AttachmentsDialog"); |
| 173 | 165 | }); |
| @@ -262,16 +254,10 @@ Menu::Menu() { · 88 unmodified lines | ||
| 262 | 254 | // Navigate menu ---------------------------------- |
| 263 | 255 | MenuWrapper* navigateMenu = addMenu("Navigate"); |
| 264 | 256 | |
| 265 | − // Navigate > Home -- FIXME: needs implementation | |
| 266 | − auto homeAction = addActionToQMenuAndActionHash(navigateMenu, "Home"); | |
| 267 | − homeAction->setDisabled(true); | |
| 268 | − | |
| 257 | + // Navigate > Show Address Bar | |
| 269 | 258 | addActionToQMenuAndActionHash(navigateMenu, MenuOption::AddressBar, Qt::CTRL | Qt::Key_L, |
| 270 | 259 | dialogsManager.data(), SLOT(toggleAddressBar())); |
| 271 | 260 | |
| 272 | − // Navigate > Directory -- FIXME: needs implementation | |
| 273 | − addActionToQMenuAndActionHash(navigateMenu, "Directory"); | |
| 274 | − | |
| 275 | 261 | // Navigate > Bookmark related menus -- Note: the Bookmark class adds its own submenus here. |
| 276 | 262 | qApp->getBookmarks()->setupMenus(this, navigateMenu); |
| 277 | 263 | |
| @@ -302,20 +288,19 @@ Menu::Menu() { · 24 unmodified lines | ||
| 302 | 288 | DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/GeneralPreferencesDialog.qml"), "GeneralPreferencesDialog"); |
| 303 | 289 | }); |
| 304 | 290 | |
| 305 | − | |
| 306 | − // Settings > Avatar...-- FIXME: needs implementation | |
| 291 | + // Settings > Avatar... | |
| 307 | 292 | action = addActionToQMenuAndActionHash(settingsMenu, "Avatar..."); |
| 308 | 293 | connect(action, &QAction::triggered, [] { |
| 309 | 294 | DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/AvatarPreferencesDialog.qml"), "AvatarPreferencesDialog"); |
| 310 | 295 | }); |
| 311 | 296 | |
| 312 | − // Settings > Audio...-- FIXME: needs implementation | |
| 297 | + // Settings > Audio... | |
| 313 | 298 | action = addActionToQMenuAndActionHash(settingsMenu, "Audio..."); |
| 314 | 299 | connect(action, &QAction::triggered, [] { |
| 315 | 300 | DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/AudioPreferencesDialog.qml"), "AudioPreferencesDialog"); |
| 316 | 301 | }); |
| 317 | 302 | |
| 318 | − // Settings > LOD...-- FIXME: needs implementation | |
| 303 | + // Settings > LOD... | |
| 319 | 304 | action = addActionToQMenuAndActionHash(settingsMenu, "LOD..."); |
| 320 | 305 | connect(action, &QAction::triggered, [] { |
| 321 | 306 | DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/LodPreferencesDialog.qml"), "LodPreferencesDialog"); |