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@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org