Pritpal, HBIDE developer, assists us to use it with FWH

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 5:48 pm

reinaldocrespo wrote:Hello everyone. hbIDE is a good thing!


Thanks.

1. It'd be nice if shortcuts were displayed next to the menu option or have some manner of finding what the shortcut for a given menu option is. For example: find, goto line, etc... might have a shortcut but how would I know? BTW- if there is no shortcut, then I think it should be added to each of these menu options.


The shortcuts which are already defined can be located
from <Setup><Keyboard Mappings><Keyboard Shortcuts> list.
The reason why I did not displayed them next to menu option is
that you can change anyone at any time, temprarily and/or
persistently. Please examine <Keyboard Mappings> dialog.

2. I'd like to sort .prg File tabs. That would make it easier to find a given prg. I'm currently testing with more than 50 .prgs on a single project. I find I have a hard time reaching the desired prg. On this same note; perhaps it is possible to have multi-line tabs when necessary?


A very intelligent question.
A feature I always wanted in xMate.

Luckily it is available in hbIDE though in a distinct form.

Way #1: rearrange the tabs - you can drag the tabs to the order desired.

Way #2: click on "Editors" icon on the right-toolbar. It opens a tree-view at
the left pane with opened tabs, sorted. Double-click on any node there-in will
make the editor current.

Way #3: ( and this is unique to hbIDE ) create few panels from
"Panels" main-toolbar icon. It will ask for a label, give one which represent
most to the set of sources you may thinks as logically related. A blank panel
will appear. A "round" icon, differentiated by color, on the top of left toolbar
will appear. Open souces onto that. You can add n number of panels.
Each panel will display tabs for hosted sources. Switch to any panel by
clicking on the "round" icons.

I use this feature extensively.
For example, I work on many projects, i.e.,
GTWVG, HBQT, HBIDE, Vouch, Vouch32, Vouch32 ActiveX, and more
I just open one instance of hbIDE and have as many panels
hosting the sources for different projects. Even more panels for
my commercial product Vouch as it contains around 372 sources.

3. I noticed the random function name menu option. I beg everyone to excuse my ignorance and curiosity; would someone please explain the use of a random function name? I might be missing something here.


I also do not know the use of this option.
I will remove it in next commit. Vailton added it from the very begining.

4. Normally I'd have to create a .lib to be linked with my app in order to use functions stored on a .dll. I noticed that you may include a .dll to the project. Does that mean that I would no longer have to create the .lib from the .dll to be used from my app?


You are right partially.
If you are using mingw as compiler, then any standard C dll
needs not to be converted to lib with, for example, bcc's implib utility.
It is done on the fly. But it may need hbmk2 as the base make utility
which automatically passes the required flags to the linker.
In any other scenario, i.e., if you are using batch files, you will
need to pass required flags yourself.

I will probably get back with more further down the road. Thank you everyone.


You are welcome.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 5:50 pm

reinaldocrespo wrote:... Again on the subject of "save-all" menu option: I've found that saving all, not only saves .prg files that are part of the project but are not loaded to the editor or loaded but not changed, it also re-saves some of these prgs overwriting its contents with zero bytes. In essence it erases the source .prg file contents that wasn't changed or not even loaded into the editor. I was able to recover these .prgs from the .bak files it created.
Reinaldo.


Oh, I will check in a while.
Thanks for reporting.
Sorry for the loss you might have suffered.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 5:54 pm

Pritpal Bedi wrote:
reinaldocrespo wrote:... Again on the subject of "save-all" menu option: I've found that saving all, not only saves .prg files that are part of the project but are not loaded to the editor or loaded but not changed, it also re-saves some of these prgs overwriting its contents with zero bytes. In essence it erases the source .prg file contents that wasn't changed or not even loaded into the editor. I was able to recover these .prgs from the .bak files it created.
Reinaldo.



I have posted this warning on Harbour's devel-list also.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 6:01 pm

