Welcome to the Project Developers' Table

Moderator: Rathinagiri

gvaronas
Posts: 109
Joined: Wed Aug 06, 2008 5:21 pm

Re: Welcome to the Project Developers' Table

Post by gvaronas »

mrduck wrote:I wrote some code to use .ui files into HMG4. It assigns the Qt objects in the .ui file to the matching HMG4 object. Unfortunately due to changes in hbqt reading of .ui files is not possible anymore. We should switch to .uic files (compiled ui files) and adapt my code.

Reading .ui files was great since you did change the xml file and run the program, using .uic files means that you change the xml file but you need to call hbmk2 to do ui->uic and then link the executable...

Since I can't work on hmg4 on the next days if someone is interested to port my changes to the new hbqt/hmg4 please contact me and I'll send the changes.

Francesco

Hola Francesco, significa que ya no es posible utilizar los archivos .ui con harbour.
Sin embargo, aún veo que Pritpal sigue utilizando este tipo de archivos en HbIDE, precisamente uno de sus ultimos cambios es la implementación de los ChangeLog's con este tipo de archivos.
¿o estoy equivocado?


Hi Francesco, you already can not use the files .ui to harbor.
However, I still see Pritpal continues to use these files in HBIDE precisely one of the latest changes is the implementation of the ChangeLog's with these files.
Or am I wrong?

BestRegards
GVS
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

.ui files are xml files
.uic are "compiled .ui files", actually they are c code

hbmk2 helper functions translate .ui to .uic files (using the Qt compiler) and then reads them and translate them to prg code, compile the prg code and link it to the final executable.

So, YES, you can still use .ui files if you add them to the files hbmk2 should take care of.


Qt has a way to load .ui files directly. This means that you may change widget layouts without the need to recompile the application. hbQt supported this run-rime loading and I added support to hmg4: I could use Qt Creator to create a form and then LOAD IT AT RUN_TIME with hmg4 objects instead of Qt ones.
Now this run-time loading is no more supported due to some important changes to hbQt core code.

It may be possible to adapt my code to the ui->uic->prg process (probably is also easier to do) but I have no time in this period.

Francesco
User avatar
concentra
Posts: 256
Joined: Fri Nov 26, 2010 11:31 am
Location: Piracicaba - Brasil

Re: Welcome to the Project Developers' Table

Post by concentra »

Code: Select all

2011-06-08 11:24 UTC-0300 Mauricio Ventura Faria (<conc001 a+t gmail com>)
  * hmg.hbp
    + buttonbox.prg
  * source/control.prg
    * Fixed option to create the control without a parent.
  * source/basic.prg
    + New method that returns an empty object, used to instantiate objects with no parent.
  * include/hmg.ch
    + Added ButtonBox clauses and enumerators.
  + source/buttonbox.prg
    + Added control that creates a box of standard buttons in a layout appropriate to the current style.
  + doc/txt/en/buttonbox.txt
    + ButtonBox doc
I added a control that creates a box of standard buttons in a layout appropriate to the current style.

Most dialogs have buttons that can almost be considered standard (e.g. OK and Cancel buttons).
It is sometimes convenient to create these buttons in a standard way.
Dialogs and message boxes typically present buttons in a layout that conforms to the interface guidelines for
that platform and different platforms have different layouts for their dialogs.
ButtonBox allows to add buttons and automatically use the appropriate layout for the user's desktop environment.
This control is very usefull when used with layouts because formatting is pretty automatic.

This is the first time I wrote DOCs here and I am not sure if my txt is in the formating rules, can someone revise please ?
I also do not know how to add a working $Id tag in the top of the document that holds the last change and build data.
I added the line but this by itself isn´t enough... What should I do ?
[[]] Mauricio Ventura Faria
User avatar
Rathinagiri
Posts: 5477
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Thank you. It is very nice.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Welcome to the Project Developers' Table

Post by Carlos Britos »

concentra wrote:This is the first time I wrote DOCs here and I am not sure if my txt is in the formating rules, can someone revise please ?
It's ok, just sections &PROPERTIES$ and $METHODS$ are links, there only put the name of the property/method. One by line.
The explanation about these properties/methods are in alphabetic order in files called 'methods.txt' and 'properties_a2b.txt' and so on.
There, if the property/method name not already exists, you have to create it.

