Author: kmachalkova
Date: Wed Nov 7 16:21:27 2007
New Revision: 41858
URL: http://svn.opensuse.org/viewcvs/yast?rev=41858&view=rev
Log:
removed unneeded stuff
Modified:
branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc
branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h
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=41858&r1=41857&r2=41858&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.cc Wed Nov 7 16:21:27 2007
@@ -83,21 +83,6 @@
///////////////////////////////////////////////////////////////////
//
//
-// METHOD NAME : NCMultiSelectionBox::getCurrentItem
-// METHOD TYPE : int
-//
-// DESCRIPTION :
-//
-int NCMultiSelectionBox::getCurrentItem()
-{
- if ( !myPad()->Lines() )
- return -1;
- return myPad()->CurPos().L;
-}
-
-///////////////////////////////////////////////////////////////////
-//
-//
// METHOD NAME : NCMultiSelectionBox::currentItem
// METHOD TYPE : YItem *
//
@@ -109,8 +94,6 @@
int index = myPad()->CurPos().L;
- NCMIL << "Index of current Item: " << index << endl;
-
return itemAt( index );
}
@@ -127,25 +110,6 @@
myPad()->ScrlLine( item->index() );
}
-#if 0
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::itemAdded
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
-void NCMultiSelectionBox::itemAdded( const YCPString& str, int index, bool selected )
-{
- vector Items( 2U, 0 );
- Items[0] = new NCTableTag( selected );
- Items[1] = new NCTableCol( str, NCTableCol::PLAIN );
- myPad()->Append( Items );
- DrawPad();
-}
-#endif
-
void NCMultiSelectionBox::addItem( YItem * item )
{
vector Items( 2U, 0 );
@@ -221,20 +185,6 @@
return item->selected();
}
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCMultiSelectionBox::setAllItemsSelected
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
-void NCMultiSelectionBox::setAllItemsSelected( bool val )
-{
- // for ( int i = 0; setItemSelected( i, val, false ); ++i )
- // ;
- DrawPad();
-}
///////////////////////////////////////////////////////////////////
//
@@ -252,16 +202,9 @@
YUI_CHECK_PTR( tag );
tag->SetSelected( selected );
- //if ( !citem )
- // return false;
- //if ( citem->Selected() != val ) {
- // citem->SetSelected( val );
- // if ( update )
DrawPad();
- //}
- //return true;
}
void NCMultiSelectionBox::deselectAllItems()
@@ -288,16 +231,7 @@
{
YItem *it = currentItem();
selectItem( it, !( it->selected()) );
- //int index = getCurrentItem();
- //if ( index == -1 )
- // return;
-
- //NCTableTag * citem = tagCell( index );
- //if ( !citem )
- // return;
- //citem->SetSelected( !citem->Selected() );
- //DrawPad();
}
////////////////////////////////////////////////////////////////////
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=41858&r1=41857&r2=41858&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCMultiSelectionBox.h Wed Nov 7 16:21:27 2007
@@ -98,7 +98,6 @@
const NCTableTag * tagCell( int index ) const;
bool isItemSelected( YItem *item );
- void setAllItemsSelected( bool val );
void toggleCurrentItem();
@@ -106,9 +105,6 @@
virtual void startMultipleChanges() { startMultidraw(); }
virtual void doneMultipleChanges() { stopMultidraw(); }
-
- //virtual void selectItem( int index ) { setItemSelected( index, true ); }
- virtual void deselectItem( int index ){ }//setItemSelected( index, false ); }
protected:
@@ -117,18 +113,14 @@
virtual NCPad * CreatePad();
virtual void wRecoded();
- //virtual void itemAdded( const YCPString & string, int index, bool selected );
virtual void addItem( YItem * item );
virtual void deleteAllItems();
virtual void selectItem( YItem * item, bool selected );
-// { setItemSelected( item->index(), selected ); }
- virtual void selectAllItems() { setAllItemsSelected( true ); }
- virtual void deselectAllItems(); // { setAllItemsSelected( false ); }
+ virtual void deselectAllItems();
- virtual int getCurrentItem();
public:
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org