[yast-commit] r41643 - in /branches/tmp/sh/mod-ui/ncurses/src: NCAskForDirectory.cc NCAskForFile.cc NCFileSelection.cc pkg/NCPkgPopupDiskspace.cc
Author: gs Date: Tue Oct 30 15:13:19 2007 New Revision: 41643 URL: http://svn.opensuse.org/viewcvs/yast?rev=41643&view=rev Log: set table header correctly Modified: branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.cc branches/tmp/sh/mod-ui/ncurses/src/NCFileSelection.cc branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupDiskspace.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=41643&r1=41642&r2=41643&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCAskForDirectory.cc Tue Oct 30 15:13:19 2007 @@ -24,6 +24,7 @@ #include "YWidgetID.h" #include "YDialog.h" +#include "YTypes.h" #include "NCLayoutBox.h" #include "NCSpacing.h" #include "NCFrame.h" @@ -137,8 +138,8 @@ // create table header for table type T_Overview YTableHeader * tableHeader = new YTableHeader(); - tableHeader->addColumn( 'L' + string(" ") ); - tableHeader->addColumn( 'L' + _( "Directory Name" ) ); + tableHeader->addColumn( " ", YAlignBegin ); + tableHeader->addColumn( _( "Directory Name" ), YAlignBegin ); // add the list of directories dirList = new NCDirectoryTable( split, 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=41643&r1=41642&r2=41643&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCAskForFile.cc Tue Oct 30 15:13:19 2007 @@ -184,8 +184,8 @@ // create table header for table type T_Overview YTableHeader * dirHeader = new YTableHeader(); - dirHeader->addColumn( 'L' + " " ); - dirHeader->addColumn( 'L' + _("Directory name") ); + dirHeader->addColumn( " " ); + dirHeader->addColumn( _("Directory name") ); // add the list of directories opt.keyEvents.setValue( true ); @@ -199,8 +199,8 @@ // create table header for table type T_Overview YTableHeader * fileHeader = new YTableHeader(); - fileHeader->addColumn( 'L' + " " ); - fileHeader->addColumn( 'L' + _("File name") ); + fileHeader->addColumn( " " ); + fileHeader->addColumn( _("File name") ); // add the list of files fileList = new NCFileTable( hSplit1, Modified: branches/tmp/sh/mod-ui/ncurses/src/NCFileSelection.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/NCFileSelection.cc?rev=41643&r1=41642&r2=41643&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/NCFileSelection.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/NCFileSelection.cc Tue Oct 30 15:13:19 2007 @@ -245,7 +245,7 @@ string NCFileSelection::getCurrentLine( ) { int index = getCurrentItem(); - + NCMIL << "Current item: " << index << endl; if ( index != -1 ) { NCFileInfo info = getFileInfo( index ); @@ -268,7 +268,7 @@ void NCFileSelection::setCurrentDir() { string selected = getCurrentLine(); - + NCMIL << "Current Line: " << selected << endl; if ( selected != ".." ) { if ( startDir != "/" ) @@ -638,7 +638,7 @@ list<string> tmpList; list<string>::iterator it; - fillHeader(); // create the column headers + //fillHeader(); // create the column headers DIR * diskDir = opendir( currentDir.c_str() ); @@ -781,7 +781,7 @@ list<string> tmpList; list<string>::iterator it; - fillHeader(); // create the column headers + //fillHeader(); // create the column headers DIR * diskDir = opendir( currentDir.c_str() ); 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=41643&r1=41642&r2=41643&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 15:13:19 2007 @@ -22,6 +22,7 @@ #include "YMenuButton.h" #include "YDialog.h" #include "YWidgetID.h" +#include "YTypes.h" #include "NCLayoutBox.h" #include "NCSpacing.h" @@ -109,11 +110,11 @@ head = new NCLabel( split, "", true, false ); // isHeading = true 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% "); + tableHeader->addColumn( NCPkgNames::Partition(), YAlignBegin ); + tableHeader->addColumn( NCPkgNames::UsedSpace(), YAlignBegin ); + tableHeader->addColumn( NCPkgNames::FreeSpace(), YAlignBegin ); + tableHeader->addColumn( NCPkgNames::TotalSpace(), YAlignBegin ); + tableHeader->addColumn( "% ", YAlignBegin ); // add the partition table //partitions = new NCTable( split, opt, header, false ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org