Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41635 - /branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Tue, 30 Oct 2007 10:27:20 -0000
  • Message-id: <20071030102720.5D6DA374C3@xxxxxxxxxxxxxxxx>
Author: gs
Date: Tue Oct 30 11:27:20 2007
New Revision: 41635

URL: http://svn.opensuse.org/viewcvs/yast?rev=41635&view=rev
Log:
create YTableHeader

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

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=41635&r1=41634&r2=41635&view=diff
==============================================================================
--- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc (original)
+++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.cc Tue Oct 30
11:27:20 2007
@@ -108,17 +108,16 @@

head = new NCLabel( split, "", true, false ); // isHeading = true

- vector<string> header;
- header.reserve(5);
- header.push_back( "L" + NCPkgNames::Partition() );
- header.push_back( "L" + NCPkgNames::UsedSpace() );
- header.push_back( "L" + NCPkgNames::FreeSpace() );
- header.push_back( "L" + NCPkgNames::TotalSpace() );
- header.push_back( "L% ");
-
+ YTableHeader * tableHeader = new YTableHeader();
+ tableHeader->addColumn( "L" + NCPkgNames::Partition() );
+ tableHeader->addColumn( "L" + NCPkgNames::UsedSpace() );
+ tableHeader->addColumn( "L" + NCPkgNames::FreeSpace() );
+ tableHeader->addColumn( "L" + NCPkgNames::TotalSpace() );
+ tableHeader->addColumn( "L% ");
+
// add the partition table
//partitions = new NCTable( split, opt, header, false );
- partitions = new NCTable( split, 5 ); // 5 columns
+ partitions = new NCTable( split, tableHeader );
// add the ok button
opt.key_Fxx.setValue( 10 );
okButton = new NCPushButton( split, NCPkgNames::OKLabel() );

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

< Previous Next >
This Thread
  • No further messages