mmercado wrote:Hello Friends:

My first test with hbide, trying to build the hello world project (tutorial sample) I got an error, here the log in output console:

Error F0034 Bad command line option '3'


The error suggests that you are using some old Harbour
distribution. Please copy the latest hbmk2.exe into Harbour's bin
folder. Sometime back Antonio has posted the link to latest
hbmk2.exe, download from there, OR, upgrade Harbour itself.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 6:51 pm

Hello Everybody

Here is the latest hbIDE for download : http://hbide.vouch.info/

NOTE: below is the changelog entries committed by me only.
There are many more commits from Viktor which deal with the refinements in hbIDE's make system.
He has embedded resources in executable itself, images and dialogs, a big leap forward.

NOTE: revision number displayed on the title-bar of hbIDE may differe from what is displayed here.
You must refer to changelog referred here which is actual one.

It is based on the following ChangeLog entries:

2010-06-29 11:21 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/ideactions.prg
- Removed: "Insert Randome Name" option in <Edit><Insert>.
Actually inserting any text can be accomplished through macros.

* contrib/hbide/idesources.prg
% Fixed: "Save all sources" option of <File> menu. A fatal one.
Thanks to Reinaldo for reporting.

2010-06-29 09:31 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbide.qrc
+ Added: "runscript" icon.

+ contrib/hbide/resources/runscript.png
+ New icon for "Run as Script" action on main toolbar.

2010-06-29 09:07 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbpbrowse.prg
! Some more tweaking in event handelling.

* contrib/hbide/idebrowse.prg
* contrib/hbide/idedocks.prg
* contrib/hbide/ideeditor.prg
+ Prepared: to honor multiple panels to host views of ideDBU
sessions plus arranged to host a tree-view at the left
if there will be a need in the future.

+ Added: toolbar to ideDBU interface with ounly one button
<Open> to add a table to the view. Now table open dialog
is not presented at the time of invocation.

+ Improved: ideDBU view to take care of available
space more intelligently.

2010-06-28 19:04 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbpbrowse.prg
% Rearrangement of code. Was calculating rows console based.

* contrib/hbide/idedocks.prg
% Minor.

* contrib/hbide/idebrowse.prg
+ Implemented: browse and corresponding form view of a table,
wrapped inside splitters.
Multiple tables are presented in vertical splitters
and form view is presented in horizontal splitter.
; NOTE: still work in progress. But proof of concept is
already working.

2010-06-28 08:51 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbide.prg
* contrib/hbide/idebrowse.prg
! Refinements: data navigation and allied in hbideDBU interface.

2010-06-28 01:12 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbide.hbp

* contrib/hbide/hbide.prg
* contrib/hbide/ideactions.prg
+ contrib/hbide/idebrowse.prg
* contrib/hbide/idedocks.prg
* contrib/hbide/ideeditor.prg
* contrib/hbide/ideobject.prg
* contrib/hbxbp/xbpbrowse.prg

+ Implemented: database tables manager ( dbu ).
A work-in-progress but you can have a feel of it.
1. "View"->"Browser Widget"->Select a Table.
2. Hide the widget and repeat process 1, select another table.
3. The widget will now contain both browsers.

NOTE: many surprises may be there, just bear with me,
it is a quick commit. Refinements are scheduled for
this whole week.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 7:04 pm

reinaldocrespo wrote: I was able to recover these .prgs from the .bak files it created.


Infact these .bak files are not created while "Save All" option was clicked.

.bak files are created automatically after interval of 30 seconds
( which can be changed via "Setup" dialog option ) if a file is in "modified" state.
This temp bak file is looked ot the next startup and an alert is issued and
request is made to save them back as original.

This utility aims at recovery if hbIDE crashes in between.
When a file is saved in normal way, associated .bak file is deleted.
So its presence is only when while in the middle of hbIDE's run it crashes.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby reinaldocrespo » Tue Jun 29, 2010 7:40 pm

