diff --git a/cmd/macfe/include/Netscape_Constants.h b/cmd/macfe/include/Netscape_Constants.h index b8df09aa652..e69de29bb2d 100644 --- a/cmd/macfe/include/Netscape_Constants.h +++ b/cmd/macfe/include/Netscape_Constants.h @@ -1,174 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * - * The contents of this file are subject to the Netscape Public License - * Version 1.0 (the "NPL"); you may not use this file except in - * compliance with the NPL. You may obtain a copy of the NPL at - * http://www.mozilla.org/NPL/ - * - * Software distributed under the NPL is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL - * for the specific language governing rights and limitations under the - * NPL. - * - * The Initial Developer of this code under the NPL is Netscape - * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All Rights - * Reserved. - */ - -// ΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡ -// Browser_Constants.h -// ΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡ - -#pragma once - -#include // for MBAR_Initial - -// MenuBar MBAR ResIDT's -const ResIDT cBrowserMenubar = MBAR_Initial; -const ResIDT cEditorMenubar = 129; -const ResIDT cComposeMenubar = 132; -const ResIDT cBookmarksMenubar = 133; -const ResIDT cMinimalMenubar = 135; - -// Menu ResIDT's -//const ResIDT cDirectoryMenuID = 10; - -// WARNING: All other hierarchical menu IDs must be below 75 -// or bad things will happen! - -// Set aside 10 menu IDs for the Editor plugins hierarchical menus. -const ResIDT cEditorPluginsFirstHierMenuID = 75; -const ResIDT cEditorPluginsLastHierMenuID = 84; - -// Set aside 150 menu IDs for the Bookmarks hierarchical menus. -// (That's 85 to 235 inclusive minus menu ID 128 for the "Apple" menu.) -const ResIDT cBookmarksFirstHierMenuID = 85; -const ResIDT cBookmarksLastHierMenuID = 235; - -// Reserve this range for bookmark menus -const CommandT BOOKMARKS_MENU_BASE = 3050; -const CommandT BOOKMARKS_MENU_BASE_LAST = 3999; - -const ResIDT cHistoryMenuID = 303; -const ResIDT cBookmarksMenuID = 304; -const ResIDT cWindowMenuID = 305; -const ResIDT cToolsMenuID = 405; -const ResIDT cFontMenuID = 13; - -// Browser mediated window types -typedef enum { - WindowType_Browser = 'Brwz', - WindowType_Download = 'Down', - WindowType_NavCenter = 'NavW', - WindowType_Editor = 'Edit', - WindowType_Compose = 'Comp', - WindowType_Progress = 'Prog', - WindowType_NameCompletion = 'NmPk', - WindowType_OfflinePicker = 'OfPk' -} NetscapeWindowT; - -// Browser File Menu cmd id's -const CommandT cmd_OpenURL = 1032; - -// Browser Go Menu cmd id's -const CommandT cmd_GoForward = 1005; -const CommandT cmd_GoBack = 1006; -const CommandT cmd_Home = 1009; - -// other cmd id's -const CommandT cmd_PageServices = 1195; - -// -// NavCenter XP menu commands. -// -// These constants can be computed by doing -// cmd_NavCenterBase + (corresponding HT command) -// but since we need to know the exact command number to put in constructor, I think -// it's clearer to just hardcode the constants in this file. -// -// To get the HT command back from the corresponding command id, just subtract off -// cmd_NavCenterBase. -// -const CommandT cmd_NavCenterBase = 5000; - -const CommandT cmd_NCOpen = 5001; -const CommandT cmd_NCOpenFile = 5002; -const CommandT cmd_NCPrint = 5003; -const CommandT cmd_NCOpenNewWindow = 5004; -const CommandT cmd_NCOpenComposer = 5005; -const CommandT cmd_NCOpenAsWorkspace = 5006; -const CommandT cmd_NCNewItem = 5007; -const CommandT cmd_NCNewFolder = 5008; -const CommandT cmd_NCNewSeparator = 5009; -const CommandT cmd_NCMakeAlias = 5010; -const CommandT cmd_NCAddToBookmarks = 5011; -const CommandT cmd_NCSaveAs = 5012; -const CommandT cmd_NCCreateShortcut = 5013; -const CommandT cmd_NCSetToolbarFolder = 5014; -const CommandT cmd_NCSetBMMenu = 5015; -const CommandT cmd_NCSetNewBMFolder = 5016; -const CommandT cmd_NCCut = 5017; -const CommandT cmd_NCCopy = 5018; -const CommandT cmd_NCPaste = 5019; -const CommandT cmd_NCDeleteFile = 5020; -const CommandT cmd_NCDeleteFolder = 5021; -const CommandT cmd_NCRevealInFinder = 5022; -const CommandT cmd_NCGetInfo = 5023; -const CommandT cmd_NCCopyLinkLocation = 5024; -const CommandT cmd_NCNewPane = 5025; -const CommandT cmd_NCRenamePane = 5026; -const CommandT cmd_NCDeletePane = 5027; -const CommandT cmd_NCFind = 5050; // find in workspace - -const CommandT cmd_NavCenterCap = 5099; - -const CommandT cmd_AddToBookmarks = 'AddB'; -const CommandT cmd_SortBookmarks = 'SrtB'; - -const CommandT cmd_AboutPlugins = 1191; -const CommandT cmd_LaunchImportModule = 1063; -const CommandT cmd_MailDocument = 1190; // Send Page/Frame -const CommandT cmd_ReloadFrame = 1192; -const CommandT cmd_FTPUpload = 1193; -const CommandT cmd_SecurityInfo = 1194; -const CommandT cmd_GetInfo = 'Info'; -const CommandT cmd_OpenSelectionNewWindow = 1161; // probably not needed -const CommandT cmd_OpenSelection = 1166 ; // probably not needed - -const MessageT msg_SigFile = 430; -const MessageT msg_Browse = 1200; -const MessageT msg_FolderChanged = 1201; -const MessageT msg_ClearDiskCache = 1202; - -const MessageT msg_Help = 'help'; // help button clicked -const MessageT msg_SubmitText = 'subT'; // Return hit in edit field, 'this' is ioParam -const MessageT msg_SubmitButton = 'subB'; // Submit button pressed -const MessageT msg_ResetButton = 'Rset'; // Form reset button pressed - -const MessageT msg_ChangeFontSize = -15381; - - -// Clicks -enum EClickKind { - eWaiting, // Uninitialized - eNone, // No anchors - eTextAnchor, // Plain text anchor - eImageAnchor, // Image that is a simple anchor - eImageIsmap, // Image that is ISMAP - eImageForm, // Image that is an ISMAP form - eImageIcon, // Image that is an icon (delayed) - eImageAltText, // Alt text part of the image - eEdge // Edge -}; - -enum EClickState { - eMouseUndefined = 0, - eMouseDragging = 1, - eMouseTimeout, - eMouseUpEarly, - eMouseHandledByAttachment, - eMouseWasCommandClick -}; - -const Int16 kMouseHysteresis = 6; diff --git a/cmd/macfe/include/resgui.h b/cmd/macfe/include/resgui.h index 75d27812c8c..b9056992b49 100644 --- a/cmd/macfe/include/resgui.h +++ b/cmd/macfe/include/resgui.h @@ -75,18 +75,13 @@ #define cmd_Preferences 1001 #define cmd_EditNetwork 1002 // Edit Network Prefs #define cmd_EditSecurity 1003 // Edit Security Prefs -#define cmd_Reload 1004 // Reload the URL in the top window -//#define cmd_GoForward 1005 // Go forward -#define cmd_Back 1006 // Go back #define cmd_ViewSource 1007 // View source. Handled by hyperWindow #define cmd_MailTo 1008 // Mail to -//#define cmd_Home 1009 // Go home #define cmd_DelayImages 1010 // Delay image loading #define cmd_LoadImages 1011 // Load all images #define cmd_ReloadImage 1013 // Reload images #define cmd_Find 1014 // Find #define cmd_FindAgain 1015 // Find again -#define cmd_Stop 1016 #define cmd_ToggleToolbar 1017 #define cmd_ToggleLocationBar 1018 // The 4.0 and later terminology #define cmd_TogglePersonalToolbar 1199 @@ -116,8 +111,6 @@ #define cmd_NewFolder 1048 -#define cmd_NetSearch 1080 - #ifdef FORTEZZA #define cmd_FortezzaCard 1095 #define cmd_FortezzaChange 1096