Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41174 - in /branches/tmp/sh/mod-ui/ncurses/src: NCCheckBox.cc NCCheckBox.h pkg/NCPkgPopupSearch.cc
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Tue, 02 Oct 2007 09:00:24 -0000
  • Message-id: <20071002090024.94F682B025@xxxxxxxxxxxxxxxx>
Author: gs
Date: Tue Oct  2 11:00:24 2007
New Revision: 41174

URL: http://svn.opensuse.org/viewcvs/yast?rev=41174&view=rev
Log:
set param bool checked correctly

Modified:
    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/pkg/NCPkgPopupSearch.cc

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=41174&r1=41173&r2=41174&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.cc Tue Oct  2 11:00:24 2007
@@ -41,7 +41,7 @@
     : YCheckBox( parent, nlabel )
     , NCWidget( parent )
     , tristate( false )
-    , checkstate( isChecked() ? S_ON : S_OFF )
+    , checkstate( checked ? S_ON : S_OFF )
 {
   WIDDBG << endl;
   setLabel( nlabel );

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=41174&r1=41173&r2=41174&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCCheckBox.h Tue Oct  2 11:00:24 2007
@@ -65,7 +65,7 @@
 
     NCCheckBox( YWidget * parent,
                const string & label,
-               bool checked = false );
+               bool checked );
     virtual ~NCCheckBox();
 
     virtual long nicesize( YUIDimension dim );
@@ -88,7 +88,6 @@
 
     virtual NCursesEvent wHandleInput( wint_t key );
 
-    //virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); }
     virtual void setEnabled( bool do_bv );
     
     virtual bool setKeyboardFocus() {

Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSearch.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSearch.cc?rev=41174&r1=41173&r2=41174&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSearch.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSearch.cc Tue Oct  2 11:00:24 2007
@@ -131,8 +131,7 @@
        // add the checkBox ignore case
        NCLayoutBox * hSplit2 = new NCLayoutBox( vSplit, YD_HORIZ );
 
-       ignoreCase = new NCCheckBox( hSplit2, NCPkgNames::IgnoreCase() );
-       ignoreCase->setChecked( true );
+       ignoreCase = new NCCheckBox( hSplit2, NCPkgNames::IgnoreCase(), true );  // checked = true
        //hSplit2->addChild( new NCSpacing( hSplit2, opt, 0.1, true, false ) );
        new NCSpacing( hSplit2, YD_HORIZ, true, 0.1 );
 
@@ -148,16 +147,11 @@
        NCLayoutBox * vSplit3 = new NCLayoutBox( frame, YD_VERT );
 
        opt.isVStretchable.setValue( false );
-       checkName = new NCCheckBox( vSplit3, NCPkgNames::CheckName() );
-       checkName->setChecked( true );
-       checkSummary = new NCCheckBox( vSplit3, NCPkgNames::CheckSummary() );
-       checkSummary->setChecked( true );
-       checkDescr = new NCCheckBox( vSplit3, NCPkgNames::CheckDescr() );
-       checkDescr->setChecked( false );
-       checkProvides = new NCCheckBox( vSplit3, NCPkgNames::CheckProvides() );
-       checkProvides->setChecked( false );
-       checkRequires = new NCCheckBox( vSplit3, NCPkgNames::CheckRequires() );
-       checkRequires->setChecked( false );
+       checkName = new NCCheckBox( vSplit3, NCPkgNames::CheckName(), true );
+       checkSummary = new NCCheckBox( vSplit3, NCPkgNames::CheckSummary(), true );
+       checkDescr = new NCCheckBox( vSplit3, NCPkgNames::CheckDescr(), false );
+       checkProvides = new NCCheckBox( vSplit3, NCPkgNames::CheckProvides(), false );
+       checkRequires = new NCCheckBox( vSplit3, NCPkgNames::CheckRequires(), false );
 
        //vSplit->addChild( new NCSpacing( vSplit, opt, 0.8, false, true ) );                // VSpacing
        new NCSpacing( vSplit, YD_VERT, false, 0.8 );

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages