Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41455 - in /branches/tmp/sh/mod-ui/ncurses/src/pkg: NCPkgPopupDescr.cc NCPkgPopupDiskspace.cc NCPkgPopupSelection.cc NCPkgPopupTable.cc
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Thu, 18 Oct 2007 10:02:44 -0000
  • Message-id: <20071018100245.0A4792662A@xxxxxxxxxxxxxxxx>
Author: gs
Date: Thu Oct 18 12:02:44 2007
New Revision: 41455

URL: http://svn.opensuse.org/viewcvs/yast?rev=41455&view=rev
Log:
adapt to ported NCTable widget

Modified:
    branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDescr.cc
    branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc
    branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSelection.cc
    branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTable.cc

Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDescr.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDescr.cc?rev=41455&r1=41454&r2=41455&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDescr.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDescr.cc Thu Oct 18 12:02:44 2007
@@ -101,7 +101,7 @@
     new NCSpacing( split, YD_VERT, true, 0.6 );        // stretchable = true
 
     // add the package table (use default type T_Packages)
-    pkgTable = new NCPkgTable( split, opt );
+    pkgTable = new NCPkgTable( split );
     pkgTable->setPackager( packager );
     pkgTable->fillHeader();
 

Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc?rev=41455&r1=41454&r2=41455&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc Thu Oct 18 12:02:44 2007
@@ -117,8 +117,8 @@
     header.push_back( "L%   ");
     
     // add the partition table 
-    partitions = new NCTable( split, opt, header, false );
-
+    //partitions = new NCTable( split, opt, header, false );
+    partitions = new NCTable( split, 5 );      // 5 columns
     // add the ok button
     opt.key_Fxx.setValue( 10 );
     okButton = new NCPushButton( split, NCPkgNames::OKLabel() );
@@ -137,7 +137,8 @@
 //
 void NCPkgPopupDiskspace::fillPartitionTable()
 {
-    partitions->itemsCleared();             // clear table
+    //partitions->itemsCleared();           // clear table
+    partitions->deleteAllItems();
     
     vector<string> pkgLine;
     pkgLine.reserve(5);
@@ -176,7 +177,8 @@
        pkgLine.push_back (total.asString (8));
 
        pkgLine.push_back( usedPercent( it->pkg_size, it->total_size ) );
-       partitions->itemAdded( pkgLine, i );
+       // FIXME
+        //partitions->itemAdded( pkgLine, i );
        
        i++;
     }

Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSelection.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSelection.cc?rev=41455&r1=41454&r2=41455&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSelection.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupSelection.cc Thu Oct 18 12:02:44 2007
@@ -106,7 +106,7 @@
   //NCLabel * head = new NCLabel( split, opt, label );
   new NCLabel( split, label, true, false );    // isHeading = true
   // add the selection list
-  sel = new NCPkgTable( split, opt );
+  sel = new NCPkgTable( split );
   sel->setPackager( packager );
   // set status strategy
   NCPkgStatusStrategy * strat = new SelectionStatStrategy();

Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTable.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTable.cc?rev=41455&r1=41454&r2=41455&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTable.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTable.cc Thu Oct 18 12:02:44 2007
@@ -105,16 +105,10 @@
     new NCLabel( split, _( "packages have been changed to resolve dependencies:" ), false, false );
     
     // add the package table (use default type T_Packages)
-    pkgTable = new NCPkgTable( split, opt );
+    pkgTable = new NCPkgTable( split );
     pkgTable->setPackager( packager );
     pkgTable->fillHeader();
     
-   // TO DO: This will be obsolete once YTable is migrated
-   // TO DO: This will be obsolete once YTable is migrated
-   // TO DO: This will be obsolete once YTable is migrated
-    pkgTable->setParent( split );
-    addChild( pkgTable );
-    
     // HBox for the buttons
     NCLayoutBox * hSplit = new NCLayoutBox( split, YD_HORIZ );
 

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

< Previous Next >
This Thread
  • No further messages