Thanks for update docs.
I also do not know how to add a working $Id tag in the top of the document that holds the last change and build data.
I added the line but this by itself isn´t enough... What should I do ?
Add these lines at the top of the file and save it.

/*
* $Id $
*/

On Windows explorer: Select file,
1 Right click > TortoiseSVN > Add...
2 Right click > TortoiseSVN > Properties > New
Select in combo 'Property Name' de property. f.e. svn:eol-style
Type in 'Property Value' the values. Tooltip show possible values.

or the most simple way is:
On Windows explorer:
1 Select one file in the svn tree that already have properties. (Any source).
2 Right click > TortoiseSVN > Properties > Export
Save it with the default extension.
Do the same for each property.
3 Then select the new file and Import them.
4 Right click > TortoiseSVN > Properties > Import

As soon as you commit the file, SVN ID string will be expanded by SVN server.
Regards/Saludos, Carlos (bcd12a)
User avatar
Rathinagiri
Posts: 5477
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Hi,

I get this error... Is QDialogButtonBox a new addition to hbqt?

Code: Select all


C:\hmg.4\svn\samples\buttonbox>build demo_1
hbmk2: Processing local make script: hbmk.hbm
Harbour 2.1.0rc2 (Rev. 16814)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'demo_1.prg'...
Lines 5880, Functions/Procedures 1
Generating C source output to 'C:\Users\RATHIN~1\AppData\Local\Temp\hbmk_39l1h5.
dir\demo_1.c'... Done.
../../lib/libhmg.a(buttonbox.o):buttonbox.c:(.data+0x218): undefined reference t
o `HB_FUN_QDIALOGBUTTONBOX'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/RATHIN~1/AppData/Local/Temp/hbmk_39l1h5.dir/demo_1.o C:/Users/R
ATHIN~1/AppData/Local/Temp/hbmk_39l1h5.dir/hbmk_ksp2e2.o C:/Users/RATHIN~1/AppDa
ta/Local/Temp/hbmk_39l1h5.dir/hbmk_8xpf1o.o    -mwindows -Wl,--start-group -lgtw
vg -lsupc++ -lhbqtcore -lQtCore4 -lhbqtgui -lQtGui4 -lhbqtnetwork -lQtNetwork4 -
lhbqtsql -lQtSql4 -lgtqtc -lhmg -lhbct -lxhb -lhbtip -lhbwin -lpng -lhbfship -lh
bxpp -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -l
gtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -l
rddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lh
bmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -
lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lm
simg32 -lwininet -lhbpcre -lhbzlib   -Wl,--end-group -odemo_1.exe  -Lc:/hmg.4/ha
rbour/lib/win/mingw -Lc:/hmg.4/harbour/bin -L../../lib -Lc:/hmg.4/harbour/lib

East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Welcome to the Project Developers' Table

Post by mrduck »

rathinagiri wrote:Hi,

I get this error... Is QDialogButtonBox a new addition to hbqt?
Yes, it is
User avatar
Rathinagiri
Posts: 5477
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Thanks for the info. I will update to the nightly build, and release a new version too.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Welcome to the Project Developers' Table

Post by Carlos Britos »

Code: Select all

2011-06-09 15:14 UTC-0300 Carlos Britos ( <bcd12a(a_t)yahoo.com.ar> )
  * source/label.prg
    + Added method Buddy
      Sets a label's control as buddy to another control.
      When the user presses the shortcut key indicated by this label, the keyboard
      focus is transferred to the label's buddy control.

  + samples/label/demo_5.prg
    * Added to test buddy method.

  * doc/txt/en/label.txt
  * doc/txt/en/methods.txt
    ! Updated texts.

  * source/window.prg
    ! Implemented method Capture().
Regards/Saludos, Carlos (bcd12a)
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Welcome to the Project Developers' Table

Post by Carlos Britos »

Code: Select all

2011-06-11 16:53 UTC-0300 Carlos Britos ( <bcd12a(a_t)yahoo.com.ar> )
  * source/scrollbar.prg
    ! Added scrollarea class

  + samples/scrollbar/demo_2.prg
    * Added to test scrollarea.

  * doc/txt/en/scrollbar.txt
    ! Updated texts.
Regards/Saludos, Carlos (bcd12a)
Post Reply