NOT IN THE BUILD

76004 - sr=waterson r=dprice,rickg Checking in the preloader


git-svn-id: svn://10.0.0.236/trunk@93055 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dprice%netscape.com
2001-04-25 04:30:41 +00:00
parent b3ec1444ff
commit 44ca2a339b
9 changed files with 1518 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

View File

@@ -0,0 +1,56 @@
#!nmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH = ..\..
WIN_LIBS = \
shell32.lib \
$(NULL)
LFLAGS = -Wl,--subsystem,windows
CFLAGS = -x c++ -fno-exceptions -O -c
RESFILE = preloader.res
CPP_OBJS = \
.\$(OBJDIR)\preloader.obj \
$(NULL)
CPPSRCS = \
preloader.cpp \
$(NULL)
MAKE_OBJ_TYPE = exe
PROGRAM = .\$(OBJDIR)\preloader.exe
MOZ_NO_COVERAGE = 1
include <$(DEPTH)\config\rules.mak>
preloader.res: preloader.rc resource.h
install:: $(PROGRAM)
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
clobber::
rm -rf $(DIST)\bin\$(PROGRAM)

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

View File

@@ -0,0 +1,180 @@
//Microsoft Developer Studio generated resource script.
//
#include "resrc1.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_MAIN ICON DISCARDABLE "preloader.ico"
IDI_CHECK ICON DISCARDABLE "check.ico"
IDI_CHECK1 ICON DISCARDABLE "check1.ico"
IDI_BROWSERRUNNING ICON DISCARDABLE "icon1.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
DISABLE DIALOG DISCARDABLE 0, 0, 186, 63
STYLE DS_MODALFRAME | DS_NOFAILCREATE | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Disable Preloader?"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,129,7,50,14
PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14
LTEXT "Are you sure you want to disable the preloader, after all of our hard work?",
IDC_STATIC,20,13,89,33
END
IDD_PERFORMANCE DIALOG DISCARDABLE 0, 0, 233, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Performance Configuration"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,168,42,50,14
CONTROL "Slider1",IDC_MODULES,"msctls_trackbar32",TBS_AUTOTICKS |
TBS_BOTH | WS_TABSTOP,57,17,100,19
CONTROL "Slider2",IDC_ENTRIES,"msctls_trackbar32",TBS_AUTOTICKS |
TBS_BOTH | WS_TABSTOP,57,37,100,19
CONTROL "Slider3",IDC_FREQUENCY,"msctls_trackbar32",
TBS_AUTOTICKS | TBS_BOTH | WS_TABSTOP,57,58,100,19
LTEXT "Modules",IDC_STATIC,17,26,28,8
LTEXT "Entry Points",IDC_STATIC,17,45,38,8
LTEXT "Frequency",IDC_STATIC,17,66,34,8
LTEXT "Min",IDC_STATIC,61,8,12,8
LTEXT "Max",IDC_STATIC,143,9,14,8
PUSHBUTTON "Cancel",IDCANCEL,168,60,50,14
END
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDR_MENU1 MENU DISCARDABLE
BEGIN
POPUP "Popup"
BEGIN
MENUITEM "&Disable", IDM_REMOVE
MENUITEM "&Configure", IDM_CONFIGURE
MENUITEM "E&xit", IDM_EXIT
END
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resrc1.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""resource.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
DISABLE, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 179
TOPMARGIN, 7
BOTTOMMARGIN, 56
END
IDD_PERFORMANCE, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 226
TOPMARGIN, 7
BOTTOMMARGIN, 88
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_MOZ_KEY "Software\\Mozilla.org\\Mozilla\\0.8 (en)\\Main"
IDS_NS65_KEY "Software\\Netscape\\Netscape 6\\6.5 (en)\\Main"
IDS_NS60_KEY "Software\\Netscape\\Netscape 6\\6.0 (en)\\Main"
IDS_PRE60_KEY "Software\\MicrosoftWindows\\CurrentVersion\\App Paths\netscp6.exe"
IDS_STARTUP_FOLDER_PREFIX "Shortcut to "
IDS_STARTUP_FOLDER_SUFFIX ".lnk"
IDS_STARTUP_FOLDER_KEY "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
IDS_STARTUP_FOLDER_SUBKEY1 "Startup"
IDS_STARTUP_FOLDER_SUBKEY2 "Common Startup"
IDS_CLASSNAME "MozPreLoader"
IDS_TOOLTIP "Right click to configure the preloader"
IDS_SUBKEY_INSTALL "Install Directory"
IDS_SUBKEY_PATH "Path"
IDS_NS_WINDOWNAME "- Netscape 6"
IDS_MOZ_WINDOWNAME "- Mozilla"
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

@@ -0,0 +1,11 @@
//icon IDs
#define IDI_MAIN 101
#include <windows.h>
//menu messages

View File

@@ -0,0 +1,49 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by main.rc
//
#define IDS_MOZ_KEY 1
#define IDS_NS65_KEY 2
#define IDS_NS60_KEY 3
#define IDS_PRE60_KEY 4
#define IDS_STARTUP_FOLDER_PREFIX 5
#define IDS_STARTUP_FOLDER_SUFFIX 6
#define IDS_STARTUP_FOLDER_KEY 7
#define IDS_STARTUP_FOLDER_SUBKEY1 8
#define IDS_STARTUP_FOLDER_SUBKEY2 9
#define IDS_CLASSNAME 10
#define IDS_TOOLTIP 11
#define IDS_SUBKEY_INSTALL 12
#define IDS_SUBKEY_PATH 13
#define IDS_NS_WINDOWNAME 14
#define IDS_MOZ_WINDOWNAME 15
#define DISABLE 101
#define TRYMERICK 101
#define IDD_DIALOG1 102
#define IDR_MENU1 106
#define IDI_CHECK 108
#define IDD_PERFORMANCE 108
#define IDI_CHECK1 109
#define IDI_BROWSERRUNNING 110
#define IDC_SLIDER1 1000
#define IDC_MODULES 1000
#define IDC_SLIDER2 1001
#define IDC_ENTRIES 1001
#define IDC_SLIDER3 1002
#define IDC_FREQUENCY 1002
#define IDM_CONFIGURE 40007
#define IDM_EXIT 40011
#define IDM_CHANGE 40012
#define IDM_REMOVE 40013
#define IDC_STATIC -1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 111
#define _APS_NEXT_COMMAND_VALUE 40008
#define _APS_NEXT_CONTROL_VALUE 1003
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif