Page 102 of 106

Re: Welcome to the Project Developers' Table

Posted: Mon May 23, 2011 7:47 pm
by concentra

Code: Select all

2011-05-23 16:20 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
  ! include/hmg.ch
  ! samples/graph/demo_5.prg
  ! source/graph.prg
  ! source/window.prg
    ! Removed graph stuff from Window class and crated Graph objects class.

Re: Welcome to the Project Developers' Table

Posted: Tue May 24, 2011 12:37 pm
by concentra
Hi Rathinagiri !

Browse is crashing, without messages.
And it tries to generate a hb_out.log but it has 0 length.
Testing with samples\browse\demo_2.prg.
I found that the code crashes between this 2 lines in browse.prg:

Code: Select all

   ::QAbstractItemModel := HBQAbstractItemModel( {| t, r, x, y| ::OnQueryData( ::aStruct , t, r, x, y ) } )
   ::oQTObject:setModel( ::QAbstractItemModel )
But I was unable to go further...

Re: Welcome to the Project Developers' Table

Posted: Tue May 24, 2011 2:24 pm
by Rathinagiri
Hi,

Today I had installed latest Harbour Nightly build and everything works fine.

Don't worry about 'Browse'. I am just working on the grid to have 'data' mode and 'array' mode to accommodate browse, grid and virtual grid. It will be ready soon.

Re: Welcome to the Project Developers' Table

Posted: Tue May 24, 2011 6:54 pm
by concentra
Hi !

Image of samples\everything\demo_1 in Linux Ubuntu 11.04

Image

Re: Welcome to the Project Developers' Table

Posted: Wed May 25, 2011 10:26 pm
by Carlos Britos

Code: Select all

2011-05-25 19:20 UTC-0300 Carlos Britos ( <bcd12a(a_t)yahoo.com.ar> )
  + source/layout.prg
  + samples/layout
  + samples/layout/build.bat
  + samples/layout/hbmk.hbm
  + samples/layout/qt.conf
  + samples/layout/demo_1.prg
  + samples/layout/demo_2.prg
  + samples/layout/demo_3.prg
  + samples/layout/demo_4.prg
    * Added source, demos and utilities for layouts.

  ! include/hmg.ch
    * Added constants for layouts.

  ! hmg.hbp
    * Added layout.prg to the list.

  ! doc/txt/en/properties_t2u.txt
  ! doc/txt/en/slider.txt
    ! Updated texts.
Just the first steps on it.
Need more work, test, command names, etc...

Re: Welcome to the Project Developers' Table

Posted: Thu May 26, 2011 4:37 am
by Rathinagiri
Hi Carlos,

Layout implementation is very cool. I think Francesco insisted and even created samples on this.

Now, we have to find out new semi-oop commands (like DEFINE LAYOUT.... END LAYOUT) for this.

Re: Welcome to the Project Developers' Table

Posted: Thu May 26, 2011 2:22 pm
by Algernon
What about Linux version, Is last version 05/09/2010?

Re: Welcome to the Project Developers' Table

Posted: Thu May 26, 2011 4:04 pm
by concentra
Algernon wrote:What about Linux version, Is last version 05/09/2010?
This is a mini HowTo Build from source on latest Ubuntu 11.04 clean install.

Based on information found in http://www.elart.it/links/harbourhowto_deb_en.php.

Open terminal and copy and paste :

Code: Select all

sudo apt-get update; sudo apt-get install subversion wget rcs build-essential ncurses-dev libslang2-dev tk8.3-dev unixodbc-dev libncurses-dev libx11-dev libgpm-dev firebird2.1-dev libfreeimage-dev libmysqlclient15-dev libpq-dev libqt3-mt-dev liballegro4.2-dev wine dosemu-freedos mingw32 zlib1g-dev libpcre3-dev libncurses-dev libslang2-dev libx11-dev libgpmg1-dev unixodbc-dev libcurl4-gnutls-dev firebird2.1-dev libgd2-xpm-dev libsqlite3-dev libqt4-dev libwxbase2.8-dev libwxgtk2.8-dev wx-common libwebkit-dev libqt4-core
This will take some time...
Then set some qt4 related system default, typing this commands:

Code: Select all

sudo update-alternatives --set uic /usr/bin/uic-qt4  
sudo update-alternatives --set moc /usr/bin/moc-qt4  
sudo update-alternatives --set lupdate /usr/bin/lupdate-qt4  
sudo update-alternatives --set lrelease /usr/bin/lrelease-qt4  
sudo update-alternatives --set designer /usr/bin/designer-qt4
Get Harbour source and compile from SVN trunk

Code: Select all

mkdir $HOME/src  
cd $HOME/src  
svn co https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour harbour
This will take some time...

Code: Select all

cd $HOME/src/harbour   
export HB_BIN_INSTALL=/usr/bin   
export HB_INSTALL_PREFIX=/usr/bin   
export HB_LIB_INSTALL=/usr/lib/harbour   
export HB_INC_INSTALL=/usr/include/harbour   
export HB_DOC_INSTALL=/usr/share/doc/harbour   
export HB_ETC_INSTALL=/etc/harbour   
export HB_CONTRIBLIBS="hbqt hbct hbqtutils hbhpdf xhb h  xml hbmzip hbzip hbxbp hbtip hbgd hbpgsql hbcurl hbmysql hbsqlit3 hbssl hbodbc rddsql gtqtc hbmisc hbcups hbziparc"
export HB_BUILD_SHARED=no   
make clean   
make
Install Harbour into system wide binary type:

Code: Select all

sudo -E make install
It's not strictly need to install Harbour binaries into system files, to use Harbour without install it simply add to your
PATH enviroment variable the current path of your harbour binary, type:

Code: Select all

cd 
nano .bashrc
and append this row:

Code: Select all

export PATH=$PATH:$HOME/src/harbour/bin/linux/gcc
Then to force the read of env type:

Code: Select all

source $HOME/.bashrc
To download and build HMG4 :

Code: Select all

cd $HOME/src 
svn co https://hmg.svn.sourceforge.net/svnroot/hmg hmg4
cd hmg4
hbmk2 hmg.hbp
To build the everything demo:

Code: Select all

cd samples/everything
hbmk2 demo_1
./demo_1
To run the hbide type:

Code: Select all

$HOME/src/harbour/bin/linux/gcc/./hbide

Re: Welcome to the Project Developers' Table

Posted: Thu May 26, 2011 4:33 pm
by Rathinagiri

Code: Select all

2011-05-26 21:55 UTC+0530 Rathinagiri ( <srgiri@dataone.in> )
  * include/hmg.ch
  * source/virtualgrid.prg
  * samples/virtualgrid/demo_*.prg
    * Removed ::lCreated code in various methods which where already commented.
	* Implemented DATA_MODE and ARRAY_MODE to incorporate both 'Grid' and 'Browse'. It's the first step to group grid/virtualgrid/browse.
  + samples/virtualgrid/browse_demo_*.prg
  + samples/virtualgrid/demo*.dbf
  + samples/virtualgrid/*.png
    + DATA_MODE samples implemented.

Re: Welcome to the Project Developers' Table

Posted: Thu May 26, 2011 4:44 pm
by Rathinagiri
Line number 635 virtualgrid.prg seems not working. Can somebody check and tell me?

Code: Select all

   ::oQHeaderView:connect( "sectionClicked(int)",{|i| if( valtype( ::bOnHeadClick[i+1] ) == 'B' , Eval( ::bOnHeadClick[i+1] ),nil ) } )