Deletion of outdated tree widget and toolbar interfaces and updating of

the appropriate makefiles.
This commit is contained in:
hyatt%netscape.com 1998-12-02 01:38:54 +00:00
parent e364db36f4
commit 6ba325dd88
13 changed files with 6 additions and 484 deletions

View File

@ -77,16 +77,7 @@ EXPORTS = \
nsIPopUpMenu.h \
nsIMenuButton.h \
nsIImageButtonListener.h \
nsIDataModel.h \
nsITreeDataModel.h \
nsIToolbarDataModel.h \
nsIDMWidget.h \
nsITreeDMWidget.h \
nsIToolbarDMWidget.h \
nsITreeColumn.h \
nsITreeDMItem.h \
nsIToolbarDMItem.h \
nsIDMItem.h \
nsITreeView.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))

View File

@ -30,9 +30,7 @@ EXPORTS=nsui.h nsIWidget.h nsIButton.h nsICheckButton.h nsIListWidget.h \
nsIDialog.h nsILabel.h nsWidgetSupport.h \
nsIMenuBar.h nsIMenu.h nsIMenuItem.h nsIToolbar.h nsIImageButton.h nsIToolbar.h \
nsIToolbarManager.h nsIToolbarManagerListener.h nsIToolbarItem.h nsIToolbarItemHolder.h \
nsIPopUpMenu.h nsIMenuButton.h nsIImageButtonListener.h nsITreeDataModel.h nsIToolbarDataModel.h \
nsIDataModel.h nsITreeColumn.h nsITreeDMItem.h nsIToolbarDMItem.h nsIDMItem.h nsIDMWidget.h \
nsITreeDMWidget.h nsIToolbarDMWidget.h
nsIPopUpMenu.h nsIMenuButton.h nsIImageButtonListener.h nsITreeView.h
include <$(DEPTH)\config\rules.mak>

View File

@ -1,57 +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.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 nsIDMItem_h___
#define nsIDMItem_h___
#include "nsISupports.h"
#include "prthread.h"
#include "nsString.h"
class nsIImage;
class nsIImageGroup;
// {F2F36B61-5EBB-11d2-96ED-00104B7B7DEB}
#define NS_IDMITEM_IID \
{ 0xf2f36b61, 0x5ebb, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }
class nsIDMItem : public nsISupports
{
public:
// Inspectors
NS_IMETHOD GetIconImage(nsIImage*& pImage, nsIImageGroup* pGroup) const = 0;
NS_IMETHOD GetOpenState(PRBool& answer) const = 0;
// Methods for iterating over children.
NS_IMETHOD GetChildCount(PRUint32& count) const = 0;
NS_IMETHOD GetNthChild(nsIDMItem*& pItem, PRUint32 item) const = 0;
NS_IMETHOD GetSubtreeSize(PRUint32& size) const = 0;
// Parent access
NS_IMETHOD GetParent(nsIDMItem*& pItem) const = 0;
// Setters
NS_IMETHOD SetOpenState(PRBool state) = 0;
// Methods to query the data model for a specific item displayed within the widget.
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& itemProperty) const = 0;
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& itemProperty) const = 0;
};
#endif /* nsIDMItem_h___ */

View File

@ -1,50 +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.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 nsIDMWidget_h___
#define nsIDMWidget_h___
#include "nsISupports.h"
#include "nsGUIEvent.h"
class nsIDataModel;
class nsIDMItem;
// {E6ED4EC4-5985-11d2-96ED-00104B7B7DEB}
#define NS_IDMWIDGET_IID \
{ 0xe6ed4ec4, 0x5985, 0x11d2, \
{ 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }
// Events that the widget can receive from the data model.
const cDSImageLoaded = 0;
class nsIDMWidget : public nsISupports
{
public:
// Inspectors
NS_IMETHOD GetDataModel(nsIDataModel*& pDataModel) = 0;
// Setters
NS_IMETHOD SetDataModel(nsIDataModel* pDataModel) = 0;
NS_IMETHOD HandleDataModelEvent(int aEvent, nsIDMItem* pNode) = 0;
};
#endif /* nsIDMWidget_h___ */

View File

@ -1,59 +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.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 nsIDataModel_h___
#define nsIDataModel_h___
#include "nsISupports.h"
#include "prthread.h"
#include "nsString.h"
// {65FCD501-789E-11d2-96ED-00104B7B7DEB}
#define NS_IDATAMODEL_IID \
{ 0x65fcd501, 0x789e, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }
class nsIDMItem;
class nsIDMWidget;
class nsIDataModel : public nsISupports
{
public:
// Initializers
NS_IMETHOD InitFromURL(const nsString& url) = 0;
NS_IMETHOD InitFromResource(nsIDMItem* pResource) = 0;
// Inspectors
NS_IMETHOD GetDMWidget(nsIDMWidget*& pWidget) const = 0;
NS_IMETHOD GetFirstVisibleItemIndex(PRUint32& index) const = 0;
NS_IMETHOD SetFirstVisibleItemIndex(PRUint32 index) = 0;
NS_IMETHOD GetItemCount(PRUint32 count) const = 0;
NS_IMETHOD GetNthItem(nsIDMItem*& pItem, PRUint32 n) const = 0;
// Setters
NS_IMETHOD SetDMWidget(nsIDMWidget* pWidget) = 0;
// Methods to query the data model for property values for an entire widget.
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& property) const = 0;
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& property) const = 0;
};
#endif /* nsIDataModel_h___ */

View File

