1998-04-14 00:24:54 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; 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.
|
|
|
|
*/
|
|
|
|
#include "resources.h"
|
|
|
|
#include "jsconsres.h"
|
|
|
|
#include <winres.h>
|
|
|
|
|
|
|
|
|
|
|
|
VIEWER MENU DISCARDABLE
|
|
|
|
{
|
|
|
|
POPUP "&File"
|
|
|
|
{
|
1998-09-04 04:47:15 +04:00
|
|
|
MENUITEM "&New Window", VIEWER_WINDOW_OPEN
|
1998-04-14 00:24:54 +04:00
|
|
|
MENUITEM "&Open...", VIEWER_FILE_OPEN
|
1998-11-11 23:31:45 +03:00
|
|
|
MENUITEM "&ViewSource", VIEW_SOURCE
|
1998-04-14 00:24:54 +04:00
|
|
|
POPUP "&Samples"
|
|
|
|
{
|
|
|
|
MENUITEM "demo #0", VIEWER_DEMO0
|
|
|
|
MENUITEM "demo #1", VIEWER_DEMO1
|
|
|
|
MENUITEM "demo #2", VIEWER_DEMO2
|
|
|
|
MENUITEM "demo #3", VIEWER_DEMO3
|
|
|
|
MENUITEM "demo #4", VIEWER_DEMO4
|
|
|
|
MENUITEM "demo #5", VIEWER_DEMO5
|
|
|
|
MENUITEM "demo #6", VIEWER_DEMO6
|
|
|
|
MENUITEM "demo #7", VIEWER_DEMO7
|
|
|
|
MENUITEM "demo #8", VIEWER_DEMO8
|
1998-06-18 04:47:18 +04:00
|
|
|
MENUITEM "demo #9", VIEWER_DEMO9
|
1998-10-26 21:07:14 +03:00
|
|
|
MENUITEM "demo #10", VIEWER_DEMO10
|
1999-02-03 20:16:11 +03:00
|
|
|
MENUITEM "demo #11", VIEWER_DEMO11
|
|
|
|
MENUITEM "demo #12", VIEWER_DEMO12
|
1999-01-15 04:31:39 +03:00
|
|
|
}
|
1998-11-25 23:28:27 +03:00
|
|
|
MENUITEM "&Test Sites", VIEWER_TOP100
|
1999-03-05 23:18:25 +03:00
|
|
|
POPUP "XPToolkit Tests"
|
1998-04-14 00:24:54 +04:00
|
|
|
{
|
1999-03-05 23:18:25 +03:00
|
|
|
MENUITEM "Toolbar Test 1", VIEWER_XPTOOLKITTOOLBAR1
|
1999-03-10 01:06:38 +03:00
|
|
|
MENUITEM "Tree Test 1", VIEWER_XPTOOLKITTREE1
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
1999-01-15 04:31:39 +03:00
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Print &Preview", VIEWER_ONE_COLUMN
|
1998-11-14 04:58:34 +03:00
|
|
|
MENUITEM "Print", VIEWER_PRINT
|
1998-12-17 18:52:48 +03:00
|
|
|
MENUITEM "Print Setup", VIEWER_PRINT_SETUP
|
|
|
|
MENUITEM SEPARATOR
|
1998-04-14 00:24:54 +04:00
|
|
|
MENUITEM "&Exit", VIEWER_EXIT
|
|
|
|
}
|
1998-05-08 19:06:41 +04:00
|
|
|
POPUP "&Edit"
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "Cu&t", VIEWER_EDIT_CUT, GRAYED
|
|
|
|
MENUITEM "&Copy", VIEWER_EDIT_COPY
|
|
|
|
MENUITEM "&Paste", VIEWER_EDIT_PASTE, GRAYED
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Select &All", VIEWER_EDIT_SELECTALL, HELP
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "&Find in Page", VIEWER_EDIT_FINDINPAGE
|
1998-09-22 04:57:54 +04:00
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "P&refs", VIEWER_PREFS
|
1998-05-08 19:06:41 +04:00
|
|
|
END
|
1998-10-30 22:03:38 +03:00
|
|
|
#if defined(_DEBUG)
|
1998-04-14 00:24:54 +04:00
|
|
|
POPUP "&Debug"
|
|
|
|
{
|
|
|
|
MENUITEM "&Visual Debugging", VIEWER_VISUAL_DEBUGGING
|
|
|
|
MENUITEM "&Reflow Test", VIEWER_REFLOW_TEST
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Dump &Content", VIEWER_DUMP_CONTENT
|
|
|
|
MENUITEM "Dump &Frames", VIEWER_DUMP_FRAMES
|
|
|
|
MENUITEM "Dump &Views", VIEWER_DUMP_VIEWS
|
1998-05-19 01:12:19 +04:00
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Dump &Style Sheets", VIEWER_DUMP_STYLE_SHEETS
|
|
|
|
MENUITEM "Dump &Style Contexts", VIEWER_DUMP_STYLE_CONTEXTS
|
1998-05-14 22:25:17 +04:00
|
|
|
MENUITEM SEPARATOR
|
1998-06-06 01:07:20 +04:00
|
|
|
MENUITEM "Show Content Size", VIEWER_SHOW_CONTENT_SIZE
|
|
|
|
MENUITEM "Show Frame Size", VIEWER_SHOW_FRAME_SIZE
|
|
|
|
MENUITEM "Show Style Size", VIEWER_SHOW_STYLE_SIZE
|
|
|
|
MENUITEM SEPARATOR
|
1998-07-15 02:37:51 +04:00
|
|
|
MENUITEM "Debug Save", VIEWER_DEBUGSAVE
|
1999-03-05 00:50:44 +03:00
|
|
|
MENUITEM "Debug Display Text", VIEWER_DISPLAYTEXT
|
|
|
|
MENUITEM "Debug Display HTML", VIEWER_DISPLAYHTML
|
1998-07-27 22:17:07 +04:00
|
|
|
MENUITEM "Debug Toggle Selection", VIEWER_TOGGLE_SELECTION
|
1998-07-15 02:37:51 +04:00
|
|
|
MENUITEM SEPARATOR
|
1998-05-14 22:25:17 +04:00
|
|
|
MENUITEM "Debu&g Robot", VIEWER_DEBUGROBOT
|
1998-06-21 05:23:44 +04:00
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Show Content Quality", VIEWER_SHOW_CONTENT_QUALITY
|
1999-01-23 10:10:37 +03:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
POPUP "&Style"
|
|
|
|
{
|
|
|
|
POPUP "Select &Style Sheet"
|
|
|
|
{
|
|
|
|
MENUITEM "List Availabe Sheets", VIEWER_SELECT_STYLE_LIST
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Select Default", VIEWER_SELECT_STYLE_DEFAULT
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Select Alternate 1", VIEWER_SELECT_STYLE_ONE
|
|
|
|
MENUITEM "Select Alternate 2", VIEWER_SELECT_STYLE_TWO
|
|
|
|
MENUITEM "Select Alternate 3", VIEWER_SELECT_STYLE_THREE
|
|
|
|
MENUITEM "Select Alternate 4", VIEWER_SELECT_STYLE_FOUR
|
|
|
|
}
|
1998-09-24 04:21:20 +04:00
|
|
|
POPUP "&Compatibility Mode Pref"
|
1998-09-24 03:02:54 +04:00
|
|
|
{
|
|
|
|
MENUITEM "Nav Quirks", VIEWER_NAV_QUIRKS_MODE
|
|
|
|
MENUITEM "Standard", VIEWER_STANDARD_MODE
|
|
|
|
}
|
1999-03-03 01:43:26 +03:00
|
|
|
POPUP "&Widget Rendering Mode Pref"
|
|
|
|
{
|
|
|
|
MENUITEM "Native", VIEWER_NATIVE_WIDGET_MODE
|
|
|
|
MENUITEM "Gfx", VIEWER_GFX_WIDGET_MODE
|
|
|
|
}
|
1999-01-23 10:10:37 +03:00
|
|
|
}
|
1998-04-14 00:24:54 +04:00
|
|
|
POPUP "&Tools"
|
|
|
|
{
|
|
|
|
MENUITEM "&JavaScript Console", JS_CONSOLE
|
1998-06-24 04:29:00 +04:00
|
|
|
MENUITEM "&Editor Mode", EDITOR_MODE
|
1999-03-02 08:31:41 +03:00
|
|
|
MENUITEM SEPARATOR
|
|
|
|
POPUP "Editor Tests"
|
|
|
|
{
|
|
|
|
MENUITEM "Insert Table", VIEWER_EDIT_INSERT_TABLE
|
|
|
|
MENUITEM "Insert Cell", VIEWER_EDIT_INSERT_CELL
|
|
|
|
MENUITEM "Insert Column", VIEWER_EDIT_INSERT_COLUMN
|
|
|
|
MENUITEM "Insert Row", VIEWER_EDIT_INSERT_ROW
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Delete Table", VIEWER_EDIT_DELETE_TABLE
|
|
|
|
MENUITEM "Delete Cell", VIEWER_EDIT_DELETE_CELL
|
|
|
|
MENUITEM "Delete Column", VIEWER_EDIT_DELETE_COLUMN
|
|
|
|
MENUITEM "Delete Row", VIEWER_EDIT_DELETE_ROW
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Join with cell to right", VIEWER_EDIT_JOIN_CELL_RIGHT
|
|
|
|
MENUITEM "Join with cell below", VIEWER_EDIT_JOIN_CELL_BELOW
|
|
|
|
}
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PRINTPREVIEW MENU DISCARDABLE
|
|
|
|
{
|
|
|
|
POPUP "&File"
|
|
|
|
{
|
|
|
|
MENUITEM "&Close", PREVIEW_CLOSE
|
|
|
|
}
|
1998-10-30 22:03:38 +03:00
|
|
|
#if defined(_DEBUG)
|
1998-04-14 00:24:54 +04:00
|
|
|
POPUP "&Debug"
|
|
|
|
{
|
|
|
|
MENUITEM "&Visual Debugging", VIEWER_VISUAL_DEBUGGING
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Dump &Content", VIEWER_DUMP_CONTENT
|
|
|
|
MENUITEM "Dump &Frames", VIEWER_DUMP_FRAMES
|
|
|
|
MENUITEM "Dump &Views", VIEWER_DUMP_VIEWS
|
1998-05-19 01:12:19 +04:00
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Dump &Style Sheets", VIEWER_DUMP_STYLE_SHEETS
|
|
|
|
MENUITEM "Dump &Style Contexts", VIEWER_DUMP_STYLE_CONTEXTS
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
1998-10-30 22:03:38 +03:00
|
|
|
#endif
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
|
1998-05-08 19:06:41 +04:00
|
|
|
JSCONSOLE_MENU MENU DISCARDABLE
|
1998-04-14 00:24:54 +04:00
|
|
|
BEGIN
|
|
|
|
POPUP "&File"
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "&New", ID_FILENEW
|
|
|
|
MENUITEM "&Open...", ID_FILEOPEN
|
|
|
|
MENUITEM "&Save", ID_FILESAVE
|
|
|
|
MENUITEM "Save &As...", ID_FILESAVEAS
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "E&xit", ID_FILEEXIT
|
|
|
|
END
|
|
|
|
POPUP "&Edit"
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "&Undo", ID_EDITUNDO
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Cu&t", ID_EDITCUT
|
|
|
|
MENUITEM "&Copy", ID_EDITCOPY
|
|
|
|
MENUITEM "&Paste", ID_EDITPASTE
|
|
|
|
MENUITEM "De&lete", ID_EDITDELETE
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Select &All", ID_EDITSELECTALL
|
|
|
|
END
|
|
|
|
POPUP "&Commands"
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "&Evaluate All\tF5", ID_COMMANDSEVALALL
|
1998-05-08 19:06:41 +04:00
|
|
|
MENUITEM "Evaluate &Selection\tF10", ID_COMMANDSEVALSEL
|
1998-04-14 00:24:54 +04:00
|
|
|
MENUITEM SEPARATOR
|
1998-05-08 19:06:41 +04:00
|
|
|
MENUITEM "&Inspector", ID_COMMANDSINSPECTOR
|
1998-04-14 00:24:54 +04:00
|
|
|
END
|
|
|
|
POPUP "&Help"
|
|
|
|
BEGIN
|
1998-04-17 05:29:45 +04:00
|
|
|
MENUITEM "No Help Available", ID_NOHELP
|
1998-04-14 00:24:54 +04:00
|
|
|
END
|
|
|
|
END
|
|
|
|
|
|
|
|
ACCELERATOR_TABLE ACCELERATORS
|
|
|
|
BEGIN
|
1998-05-08 19:06:41 +04:00
|
|
|
VK_F5, ID_COMMANDSEVALALL, VIRTKEY
|
|
|
|
VK_F10, ID_COMMANDSEVALSEL, VIRTKEY
|
1998-04-14 00:24:54 +04:00
|
|
|
END
|
1998-05-19 23:06:59 +04:00
|
|
|
|
|
|
|
IDD_DEBUGROBOT DIALOG DISCARDABLE 0, 0, 246, 84
|
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "Debug Robot Options"
|
|
|
|
FONT 8, "MS Sans Serif"
|
|
|
|
BEGIN
|
|
|
|
DEFPUSHBUTTON "&Start",IDOK,67,57,50,14
|
|
|
|
PUSHBUTTON "&Cancel",IDCANCEL,127,57,50,14
|
|
|
|
CONTROL "&Update Display (Visual)",IDC_UPDATE_DISPLAY,"Button",
|
|
|
|
BS_AUTOCHECKBOX | WS_TABSTOP,7,7,98,10
|
|
|
|
EDITTEXT IDC_VERIFICATION_DIRECTORY,77,19,159,14,ES_AUTOHSCROLL
|
|
|
|
EDITTEXT IDC_PAGE_LOADS,41,36,40,14,ES_AUTOHSCROLL
|
|
|
|
LTEXT "&Verification Directory",IDC_STATIC,7,21,70,8
|
|
|
|
LTEXT "&Stop after",IDC_STATIC,7,38,32,8
|
|
|
|
LTEXT "page loads",IDC_STATIC,84,38,36,8
|
|
|
|
END
|
|
|
|
|
1998-07-10 01:07:58 +04:00
|
|
|
IDD_SITEWALKER DIALOG DISCARDABLE 0, 0, 283, 90
|
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "Top 100 Site Walker"
|
|
|
|
FONT 8, "MS Sans Serif"
|
|
|
|
BEGIN
|
|
|
|
PUSHBUTTON "<< &Previous",ID_SITE_PREVIOUS,55,53,50,14
|
|
|
|
DEFPUSHBUTTON ">> &Next",ID_SITE_NEXT,116,53,50,14
|
|
|
|
LTEXT "Site:",IDC_STATIC,20,25,24,8
|
|
|
|
LTEXT "",IDC_SITE_NAME,50,25,209,8
|
|
|
|
PUSHBUTTON "&Exit",ID_EXIT,177,53,50,14
|
|
|
|
END
|
|
|
|
|
|
|
|
|