basic implementation of new method nsIWidget::IsEnabled. bug 126786 r=hyatt,rginda a=asa

This commit is contained in:
danm%netscape.com 2002-02-28 23:34:51 +00:00
Родитель bfc5f51129
Коммит 355f7ae8cc
2 изменённых файлов: 11 добавлений и 3 удалений

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

@ -1146,12 +1146,12 @@ NS_METHOD nsWindow::Resize(PRInt32 aX,
// Enable/disable this component
//
//-------------------------------------------------------------------------
NS_METHOD nsWindow::Enable(PRBool bState)
NS_METHOD nsWindow::Enable(PRBool aState)
{
if(mView && mView->LockLooper()) {
if (mView->Window()) {
uint flags = mView->Window()->Flags();
if (bState == PR_TRUE) {
if (aState == PR_TRUE) {
flags &= ~(B_AVOID_FRONT|B_AVOID_FOCUS);
} else {
flags |= B_AVOID_FRONT|B_AVOID_FOCUS;
@ -1164,6 +1164,13 @@ NS_METHOD nsWindow::Enable(PRBool bState)
}
NS_METHOD nsWindow::IsEnabled(PRBool *aState)
{
// looks easy enough, but...
return NS_ERROR_NOT_IMPLEMENTED;
}
//-------------------------------------------------------------------------
//
// Give the focus to this component

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

@ -124,7 +124,8 @@ public:
PRInt32 aWidth,
PRInt32 aHeight,
PRBool aRepaint);
NS_IMETHOD Enable(PRBool bState);
NS_IMETHOD Enable(PRBool aState);
NS_IMETHOD IsEnabled(PRBool *aState);
NS_IMETHOD SetFocus(PRBool aRaise);
NS_IMETHOD GetBounds(nsRect &aRect);
NS_IMETHOD GetClientBounds(nsRect &aRect);