Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41665 - in /branches/tmp/sh/mod-ui/ncurses/src: NCAskForDirectory.cc NCAskForFile.cc
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Wed, 31 Oct 2007 10:57:00 -0000
  • Message-id: <20071031105700.4B712173E1@xxxxxxxxxxxxxxxx>
Author: gs
Date: Wed Oct 31 11:56:59 2007
New Revision: 41665

URL: http://svn.opensuse.org/viewcvs/yast?rev=41665&view=rev
Log:
setNotify for checkbox

Modified:
branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc
branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.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=41665&r1=41664&r2=41665&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc Wed Oct 31 11:56:59
2007
@@ -94,26 +94,13 @@
void NCAskForExistingDirectory::createLayout( const YCPString & iniDir,
const YCPString & headline )
{
- // FIXME - check all options settings!
- YWidgetOpt opt;
-
// the vertical split is the (only) child of the dialog
NCLayoutBox * split = new NCLayoutBox( this, YD_VERT );

- // addChild() is obsolete (handled by new libyui)
-
- opt.notifyMode.setValue( false );
-
// the headline
new NCLabel( split, headline->value(), true, false ); // isHeading =
true

- new NCSpacing( split, YD_VERT, false, 0.4 );
-
NCFrame * frame = new NCFrame( split, "" );
- //NCLayoutBox * vSplit = new NCLayoutBox( frame, YD_VERT );
-
- opt.isEditable.setValue( false ); // see dirName
- opt.notifyMode.setValue( true ); // see dirName

// label for text field showing the selected dir
dirName = new NCComboBox( frame, _( "Selected Directory:" ), false ); //
editable = false
@@ -123,8 +110,6 @@
YStringWidgetID * dirID = new YStringWidgetID( idDirName );
dirName->setId( dirID );

- //new NCSpacing( vSplit, YD_VERT, false, 0.6 );
-
// add the checkBox detailed
NCLayoutBox * hSplit = new NCLayoutBox( split, YD_HORIZ );

@@ -132,10 +117,8 @@
detailed = new NCCheckBox( hSplit, _( "&Detailed View" ), false );
YStringWidgetID * detailsID = new YStringWidgetID( idDetails );
detailed->setId( detailsID );
+ detailed->setNotify( true );

- //hSplit->addChild( new NCSpacing( hSplit, opt, 0.1, true, false ) );
- new NCSpacing( hSplit, YD_HORIZ, true, 0.1 ); // stretchable = true
-
// create table header for table type T_Overview
YTableHeader * tableHeader = new YTableHeader();
tableHeader->addColumn( " ", YAlignBegin );
@@ -150,38 +133,31 @@
YStringWidgetID * dirListID = new YStringWidgetID( idDirList );
dirList->setId( dirListID );

- //split->addChild( new NCSpacing( split, opt, 0.4, false, true ) );
- new NCSpacing( split, YD_VERT, false, 0.4 );
+ new NCSpacing( split, YD_VERT, false, 1.0 );

// HBox for the buttons
NCLayoutBox * hSplit1 = new NCLayoutBox( split, YD_HORIZ );

- opt.isHStretchable.setValue( true );
- //hSplit1->addChild( new NCSpacing( hSplit1, opt, 0.2, true, false ) );
new NCSpacing( hSplit1, YD_HORIZ, true, 0.2 ); // stretchable = true

- opt.key_Fxx.setValue( 10 ); // see okButton
-
// add the OK button
okButton = new NCPushButton( hSplit1, _( "&OK" ) );
okButton->setFunctionKey( 10 );
+ okButton->setStretchable( YD_HORIZ, true );

YStringWidgetID * okID = new YStringWidgetID ( idOk );
okButton->setId( okID );

- //hSplit1->addChild( new NCSpacing( hSplit1, opt, 0.4, true, false ) );
new NCSpacing( hSplit1, YD_HORIZ, true, 0.4 );

- opt.key_Fxx.setValue( 9 ); // see cancelButton
-
// add the Cancel button
cancelButton = new NCPushButton( hSplit1, _( "&Cancel" ) );
cancelButton->setFunctionKey( 9 );
+ cancelButton->setStretchable( YD_HORIZ, true);

YStringWidgetID * cancelID = new YStringWidgetID (idCancel );
cancelButton->setId( cancelID );

- //hSplit1->addChild( new NCSpacing( hSplit1, opt, 0.2, true, false ) );
new NCSpacing( hSplit1, YD_HORIZ, true, 0.2 );

}

Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.cc?rev=41665&r1=41664&r2=41665&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.cc Wed Oct 31 11:56:59 2007
@@ -158,6 +158,7 @@
detailed = new NCCheckBox( hSplit, _( "&Detailed View" ), false );
YStringWidgetID * detailsID = new YStringWidgetID( idDetails );
detailed->setId( detailsID );
+ detailed->setNotify( true );

// HBox for the lists
NCLayoutBox * hSplit1 = new NCLayoutBox( split, YD_HORIZ );
@@ -219,6 +220,8 @@
// HBox for the buttons
NCLayoutBox * hSplit3 = new NCLayoutBox( split, YD_HORIZ );

+ new NCSpacing( hSplit1, YD_HORIZ, true, 0.2 ); // stretchable = true
+
// add the OK button
okButton = new NCPushButton( hSplit3, _( "&OK" ) );
okButton->setFunctionKey( 10 );
@@ -227,6 +230,8 @@
YStringWidgetID * okID = new YStringWidgetID( idOk );
okButton->setId( okID );

+ new NCSpacing( hSplit1, YD_HORIZ, true, 0.4 );
+
// add the Cancel button
cancelButton = new NCPushButton( hSplit3, _( "&Cancel" ) );
cancelButton->setFunctionKey( 9 );
@@ -235,6 +240,7 @@
YStringWidgetID * cancelID = new YStringWidgetID( idCancel );
cancelButton->setId( cancelID );

+ new NCSpacing( hSplit1, YD_HORIZ, true, 0.2 );
}

///////////////////////////////////////////////////////////////////

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

< Previous Next >
This Thread
  • No further messages