зеркало из https://github.com/mozilla/pjs.git
Add GetIID() methods to these interfaces. To support an upcoming checkin.
This commit is contained in:
Родитель
54fda6211b
Коммит
1261e54f50
|
@ -53,6 +53,7 @@ class nsIAppShell : public nsISupports
|
|||
{
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAPPSHELL_IID)
|
||||
|
||||
/**
|
||||
* Creates an application shell
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
class nsIButton : public nsISupports {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBUTTON_IID)
|
||||
|
||||
/**
|
||||
* Set the label
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
class nsICheckButton : public nsISupports {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICHECKBUTTON_IID)
|
||||
|
||||
/**
|
||||
* Set the button label
|
||||
|
|
|
@ -46,6 +46,8 @@ struct nsComboBoxInitData : public nsWidgetInitData {
|
|||
|
||||
class nsIComboBox : public nsISupports {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMBOBOX_IID);
|
||||
|
||||
/**
|
||||
* Set an item at the specific position
|
||||
*
|
||||
|
|
|
@ -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 nsIDialog_h__
|
||||
#define nsIDialog_h__
|
||||
|
||||
#include "nsIWidget.h"
|
||||
|
||||
// {4A781D61-3D28-11d2-8DB8-00609703C14E}
|
||||
#define NS_IDIALOG_IID \
|
||||
{ 0x4a781d61, 0x3d28, 0x11d2, \
|
||||
{ 0x8d, 0xb8, 0x0, 0x60, 0x97, 0x3, 0xc1, 0x4e } }
|
||||
|
||||
|
||||
/**
|
||||
* The base class for all the widgets. It provides the interface for
|
||||
* all basic and necessary functionality.
|
||||
*/
|
||||
class nsIDialog : public nsISupports {
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Set the dialog label
|
||||
*
|
||||
* @param aText button label
|
||||
*/
|
||||
|
||||
NS_IMETHOD SetLabel(const nsString &aText) = 0;
|
||||
|
||||
/**
|
||||
* Get the dialog label
|
||||
*
|
||||
* @param aBuffer contains label upon return
|
||||
*/
|
||||
|
||||
NS_IMETHOD GetLabel(nsString &aBuffer) = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIDialog_h__
|
|
@ -1,239 +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 nsIImageButton_h___
|
||||
#define nsIImageButton_h___
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsGUIEvent.h"
|
||||
#include "nsString.h"
|
||||
#include "nsColor.h"
|
||||
|
||||
class nsIImageButtonListener;
|
||||
|
||||
//f58c2550-4a7c-11d2-bee2-00805f8a8dbd
|
||||
#define NS_IIMAGEBUTTON_IID \
|
||||
{ 0xf58c2550, 0x4a7c, 0x11d2, \
|
||||
{0xbe, 0xe2, 0x00, 0x80, 0x5f, 0x8a, 0x8d, 0xbd} }
|
||||
|
||||
|
||||
typedef enum {
|
||||
eButtonVerticalAligment_Top,
|
||||
eButtonVerticalAligment_Center,
|
||||
eButtonVerticalAligment_Bottom
|
||||
} nsButtonVerticalAligment;
|
||||
|
||||
typedef enum {
|
||||
eButtonHorizontalAligment_Left,
|
||||
eButtonHorizontalAligment_Middle,
|
||||
eButtonHorizontalAligment_Right
|
||||
} nsButtonHorizontalAligment;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
class nsIImageButton : public nsISupports
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Sets the label on the Image Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetLabel(const nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Gets the label on the Image Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetLabel(nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Gets the command for the Image Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetCommand(PRInt32 &aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Sets the command for the Image Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetCommand(PRInt32 aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Sets the description that is available when the mouse enters the control
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetRollOverDesc(const nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Gets the description that is available when the mouse enters the control
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetRollOverDesc(nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Sets the border highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetHighlightColor(const nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Gets the border highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetHighlightColor(nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Gets the Shadow highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetShadowColor(nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Sets the Shadow highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShadowColor(const nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Sets the Dimensions of the Image in the button
|
||||
* (The dimensions should come from the image)
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageDimensions(const PRInt32 & aWidth, const PRInt32 & aHeight) = 0;
|
||||
|
||||
/**
|
||||
* Gets the Dimensions of the Image in the button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetImageDimensions(PRInt32 & aWidth, PRInt32 & aHeight) = 0;
|
||||
|
||||
/**
|
||||
* Sets the URLs for the Buttons images
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageURLs(const nsString& aUpURL,
|
||||
const nsString& aPressedURL,
|
||||
const nsString& aDisabledURL,
|
||||
const nsString& aRollOverURL) = 0;
|
||||
NS_IMETHOD SetImageUpURL(const nsString& aUpURL) = 0;
|
||||
NS_IMETHOD SetImagePressedURL(const nsString& aPressedURL) = 0;
|
||||
NS_IMETHOD SetImageDisabledURL(const nsString& aDisabledURL) = 0;
|
||||
NS_IMETHOD SetImageRollOverURL(const nsString& aRollOverURL) = 0;
|
||||
|
||||
/**
|
||||
* Sets the width of the border
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetBorderWidth(PRInt32 aWidth) = 0;
|
||||
|
||||
/**
|
||||
* Sets the width of the space between the border and the text or image
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetBorderOffset(PRInt32 aWidth) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the Border show be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowBorder(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the Border show be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowButtonBorder(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the text should be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowText(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the image should be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowImage(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets the image's vertical alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageVerticalAlignment(nsButtonVerticalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Sets the image's horizontal alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageHorizontalAlignment(nsButtonHorizontalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Sets the text's vertical alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetTextVerticalAlignment(nsButtonVerticalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Sets the text's horizontal alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetTextHorizontalAlignment(nsButtonHorizontalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Show border at all times
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetAlwaysShowBorder(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Show border at all times
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SwapHighlightShadowColors() = 0;
|
||||
|
||||
/**
|
||||
* Add Image Button Listener
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD AddListener(nsIImageButtonListener * aListener) = 0;
|
||||
|
||||
/**
|
||||
* Removes Image Button Listener
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD RemoveListener(nsIImageButtonListener * aListener) = 0;
|
||||
|
||||
/**
|
||||
* HandleGUI Events
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD_(nsEventStatus) HandleEvent(nsGUIEvent *aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Handle OnPaint
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD_(nsEventStatus) OnPaint(nsIRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsIImageButton_h___ */
|
||||
|
|
@ -1,47 +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 nsIImageButtonListener_h___
|
||||
#define nsIImageButtonListener_h___
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsGUIEvent.h"
|
||||
|
||||
class nsIImageButton;
|
||||
|
||||
// {D3C3B8B2-55B5-11d2-9A2A-000000000000}
|
||||
#define NS_IIMAGEBUTTONLISTENER_IID \
|
||||
{ 0xd3c3b8b2, 0x55b5, 0x11d2, \
|
||||
{ 0x9a, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
class nsIImageButtonListener : public nsISupports
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Notifies
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD NotifyImageButtonEvent(nsIImageButton * aImgBtn, nsGUIEvent* anEvent) = 0;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsIImageButtonListener_h___ */
|
||||
|
|
@ -53,8 +53,9 @@ struct nsLabelInitData : public nsWidgetInitData {
|
|||
class nsILabel : public nsISupports {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ILABEL_IID)
|
||||
|
||||
/**
|
||||
/**
|
||||
* Set the label
|
||||
*
|
||||
* @param Set the label to aText
|
||||
|
|
|
@ -51,6 +51,7 @@ struct nsListBoxInitData : public nsWidgetInitData {
|
|||
class nsIListBox : public nsISupports {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ILISTBOX_IID)
|
||||
|
||||
/**
|
||||
* Set an item at the specific position
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
class nsIListWidget : public nsISupports {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ILISTWIDGET_IID)
|
||||
|
||||
/**
|
||||
* Set an item at the specific position
|
||||
|
|
|
@ -1,262 +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 nsIMenuButton_h___
|
||||
#define nsIMenuButton_h___
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsGUIEvent.h"
|
||||
#include "nsString.h"
|
||||
#include "nsColor.h"
|
||||
#include "nsIImageButton.h"
|
||||
|
||||
#define NS_IMENUBUTTON_IID \
|
||||
{ 0x67b8e261, 0x53c3, 0x11d2, \
|
||||
{ 0x8d, 0xc4, 0x0, 0x60, 0x97, 0x3, 0xc1, 0x4e } }
|
||||
|
||||
/*
|
||||
typedef enum {
|
||||
eButtonVerticalAligment_Top,
|
||||
eButtonVerticalAligment_Center,
|
||||
eButtonVerticalAligment_Bottom
|
||||
} nsButtonVerticalAligment;
|
||||
|
||||
typedef enum {
|
||||
eButtonHorizontalAligment_Left,
|
||||
eButtonHorizontalAligment_Middle,
|
||||
eButtonHorizontalAligment_Right
|
||||
} nsButtonHorizontalAligment;
|
||||
*/
|
||||
//---------------------------------------------------------------------------
|
||||
class nsIMenuButton : public nsISupports
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Sets the label on the Menu Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetLabel(const nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Gets the label on the Menu Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetLabel(nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Sets the description that is available when the mouse enters the control
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetRollOverDesc(const nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Gets the description that is available when the mouse enters the control
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetRollOverDesc(nsString& aString) = 0;
|
||||
|
||||
/**
|
||||
* Gets the command for the Menu Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetCommand(PRInt32 &aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Sets the command for the Menu Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetCommand(PRInt32 aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Sets the border highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetHighlightColor(const nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Gets the border highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetHighlightColor(nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Gets the Shadow highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetShadowColor(nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Sets the Shadow highlight color
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShadowColor(const nscolor &aColor) = 0;
|
||||
|
||||
/**
|
||||
* Sets the Dimensions of the Image in the button
|
||||
* (The dimensions should come from the image)
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageDimensions(const PRInt32 & aWidth, const PRInt32 & aHeight) = 0;
|
||||
|
||||
/**
|
||||
* Sets the URLs for the Buttons images
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageURLs(const nsString& aUpURL,
|
||||
const nsString& aPressedURL,
|
||||
const nsString& aDisabledURL,
|
||||
const nsString& aRollOverURL) = 0;
|
||||
NS_IMETHOD SetImageUpURL(const nsString& aUpURL) = 0;
|
||||
NS_IMETHOD SetImagePressedURL(const nsString& aPressedURL) = 0;
|
||||
NS_IMETHOD SetImageDisabledURL(const nsString& aDisabledURL) = 0;
|
||||
NS_IMETHOD SetImageRollOverURL(const nsString& aRollOverURL) = 0;
|
||||
|
||||
/**
|
||||
* Sets the width of the border
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetBorderWidth(PRInt32 aWidth) = 0;
|
||||
|
||||
/**
|
||||
* Sets the width of the space between the border and the text or image
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetBorderOffset(PRInt32 aWidth) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the Border show be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowBorder(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the Border show be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowButtonBorder(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the text should be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowText(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets whether the image should be shown
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetShowImage(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Sets the image's vertical alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageVerticalAlignment(nsButtonVerticalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Sets the image's horizontal alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetImageHorizontalAlignment(nsButtonHorizontalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Sets the text's vertical alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetTextVerticalAlignment(nsButtonVerticalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Sets the text's horizontal alignment
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetTextHorizontalAlignment(nsButtonHorizontalAligment aAlign) = 0;
|
||||
|
||||
/**
|
||||
* Show border at all times
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SetAlwaysShowBorder(PRBool aState) = 0;
|
||||
|
||||
/**
|
||||
* Show border at all times
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD SwapHighlightShadowColors() = 0;
|
||||
|
||||
/**
|
||||
* HandleGUI Events
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD_(nsEventStatus) HandleEvent(nsGUIEvent *aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Handle OnPaint
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD_(nsEventStatus) OnPaint(nsIRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect) = 0;
|
||||
|
||||
/**
|
||||
* Gets the PopUp on the Image Button
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD GetPopUpMenu(nsIPopUpMenu *& aPopUpMenu) = 0;
|
||||
|
||||
/**
|
||||
* Appends a MenuItem to the PopUp
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD AddMenuItem(const nsString& aMenuLabel, PRInt32 aCommand) = 0;
|
||||
|
||||
/**
|
||||
* Inserts a MenuItem into the PopUp
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD InsertMenuItem(const nsString& aMenuLabel, PRInt32 aCommand, PRInt32 aPos) = 0;
|
||||
|
||||
/**
|
||||
* Removes a MenuItem from the PopUp at a specified location
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD RemovesMenuItem(PRInt32 aPos) = 0;
|
||||
|
||||
/**
|
||||
* Removes all the MenuItems from the PopUp
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD RemoveAllMenuItems(PRInt32 aPos) = 0;
|
||||
|
||||
/**
|
||||
* Add Menu Button Listener
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD AddListener(nsIImageButtonListener * aListener) = 0;
|
||||
|
||||
/**
|
||||
* Removes Menu Button Listener
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD RemoveListener(nsIImageButtonListener * aListener) = 0;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsIMenuButton_h___ */
|
||||
|
|
@ -33,6 +33,7 @@
|
|||
class nsIRadioButton : public nsISupports {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRADIOBUTTON_IID)
|
||||
|
||||
/**
|
||||
* Set the button label
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
class nsIScrollbar : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCROLLBAR_IID)
|
||||
|
||||
/**
|
||||
* Set the scrollbar range
|
||||
|
|
|
@ -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 nsITabWidget_h__
|
||||
#define nsITabWidget_h__
|
||||
|
||||
#include "nsIWidget.h"
|
||||
#include "nsString.h"
|
||||
|
||||
#define NS_ITABWIDGET_IID \
|
||||
{ 0xf05ba6e0, 0xd4a7, 0x11d1, { 0x9e, 0xc0, 0x0, 0xaa, 0x0, 0x2f, 0xb8, 0x21 } };
|
||||
|
||||
/**
|
||||
* Tab widget.
|
||||
* Presents a lists of tabs to be clicked on.
|
||||
*/
|
||||
class nsITabWidget : public nsISupports {
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Setup the tabs
|
||||
*
|
||||
* @param aNumberOfTabs The number of tabs in aTabLabels and aTabID
|
||||
* @param aTabLabels title displayed in the tab
|
||||
* @result NS_Ok if no errors
|
||||
*/
|
||||
|
||||
NS_IMETHOD SetTabs(PRUint32 aNumberOfTabs, const nsString aTabLabels[]) = 0;
|
||||
|
||||
/**
|
||||
* Get selected tab
|
||||
*
|
||||
* @return the index of the selected tab. Index ranges between 0 and (NumberOfTabs - 1)
|
||||
* @result NS_Ok if no errors
|
||||
*/
|
||||
|
||||
NS_IMETHOD GetSelectedTab(PRUint32& aTab) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
|
@ -40,6 +40,7 @@ class nsITextAreaWidget : public nsISupports
|
|||
{
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITEXTAREAWIDGET_IID)
|
||||
|
||||
/**
|
||||
* Get the text of this component.
|
||||
|
|
|
@ -50,6 +50,7 @@ class nsITextWidget : public nsISupports
|
|||
{
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITEXTWIDGET_IID)
|
||||
|
||||
/**
|
||||
* Get the text of this component.
|
||||
|
|
|
@ -1,54 +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 nsIToolkit_h__
|
||||
#define nsIToolkit_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "prthread.h"
|
||||
|
||||
// {18032BD0-B265-11d1-AA2A-000000000000}
|
||||
#define NS_ITOOLKIT_IID \
|
||||
{ 0x18032bd0, 0xb265, 0x11d1, \
|
||||
{ 0xaa, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Toolkit to associate with widgets.
|
||||
* Each widget that is created must belong to a specific toolkit
|
||||
* The toolkit is used to switch to the appropriate thread when
|
||||
* the message pump for the widget is processed.
|
||||
*/
|
||||
|
||||
class nsIToolkit : public nsISupports {
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Initialize this toolkit with aThread.
|
||||
* @param aThread The thread passed in runs the message pump.
|
||||
* NULL can be passed in, in which case a new thread gets created
|
||||
* and a message pump will run in that thread
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Init(PRThread *aThread) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
|
@ -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 nsITooltipWidget_h__
|
||||
#define nsITooltipWidget_h__
|
||||
|
||||
#include "nsIWidget.h"
|
||||
#include "nsString.h"
|
||||
|
||||
#define NS_ITOOLTIPWIDGET_IID \
|
||||
{ 0x2910c191, 0xe38a, 0x11d1, { 0x9e, 0xc1, 0x0, 0xaa, 0x0, 0x2f, 0xb8, 0x21 } };
|
||||
|
||||
/**
|
||||
*
|
||||
* Tool tip display widget
|
||||
*
|
||||
*/
|
||||
|
||||
class nsITooltipWidget : public nsISupports
|
||||
{
|
||||
};
|
||||
|
||||
#endif // nsITooltipWidget_h__
|
||||
|
Загрузка…
Ссылка в новой задаче