Changeset 74941 in webkit
- Timestamp:
- Jan 3, 2011 3:42:33 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r74934 r74941 1 2011-01-03 Yi Shen <yi.4.shen@nokia.com> 2 3 Reviewed by Adam Barth. 4 5 [Qt] Add SelectAll option to the context menu for the editor 6 https://bugs.webkit.org/show_bug.cgi?id=50049 7 8 Set shortcut for the SelectAll action. 9 10 * QtTestBrowser/mainwindow.cpp: 11 (MainWindow::buildUI): 12 1 13 2011-01-03 David Levin <levin@chromium.org> 2 14 -
trunk/Tools/QtTestBrowser/mainwindow.cpp
r72671 r74941 96 96 page()->action(QWebPage::Copy)->setShortcut(QKeySequence::Copy); 97 97 page()->action(QWebPage::Paste)->setShortcut(QKeySequence::Paste); 98 page()->action(QWebPage::SelectAll)->setShortcut(QKeySequence::SelectAll); 98 99 99 100 page()->action(QWebPage::ToggleBold)->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_B)); -
trunk/WebCore/ChangeLog
r74937 r74941 1 2011-01-03 Yi Shen <yi.4.shen@nokia.com> 2 3 Reviewed by Adam Barth. 4 5 [Qt] Add SelectAll option to the context menu for the editor 6 https://bugs.webkit.org/show_bug.cgi?id=50049 7 8 Enable SelectAll for the Qt context menu. 9 10 * page/ContextMenuController.cpp: 11 (WebCore::ContextMenuController::populate): 12 * platform/ContextMenuItem.h: 13 * platform/LocalizationStrategy.h: 14 * platform/LocalizedStrings.cpp: 15 (WebCore::contextMenuItemTagSelectAll): 16 * platform/LocalizedStrings.h: 17 1 18 2011-01-03 Dan Bernstein <mitz@apple.com> 2 19 -
trunk/WebCore/page/ContextMenuController.cpp
r74877 r74941 681 681 #if PLATFORM(GTK) 682 682 ContextMenuItem DeleteItem(ActionType, ContextMenuItemTagDelete, contextMenuItemTagDelete()); 683 #endif 684 #if PLATFORM(GTK) || PLATFORM(QT) 683 685 ContextMenuItem SelectAllItem(ActionType, ContextMenuItemTagSelectAll, contextMenuItemTagSelectAll()); 684 686 #endif … … 863 865 appendItem(DeleteItem, m_contextMenu.get()); 864 866 appendItem(*separatorItem(), m_contextMenu.get()); 867 #endif 868 #if PLATFORM(GTK) || PLATFORM(QT) 865 869 appendItem(SelectAllItem, m_contextMenu.get()); 866 870 #endif -
trunk/WebCore/platform/ContextMenuItem.h
r74208 r74941 77 77 #if PLATFORM(GTK) 78 78 ContextMenuItemTagDelete, 79 #endif 80 #if PLATFORM(GTK) || PLATFORM(QT) 79 81 ContextMenuItemTagSelectAll, 82 #endif 83 #if PLATFORM(GTK) 80 84 ContextMenuItemTagInputMethods, 81 85 ContextMenuItemTagUnicode, -
trunk/WebCore/platform/LocalizationStrategy.h
r67928 r74941 66 66 #if PLATFORM(GTK) 67 67 virtual String contextMenuItemTagDelete() = 0; 68 virtual String contextMenuItemTagSelectAll() = 0;69 68 virtual String contextMenuItemTagInputMethods() = 0; 70 69 virtual String contextMenuItemTagUnicode() = 0; 70 #endif 71 #if PLATFORM(GTK) || PLATFORM(QT) 72 virtual String contextMenuItemTagSelectAll() = 0; 71 73 #endif 72 74 virtual String contextMenuItemTagNoGuessesFound() = 0; -
trunk/WebCore/platform/LocalizedStrings.cpp
r72363 r74941 145 145 } 146 146 147 #if PLATFORM(QT) 148 String contextMenuItemTagSelectAll() 149 { 150 return platformStrategies()->localizationStrategy()->contextMenuItemTagSelectAll(); 151 } 152 #endif 153 147 154 String contextMenuItemTagNoGuessesFound() 148 155 { -
trunk/WebCore/platform/LocalizedStrings.h
r72363 r74941 62 62 #if PLATFORM(GTK) 63 63 String contextMenuItemTagDelete(); 64 String contextMenuItemTagSelectAll();65 64 String contextMenuItemTagInputMethods(); 66 65 String contextMenuItemTagUnicode(); 66 #endif 67 #if PLATFORM(GTK) || PLATFORM(QT) 68 String contextMenuItemTagSelectAll(); 67 69 #endif 68 70 String contextMenuItemTagNoGuessesFound(); -
trunk/WebKit/qt/Api/qwebpage.cpp
r74605 r74941 419 419 case WebCore::ContextMenuItemTagItalic: return QWebPage::ToggleItalic; 420 420 case WebCore::ContextMenuItemTagUnderline: return QWebPage::ToggleUnderline; 421 case WebCore::ContextMenuItemTagSelectAll: return QWebPage::SelectAll; 421 422 #if ENABLE(INSPECTOR) 422 423 case WebCore::ContextMenuItemTagInspectElement: return QWebPage::InspectElement; … … 2735 2736 text = contextMenuItemTagPaste(); 2736 2737 break; 2738 case SelectAll: 2739 text = contextMenuItemTagSelectAll(); 2740 break; 2737 2741 #ifndef QT_NO_UNDOSTACK 2738 2742 case Undo: { … … 2782 2786 case MoveToEndOfDocument: 2783 2787 text = tr("Move the cursor to the end of the document"); 2784 break;2785 case SelectAll:2786 text = tr("Select all");2787 2788 break; 2788 2789 case SelectNextChar: -
trunk/WebKit/qt/ChangeLog
r74932 r74941 1 2011-01-03 Yi Shen <yi.4.shen@nokia.com> 2 3 Reviewed by Adam Barth. 4 5 [Qt] Add SelectAll option to the context menu for the editor 6 https://bugs.webkit.org/show_bug.cgi?id=50049 7 8 Enable SelectAll for the Qt context menu. 9 10 * Api/qwebpage.cpp: 11 (webActionForContextMenuAction): 12 (QWebPage::action): 13 * WebCoreSupport/WebPlatformStrategies.cpp: 14 (WebPlatformStrategies::contextMenuItemTagSelectAll): 15 * WebCoreSupport/WebPlatformStrategies.h: 16 1 17 2011-01-03 Antonio Gomes <agomes@rim.com> 2 18 -
trunk/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp
r68039 r74941 289 289 { 290 290 return QCoreApplication::translate("QWebPage", "Paste", "Paste context menu item"); 291 } 292 293 String WebPlatformStrategies::contextMenuItemTagSelectAll() 294 { 295 return QCoreApplication::translate("QWebPage", "Select All", "Select All context menu item"); 291 296 } 292 297 -
trunk/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h
r68039 r74941 75 75 virtual WTF::String contextMenuItemTagCut(); 76 76 virtual WTF::String contextMenuItemTagPaste(); 77 virtual WTF::String contextMenuItemTagSelectAll(); 77 78 virtual WTF::String contextMenuItemTagNoGuessesFound(); 78 79 virtual WTF::String contextMenuItemTagIgnoreSpelling(); -
trunk/WebKit2/ChangeLog
r74893 r74941 1 2011-01-03 Yi Shen <yi.4.shen@nokia.com> 2 3 Reviewed by Adam Barth. 4 5 [Qt] Add SelectAll option to the context menu for the editor 6 https://bugs.webkit.org/show_bug.cgi?id=50049 7 8 Add WebPlatformStrategies::contextMenuItemTagSelectAll for Qt. 9 10 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: 11 (WebKit::WebPlatformStrategies::contextMenuItemTagSelectAll): 12 * WebProcess/WebCoreSupport/WebPlatformStrategies.h: 13 1 14 2011-01-03 Sam Weinig <sam@webkit.org> 2 15 -
trunk/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
r74654 r74941 303 303 } 304 304 305 String WebPlatformStrategies::contextMenuItemTagInputMethods() 306 { 307 notImplemented(); 308 return "Input Methods"; 309 } 310 311 String WebPlatformStrategies::contextMenuItemTagUnicode() 312 { 313 notImplemented(); 314 return "Unicode"; 315 } 316 317 #endif 318 319 #if PLATFORM(GTK) || PLATFORM(QT) 320 305 321 String WebPlatformStrategies::contextMenuItemTagSelectAll() 306 322 { 307 323 notImplemented(); 308 324 return "Select All"; 309 }310 311 String WebPlatformStrategies::contextMenuItemTagInputMethods()312 {313 notImplemented();314 return "Input Methods";315 }316 317 String WebPlatformStrategies::contextMenuItemTagUnicode()318 {319 notImplemented();320 return "Unicode";321 325 } 322 326 -
trunk/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h
r68038 r74941 79 79 #if PLATFORM(GTK) 80 80 virtual String contextMenuItemTagDelete(); 81 virtual String contextMenuItemTagSelectAll();82 81 virtual String contextMenuItemTagInputMethods(); 83 82 virtual String contextMenuItemTagUnicode(); 83 #endif 84 #if PLATFORM(GTK) || PLATFORM(QT) 85 virtual String contextMenuItemTagSelectAll(); 84 86 #endif 85 87 virtual String contextMenuItemTagNoGuessesFound();
Note: See TracChangeset
for help on using the changeset viewer.