The shortcuts which are already defined can be located
from <Setup><Keyboard Mappings><Keyboard Shortcuts> list.
The reason why I did not displayed them next to menu option is
that you can change anyone at any time, temprarily and/or
persistently. Please examine <Keyboard Mappings> dialog


Ok. This works good for me. I tried a few. I liked it. Please confirm ^G is set to "goto line". It is not working at my end. Everything else is as expected.
Way #1: rearrange the tabs - you can drag the tabs to the order desired.

Way #2: click on "Editors" icon on the right-toolbar. It opens a tree-view at
the left pane with opened tabs, sorted. Double-click on any node there-in will
make the editor current.

Way #3: ( and this is unique to hbIDE ) create few panels from
"Panels" main-toolbar icon. It will ask for a label, give one which represent
most to the set of sources you may thinks as logically related. A blank panel
will appear. A "round" icon, differentiated by color, on the top of left toolbar
will appear. Open souces onto that. You can add n number of panels.
Each panel will display tabs for hosted sources. Switch to any panel by
clicking on the "round" icons.


That's even better than what I was asking for. It works quite well for me. I see myself setting up 4 ~ 5 panels of sources.

Ok. I hope I'm not overwhelming:

6. Code Folding. Blocks of code collapse and expand. A + or - sign informs if code is folded or not. It applies to blocks of code such as if-endif, while-end, function-return... Perhaps it is available but I wasn't able to find it.

7. Speller.

Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 8:00 pm

Please confirm ^G is set to "goto line". It is not working at my end. Everything else is as expected.

That's even better than what I was asking for. It works quite well for me. I see myself setting up 4 ~ 5 panels of sources.


:-)

Ok. I hope I'm not overwhelming:


Not at all, ask as much as you can.

6. Code Folding. Blocks of code collapse and expand. A + or - sign informs if code is folded or not. It applies to blocks of code such as if-endif, while-end, function-return... Perhaps it is available but I wasn't able to find it.


Though it is a convinient feature, and almost all the editors
have this functionality, but I could not do so, so far. It is on my TODO list
but with lowest priority. The fact is, it will need the entire rewrite of .cpp
editor class, a huge work. When I started that class I somehow left this
feature slots and now it is pain to hook in there.

Still your request is jotted along my TODO list.

7. Speller.


I am sure you are asking for "Code Completion", and not as "speller"
as for spell checker, right ? If yes, then it is already there. I will explain
it after you confirm what is your exact question.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Jaque Morique » Tue Jun 29, 2010 8:39 pm

---------------------------
Run-time Error!
---------------------------


Error BASE/1075 Argument error: >


Called from IDETOOLSMANAGER:INI2CONTROLS(526)


Called from IDETOOLSMANAGER:EXECEVENT(367)


Called from (b)IDETOOLSMANAGER_SHOW(208)


Called from QT_QEVENTLOOP_PROCESSEVENTS(0)


Called from QEVENTLOOP:PROCESSEVENTS(102)


Called from APPEVENT(266)


Called from HBIDE:CREATE(551)


Called from MAIN(114)
---------------------------
OK
---------------------------


TX
Jaque Morique
 
Posts: 17
Joined: Thu Apr 22, 2010 5:15 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby reinaldocrespo » Tue Jun 29, 2010 8:51 pm

Pritpal;
I am sure you are asking for "Code Completion", and not as "speller"
as for spell checker, right ? If yes, then it is already there. I will explain
it after you confirm what is your exact question


I beg your pardon. I'm doing too many things at once. You absolutely read my mind. Thank you.

... and please confirm if goto line shortcut set as [ctrl]G works at your end. It is not at mine. It is the only shortcut that didn't work for me. Thank you.


Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 9:26 pm

Jaque Morique wrote:Error BASE/1075 Argument error: >
Called from IDETOOLSMANAGER:INI2CONTROLS(526)
Called from IDETOOLSMANAGER:EXECEVENT(367)


