Author: gs
Date: Tue Jul 17 11:15:55 2007
New Revision: 39463
URL: http://svn.opensuse.org/viewcvs/yast?rev=39463&view=rev
Log:
replace setEnabling() by setEnabled()
Modified:
branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc
branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.h
branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.cc
branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.h
branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.cc
branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.h
branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.h
branches/tmp/sh/mod-ui/ncurses/src/NCDialog.h
branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.cc
branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.h
branches/tmp/sh/mod-ui/ncurses/src/NCFrame.cc
branches/tmp/sh/mod-ui/ncurses/src/NCFrame.h
branches/tmp/sh/mod-ui/ncurses/src/NCImage.cc
branches/tmp/sh/mod-ui/ncurses/src/NCImage.h
branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc
branches/tmp/sh/mod-ui/ncurses/src/NCInputField.h
branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc
branches/tmp/sh/mod-ui/ncurses/src/NCIntField.h
branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc
branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h
branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc
branches/tmp/sh/mod-ui/ncurses/src/NCLogView.cc
branches/tmp/sh/mod-ui/ncurses/src/NCLogView.h
branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc
branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.h
branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc
branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h
branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc
branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h
branches/tmp/sh/mod-ui/ncurses/src/NCPadWidget.h
branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc
branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.h
branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc
branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h
branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc
branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h
branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.cc
branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.h
branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.cc
branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.h
branches/tmp/sh/mod-ui/ncurses/src/NCRichText.cc
branches/tmp/sh/mod-ui/ncurses/src/NCRichText.h
branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc
branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.h
branches/tmp/sh/mod-ui/ncurses/src/NCSpacing.cc
branches/tmp/sh/mod-ui/ncurses/src/NCSquash.cc
branches/tmp/sh/mod-ui/ncurses/src/NCSquash.h
branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc
branches/tmp/sh/mod-ui/ncurses/src/NCTable.h
branches/tmp/sh/mod-ui/ncurses/src/NCTree.cc
branches/tmp/sh/mod-ui/ncurses/src/NCTree.h
branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc
branches/tmp/sh/mod-ui/ncurses/src/NCWidget.h
branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPackageSelector.cc
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.cc Tue Jul 17 11:15:55 2007
@@ -65,6 +65,12 @@
YAlignment::setSize( newwidth, newheight);
}
+void NCAlignmet::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YAlignment::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCAlignment.h Tue Jul 17 11:15:55 2007
@@ -62,7 +62,8 @@
virtual void setSize( int newWidth, int newHeight );
virtual void moveChild( YWidget * child, int newx, int newy );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.cc Tue Jul 17 11:15:55 2007
@@ -84,6 +84,12 @@
return wGetDefsze().H;
}
+void NCCheckBox::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YCheckBox::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.h Tue Jul 17 11:15:55 2007
@@ -87,8 +87,9 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
-
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
+
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
return YWidget::setKeyboardFocus();
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.cc Tue Jul 17 11:15:55 2007
@@ -47,7 +47,7 @@
else
setValue( checked );
- // setEnabling(); is called in wRedraw()
+ // setEnabled(); is called in wRedraw()
}
///////////////////////////////////////////////////////////////////
@@ -142,21 +142,21 @@
///////////////////////////////////////////////////////////////////
//
//
-// METHOD NAME : NCCheckBoxFrame::setEnabling
+// METHOD NAME : NCCheckBoxFrame::setEnabled
// METHOD TYPE : void
//
// DESCRIPTION :
//
-void NCCheckBoxFrame::setEnabling( bool do_bv )
+void NCCheckBoxFrame::setEnabled( bool do_bv )
{
- enabled = do_bv; // in YWidget
+ YWidget::setEnabled( do_bv );
for ( tnode * c = this->Next();
c && c->IsDescendantOf( this );
c = c->Next() ) {
if ( c->Value()->GetState() != NC::WSdumb )
{
- c->Value()->setEnabling( enabled );
+ c->Value()->setEnabled( enabled );
// explicitely set the state (needed for first run - bug #268352)
c->Value()->SetState(enabled?NC::WSnormal:NC::WSdisabeled, true);
}
@@ -227,7 +227,7 @@
win->printw( 0, 2, "%c", 'x' );
}
- setEnabling( getValue() );
+ setEnabled( getValue() );
}
///////////////////////////////////////////////////////////////////
@@ -259,7 +259,7 @@
if ( getNotify() )
ret = NCursesEvent::ValueChanged;
else
- setEnabling( getValue() );
+ setEnabled( getValue() );
}
return ret;
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCCheckBoxFrame.h Tue Jul 17 11:15:55 2007
@@ -72,8 +72,9 @@
virtual void setLabel( const string & nlabel );
- virtual void setEnabling( bool do_bv );
-
+ //virtual void setEnabling( bool do_bv );
+ virtual void setEnabled( bool do_bv );
+
virtual bool getValue() { return isEnabled; }
virtual void setValue( bool enable ) { isEnabled = enable; }
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCComboBox.h Tue Jul 17 11:15:55 2007
@@ -115,8 +115,9 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
-
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
+
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
return YWidget::setKeyboardFocus();
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCDialog.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCDialog.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCDialog.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCDialog.h Tue Jul 17 11:15:55 2007
@@ -173,8 +173,9 @@
return dlgstyle ? *dlgstyle : NCurses::style()[NCstyle::DefaultStyle];
}
- virtual void setEnabling( bool do_bv ) { /*NOP*/ }
-
+ //virtual void setEnabling( bool do_bv ) { /*NOP*/ }
+ virtual void setEnabled( bool do_bv ) { /*NOP*/ };
+
private:
friend class NCurses;
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.cc Tue Jul 17 11:15:55 2007
@@ -61,3 +61,9 @@
{
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
+
+void NCEmpty::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YEmpty::setEnabled( do_bv );
+}
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCEmpty.h Tue Jul 17 11:15:55 2007
@@ -60,7 +60,8 @@
* Reimplemented from YWidget.
**/
virtual void setSize( int newWidth, int newHeight );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCFrame.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCFrame.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCFrame.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCFrame.cc Tue Jul 17 11:15:55 2007
@@ -127,6 +127,13 @@
Redraw();
}
+void NCFrame::setEnabled( bool do_bv )
+{
+ //Use setEnabled() from the parent, it should work out (#256707) :-)
+ NCWidget::setEnabled( do_bv );
+ YFrame::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCFrame.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCFrame.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCFrame.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCFrame.h Tue Jul 17 11:15:55 2007
@@ -70,10 +70,8 @@
virtual void setLabel( const string & nlabel );
- //virtual void setEnabling( bool do_bv );
- //Use setEnabling() from the parent, it should work out (#256707) :-)
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
-
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCImage.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCImage.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCImage.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCImage.cc Tue Jul 17 11:15:55 2007
@@ -76,6 +76,12 @@
return wGetDefsze().H;
}
+void NCImage::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YImage::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCImage.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCImage.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCImage.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCImage.h Tue Jul 17 11:15:55 2007
@@ -63,7 +63,8 @@
* Reimplemented from YWidget.
**/
virtual void setSize( int newWidth, int newHeight );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCInputField.cc Tue Jul 17 11:15:55 2007
@@ -109,6 +109,12 @@
return wGetDefsze().H;
}
+void NCInputField::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YInputField::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCInputField.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCInputField.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCInputField.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCInputField.h Tue Jul 17 11:15:55 2007
@@ -122,7 +122,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCIntField.cc Tue Jul 17 11:15:55 2007
@@ -99,6 +99,12 @@
return wGetDefsze().H;
}
+void NCIntField::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YIntField::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCIntField.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCIntField.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCIntField.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCIntField.h Tue Jul 17 11:15:55 2007
@@ -99,7 +99,8 @@
return YWidget::setKeyboardFocus();
return true;
}
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCLabel.cc Tue Jul 17 11:15:55 2007
@@ -76,6 +76,12 @@
return wGetDefsze().H;
}
+void NCLabel::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YLabel::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCLabel.h Tue Jul 17 11:15:55 2007
@@ -66,7 +66,8 @@
virtual void setSize( int newWidth, int newHeight );
virtual void setLabel( const string & nlabel );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( isEnabled()=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual int preferredWidth();
virtual int preferredHeight();
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCLayoutBox.cc Tue Jul 17 11:15:55 2007
@@ -64,6 +64,12 @@
YLayoutBox::setSize( newwidth, newheight );
}
+void NCLayoutBox::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YLayoutBox::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLogView.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLogView.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCLogView.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCLogView.cc Tue Jul 17 11:15:55 2007
@@ -77,6 +77,12 @@
return wGetDefsze().H;
}
+void NCLogView::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YLogView::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCLogView.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCLogView.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCLogView.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCLogView.h Tue Jul 17 11:15:55 2007
@@ -78,7 +78,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.cc Tue Jul 17 11:15:55 2007
@@ -81,6 +81,12 @@
return wGetDefsze().H;
}
+void NCMenuButton::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YMenuButton::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
@@ -173,7 +179,7 @@
void NCMenuButton::createMenu()
{
YMenu * toplevel = getToplevelMenu();
- setEnabling( toplevel && toplevel->hasChildren() );
+ setEnabled( toplevel && toplevel->hasChildren() );
}
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMenuButton.h Tue Jul 17 11:15:55 2007
@@ -73,7 +73,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
virtual void setLabel( const YCPString & nlabel );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.cc Tue Jul 17 11:15:55 2007
@@ -76,6 +76,13 @@
{
return wGetDefsze().H;
}
+
+void NCMultiLineEdit::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YMultiLineEdit::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiLineEdit.h Tue Jul 17 11:15:55 2007
@@ -86,7 +86,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc Tue Jul 17 11:15:55 2007
@@ -74,7 +74,13 @@
{
return wGetDefsze().H;
}
-
+
+void NCMultiSelectionBox::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YMultiSelectionBox::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h Tue Jul 17 11:15:55 2007
@@ -144,7 +144,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPadWidget.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPadWidget.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCPadWidget.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCPadWidget.h Tue Jul 17 11:15:55 2007
@@ -112,7 +112,8 @@
size_t Columns( ) { return minPadSze.W; }
void setLabel( const NClabel & nlabel );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( do_bv ); }
+ virtual void setEnabled( bool do_bv ) { NCWidget::setEnabled( do_bv ); }
+
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.cc Tue Jul 17 11:15:55 2007
@@ -87,6 +87,12 @@
return wGetDefsze().H;
}
+void NCProgressBar::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YProgressBar::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCProgressBar.h Tue Jul 17 11:15:55 2007
@@ -85,7 +85,8 @@
virtual void setProgress( const YCPInteger & nval );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.cc Tue Jul 17 11:15:55 2007
@@ -56,21 +56,6 @@
WIDDBG << endl;
}
-#if 0
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPushButton::nicesize
-// METHOD TYPE : long
-//
-// DESCRIPTION :
-//
-long NCPushButton::nicesize( YUIDimension dim )
-{
- return dim == YD_HORIZ ? wGetDefsze().W : wGetDefsze().H;
-}
-#endif
-
int NCPushButton::preferredWidth()
{
wsze defsize = wGetDefsze();
@@ -83,6 +68,12 @@
return wGetDefsze().H;
}
+void NCPushButton::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YPushButton::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCPushButton.h Tue Jul 17 11:15:55 2007
@@ -67,8 +67,9 @@
virtual NCursesEvent wHandleInput( wint_t key );
virtual void setLabel( const string & nlabel );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
-
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
+
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
return YWidget::setKeyboardFocus();
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc Tue Jul 17 11:15:55 2007
@@ -79,6 +79,12 @@
return wGetDefsze().H;
}
+void NCRadioButton::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YRadioButton::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h Tue Jul 17 11:15:55 2007
@@ -80,7 +80,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.cc Tue Jul 17 11:15:55 2007
@@ -100,13 +100,30 @@
//
void NCRadioButtonGroup::focusNextButton( )
{
- // FIXME
-#if 0
- if ( focusId < buttonlist.size() -1 )
+ int n = 0;
+
+ if ( focusId < radioButtonsCount() -1 )
focusId++;
- else if ( focusId == buttonlist.size() -1 )
+ else if ( focusId == radioButtonsCount() -1 )
focusId = 0;
+ // FIXME
+ for ( YRadioButtonListConstIterator it = radioButtonsBegin();
+ it != radioButtonsEnd();
+ ++it )
+ {
+ n++;
+ if ( n == focusId )
+ {
+ NCRadioButton * radioButton = dynamic_cast (*it);
+ if ( radioButton )
+ {
+ radioButton->setKeyboardFocus();
+ }
+ }
+ }
+
+#if 0
NCRadioButton * button = dynamic_cast(buttonlist[focusId]);
if ( button )
button->setKeyboardFocus();
@@ -123,28 +140,48 @@
//
void NCRadioButtonGroup::focusPrevButton()
{
-#if 0
+ int n = 0;
+
if ( focusId > 0 )
focusId--;
else if ( focusId == 0 )
- focusId = buttonlist.size() -1;
+ focusId = radioButtonsCount() -1;
+
+ // FIXME
+ for ( YRadioButtonListConstIterator it = radioButtonsBegin();
+ it != radioButtonsEnd();
+ ++it )
+ {
+ n++;
+ if ( n == focusId )
+ {
+ NCRadioButton * radioButton = dynamic_cast (*it);
+ if ( radioButton )
+ {
+ radioButton->setKeyboardFocus();
+ }
+ }
+ }
+#if 0
NCRadioButton * button = dynamic_cast(buttonlist[focusId]);
if ( button )
button->setKeyboardFocus();
#endif
}
-void NCRadioButtonGroup::setEnabling( bool do_bv )
+void NCRadioButtonGroup::setEnabled( bool do_bv )
{
-#if 0
- NCRadioButton * button;
-
- for ( unsigned int i = 0; i < buttonlist.size(); i++ )
+ for ( YRadioButtonListConstIterator it = radioButtonsBegin();
+ it != radioButtonsEnd();
+ ++it )
{
- button = dynamic_cast(buttonlist[i]);
- if ( button )
- button->setEnabling( enabled=do_bv );
+ NCRadioButton * radioButton = dynamic_cast (*it);
+ if ( radioButton )
+ {
+ radioButton->setEnabled( do_bv );
+ }
}
-#endif
+
+ YRadioButtonGroup::setEnabled( do_bv );
}
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRadioButtonGroup.h Tue Jul 17 11:15:55 2007
@@ -66,8 +66,9 @@
virtual void addRadioButton(YRadioButton *button);
virtual void removeRadioButton(YRadioButton *button);
- virtual void setEnabling( bool do_bv );
-
+ //virtual void setEnabling( bool do_bv );
+ virtual void setEnabled( bool do_bv );
+
void focusNextButton( );
void focusPrevButton( );
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.cc Tue Jul 17 11:15:55 2007
@@ -62,3 +62,9 @@
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
YReplacePoint::setSize( newwidth, newheight);
}
+
+void NCReplacePoint::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YReplacePoint::setEnabled( do_bv );
+}
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCReplacePoint.h Tue Jul 17 11:15:55 2007
@@ -61,7 +61,8 @@
**/
virtual void setSize( int newWidth, int newHeight );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCRichText.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCRichText.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRichText.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRichText.cc Tue Jul 17 11:15:55 2007
@@ -218,6 +218,12 @@
return wGetDefsze().H;
}
+void NCRichText::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YRichText::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCRichText.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCRichText.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRichText.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRichText.h Tue Jul 17 11:15:55 2007
@@ -221,7 +221,8 @@
virtual void setText( const YCPString & ntext );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.cc Tue Jul 17 11:15:55 2007
@@ -95,6 +95,12 @@
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
+void NCSelectionBox::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YSelectionBox::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCSelectionBox.h Tue Jul 17 11:15:55 2007
@@ -87,7 +87,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCSpacing.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCSpacing.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCSpacing.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCSpacing.cc Tue Jul 17 11:15:55 2007
@@ -88,3 +88,8 @@
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
}
+void NCSpacing::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YSpacing::setEnabled( do_bv );
+}
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCSquash.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCSquash.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCSquash.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCSquash.cc Tue Jul 17 11:15:55 2007
@@ -63,3 +63,9 @@
wRelocate( wpos( 0 ), wsze( newheight, newwidth ) );
YSquash::setSize( newwidth, newheight );
}
+
+void NCSquash::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YSquash::setEnabled( do_bv );
+}
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCSquash.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCSquash.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCSquash.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCSquash.h Tue Jul 17 11:15:55 2007
@@ -61,7 +61,8 @@
**/
virtual void setSize( int newWidth, int newHeight );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
};
///////////////////////////////////////////////////////////////////
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCTable.cc Tue Jul 17 11:15:55 2007
@@ -92,6 +92,12 @@
return sze.H;
}
+void NCTable::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YTable::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCTable.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCTable.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCTable.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCTable.h Tue Jul 17 11:15:55 2007
@@ -110,8 +110,9 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
-
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
+
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
return YWidget::setKeyboardFocus();
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCTree.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCTree.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCTree.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCTree.cc Tue Jul 17 11:15:55 2007
@@ -261,6 +261,12 @@
return sze.H;
}
+void NCTree::setEnabled( bool do_bv )
+{
+ NCWidget::setEnabled( do_bv );
+ YTree::setEnabled( do_bv );
+}
+
///////////////////////////////////////////////////////////////////
//
//
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCTree.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCTree.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCTree.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCTree.h Tue Jul 17 11:15:55 2007
@@ -86,7 +86,8 @@
virtual NCursesEvent wHandleInput( wint_t key );
- virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
+ virtual void setEnabled( bool do_bv );
virtual bool setKeyboardFocus() {
if ( !grabFocus() )
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCWidget.cc Tue Jul 17 11:15:55 2007
@@ -450,12 +450,12 @@
///////////////////////////////////////////////////////////////////
//
//
-// METHOD NAME : NCWidget::setEnabling
+// METHOD NAME : NCWidget::setEnabled
// METHOD TYPE : void
//
// DESCRIPTION :
//
-void NCWidget::setEnabling( bool do_bv )
+void NCWidget::setEnabled( bool do_bv )
{
WIDDBG << DLOC << this << ' ' << do_bv << ' ' << wstate << endl;
@@ -464,12 +464,12 @@
//If widget has kids ([HV]Boxes, alignments,...), disable all of
//them recursively (#256707)
if (c->HasChildren()) {
- WIDMIL << this << "setEnabling children recursively" << endl;
+ WIDMIL << this << "setEnabled children recursively" << endl;
for ( c = this->Next();
c && c->IsDescendantOf( this );
c = c->Next() ) {
if ( c->Value()->GetState() != NC::WSdumb )
- c->Value()->setEnabling( do_bv );
+ c->Value()->setEnabled( do_bv );
}
}
Modified: branches/tmp/sh/mod-ui/ncurses/src/NCWidget.h
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCWidget.h?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCWidget.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCWidget.h Tue Jul 17 11:15:55 2007
@@ -156,13 +156,13 @@
/**
* Pure virtual to make shure every widget implements it. Necessary to make
- * shure that UI requests via YWidget::setEnabling perform, and behave the
- * same way as direct calls to NCWidget::setEnabling.
+ * shure that UI requests via YWidget::setEnabled perform, and behave the
+ * same way as direct calls to NCWidget::setEnabled.
*
* Defaut implementation is provided, and for most derived widgets it's ok
* to simply use it.
**/
- virtual void setEnabling( bool do_bv ) = 0;
+ virtual void setEnabled( bool do_bv ) = 0;
virtual bool HasHotkey( int key ) const;
virtual bool HasFunctionHotkey( int key ) const;
Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPackageSelector.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPackageSelector.cc?rev=39463&r1=39462&r2=39463&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPackageSelector.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPackageSelector.cc Tue Jul 17 11:15:55 2007
@@ -187,12 +187,14 @@
eventHandlerMap[ NCPkgNames::SearchHelp()->toString() ] = &NCPackageSelector::HelpHandler;
eventHandlerMap[ NCPkgNames::PatchHelp()->toString() ] = &NCPackageSelector::YouHelpHandler;
+ // FIXME - YWidgetOpt hasn't members youMode and updateMode (what is used instead?)
+#if 0
if ( opt.youMode.value() )
youMode = true;
if ( opt.updateMode.value() )
updateMode = true;
-
+#endif
// read test source information
if ( opt.testMode.value() )
testMode = true;
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org