@ -1,43 +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.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 nsIToolbarDMItem_h___
#define nsIToolbarDMItem_h___
#include "prthread.h"
#include "nsString.h"
#include "nsIDMItem.h"
class nsIImage;
class nsIImageGroup;
// {2FC8FD02-789F-11d2-96ED-00104B7B7DEB}
#define NS_ITOOLBARDMITEM_IID \
{ 0x77edfec1, 0x7956, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
class nsIToolbarDMItem : public nsIDMItem
{
public:
// Inspectors
// Setters
};
#endif /* nsIToolbarDMItem_h___ */

View File

@ -1,38 +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.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 nsIToolbarDMWidget_h___
#define nsIToolbarDMWidget_h___
#include "nsIDMWidget.h"
#include "nsGUIEvent.h"
class nsIDataModel;
// {FEB0DC21-796F-11d2-BF86-00105A1B0627}
#define NS_ITOOLBARDMWIDGET_IID
{ 0xfeb0dc21, 0x796f, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
class nsIToolbarDMWidget : public nsIDMWidget
{
public:
};
#endif /* nsIToolbarDMWidget_h___ */

View File

@ -1,41 +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.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 nsIToolbarDataModel_h___
#define nsIToolbarDataModel_h___
#include "prthread.h"
#include "nsString.h"
#include "nsIDataModel.h"
class nsIToolbarItem;
// {2AAB8D81-7956-11d2-BF86-00105A1B0627}
#define NS_ITOOLBARDATAMODEL_IID \
{ 0x2aab8d81, 0x7956, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
class nsIToolbarDataModel : public nsIDataModel
{
public:
// There will be methods for toolbar specific stuff here.
};
#endif /* nsIToolbarDataModel_h___ */

View File

@ -1,51 +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.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 nsITreeColumn_h___
#define nsITreeColumn_h___
#include "nsISupports.h"
#include "prthread.h"
#include "nsString.h"
// {DD719481-5D79-11d2-96ED-00104B7B7DEB}
#define NS_ITREECOLUMN_IID \
{ 0xdd719481, 0x5d79, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }
// Sort State enum
enum nsColumnSortState {
eColumnSortState_Unsorted,
eColumnSortState_Ascending,
eColumnSortState_Descending
};
class nsITreeColumn : public nsISupports
{
public:
// Inspectors
NS_IMETHOD GetPixelWidth(PRUint32& width) const = 0;
NS_IMETHOD GetDesiredPercentage(double& percentage) const = 0;
NS_IMETHOD GetSortState(nsColumnSortState& answer) const = 0;
NS_IMETHOD GetColumnName(nsString& name) const = 0;
// Setters
NS_IMETHOD SetPixelWidth(PRUint32 newWidth) = 0;
};
#endif /* nsITreeColumn_h___ */

View File

@ -1,45 +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.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 nsITreeDMItem_h___
#define nsITreeDMItem_h___
#include "prthread.h"
#include "nsString.h"
#include "nsIDMItem.h"
class nsIImage;
class nsIImageGroup;
// {2FC8FD02-789F-11d2-96ED-00104B7B7DEB}
#define NS_ITREEDMITEM_IID \
{ 0x2fc8fd02, 0x789f, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }
class nsITreeDMItem : public nsIDMItem
{
public:
// Inspectors
NS_IMETHOD GetTriggerImage(nsIImage*& pImage, nsIImageGroup* pGroup) const = 0;
NS_IMETHOD GetIndentationLevel(PRUint32& indentation) const = 0;
// Setters
};
#endif /* nsITreeDMItem_h___ */

View File

@ -1,38 +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.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 nsITreeDMWidget_h___
#define nsITreeDMWidget_h___
#include "nsIDMWidget.h"
#include "nsGUIEvent.h"
class nsIDataModel;
// {FC41CD61-796E-11d2-BF86-00105A1B0627}
#define NS_ITREEDMWIDGET_IID \
{ 0xfc41cd61, 0x796e, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
class nsITreeDMWidget : public nsIDMWidget
{
public:
};
#endif /* nsITreeDMWidget_h___ */

View File

@ -1,49 +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.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 nsITreeDataModel_h___
#define nsITreeDataModel_h___
#include "prthread.h"
#include "nsString.h"
#include "nsIDataModel.h"
class nsITreeColumn;
class nsITreeDMItem;
// {728D90C2-5B2A-11d2-96ED-00104B7B7DEB}
#define NS_ITREEDATAMODEL_IID \
{ 0x728d90c2, 0x5b2a, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }
class nsITreeDataModel : public nsIDataModel
{
public:
// Column APIs
NS_IMETHOD GetVisibleColumnCount(PRUint32& count) const = 0;
NS_IMETHOD GetColumnCount(PRUint32& count) const = 0;
NS_IMETHOD GetNthColumn(nsITreeColumn*& pColumn, PRUint32 n) const = 0;
// TreeItem APIs
NS_IMETHOD GetFirstVisibleItemIndex(PRUint32& index) const = 0;
NS_IMETHOD GetNthTreeItem(nsITreeDMItem*& pItem, PRUint32 n) const = 0;
NS_IMETHOD GetItemTextForColumn(nsString& nodeText, nsITreeDMItem* pItem, nsITreeColumn* pColumn) const = 0;
};
#endif /* nsITreeDataModel_h___ */

View File

@ -173,3 +173,7 @@
{ 0xd3c3b8b2, 0x55b5, 0x11d2, \
{ 0x9a, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
// {0FAF80A1-815C-11d2-96ED-00104B7B7DEB}
#define NS_TREEVIEW_CID \
{ 0xfaf80a1, 0x815c, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } }