Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41184 - in /branches/tmp/sh/mod-ui/ncurses/src: NCRadioButton.cc NCRadioButton.h
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Tue, 02 Oct 2007 10:27:57 -0000
  • Message-id: <20071002102758.0EA962FBBA@xxxxxxxxxxxxxxxx>
Author: gs
Date: Tue Oct  2 12:27:57 2007
New Revision: 41184

URL: http://svn.opensuse.org/viewcvs/yast?rev=41184&view=rev
Log:
add param bool checked

Modified:
    branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc
    branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h

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=41184&r1=41183&r2=41184&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.cc Tue Oct  2 12:27:57 2007
@@ -32,7 +32,8 @@
 //     DESCRIPTION :
 //
 NCRadioButton::NCRadioButton( YWidget * parent,
-                             const string & nlabel )
+                             const string & nlabel,
+                             bool check )
     : YRadioButton( parent, nlabel )
     , NCWidget( parent )
     , checked( false )
@@ -40,7 +41,7 @@
   WIDDBG << endl;
   setLabel( nlabel );
   hotlabel = &label;
-  //setValue( check );
+  setValue( check );
 }
 
 ///////////////////////////////////////////////////////////////////
@@ -102,21 +103,6 @@
   Redraw();
 }
 
-#if 0
-///////////////////////////////////////////////////////////////////
-//
-//
-//     METHOD NAME : NCRadioButton::setValue
-//     METHOD TYPE : void
-//
-//     DESCRIPTION :
-//
-void NCRadioButton::setValue( const YCPBoolean & newval )
-{
-  setValue( newval->value() );
-}
-#endif
-
 ///////////////////////////////////////////////////////////////////
 //
 //
@@ -136,21 +122,6 @@
   }
 }
 
-#if 0
-///////////////////////////////////////////////////////////////////
-//
-//
-//     METHOD NAME : NCRadioButton::getValue
-//     METHOD TYPE : YCPBoolean
-//
-//     DESCRIPTION :
-//
-YCPBoolean NCRadioButton::getValue()
-{
-  return YCPBoolean( checked );
-}
-#endif
-
 ///////////////////////////////////////////////////////////////////
 //
 //

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=41184&r1=41183&r2=41184&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCRadioButton.h Tue Oct  2 12:27:57 2007
@@ -55,7 +55,9 @@
   public:
 
     NCRadioButton( YWidget * parent,
-                  const string & label );
+                  const string & label,
+                  bool checked );
+    
     virtual ~NCRadioButton();
 
     virtual int preferredWidth();

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

< Previous Next >
This Thread
  • No further messages