DirCalcThreadWin( NCDialogParent* parent, const char* name, OperDirCalcData* pD, const unicode_t* dirName ) : NCDialog( ::createDialogAsChild, 0, parent, utf8_to_unicode( name ).data(), bListOk ), pData( pD ), lo( 12, 10 ), cPathWin( this ), curFileCount( -1 ), curFolderCount( -1 ), curSumSize( -1 ), curBadDirs( -1 ), dirString( 0, this, ScanedDirString( dirName ).data() ), fileCountName( uiVariable, this, utf8_to_unicode( _LT( "Files:" ) ).data() ), fileCountNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAA" ).data() ), folderCountName( uiVariable, this, utf8_to_unicode( _LT( "Folders:" ) ).data() ), folderCountNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAA" ).data() ), sumSizeName( uiVariable, this, utf8_to_unicode( _LT( "Files size:" ) ).data() ), sumSizeNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAAAAAAAAAAAA" ).data() ), badDirsName( uiVariable, this, utf8_to_unicode( _LT( "Not readable folders:" ) ).data() ), badDirsNum( uiValue, this, utf8_to_unicode( "AAAAAAAAAA" ).data() ) { lo.AddWin( &dirString, 0, 0, 0, 3 ); lo.AddWin( &cPathWin, 9, 0, 9, 3 ); lo.LineSet( 1, 10 ); lo.AddWin( &fileCountName, 3, 1 ); lo.AddWin( &folderCountName, 4, 1 ); lo.AddWin( &sumSizeName, 5, 1 ); lo.AddWin( &fileCountNum, 3, 2 ); lo.AddWin( &folderCountNum, 4, 2 ); lo.AddWin( &sumSizeNum, 5, 2 ); lo.LineSet( 6, 7 ); lo.AddWin( &badDirsName, 7, 1 ); lo.AddWin( &badDirsNum, 7, 2 ); lo.LineSet( 8, 10 ); dirString.Show(); dirString.Enable(); cPathWin.Show(); cPathWin.Enable(); fileCountName.Show(); fileCountName.Enable(); fileCountNum.Show(); fileCountNum.Enable(); folderCountName.Show(); folderCountName.Enable(); folderCountNum.Show(); folderCountNum.Enable(); sumSizeName.Show(); sumSizeName.Enable(); sumSizeNum.Show(); sumSizeNum.Enable(); badDirsName.Show(); badDirsName.Enable(); badDirsNum.Show(); badDirsNum.Enable(); lo.SetColGrowth( 3 ); lo.SetColGrowth( 0 ); this->AddLayout( &lo ); this->SetEnterCmd( CMD_OK ); SetPosition(); RefreshCounters(); }