Initial version for Rhapsody

This commit is contained in:
mcafee%netscape.com 1998-09-19 07:21:02 +00:00
parent c61599860a
commit c4747da39f
3 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,72 @@
#!gmake
#
# 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.
DEPTH = ../../..
include $(DEPTH)/config/config.mk
LIBRARY_NAME = widgetunix
MODULE=raptor
REQUIRES=util img xpcom raptor netlib
DEFINES = -D_IMPL_NS_WIDGET
EXTRA_DSO_LDOPTS += -L$(DIST)/bin -lxpcom -lraptorbase -lreg $(LIBNSPR) -lplc21
CPPSRCS= \
nsObject.cpp \
$(NULL)
#########################################
# Here's what unix/Motif had as of 9/18:
#########################################
# nsWidgetSupport.cpp
# nsWindow.cpp
# nsComboBox.cpp
# nsTextHelper.cpp
# nsTextAreaWidget.cpp
# nsTextWidget.cpp
# nsListBox.cpp
# nsRadioButton.cpp
# nsFileWidget.cpp
# nsCheckButton.cpp
# nsScrollbar.cpp
# nsButton.cpp
# nsAppShell.cpp
# nsWidgetFactory.cpp
# nsXtEventHandler.cpp
# nsLookAndFeel.cpp
# nsToolkit.cpp
# nsLabel.cpp
# nsDialog.cpp
# nsXtManageWidget.cpp
include $(DEPTH)/config/config.mk
TARGETS = $(LIBRARY)
include $(DEPTH)/config/rules.mk

View File

@ -0,0 +1,63 @@
/* -*- 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 "nsObject.h"
NS_IMPL_ADDREF(nsObject)
NS_IMPL_RELEASE(nsObject)
/**
* constructor
*/
nsObject::nsObject():nsISupports()
{
// ref count init
mRefCnt = 1;
}
/**
* destructor
*/
nsObject::~nsObject()
{
}
/**
*
*/
nsresult nsObject::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
if (aIID.Equals(kISupportsIID)) {
*aInstancePtr = (void*) ((nsISupports*)this);
AddRef();
return NS_OK;
}
return NS_NOINTERFACE;
}

View File

@ -0,0 +1,45 @@
/* -*- 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.
*/
#ifndef nsObject_h__
#define nsObject_h__
#include "nsISupports.h"
/**
* nsObject is the base class for all native widgets
*/
class nsObject : public nsISupports
{
public:
nsObject();
virtual ~nsObject();
NS_DECL_ISUPPORTS
protected:
public:
};
#endif // nsObject_h__