QBase new version

Anything QL Software or Programming Related.
daniel_baum
ROM Dongle
Posts: 23
Joined: Sat Aug 26, 2017 11:58 am

QBase new version

Postby daniel_baum » Thu Sep 14, 2017 8:18 pm

Hi all,

Here is the new version of QBase, my database editor for the DBas database library.

Changes:

- Loads in 512x256 resolution, and is resizable.
- May be called with a command-line parameter, e.g. ex flp1_Qbase_obj;'flp1_data_dbs'
- Lots of refactoring. The eagle-eyed among you may notice that it's a lot smaller than it was.

Tested on QPC2 with SMSQ/E 3.31, Q-Emulator with SMSQ/E 3.31. Requires the pointer environment, menu_rext, the Dbas library and the Qliberator runtimes.

Unlike the previous version, this one also works on Q-Emulator with Minerva. I couldn't get it to work on a JS ROM. It reported "Channel not open", and I've no idea why.

Is it important to anyone to run QBase on original QL hardware? Testing with Q_Emulator and Minerva at "QL speed" it appears to be extremely slow, especially when switching to tabular mode. I could try to get it to run a bit faster if anyone is interested. I hadn't remembered just how much faster QPC is than a real QL until I started using Q-Emulator.

Download the new QBase here:
https://www.dropbox.com/s/4s3fm0rm84mxf ... e.zip?dl=0

Currently I have numbered this version 0.99. It will become version 1.0 one it's been tested and bugfixed

Finally, I'd like to give an honourable mention to MasterBasic by Ergon Development (Davide Santachiara). It made 80s-style program editing bearable (almost...). The more massive refactoring was done with Notepad++ on Windows.

Regards to all,

D.


User avatar
Giorgio Garabello
Trump Card
Posts: 159
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, ITaly
Contact:

Re: QBase new version

Postby Giorgio Garabello » Thu Sep 14, 2017 10:44 pm

Downloaded and tried!
really a nice job.
I see that you have not forgotten anything about programming QL :-D
If you allow an opinion one thing you absolutely must not miss in this new version is the ability to independently resize the columns when you are in tabular view,
You can do it easily by using an array in the MAWDRAW command (but this surely you know it already)

Giorgio


daniel_baum
ROM Dongle
Posts: 23
Joined: Sat Aug 26, 2017 11:58 am

Re: QBase new version

Postby daniel_baum » Fri Sep 15, 2017 5:39 am

Thanks Giorgio,

I will implement the variable column width; I just need to think about the best way to do it.

In my previous posting I forgot to mention another new feature: The tabular view no longer attempts to load the whole file at once. It can now be paged up and down using the left and right arrow buttons. This way you can load large files without hitting any memory limitations.

The page size and the scroll size are both parameters that eventually I intend to put in a Config block to the user can alter them.

Rgds,

Daniel


User avatar
Giorgio Garabello
Trump Card
Posts: 159
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, ITaly
Contact:

Re: QBase new version

Postby Giorgio Garabello » Fri Sep 15, 2017 7:38 am

daniel_baum wrote:Thanks Giorgio,

I will implement the variable column width; I just need to think about the best way to do it.


The most intuitive method from the point of view of the user would be to differentiate the action based on the mouse button pressed.
By editing the field with a key, you make a contextual menu appear in which you enter the width of the column and in the future you can also add other operations.

In my previous posting I forgot to mention another new feature: The tabular view no longer attempts to load the whole file at once. It can now be paged up and down using the left and right arrow buttons. This way you can load large files without hitting any memory limitations.

The page size and the scroll size are both parameters that eventually I intend to put in a Config block to the user can alter them.

Rgds,

Daniel[/quote]

Fantastic.
Tonight I do other tests.
Congratulations again for the job.


daniel_baum
ROM Dongle
Posts: 23
Joined: Sat Aug 26, 2017 11:58 am

Re: QBase new version

Postby daniel_baum » Fri Sep 15, 2017 9:25 pm

Hi Giorgio,

When you are in tabular mode, the left and right buttons (which move from record to record in the regular mode) become page up and page down buttons.

There are two parameters, that at present are hard-coded within the application: page size and scroll size. Page size is the number of records that are displayed in a page, and scroll size is the number of records that it jumps from page to page. At present they are set to a page size of 500 and a scroll size of 100. Therefore, if you are at record 0, it will display the first 500 records. Then,the first time you press page down it will display from record 101 to 600, etc. If the database has less than 500 records, but more than 100, it will display the entire database in the first page, and then from 101 to the end of the database in the second.

The page size and scroll size parameters will eventually be CONFIGurable.

I hope this isn't too confusing.

D.


User avatar
Giorgio Garabello
Trump Card
Posts: 159
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, ITaly
Contact:

Re: QBase new version

Postby Giorgio Garabello » Sat Sep 16, 2017 5:00 am

daniel_baum wrote:Hi Giorgio,

When you are in tabular mode, the left and right buttons (which move from record to record in the regular mode) become page up and page down buttons.



Ok, Now is clear, the "<" and the ">" buttons... sorry my english is very poor.
Many thanks!

Giorgio


daniel_baum
ROM Dongle
Posts: 23
Joined: Sat Aug 26, 2017 11:58 am

Re: QBase new version

Postby daniel_baum » Fri Sep 22, 2017 2:36 pm

Hi all,

After nearly 20 years, here is version 1.00 of QBase.

The (hopefully) full list of changes since the 1998 version is in the README file in the zip.

Since v0.99, the only new feature is that the page size and scroll size of the tabular view are now CONFIGurable.

Other than that, I have fixed several bugs, cleaned up the code and much improved the error trapping.

You can download it here:

https://www.dropbox.com/s/zc2gethvncz9h ... 0.zip?dl=0

D.



Return to “Software & Programming”

Who is online

Users browsing this forum: No registered users and 3 guests