he conseguido un iphone

Re: he conseguido un iphone

Postby Daniel Garcia-Gil » Sun Nov 07, 2010 2:42 pm

...

Nueva clase TDatePicker

Image
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: he conseguido un iphone

Postby mastintin » Sun Nov 07, 2010 7:50 pm

Añadida opcion grouped al tableview , autodetecion de un array ( si bdata es un array se detecta) .
Image
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Mon Nov 08, 2010 9:11 am

Comenzado a implemetar los heads del tableview . La idea es tener una DATA aHeads , array con los encabezados de seccion . he escrito este código , pero no puedo probarlo ya que estoy fuera .
Si alguien quiere mirar si esta bien y compila ....
En tblview.prg
Code: Select all  Expand view


DATA   aHeads

METHOD HandleEvent( nMsg, hSender, uParam1, uParam2 ) CLASS TTableView
   .....
   do case
           
       case nMsg == WM_BRWHEAD
             if Empty(::aHeads)
                Return nil
             else
                Return ::aHeads[uParam1 + 1 ]
             endif    
 .....          
 
   
 


en tableview.m
Code: Select all  Expand view


@implementation DataSource

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
NSString * text;

  hb_vmPushSymbol( symFPH );
   hb_vmPushNil();
   hb_vmPushLong( ( LONG ) tableView );
   hb_vmPushLong( WM_BRWHEAD );
   hb_vmPushLong( 0 );
   hb_vmPushLong( section );
   hb_vmDo( 4 );
   
   text = [ [ [ NSString alloc ] initWithCString: ISCHAR( -1 ) ? hb_parc( -1 ) : "" ] autorelease ];
   
   return text ;  
   

}
 
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Mon Nov 08, 2010 11:31 am

added timer events. New samples/timer.prg

Affected files expand all collapse all
Modify /trunk/include/fmsgs.h diff
Modify /trunk/include/windows.h diff
Modify /trunk/makefile diff
Modify /trunk/samples/buildmac.sh diff
Add /trunk/samples/timer.prg diff
Modify /trunk/source/sdkapi/timers.m diff
Modify /trunk/source/sdkapi/windows.m diff
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41461
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Mon Nov 08, 2010 1:08 pm

Antonio Linares wrote:added timer events. New samples/timer.prg

Affected files expand all collapse all
Modify /trunk/include/fmsgs.h diff
Modify /trunk/include/windows.h diff
Modify /trunk/makefile diff
Modify /trunk/samples/buildmac.sh diff
Add /trunk/samples/timer.prg diff
Modify /trunk/source/sdkapi/timers.m diff
Modify /trunk/source/sdkapi/windows.m diff


Estupendo ya tenemos timer ... :D
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Mon Nov 08, 2010 2:49 pm

mastintin wrote:Comenzado a implemetar los heads del tableview . La idea es tener una DATA aHeads , array con los encabezados de seccion . he escrito este código , pero no puedo probarlo ya que estoy fuera .
Si alguien quiere mirar si esta bien y compila ....
En tblview.prg
Code: Select all  Expand view


DATA   aHeads

METHOD HandleEvent( nMsg, hSender, uParam1, uParam2 ) CLASS TTableView
   .....
   do case
           
       case nMsg == WM_BRWHEAD
             if Empty(::aHeads)
                Return nil
             else
                Return ::aHeads[uParam1 + 1 ]
             endif    
 .....          
 
   
 


en tableview.m
Code: Select all  Expand view


@implementation DataSource

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
NSString * text;

  hb_vmPushSymbol( symFPH );
   hb_vmPushNil();
   hb_vmPushLong( ( LONG ) tableView );
   hb_vmPushLong( WM_BRWHEAD );
   hb_vmPushLong( 0 );
   hb_vmPushLong( section );
   hb_vmDo( 4 );
   
   text = [ [ [ NSString alloc ] initWithCString: ISCHAR( -1 ) ? hb_parc( -1 ) : "" ] autorelease ];
   
   return text ;  
   

}
 


Subido al repositorio probado y funcionando.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Tue Nov 09, 2010 2:20 pm

Tableview desde "recursos" funcionando ....Subido codigo al repositorio.

Image
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Tue Nov 09, 2010 2:45 pm

Manuel,

Enhorabuena :-)

Has visto mi post acerca del simulador del iphone ? :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41461
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Tue Nov 09, 2010 3:15 pm

Antonio Linares wrote:Manuel,

Enhorabuena :-)

Has visto mi post acerca del simulador del iphone ? :-)

Si ,lo he visto cuando subí el comentario anterior ...
Aunque a los que tenemos iphone no se en que medida nos agiliza el trabajo , abre una puerta a quienes no disponen de el y quieren realizar experimentos . A nosotros tambien puede venirnos bien en momentos que no dispongamos de wifi .
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Tue Nov 09, 2010 4:27 pm

Por cierto ... me encuentro con un problemilla , como ves en las capturas de pantalla los views salen movidos hacia arriba , el ancho que corrsponde con la info del iphone ( la pila que queda, compañia y demas ) .
Ya me había dado cuenta cuando colocaba con código los controles , pero lo sulucionaba bajandolos 20pxles. pero ahora con los recursos es muy evidente ....
como podemos solucionarlo ?
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Construir desde Mac

Postby softruz » Tue Nov 09, 2010 5:05 pm

Muy buenas, estoy intentando compilar ahora desde un Mac, me podeis decir los pasos necesarios para compilar desde ahí.

Un Saludo y Mil Gracias.
softruz
 
Posts: 485
Joined: Fri Feb 09, 2007 10:34 am

Re: Construir desde Mac

Postby mastintin » Tue Nov 09, 2010 5:47 pm

softruz wrote:Muy buenas, estoy intentando compilar ahora desde un Mac, me podeis decir los pasos necesarios para compilar desde ahí.

Un Saludo y Mil Gracias.

LO primero instala el paquete de desarrollo de apple , si no lo tienes , http://developer.apple.com/devcenter/ios/index.action
Luego te bajas el Harbour para iphone ( esta en este mismo post , hacia el principio ) , sino lo encuentras se te envia sin problemas .
Te cojes el repositorio de fivephone con lo ultimo subido .
Creas una carpeta ( donde tu quieras, yo la tengo en el escritorio ) dentro el harbour en una carpeta y el fivephone en otra carpeta .
puedes disponer de un programa ftp para mas comodidad ( yo uso el filezilla) ...
Terminal ... subes al fivephone y make para construir las librerias ....
Te lo dejo aqui ... cuando tengas todo lo anterior seguimos ...
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby mastintin » Wed Nov 10, 2010 10:20 am

Resuelto el Problema de "descuadre" de las view desde recursos .
Añadido soporte para recursos a webview , imgview, y progress , aun no probados , pero ya estan subidos al repositorio .
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: he conseguido un iphone

Postby Antonio Linares » Wed Nov 10, 2010 12:02 pm

Añadida la función MsgLogo() y samples/logo.prg

Code: Select all  Expand view

function Main()

   local oWnd := TWindow():New(), oLabel
   
   oLabel = TLabel():New( oWnd, "Hello world!", 120, 100, 100, 50 )
   oLabel:SetColor( 255, 255, 255, 255 )
   
   oWnd:Activate()
   
   MsgLogo( "logo.png" )
   
return nil  
 

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41461
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: he conseguido un iphone

Postby mastintin » Wed Nov 10, 2010 8:58 pm

He subido logo.prg al repositorio porque estaba desaparecido :D
Saludos.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

PreviousNext

Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 7 guests