Author: sh-sh-sh Date: Wed Sep 26 14:04:40 2007 New Revision: 41107 URL: http://svn.opensuse.org/viewcvs/yast?rev=41107&view=rev Log: fixed dir selector Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc branches/tmp/sh/mod-ui/ncurses/src/NCtext.cc branches/tmp/sh/mod-ui/ncurses/src/YNCursesUI.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc?rev=41107&r1=41106&r2=41107&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc Wed Sep 26 14:04:40 2007 @@ -104,12 +104,10 @@ opt.notifyMode.setValue( false ); // the headline - new NCLabel( split, headline->toString(), true, false ); // isHeading = true + new NCLabel( split, headline->value(), true, false ); // isHeading = true new NCSpacing( split, YD_VERT, false, 0.4 ); - opt.isHStretchable.setValue( true ); // see hSplit - NCFrame * frame = new NCFrame( split, "" ); //NCLayoutBox * vSplit = new NCLayoutBox( frame, YD_VERT ); @@ -119,6 +117,7 @@ // label for text field showing the selected dir dirName = new NCComboBox( frame, _( "Selected Directory:" ), false ); // editable = false dirName->setNotify( true ); + dirName->setStretchable( YD_HORIZ, true ); YStringWidgetID * dirID = new YStringWidgetID( idDirName ); dirName->setId( dirID ); Modified: branches/tmp/sh/mod-ui/ncurses/src/NCtext.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCtext.cc?rev=41107&r1=41106&r2=41107&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCtext.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCtext.cc Wed Sep 26 14:04:40 2007 @@ -322,7 +322,7 @@ w.move( l, area.Pos.C + pre ); } - NCDBG << "TERMINAL: " << NCstring::terminalEncoding() << " CODESET: " << nl_langinfo( CODESET) << endl; + // NCDBG << "TERMINAL: " << NCstring::terminalEncoding() << " CODESET: " << nl_langinfo( CODESET) << endl; if ( len ) { if ( NCstring::terminalEncoding() != "UTF-8" ) Modified: branches/tmp/sh/mod-ui/ncurses/src/YNCursesUI.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/YNCursesUI.cc?rev=41107&r1=41106&r2=41107&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/YNCursesUI.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/YNCursesUI.cc Wed Sep 26 14:04:40 2007 @@ -949,9 +949,11 @@ const YCPString & filter, const YCPString & headline ) { - NCAskForExistingFile filePopup( wpos( 1, 1 ), startDir, filter, headline ); + NCAskForExistingFile * filePopup = new NCAskForExistingFile( wpos( 1, 1 ), startDir, filter, headline ); + YUI_CHECK_NEW( filePopup ); - NCursesEvent retEvent = filePopup.showDirPopup( ); + NCursesEvent retEvent = filePopup->showDirPopup( ); + YDialog::deleteTopmostDialog(); if ( !retEvent.result.isNull() ) { @@ -973,9 +975,11 @@ YCPValue YNCursesUI::askForExistingDirectory( const YCPString & startDir, const YCPString & headline ) { - NCAskForExistingDirectory dirPopup( wpos( 1, 1 ), startDir, headline ); + NCAskForExistingDirectory * dirPopup = new NCAskForExistingDirectory( wpos( 1, 1 ), startDir, headline ); + YUI_CHECK_NEW( dirPopup ); - NCursesEvent retEvent = dirPopup.showDirPopup( ); + NCursesEvent retEvent = dirPopup->showDirPopup( ); + YDialog::deleteTopmostDialog(); if ( !retEvent.result.isNull() ) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org