Fixed.
Thanks, will be ok in next commit.
The error is caused when you have no other tools
already defined and <Browse> is clicked.

Workaround: define one without clicking is, save and
next you will never have this error.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Tue Jun 29, 2010 9:37 pm

... and please confirm if goto line shortcut set as [ctrl]G works at your end. It is not at mine. It is the only shortcut that didn't work for me. Thank you.


Fixed.
Wait for next commit.
Thanks for reporting.

reinaldocrespo wrote:I beg your pardon. I'm doing too many things at once. You absolutely read my mind.


The keywords loading is implemeted like this:

1. This is based on per hbIDE instance which can be invoked with different "hbide.ini" path.
2. Open "Projects Functions Lookup" icon at the right toolbar.
3. Click "Mark Projects" button.
4. All the projects include in your current projects tree will be available to be tagged.
5. Check any projects you are interested in.
6. [First time only] Click "Re-tag" button.
7. Wait, you will visualize a running number next to "Entries:" label.
8. After few seconds you will see the table populated with definitions.
9. You can search right there just to have a feel.
10. Close it and return back to any editor instance.
11. Start typing some function name.
12. REPORT back your experience.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby UD previous posts » Wed Jun 30, 2010 8:17 am

Little Problem

if i mark a string and use right mouseclick the mark is away

cut copy goto funtion does not work

can u please take a look

thanks u
Using Nissan 350 Z with last Firmware

compiled with Super Plus
UD previous posts
 
Posts: 42
Joined: Sat Sep 30, 2006 9:43 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Wed Jun 30, 2010 8:42 am

Hello

Another upload is there at http://hbide.vouch.info/
It is based on following changelog entries:

2010-06-30 01:30 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/ideedit.prg
% Changed: context-menu options for "Split..." are now
edit instance's state dependent.
! Thumbnail window is not closed while split is closed.


2010-06-30 00:27 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
! Fixed: the paint behavior in "thumbnail".
Selected text was covered behind highlight area.

* contrib/hbide/idebrowse.prg
* contrib/hbide/idedocks.prg
* contrib/hbide/idesaveload.prg
+ Added: more icons to ideDBU toolbar, close and toggle form view.
+ Implemented: to save and restore table informations per panel.
Now ideDBU is presented with opened tables as was closed previously.
+ Implemented: "Panels" concept where each panel can hold
different tables.
TODO: interface to add panels.

Please test.

2010-06-29 17:44 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/ideedit.prg
* contrib/hbide/ideeditor.prg
* contrib/hbide/idetools.prg
% Minor fix in "buttonBrowse_clicked" event which was causing
RTE when there was no other Tool defined.

! Fix to Ctrl+G which stopped working after keyboard macros
synchronization few days back.

! Thumbnail window is closed if a source is closed. To
activate it for another source you need to activate it again.
However, switching over to another source, it stays as is.

+ Reimplemented: split behavior of current editing instance.

Before it was done in fixed halved window plus split
was available verically and horintally any level deep.
This was neither appropriate nor desired behavior.

Now split is presented in resizable window either horizontally
or vertically. The behavior can be changed if all splitted
windows are closed first and then again split is initiated.

Above anomalies reported by Viktor, thanks.
Please test and report back any fix is not upto mark.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

Re: Pritpal, HBIDE developer, assists us to use it with FWH

Postby Pritpal Bedi » Wed Jun 30, 2010 8:45 am

Uwe Diemer wrote:if i mark a string and use right mouseclick the mark is away
cut copy goto funtion does not work


Mark, right-click : I will check.

cut copy goto - can you explain a bit more ? I am confused.
enjoy hbIDEing...
Pritpal Bedi
http://hbide.vouch.info/
User avatar
Pritpal Bedi
 
Posts: 154
Joined: Thu Jun 03, 2010 6:27 am

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests

cron