makefile changes to keep .h files out of bogus export directory -- r=leaf
removing obsolete files (not part of build) git-svn-id: svn://10.0.0.236/trunk@91733 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0518fc668b
commit
7807bb447b
@ -25,6 +25,7 @@
|
||||
MODULE=xpnet
|
||||
LIBNAME=$(MODULE)
|
||||
DEPTH=..\..\..\..
|
||||
EXPORTS=nsFTPConn.h nsHTTPConn.h nsSocket.h
|
||||
|
||||
MAKE_OBJ_TYPE=DLL
|
||||
USE_NON_MT_LIBS=1
|
||||
@ -39,11 +40,6 @@ OBJS= \
|
||||
|
||||
include <$(DEPTH)/config/rules.mak>
|
||||
|
||||
docopy:
|
||||
$(MAKE_INSTALL) *.h $(DIST)\include
|
||||
|
||||
export:: docopy
|
||||
|
||||
install::
|
||||
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
|
||||
|
||||
|
||||
@ -1,45 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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, released March 31, 1998.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Stuart Parmenter <pavlov@netscape.com>
|
||||
#
|
||||
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = mozilla-install
|
||||
|
||||
CSRCS = \
|
||||
main.c \
|
||||
setup.c \
|
||||
$(NULL)
|
||||
|
||||
LIBS = \
|
||||
$(TK_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
CFLAGS += $(MOZ_TOOLKIT_REGISTRY_CFLAGS)
|
||||
|
||||
@ -1,58 +0,0 @@
|
||||
/* XPM */
|
||||
static char * logo_xpm[] = {
|
||||
"50 50 5 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"+ c #FFFFFF",
|
||||
"@ c #FF1900",
|
||||
"# c #F39100",
|
||||
"..................................................",
|
||||
"..................................................",
|
||||
".........................#........................",
|
||||
"........................##........................",
|
||||
"........................##........................",
|
||||
"........................##........................",
|
||||
".......................#..#.......................",
|
||||
".......................#..#.......................",
|
||||
".......................#..#.......................",
|
||||
"......................#...##......................",
|
||||
"......................#.@..#......................",
|
||||
"......................#.@@.#......................",
|
||||
".....................##.@@.#......................",
|
||||
".....................#.@@@.##.....................",
|
||||
".....................#.@@@@.#.....................",
|
||||
".....................#.@@@@.#.....................",
|
||||
"....................#.@@@@@.#.....................",
|
||||
"....................#.@@@@@..#....................",
|
||||
"....................#.@@..@..#....................",
|
||||
"...................#..@.@@...#....................",
|
||||
"..##################.@@....@.###################..",
|
||||
"...##................@.....@.................##...",
|
||||
".....#..@@@@@@@@@@@@..@.@.@@.@@@@@....@@@@..#.....",
|
||||
"......##..@@@@@@@@..@@@@@@.@.@.@@@...@@@..##......",
|
||||
".......##..@@@@@@.@@@@@@@.@@@@@.@@....@..##.......",
|
||||
"........##..@@@@@..@@@@....@@@@.@@@..@..##........",
|
||||
"..........##.@@@@.@@@@.....@@@@.@@@....#..........",
|
||||
"...........##..@@.......@.@@@@@.@@@..##...........",
|
||||
"............##..@....@@.@@@@.@@@@@..##............",
|
||||
"..............#..@@.........@@@@@..#..............",
|
||||
"...............##.@@@@@@@@..@@@@..#...............",
|
||||
"...............#..@@@@@@@@@.@@@@@.#...............",
|
||||
"...............#.@#@@#@@##@..@@@@.#...............",
|
||||
"...............#.@#@@#@@#@@..@@@@.#...............",
|
||||
"..............#..@@@@@@@@@@@.@@@@..#..............",
|
||||
"..............#.@@@@@@@@.@@...@@@@.#..............",
|
||||
"..............#.@@@@@@@.......@@@@.#..............",
|
||||
"..............#.@@@@@@..##.....@@@.#..............",
|
||||
".............#..@@@@@..#..#...@@@@..#.............",
|
||||
".............#.@@@@..##....##..@@@@.#.............",
|
||||
".............#.@@@..##......##..@@..#.............",
|
||||
"............##.@@..#..........#..@..##............",
|
||||
"............#.@..##............##....#............",
|
||||
"............#...##..............##...#............",
|
||||
"............#..##................##..#............",
|
||||
"...........#..#....................#.##...........",
|
||||
"...........###......................###...........",
|
||||
"...........##........................##...........",
|
||||
"..........#.......................................",
|
||||
".................................................."};
|
||||
@ -1,36 +0,0 @@
|
||||
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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 the Mozilla browser.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Stuart Parmenter <pavlov@netscape.com>
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
gtk_init (&argc, &argv);
|
||||
|
||||
gdk_rgb_init ();
|
||||
|
||||
create_main_window ();
|
||||
|
||||
gtk_main ();
|
||||
}
|
||||
@ -1,249 +0,0 @@
|
||||
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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 the Mozilla browser.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Stuart Parmenter <pavlov@netscape.com>
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdio.h>
|
||||
#include "logo.xpm"
|
||||
|
||||
enum {
|
||||
LICENSE,
|
||||
DESTINATION,
|
||||
COMPONENTS
|
||||
};
|
||||
|
||||
static GtkWidget *nextButton;
|
||||
static GtkWidget *prevButton;
|
||||
|
||||
static void next_cb (GtkWidget *, gpointer);
|
||||
static void prev_cb (GtkWidget *, gpointer);
|
||||
|
||||
static void
|
||||
prev_cb (GtkWidget * widget, gpointer data)
|
||||
{
|
||||
GtkWidget *nb = GTK_WIDGET(data);
|
||||
|
||||
gtk_notebook_prev_page(GTK_NOTEBOOK(nb));
|
||||
gtk_label_set(GTK_LABEL(GTK_BIN (nextButton)->child), "Next");
|
||||
/* are we on the first page? */
|
||||
if (gtk_notebook_get_current_page(GTK_NOTEBOOK(nb)) == 0)
|
||||
gtk_widget_set_sensitive(prevButton, FALSE);
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
next_cb (GtkWidget * widget, gpointer data)
|
||||
{
|
||||
GtkWidget *nb = GTK_WIDGET(data);
|
||||
|
||||
gtk_notebook_next_page(GTK_NOTEBOOK(nb));
|
||||
|
||||
gtk_widget_set_sensitive(prevButton, TRUE);
|
||||
|
||||
switch (gtk_notebook_get_current_page(GTK_NOTEBOOK(nb)))
|
||||
{
|
||||
case COMPONENTS:
|
||||
gtk_label_set(GTK_LABEL(GTK_BIN (nextButton)->child), "Finish");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
GtkWidget *create_license_page()
|
||||
{
|
||||
GtkWidget *text;
|
||||
char *foo = "hear mozilla roar!";
|
||||
text = gtk_text_new(NULL, NULL);
|
||||
gtk_widget_show(text);
|
||||
gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL, foo, strlen(foo));
|
||||
return text;
|
||||
}
|
||||
|
||||
GtkWidget *create_folder_page()
|
||||
{
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *frame;
|
||||
GtkWidget *label;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *button;
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 0);
|
||||
gtk_widget_show(vbox);
|
||||
|
||||
frame = gtk_frame_new("");
|
||||
gtk_container_set_border_width(GTK_CONTAINER(frame), 5);
|
||||
gtk_widget_show(frame);
|
||||
|
||||
gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0);
|
||||
|
||||
frame = gtk_frame_new("Installation Location");
|
||||
gtk_container_set_border_width(GTK_CONTAINER(frame), 5);
|
||||
gtk_widget_show(frame);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0);
|
||||
|
||||
hbox = gtk_hbox_new(FALSE, 5);
|
||||
gtk_widget_show(hbox);
|
||||
gtk_container_add(GTK_CONTAINER(frame), hbox);
|
||||
|
||||
label = gtk_label_new("in folder /foo");
|
||||
gtk_widget_show(label);
|
||||
gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0);
|
||||
|
||||
button = gtk_button_new_with_label("Select folder...");
|
||||
gtk_widget_show(button);
|
||||
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
|
||||
|
||||
return vbox;
|
||||
}
|
||||
|
||||
GtkWidget *create_components_page()
|
||||
{
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *clist;
|
||||
GtkWidget *label;
|
||||
GtkWidget *frame;
|
||||
|
||||
gchar foo[256];
|
||||
gchar *text[2];
|
||||
text[0] = "x";
|
||||
text[1] = foo;
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 0);
|
||||
gtk_widget_show(vbox);
|
||||
|
||||
clist = gtk_clist_new(2);
|
||||
gtk_widget_show(clist);
|
||||
|
||||
label = gtk_label_new("Please select the components you wish to install:");
|
||||
gtk_widget_show(label);
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
|
||||
|
||||
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), clist, FALSE, FALSE, 0);
|
||||
|
||||
gtk_clist_freeze(GTK_CLIST(clist));
|
||||
sprintf(text[1], "mozilla");
|
||||
gtk_clist_append(GTK_CLIST(clist), text);
|
||||
sprintf(text[1], "blah blah");
|
||||
gtk_clist_append(GTK_CLIST(clist), text);
|
||||
sprintf(text[1], "blah blah blah");
|
||||
gtk_clist_append(GTK_CLIST(clist), text);
|
||||
gtk_clist_thaw(GTK_CLIST(clist));
|
||||
|
||||
|
||||
frame = gtk_frame_new("Description");
|
||||
gtk_widget_show(frame);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0);
|
||||
label = gtk_label_new("apprunner, etc.");
|
||||
gtk_widget_show(label);
|
||||
gtk_container_add(GTK_CONTAINER(frame), label);
|
||||
|
||||
return vbox;
|
||||
}
|
||||
|
||||
void create_main_window()
|
||||
{
|
||||
GtkWidget *win;
|
||||
GtkWidget *hbox, *vbox;
|
||||
GtkWidget *pixmap;
|
||||
GdkPixmap *gpix;
|
||||
GdkBitmap *gmask;
|
||||
GtkWidget *notebook;
|
||||
GtkWidget *label;
|
||||
GtkWidget *bbox;
|
||||
|
||||
win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
gtk_widget_set_usize(win, 543, 319);
|
||||
gtk_container_set_border_width(GTK_CONTAINER(win), 5);
|
||||
vbox = gtk_vbox_new(FALSE, 5);
|
||||
gtk_widget_show(vbox);
|
||||
|
||||
gtk_container_add(GTK_CONTAINER(win), vbox);
|
||||
|
||||
gpix = gdk_pixmap_create_from_xpm_d(NULL /* GdkWindow *window */ ,
|
||||
&gmask,
|
||||
NULL,
|
||||
logo_xpm);
|
||||
|
||||
|
||||
pixmap = gtk_pixmap_new(gpix, gmask);
|
||||
gtk_misc_set_alignment(GTK_MISC(pixmap), 0.5, 0.0);
|
||||
gtk_widget_show(pixmap);
|
||||
|
||||
hbox = gtk_hbox_new(FALSE, 5);
|
||||
gtk_widget_show(hbox);
|
||||
gtk_container_add(GTK_CONTAINER(vbox), hbox);
|
||||
|
||||
gtk_box_pack_start(GTK_BOX(hbox), pixmap, FALSE, FALSE, 0);
|
||||
|
||||
notebook = gtk_notebook_new();
|
||||
gtk_widget_show(notebook);
|
||||
gtk_notebook_set_show_tabs(GTK_NOTEBOOK (notebook), FALSE);
|
||||
gtk_notebook_set_show_border(GTK_NOTEBOOK (notebook), FALSE);
|
||||
|
||||
/* add notebook pages */
|
||||
|
||||
label = gtk_label_new ("welcome");
|
||||
gtk_notebook_append_page(GTK_NOTEBOOK (notebook),
|
||||
create_license_page (),
|
||||
label);
|
||||
|
||||
label = gtk_label_new("select destination");
|
||||
gtk_notebook_append_page(GTK_NOTEBOOK (notebook),
|
||||
create_folder_page (),
|
||||
label);
|
||||
|
||||
label = gtk_label_new("select components");
|
||||
gtk_notebook_append_page(GTK_NOTEBOOK (notebook),
|
||||
create_components_page (),
|
||||
label);
|
||||
|
||||
gtk_box_pack_start(GTK_BOX(hbox), notebook, TRUE, TRUE, 0);
|
||||
|
||||
|
||||
/* create navigation buttons */
|
||||
prevButton = gtk_button_new_with_label("Previous");
|
||||
gtk_signal_connect(GTK_OBJECT (prevButton),
|
||||
"clicked",
|
||||
(GtkSignalFunc) prev_cb,
|
||||
notebook);
|
||||
gtk_widget_set_sensitive (prevButton, FALSE);
|
||||
gtk_widget_show(prevButton);
|
||||
|
||||
nextButton = gtk_button_new_with_label("Next");
|
||||
gtk_signal_connect(GTK_OBJECT (nextButton),
|
||||
"clicked",
|
||||
(GtkSignalFunc) next_cb,
|
||||
notebook);
|
||||
gtk_widget_show(nextButton);
|
||||
|
||||
bbox = gtk_hbutton_box_new();
|
||||
gtk_widget_show(bbox);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0);
|
||||
|
||||
gtk_box_pack_start(GTK_BOX(bbox), prevButton, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start(GTK_BOX(bbox), nextButton, FALSE, FALSE, 0);
|
||||
|
||||
|
||||
gtk_widget_show(win);
|
||||
}
|
||||
@ -1,109 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// mainfrm.cpp : implementation of the CMainFrame class
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "nszip.h"
|
||||
|
||||
#include "mainfrm.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char BASED_CODE THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CMainFrame
|
||||
|
||||
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
|
||||
|
||||
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
|
||||
//{{AFX_MSG_MAP(CMainFrame)
|
||||
// NOTE - the ClassWizard will add and remove mapping macros here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code !
|
||||
ON_WM_CREATE()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// arrays of IDs used to initialize control bars
|
||||
|
||||
static UINT BASED_CODE indicators[] =
|
||||
{
|
||||
ID_SEPARATOR, // status line indicator
|
||||
ID_INDICATOR_CAPS,
|
||||
ID_INDICATOR_NUM,
|
||||
ID_INDICATOR_SCRL,
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CMainFrame construction/destruction
|
||||
|
||||
CMainFrame::CMainFrame()
|
||||
{
|
||||
// TODO: add member initialization code here
|
||||
|
||||
}
|
||||
|
||||
CMainFrame::~CMainFrame()
|
||||
{
|
||||
}
|
||||
|
||||
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
|
||||
{
|
||||
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
|
||||
return -1;
|
||||
|
||||
if (!m_wndStatusBar.Create(this) ||
|
||||
!m_wndStatusBar.SetIndicators(indicators,
|
||||
sizeof(indicators)/sizeof(UINT)))
|
||||
{
|
||||
TRACE0("Failed to create status bar\n");
|
||||
return -1; // fail to create
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CMainFrame diagnostics
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMainFrame::AssertValid() const
|
||||
{
|
||||
CFrameWnd::AssertValid();
|
||||
}
|
||||
|
||||
void CMainFrame::Dump(CDumpContext& dc) const
|
||||
{
|
||||
CFrameWnd::Dump(dc);
|
||||
}
|
||||
|
||||
#endif //_DEBUG
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CMainFrame message handlers
|
||||
@ -1,68 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// mainfrm.h : interface of the CMainFrame class
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CMainFrame : public CFrameWnd
|
||||
{
|
||||
protected: // create from serialization only
|
||||
CMainFrame();
|
||||
DECLARE_DYNCREATE(CMainFrame)
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CMainFrame)
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CMainFrame();
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
protected: // control bar embedded members
|
||||
CStatusBar m_wndStatusBar;
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CMainFrame)
|
||||
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
||||
// NOTE - the ClassWizard will add and remove member functions here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code!
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -1,55 +0,0 @@
|
||||
#
|
||||
# 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 Communicator client code,
|
||||
# released March 31, 1998.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape Communications
|
||||
# Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1999 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH=..\..\..\..
|
||||
|
||||
MAKE_OBJ_TYPE = EXE
|
||||
USE_STATIC_LIBS = 1
|
||||
|
||||
MODULE = nszip
|
||||
PROGRAM = .\$(OBJDIR)\$(MODULE).exe
|
||||
RESFILE = $(MODULE).res
|
||||
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\nszip.obj \
|
||||
.\$(OBJDIR)\mainfrm.obj \
|
||||
.\$(OBJDIR)\nszipdoc.obj \
|
||||
.\$(OBJDIR)\nszipvw.obj \
|
||||
.\$(OBJDIR)\stdafx.obj \
|
||||
$(NULL)
|
||||
|
||||
LLIBS= \
|
||||
$(DIST)\lib\zlib_s.lib \
|
||||
$(NULL)
|
||||
|
||||
LLFLAGS= \
|
||||
/subsystem:windows \
|
||||
/machine:i386 \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
install:: $(PROGRAM)
|
||||
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\install
|
||||
|
||||
clobber_all::
|
||||
$(RM) $(DIST)\install\$(MODULE).exe
|
||||
|
||||
@ -1,202 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// nszip.cpp : Defines the class behaviors for the application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "nszip.h"
|
||||
|
||||
#include "mainfrm.h"
|
||||
#include "nszipdoc.h"
|
||||
#include "nszipvw.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char BASED_CODE THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipApp
|
||||
|
||||
BEGIN_MESSAGE_MAP(CNsZipApp, CWinApp)
|
||||
//{{AFX_MSG_MAP(CNsZipApp)
|
||||
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
|
||||
// NOTE - the ClassWizard will add and remove mapping macros here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code!
|
||||
//}}AFX_MSG_MAP
|
||||
// Standard file based document commands
|
||||
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
|
||||
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipApp construction
|
||||
|
||||
CNsZipApp::CNsZipApp()
|
||||
{
|
||||
// TODO: add construction code here,
|
||||
// Place all significant initialization in InitInstance
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// The one and only CNsZipApp object
|
||||
|
||||
CNsZipApp theApp;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipApp initialization
|
||||
|
||||
void CNsZipApp::ProcessCmdLine()
|
||||
{
|
||||
// Make a copy of the command line since we will change it while parsing
|
||||
CString strCmdLine(m_lpCmdLine);
|
||||
|
||||
// Get the name of the archive
|
||||
LPSTR lpArchive = strtok((LPSTR)(LPCSTR)strCmdLine, " ");
|
||||
|
||||
if (lpArchive) {
|
||||
char szPath[MAX_PATH], szExtension[_MAX_EXT];
|
||||
LPSTR lpFiles;
|
||||
CDocTemplate* pTemplate;
|
||||
CNsZipDoc* pDoc;
|
||||
|
||||
// ASSERT(m_templateList.GetCount() == 1);
|
||||
// pTemplate = (CDocTemplate*)m_templateList.GetHead();
|
||||
|
||||
POSITION pos = GetFirstDocTemplatePosition();
|
||||
|
||||
pTemplate = (CDocTemplate*)GetNextDocTemplate(pos);
|
||||
ASSERT(pTemplate);
|
||||
ASSERT(pTemplate->IsKindOf(RUNTIME_CLASS(CDocTemplate)));
|
||||
|
||||
// Create a new document
|
||||
VERIFY(pDoc = (CNsZipDoc*)pTemplate->CreateNewDocument());
|
||||
|
||||
// We need a fully qualified pathname
|
||||
::GetFullPathName(lpArchive, sizeof(szPath), szPath, NULL);
|
||||
|
||||
// Make sure it ends with .EXE
|
||||
_splitpath(szPath, NULL, NULL, NULL, szExtension);
|
||||
if (stricmp(szExtension, ".exe") != 0)
|
||||
strcat(szPath, ".exe");
|
||||
|
||||
// Now go ahead and create the archive
|
||||
pDoc->OnNewDocument(szPath);
|
||||
|
||||
// Process the files. These can be wildcards
|
||||
while (lpFiles = strtok(NULL, " "))
|
||||
pDoc->AddFiles(lpFiles);
|
||||
// while (lpFiles = strtok(lpArchive, " "))
|
||||
// pDoc->AddFiles(lpFiles);
|
||||
|
||||
pDoc->OnSaveDocument(szPath);
|
||||
delete pDoc;
|
||||
}
|
||||
}
|
||||
|
||||
BOOL CNsZipApp::InitInstance()
|
||||
{
|
||||
// Standard initialization
|
||||
// If you are not using these features and wish to reduce the size
|
||||
// of your final executable, you should remove from the following
|
||||
// the specific initialization routines you do not need.
|
||||
|
||||
Enable3dControls();
|
||||
|
||||
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
|
||||
|
||||
// Register the application's document templates. Document templates
|
||||
// serve as the connection between documents, frame windows and views.
|
||||
CSingleDocTemplate* pDocTemplate;
|
||||
pDocTemplate = new CSingleDocTemplate(
|
||||
IDR_MAINFRAME,
|
||||
RUNTIME_CLASS(CNsZipDoc),
|
||||
RUNTIME_CLASS(CMainFrame), // main SDI frame window
|
||||
RUNTIME_CLASS(CNsZipView));
|
||||
AddDocTemplate(pDocTemplate);
|
||||
|
||||
if (m_lpCmdLine[0] != '\0') {
|
||||
ProcessCmdLine();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// create a new (empty) document
|
||||
OnFileNew();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAboutDlg dialog used for App About
|
||||
|
||||
class CAboutDlg : public CDialog
|
||||
{
|
||||
public:
|
||||
CAboutDlg();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CAboutDlg)
|
||||
enum { IDD = IDD_ABOUTBOX };
|
||||
//}}AFX_DATA
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//{{AFX_MSG(CAboutDlg)
|
||||
// No message handlers
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CAboutDlg)
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CAboutDlg)
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(CAboutDlg)
|
||||
// No message handlers
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
// App command to run the dialog
|
||||
void CNsZipApp::OnAppAbout()
|
||||
{
|
||||
CAboutDlg aboutDlg;
|
||||
aboutDlg.DoModal();
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipApp commands
|
||||
|
||||
@ -1,66 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// nszip.h : main header file for the NSZIP application
|
||||
//
|
||||
|
||||
#ifndef __AFXWIN_H__
|
||||
#error include 'stdafx.h' before including this file for PCH
|
||||
#endif
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
#include "zlib.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipApp:
|
||||
// See nszip.cpp for the implementation of this class
|
||||
//
|
||||
|
||||
class CNsZipApp : public CWinApp
|
||||
{
|
||||
public:
|
||||
CNsZipApp();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CNsZipApp)
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
void ProcessCmdLine();
|
||||
|
||||
//{{AFX_MSG(CNsZipApp)
|
||||
afx_msg void OnAppAbout();
|
||||
// NOTE - the ClassWizard will add and remove member functions here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code !
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -1,305 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
//Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""res\\nszip.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
|
||||
"\r\n"
|
||||
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||
"#include ""afxres.rc"" \011// Standard components\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
IDR_MAINFRAME ICON DISCARDABLE "res\\nszip.ico"
|
||||
IDR_NSZIPTYPE ICON DISCARDABLE "res\\nszipdoc.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDR_MAINFRAME MENU PRELOAD DISCARDABLE
|
||||
BEGIN
|
||||
POPUP "&File"
|
||||
BEGIN
|
||||
MENUITEM "&New Archive...\tCtrl+N", ID_FILE_NEW
|
||||
MENUITEM "&Open Archive...\tCtrl+O", ID_FILE_OPEN
|
||||
MENUITEM "&Close Archive\tCtrl+L", ID_FILE_CLOSE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Recent File", ID_FILE_MRU_FILE1, GRAYED
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&xit", ID_APP_EXIT
|
||||
END
|
||||
POPUP "&Actions"
|
||||
BEGIN
|
||||
MENUITEM "Add...\tCtrl+A", ID_ACTIONS_ADD
|
||||
MENUITEM "&Delete\tCtrl+D", ID_ACTIONS_DELETE
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About NsZip...", ID_APP_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Accelerator
|
||||
//
|
||||
|
||||
IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE
|
||||
BEGIN
|
||||
"N", ID_FILE_NEW, VIRTKEY, CONTROL
|
||||
"O", ID_FILE_OPEN, VIRTKEY, CONTROL
|
||||
"S", ID_FILE_SAVE, VIRTKEY, CONTROL
|
||||
"Z", ID_EDIT_UNDO, VIRTKEY, CONTROL
|
||||
"X", ID_EDIT_CUT, VIRTKEY, CONTROL
|
||||
"C", ID_EDIT_COPY, VIRTKEY, CONTROL
|
||||
"V", ID_EDIT_PASTE, VIRTKEY, CONTROL
|
||||
VK_BACK, ID_EDIT_UNDO, VIRTKEY, ALT
|
||||
VK_DELETE, ID_EDIT_CUT, VIRTKEY, SHIFT
|
||||
VK_INSERT, ID_EDIT_COPY, VIRTKEY, CONTROL
|
||||
VK_INSERT, ID_EDIT_PASTE, VIRTKEY, SHIFT
|
||||
VK_F6, ID_NEXT_PANE, VIRTKEY
|
||||
VK_F6, ID_PREV_PANE, VIRTKEY, SHIFT
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX DIALOG DISCARDABLE 34, 22, 217, 55
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "About nszip"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
|
||||
LTEXT "nszip Version 1.0",IDC_STATIC,40,10,119,8
|
||||
LTEXT "Copyright \251 1995",IDC_STATIC,40,25,119,8
|
||||
DEFPUSHBUTTON "OK",IDOK,176,6,32,14,WS_GROUP
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "NSZIP MFC Application\0"
|
||||
VALUE "FileVersion", "1, 0, 0, 1\0"
|
||||
VALUE "InternalName", "NSZIP\0"
|
||||
VALUE "LegalCopyright", "Copyright \251 1995\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "NSZIP.EXE\0"
|
||||
VALUE "ProductName", "NSZIP Application\0"
|
||||
VALUE "ProductVersion", "1, 0, 0, 1\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE PRELOAD DISCARDABLE
|
||||
BEGIN
|
||||
IDR_MAINFRAME "nszip\n\nNszip\n\n\nNszip.Document\nNszip Document"
|
||||
END
|
||||
|
||||
STRINGTABLE PRELOAD DISCARDABLE
|
||||
BEGIN
|
||||
AFX_IDS_APP_TITLE "nszip"
|
||||
AFX_IDS_IDLEMESSAGE "Ready"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_INDICATOR_EXT "EXT"
|
||||
ID_INDICATOR_CAPS "CAP"
|
||||
ID_INDICATOR_NUM "NUM"
|
||||
ID_INDICATOR_SCRL "SCRL"
|
||||
ID_INDICATOR_OVR "OVR"
|
||||
ID_INDICATOR_REC "REC"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_FILE_NEW "Create a new archive\nNew"
|
||||
ID_FILE_OPEN "Open an existing archive\nOpen"
|
||||
ID_FILE_CLOSE "Close the active archive\nClose"
|
||||
ID_FILE_SAVE "Save the active document\nSave"
|
||||
ID_FILE_SAVE_AS "Save the active document with a new name\nSave As"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_APP_ABOUT "Display program information, version number and copyright\nAbout"
|
||||
ID_APP_EXIT "Quit the application; prompts to save documents\nExit"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_FILE_MRU_FILE1 "Open this document"
|
||||
ID_FILE_MRU_FILE2 "Open this document"
|
||||
ID_FILE_MRU_FILE3 "Open this document"
|
||||
ID_FILE_MRU_FILE4 "Open this document"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_NEXT_PANE "Switch to the next window pane\nNext Pane"
|
||||
ID_PREV_PANE "Switch back to the previous window pane\nPrevious Pane"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_WINDOW_SPLIT "Split the active window into panes\nSplit"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_EDIT_CLEAR "Erase the selection\nErase"
|
||||
ID_EDIT_CLEAR_ALL "Erase everything\nErase All"
|
||||
ID_EDIT_COPY "Copy the selection and put it on the Clipboard\nCopy"
|
||||
ID_EDIT_CUT "Cut the selection and put it on the Clipboard\nCut"
|
||||
ID_EDIT_FIND "Find the specified text\nFind"
|
||||
ID_EDIT_PASTE "Insert Clipboard contents\nPaste"
|
||||
ID_EDIT_REPEAT "Repeat the last action\nRepeat"
|
||||
ID_EDIT_REPLACE "Replace specific text with different text\nReplace"
|
||||
ID_EDIT_SELECT_ALL "Select the entire document\nSelect All"
|
||||
ID_EDIT_UNDO "Undo the last action\nUndo"
|
||||
ID_EDIT_REDO "Redo the previously undone action\nRedo"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
ID_VIEW_STATUS_BAR "Show or hide the status bar\nToggle StatusBar"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
AFX_IDS_SCSIZE "Change the window size"
|
||||
AFX_IDS_SCMOVE "Change the window position"
|
||||
AFX_IDS_SCMINIMIZE "Reduce the window to an icon"
|
||||
AFX_IDS_SCMAXIMIZE "Enlarge the window to full size"
|
||||
AFX_IDS_SCNEXTWINDOW "Switch to the next document window"
|
||||
AFX_IDS_SCPREVWINDOW "Switch to the previous document window"
|
||||
AFX_IDS_SCCLOSE "Close the active window and prompts to save the documents"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
AFX_IDS_SCRESTORE "Restore the window to normal size"
|
||||
AFX_IDS_SCTASKLIST "Activate Task List"
|
||||
END
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#include "res\nszip.rc2" // non-Microsoft Visual C++ edited resources
|
||||
|
||||
#define _AFX_NO_SPLITTER_RESOURCES
|
||||
#define _AFX_NO_OLE_RESOURCES
|
||||
#define _AFX_NO_TRACKER_RESOURCES
|
||||
#define _AFX_NO_PROPERTY_RESOURCES
|
||||
#include "afxres.rc" // Standard components
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
@ -1,264 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// nszipdoc.cpp : implementation of the CNsZipDoc class
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "nszip.h"
|
||||
|
||||
#include "nszipdoc.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char BASED_CODE THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipDoc
|
||||
|
||||
IMPLEMENT_DYNCREATE(CNsZipDoc, CDocument)
|
||||
|
||||
BEGIN_MESSAGE_MAP(CNsZipDoc, CDocument)
|
||||
//{{AFX_MSG_MAP(CNsZipDoc)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipDoc construction/destruction
|
||||
|
||||
CNsZipDoc::CNsZipDoc()
|
||||
{
|
||||
m_hUpdateFile = NULL;
|
||||
}
|
||||
|
||||
CNsZipDoc::~CNsZipDoc()
|
||||
{
|
||||
}
|
||||
|
||||
BOOL CNsZipDoc::OnNewDocument(LPCTSTR lpszPathName)
|
||||
{
|
||||
char szStub[MAX_PATH];
|
||||
|
||||
// If we were doing a resource update, discard any changes
|
||||
if (m_hUpdateFile) {
|
||||
VERIFY(::EndUpdateResource(m_hUpdateFile, TRUE));
|
||||
|
||||
// Delete the archive
|
||||
DeleteFile(m_strPathName);
|
||||
}
|
||||
|
||||
if (!CDocument::OnNewDocument())
|
||||
return FALSE;
|
||||
|
||||
// Set the pathname
|
||||
SetPathName(lpszPathName);
|
||||
|
||||
// Copy the stub executable and make it the basis of the archive
|
||||
::GetModuleFileName(NULL, szStub, sizeof(szStub));
|
||||
strcpy(strrchr(szStub, '\\') + 1, "Nsinstall.exe");
|
||||
::CopyFile(szStub, m_strPathName, FALSE); // overwrite an existing file
|
||||
|
||||
// Get a handle we can use with UpdateResource()
|
||||
VERIFY(m_hUpdateFile = ::BeginUpdateResource(m_strPathName, FALSE));
|
||||
return m_hUpdateFile != NULL;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipDoc serialization
|
||||
|
||||
void CNsZipDoc::Serialize(CArchive& ar)
|
||||
{
|
||||
if (ar.IsStoring())
|
||||
{
|
||||
// TODO: add storing code here
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: add loading code here
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipDoc diagnostics
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CNsZipDoc::AssertValid() const
|
||||
{
|
||||
CDocument::AssertValid();
|
||||
}
|
||||
|
||||
void CNsZipDoc::Dump(CDumpContext& dc) const
|
||||
{
|
||||
CDocument::Dump(dc);
|
||||
}
|
||||
#endif //_DEBUG
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipDoc commands
|
||||
|
||||
void CNsZipDoc::OnCloseDocument()
|
||||
{
|
||||
// If we were doing a resource update, discard any changes
|
||||
if (m_hUpdateFile) {
|
||||
VERIFY(::EndUpdateResource(m_hUpdateFile, TRUE));
|
||||
m_hUpdateFile = NULL;
|
||||
|
||||
// Delete the archive
|
||||
DeleteFile(m_strPathName);
|
||||
}
|
||||
|
||||
CDocument::OnCloseDocument();
|
||||
}
|
||||
|
||||
BOOL CNsZipDoc::OnOpenDocument(LPCTSTR lpszPathName)
|
||||
{
|
||||
// If we were doing a resource update, discard any changes
|
||||
if (m_hUpdateFile) {
|
||||
VERIFY(::EndUpdateResource(m_hUpdateFile, TRUE));
|
||||
|
||||
// Delete the archive
|
||||
DeleteFile(m_strPathName);
|
||||
}
|
||||
|
||||
DeleteContents();
|
||||
|
||||
// ZZZ: Get a list of all the FILE resources
|
||||
ASSERT(FALSE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void CNsZipDoc::DeleteContents()
|
||||
{
|
||||
m_hUpdateFile = NULL;
|
||||
CDocument::DeleteContents();
|
||||
}
|
||||
|
||||
BOOL CNsZipDoc::OnSaveDocument(LPCTSTR lpszPathName)
|
||||
{
|
||||
// If we were doing a resource update, save any changes
|
||||
if (m_hUpdateFile) {
|
||||
BOOL bRet = ::EndUpdateResource(m_hUpdateFile, FALSE);
|
||||
|
||||
ASSERT(bRet);
|
||||
m_hUpdateFile = NULL;
|
||||
return bRet;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// Add a single file to the archive
|
||||
BOOL CNsZipDoc::AddFile(LPCTSTR lpszFile)
|
||||
{
|
||||
HANDLE hFile;
|
||||
LPBYTE lpBuf;
|
||||
LPBYTE lpBufCmp;
|
||||
DWORD dwBytesRead;
|
||||
DWORD dwFileSize;
|
||||
DWORD dwFileSizeCmp;
|
||||
|
||||
// Check if we are trying to add the archive file itself
|
||||
// (this could happen if the user passes *.* as a file spec)
|
||||
if (m_strPathName.CompareNoCase(lpszFile) == 0)
|
||||
return FALSE;
|
||||
|
||||
// Open the file
|
||||
hFile = ::CreateFile(lpszFile, GENERIC_READ, FILE_SHARE_READ, NULL,
|
||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
return FALSE;
|
||||
|
||||
// Figure out how big the file is
|
||||
dwFileSize = GetFileSize(hFile, NULL);
|
||||
|
||||
// Allocate enough space for the file contents and a DWORD header that
|
||||
// contains the size of the file
|
||||
lpBuf = (LPBYTE)malloc(dwFileSize);
|
||||
lpBufCmp = (LPBYTE)malloc(dwFileSize + (sizeof(DWORD) * 2));
|
||||
dwFileSizeCmp = dwFileSize;
|
||||
|
||||
if (lpBuf) {
|
||||
CString strResourceName = strrchr(lpszFile, '\\') + 1;
|
||||
|
||||
// It's really important that the resource name be UPPERCASE
|
||||
strResourceName.MakeUpper();
|
||||
|
||||
// *(LPDWORD)lpBuf = dwFileSize;
|
||||
::ReadFile(hFile, lpBuf, dwFileSize, &dwBytesRead, NULL);
|
||||
ASSERT(dwBytesRead == dwFileSize);
|
||||
|
||||
if(compress((lpBufCmp + (sizeof(DWORD) * 2)), &dwFileSizeCmp, (const Bytef*)lpBuf, dwFileSize) != Z_OK)
|
||||
return(FALSE);
|
||||
|
||||
// The first DWORD holds the total size of the file to be stored in the
|
||||
// resource (in this case, it's the compressed size)
|
||||
// The second DWORD holds the original uncompressed size of the file.
|
||||
*(LPDWORD)lpBufCmp = dwFileSizeCmp;
|
||||
*(LPDWORD)(lpBufCmp + sizeof(DWORD)) = dwFileSize;
|
||||
|
||||
VERIFY(::UpdateResource(m_hUpdateFile, "FILE", strResourceName,
|
||||
MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), lpBufCmp, dwFileSizeCmp + (sizeof(DWORD) * 2)));
|
||||
}
|
||||
|
||||
free(lpBuf);
|
||||
::CloseHandle(hFile);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// Add one or more files to the archive (lpszFiles can be a wildcard)
|
||||
void CNsZipDoc::AddFiles(LPCTSTR lpszFiles)
|
||||
{
|
||||
ASSERT(m_hUpdateFile);
|
||||
ASSERT(lpszFiles);
|
||||
|
||||
if (lpszFiles) {
|
||||
HANDLE hFindFile;
|
||||
WIN32_FIND_DATA findFileData;
|
||||
char szPath[MAX_PATH];
|
||||
|
||||
// Get a full pathname to the files
|
||||
::GetFullPathName(lpszFiles, sizeof(szPath), szPath, NULL);
|
||||
|
||||
// Get the first file that matches
|
||||
hFindFile = ::FindFirstFile(szPath, &findFileData);
|
||||
|
||||
if (hFindFile == INVALID_HANDLE_VALUE)
|
||||
return;
|
||||
|
||||
do {
|
||||
char szFile[MAX_PATH];
|
||||
|
||||
// We need to pass to AddFile() whatever kind of path we were passed,
|
||||
// e.g. simple, relative, full
|
||||
strcpy(szFile, szPath);
|
||||
strcpy(strrchr(szFile, '\\') + 1, findFileData.cFileName);
|
||||
AddFile(szFile);
|
||||
} while (::FindNextFile(hFindFile, &findFileData));
|
||||
|
||||
::FindClose(hFindFile);
|
||||
}
|
||||
}
|
||||
@ -1,80 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// nszipdoc.h : interface of the CNsZipDoc class
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CNsZipDoc : public CDocument
|
||||
{
|
||||
protected: // create from serialization only
|
||||
CNsZipDoc();
|
||||
DECLARE_DYNCREATE(CNsZipDoc)
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
// Create an archive with the specified file name. Wrapper around
|
||||
// the MFC OnNewDocument member
|
||||
BOOL OnNewDocument(LPCTSTR lpszPathName);
|
||||
|
||||
// Add a single file to the archive
|
||||
BOOL AddFile(LPCTSTR lpszFile);
|
||||
|
||||
// Add one or more files to the archive (lpszFiles can be a wildcard)
|
||||
void AddFiles(LPCTSTR lpszFiles);
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CNsZipDoc)
|
||||
public:
|
||||
virtual void OnCloseDocument();
|
||||
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
|
||||
virtual void DeleteContents();
|
||||
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CNsZipDoc();
|
||||
virtual void Serialize(CArchive& ar); // overridden for document i/o
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
HANDLE m_hUpdateFile;
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CNsZipDoc)
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -1,117 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// nszipvw.cpp : implementation of the CNsZipView class
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "nszip.h"
|
||||
|
||||
#include "nszipdoc.h"
|
||||
#include "nszipvw.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char BASED_CODE THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipView
|
||||
|
||||
IMPLEMENT_DYNCREATE(CNsZipView, CView)
|
||||
|
||||
BEGIN_MESSAGE_MAP(CNsZipView, CView)
|
||||
//{{AFX_MSG_MAP(CNsZipView)
|
||||
ON_COMMAND(ID_ACTIONS_DELETE, OnActionsDelete)
|
||||
ON_UPDATE_COMMAND_UI(ID_ACTIONS_DELETE, OnUpdateActionsDelete)
|
||||
ON_COMMAND(ID_ACTIONS_ADD, OnActionsAdd)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipView construction/destruction
|
||||
|
||||
CNsZipView::CNsZipView()
|
||||
{
|
||||
// TODO: add construction code here
|
||||
|
||||
}
|
||||
|
||||
CNsZipView::~CNsZipView()
|
||||
{
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipView drawing
|
||||
|
||||
void CNsZipView::OnDraw(CDC* pDC)
|
||||
{
|
||||
CNsZipDoc* pDoc = GetDocument();
|
||||
ASSERT_VALID(pDoc);
|
||||
|
||||
// TODO: add draw code for native data here
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipView diagnostics
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CNsZipView::AssertValid() const
|
||||
{
|
||||
CView::AssertValid();
|
||||
}
|
||||
|
||||
void CNsZipView::Dump(CDumpContext& dc) const
|
||||
{
|
||||
CView::Dump(dc);
|
||||
}
|
||||
|
||||
CNsZipDoc* CNsZipView::GetDocument() // non-debug version is inline
|
||||
{
|
||||
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CNsZipDoc)));
|
||||
return (CNsZipDoc*)m_pDocument;
|
||||
}
|
||||
#endif //_DEBUG
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CNsZipView message handlers
|
||||
|
||||
void CNsZipView::OnActionsDelete()
|
||||
{
|
||||
// TODO: Add your command handler code here
|
||||
|
||||
}
|
||||
|
||||
void CNsZipView::OnUpdateActionsDelete(CCmdUI* pCmdUI)
|
||||
{
|
||||
// TODO: Add your command update UI handler code here
|
||||
|
||||
}
|
||||
|
||||
void CNsZipView::OnActionsAdd()
|
||||
{
|
||||
// TODO: Add your command handler code here
|
||||
|
||||
}
|
||||
@ -1,76 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// nszipvw.h : interface of the CNsZipView class
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CNsZipView : public CView
|
||||
{
|
||||
protected: // create from serialization only
|
||||
CNsZipView();
|
||||
DECLARE_DYNCREATE(CNsZipView)
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
CNsZipDoc* GetDocument();
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CNsZipView)
|
||||
public:
|
||||
virtual void OnDraw(CDC* pDC); // overridden to draw this view
|
||||
protected:
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CNsZipView();
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CNsZipView)
|
||||
afx_msg void OnActionsDelete();
|
||||
afx_msg void OnUpdateActionsDelete(CCmdUI* pCmdUI);
|
||||
afx_msg void OnActionsAdd();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#ifndef _DEBUG // debug version in nszipvw.cpp
|
||||
inline CNsZipDoc* CNsZipView::GetDocument()
|
||||
{ return (CNsZipDoc*)m_pDocument; }
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@ -1,13 +0,0 @@
|
||||
//
|
||||
// NSZIP.RC2 - resources Microsoft Visual C++ does not edit directly
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#error this file is not editable by Microsoft Visual C++
|
||||
#endif //APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Add manually edited resources here...
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
@ -1,46 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by nszip.rc
|
||||
//
|
||||
#define IDD_ABOUTBOX 100
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDR_NSZIPTYPE 129
|
||||
#define ID_ACTIONS_ADD 32772
|
||||
#define ID_ACTIONS_DELETE 32773
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_3D_CONTROLS 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 130
|
||||
#define _APS_NEXT_COMMAND_VALUE 32774
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
@ -1,31 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// nszip.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
@ -1,32 +0,0 @@
|
||||
/* -*- 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.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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* 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):
|
||||
* Troy Chevalier <troy@netscape.com>
|
||||
* Sean Su <ssu@netscape.com>
|
||||
*/
|
||||
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
@ -32,6 +32,7 @@ USE_NON_MT_LIBS=1
|
||||
MODULE = setuprsc
|
||||
RESFILE = $(MODULE).res
|
||||
DLL = $(OBJDIR)\$(MODULE).dll
|
||||
EXPORTS = setuprsc.h
|
||||
|
||||
OBJS= \
|
||||
.\$(OBJDIR)\setuprsc.obj \
|
||||
@ -39,11 +40,6 @@ OBJS= \
|
||||
|
||||
include <$(DEPTH)/config/rules.mak>
|
||||
|
||||
docopy:
|
||||
$(MAKE_INSTALL) setuprsc.h $(DIST)\include
|
||||
|
||||
export:: docopy
|
||||
|
||||
install:: $(DLL)
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(MODULE).dll $(DIST)\install
|
||||
|
||||
|
||||
@ -28,6 +28,7 @@ USE_NON_MT_LIBS = 1
|
||||
MODULE = uninstall
|
||||
PROGRAM = .\$(OBJDIR)\$(MODULE).exe
|
||||
RESFILE = $(MODULE).res
|
||||
EXPORTS = logkeys.h
|
||||
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\uninstall.obj \
|
||||
@ -45,11 +46,6 @@ WIN_LIBS= \
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
docopy:
|
||||
$(MAKE_INSTALL) logkeys.h $(DIST)\include
|
||||
|
||||
export:: docopy
|
||||
|
||||
install:: $(PROGRAM)
|
||||
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\install
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user