[yast-commit] r41084 - in /branches/tmp/sh/mod-ui/ncurses/src: NCPopupTable.cc NCPopupTable.h
Author: gs Date: Tue Sep 25 14:32:02 2007 New Revision: 41084 URL: http://svn.opensuse.org/viewcvs/yast?rev=41084&view=rev Log: don't implement preferredWidth()/preferredheighth() and setSize() -> correct is to call methods from NCDialog Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc?rev=41084&r1=41083&r2=41084&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.cc Tue Sep 25 14:32:02 2007 @@ -67,11 +67,6 @@ YWidgetOpt opt; opt.notifyMode.setValue( true ); - NCMIL << "CurrentDialog: " << dynamic_cast<NCDialog *>(currentDialog()) << endl; - NCMIL << "THIS dialog: " << dynamic_cast<NCDialog *>(this) << endl; - - //NCPushButton * button = new NCPushButton( this, "Hello" ); - sellist= new NCTable( this, opt, row, false ); sellist->setBigList( true ); sellist->SetSepChar( ' ' ); @@ -89,7 +84,6 @@ // TO DO: This will be obsolete once YTable is migrated // TO DO: This will be obsolete once YTable is migrated - currentDialog()->dumpWidgetTree(); } @@ -181,11 +175,12 @@ } } +#if 0 int NCPopupTable::preferredWidth() { wsze sze = wGetDefsze(); if ( sellist ) - return sellist->preferredWidth(); + return sellist->preferredWidth(); else return sze.W; } @@ -201,6 +196,8 @@ void NCPopupTable::setSize( int newwidth, int newheight ) { + NCMIL << "setSize() called with w: " << newwidth << " h: " << newheight << endl; wRelocate( position, wsze( newheight, newwidth ) ); firstChild()->setSize( newwidth, newheight ); } +#endif Modified: branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h?rev=41084&r1=41083&r2=41084&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCPopupTable.h Tue Sep 25 14:32:02 2007 @@ -42,7 +42,6 @@ NCPopupTable ( const NCPopupTable & ); private: - NCTable * sellist; wpos position; @@ -67,10 +66,10 @@ public: void stripHotkeys(); - int preferredWidth(); - int preferredHeight(); + //int preferredWidth(); + //int preferredHeight(); - void setSize( int newwidth, int newheight ); + //void setSize( int newwidth, int newheight ); }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org