2017-10-17 05:12:35 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
public enum MenuRole
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The undo
|
|
|
|
|
|
/// </summary>
|
2020-02-07 14:38:33 -05:00
|
|
|
|
undo = 1,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The redo
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
redo,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The cut
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
cut,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The copy
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
copy,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The paste
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
paste,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// The pasteAndMatchStyle
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
pasteAndMatchStyle,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// The selectAll
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
selectAll,
|
2017-10-24 21:43:27 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The delete
|
|
|
|
|
|
/// </summary>
|
2017-10-17 05:12:35 +02:00
|
|
|
|
delete,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Minimize current window
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
minimize,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Close current window
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
close,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Quit the application
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
quit,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Reload the current window
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
reload,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Reload the current window ignoring the cache.
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
forceReload,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle developer tools in the current window
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
toggleDevTools,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle full screen mode on the current window
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
togglefullscreen,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Reset the focused page’s zoom level to the original size
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
resetZoom,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Zoom in the focused page by 10%
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
zoomIn,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Zoom out the focused page by 10%
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
zoomOut,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Whole default “Edit” menu (Undo, Copy, etc.)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
editMenu,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Whole default “Window” menu (Minimize, Close, etc.)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
windowMenu,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the orderFrontStandardAboutPanel action
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
about,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the hide action
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
hide,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the hideOtherApplications action
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
hideOthers,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the unhideAllApplications action
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
unhide,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the startSpeaking action
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
startSpeaking,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the stopSpeaking action
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
stopSpeaking,
|
2017-10-17 05:12:35 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the arrangeInFront action
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
front,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: Map to the performZoom action
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
zoom,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: The submenu is a “Window” menu
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
window,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: The submenu is a “Help” menu
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
help,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Only macOS: The submenu is a “Services” menu
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
services,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle built-in spellchecker.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
toggleSpellChecker,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The submenu is a "File" menu.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
fileMenu,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The submenu is a "View" menu.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
viewMenu,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The application menu.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
appMenu,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The submenu is a "Share" menu.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
shareMenu,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Displays a list of files recently opened by the app.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
recentDocuments,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Clear the recent documents list.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
clearRecentDocuments,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle the tab bar (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
toggleTabBar,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Select the next tab (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
selectNextTab,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Select the previous tab (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
selectPreviousTab,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Show all tabs (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
showAllTabs,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Merge all windows (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
mergeAllWindows,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Move the current tab to a new window (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
moveTabToNewWindow,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Show substitutions panel (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
showSubstitutions,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle smart quotes (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
toggleSmartQuotes,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle smart dashes (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
toggleSmartDashes,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Toggle text replacement (macOS).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
toggleTextReplacement,
|
|
|
|
|
|
|
|
|
|
|
|
// Backwards-compatibility aliases (old identifiers) to avoid breaking existing code.
|
|
|
|
|
|
// These map to the same enum values as their official values.
|
|
|
|
|
|
pasteandmatchstyle = pasteAndMatchStyle,
|
|
|
|
|
|
selectall = selectAll,
|
|
|
|
|
|
forcereload = forceReload,
|
|
|
|
|
|
toggledevtools = toggleDevTools,
|
|
|
|
|
|
resetzoom = resetZoom,
|
|
|
|
|
|
zoomin = zoomIn,
|
|
|
|
|
|
zoomout = zoomOut,
|
|
|
|
|
|
hideothers = hideOthers,
|
|
|
|
|
|
startspeaking = startSpeaking,
|
|
|
|
|
|
stopspeaking = stopSpeaking,
|
|
|
|
|
|
togglespellchecker = toggleSpellChecker,
|
|
|
|
|
|
togglesmartquotes = toggleSmartQuotes,
|
|
|
|
|
|
togglesmartdashes = toggleSmartDashes,
|
|
|
|
|
|
toggletextreplacement = toggleTextReplacement
|
2017-10-17 05:12:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|