Implemented stub GetEnabled() and IsHelpMenu() functions. Reviewed by

ramiro@netscape.com.
This commit is contained in:
shawnp%earthling.net 1999-10-05 01:26:39 +00:00
Родитель d9707e567b
Коммит 5a99630c35
2 изменённых файлов: 25 добавлений и 1 удалений

Просмотреть файл

@ -422,9 +422,31 @@ NS_METHOD nsMenu::RemoveMenuListener(nsIMenuListener * aMenuListener)
return NS_OK;
}
//-------------------------------------------------------------------------
// Set enabled state
//-------------------------------------------------------------------------
NS_METHOD nsMenu::SetEnabled(PRBool aIsEnabled)
{
return NS_OK;
PR_LOG(QtWidgetsLM, PR_LOG_DEBUG, ("nsMenu::SetEnabled()\n"));
return NS_OK;
}
//-------------------------------------------------------------------------
// Get enabled state
//-------------------------------------------------------------------------
NS_METHOD nsMenu::GetEnabled(PRBool* aIsEnabled)
{
PR_LOG(QtWidgetsLM, PR_LOG_DEBUG, ("nsMenu::GetEnabled()\n"));
return NS_OK;
}
//-------------------------------------------------------------------------
// Query if this is the help menu
//-------------------------------------------------------------------------
NS_METHOD nsMenu::IsHelpMenu(PRBool* aIsHelpMenu)
{
PR_LOG(QtWidgetsLM, PR_LOG_DEBUG, ("nsMenu::IsHelpMenu()\n"));
return NS_OK;
}
//-------------------------------------------------------------------------

Просмотреть файл

@ -75,6 +75,8 @@ public:
NS_IMETHOD AddMenuListener(nsIMenuListener * aMenuListener);
NS_IMETHOD RemoveMenuListener(nsIMenuListener * aMenuListener);
NS_IMETHOD SetEnabled(PRBool aIsEnabled);
NS_IMETHOD GetEnabled(PRBool* aIsEnabled);
NS_IMETHOD IsHelpMenu(PRBool* aIsHelp);
NS_IMETHOD SetDOMNode(nsIDOMNode * aMenuNode);
NS_IMETHOD SetDOMElement(nsIDOMElement * aMenuElement);