English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 29 September 2016, 16:39   #1
bwldrbst
Registered User

 
Join Date: Nov 2015
Location: Perth, Australia
Posts: 19
GUI toolkit alternatives

Over the last few months I've been working on a pretty light weight Dock application intended to work on 3.0 or 3.1 systems. I'm a fan of BetterWB (and my most powerful real Amiga is an A2000 with and 030 and 10MB RAM) so the idea is to have something that fits in with it.

A picture of the dock as it currently looks can be seen at https://www.dropbox.com/s/tlxvb85y5v...60929.png?dl=0

Each object shown on the dock is implemented as a BOOPSI class that is responsible for rendering and responding to user actions. The object can respond to clicks, dropped workbench icons or a hotkey.

The icon button class is built in to application but the clock and memory meter in the linked image are loaded dynamically based on the config file.

One part that I haven't really decided on is the GUI for the preferences application. I'd like to have it dynamic so that each object can provide it's own config UI.

I've considered using MUI but would prefer something a bit lighter.

Are there any GUI libraries around that make it easy to add and remove gadgets to a window at run time?
bwldrbst is offline  
Old 29 September 2016, 19:18   #2
Korodny
Zone Friend
 
Join Date: Sep 2001
Location: Germany
Posts: 679
Quote:
Originally Posted by bwldrbst View Post
Over the last few months I've been working on a pretty light weight Dock application intended to work on 3.0 or 3.1 systems.
Looks nice.

Quote:
Are there any GUI libraries around that make it easy to add and remove gadgets to a window at run time?
Can't really help you with that, two somewhat popular (i.e. I occasionally encountered programs using them) alternative GUI toolkits that were more lightwight than MUI/Classact were gtlayout and BGUI, they're both on Aminet. No idea if they do what you want though.

How about just adding a context sensitive popup menu using popupmenu.library? Checkmarks for "show handlebar/clock/memmeter", an entry for adding a new object to the dock plus a bunch of options (change icon/executable/helptext, remove object etc.) for the current item? The actual requesters could then be simple ASL/gadtools affairs for entering text, picking a file etc.
Korodny is offline  
Old 29 September 2016, 19:19   #3
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,717
As you are already working with BOOPSI you might want to have a look at ClassAct:
http://aminet.net/package/dev/gui/ClassAct2Demo
http://aminet.net/package/dev/gui/classact33

The SDK is not publicly available but the examples compile smoothly with the OS 3.9 NDK if you replace all mentions of CA_ by RA_ and classact by reaction.
http://www.haage-partner.de/download/AmigaOS/NDK39.lha
thomas is offline  
Old 07 October 2016, 08:55   #4
buggs
Registered User

 
Join Date: May 2016
Location: Rostock/Germany
Posts: 53
Quote:
Originally Posted by bwldrbst View Post
Over the last few months I've been working on a pretty light weight Dock application intended to work on 3.0 or 3.1 systems. I'm a fan of BetterWB (and my most powerful real Amiga is an A2000 with and 030 and 10MB RAM) so the idea is to have something that fits in with it.

A picture of the dock as it currently looks can be seen at https://www.dropbox.com/s/tlxvb85y5v...60929.png?dl=0

Each object shown on the dock is implemented as a BOOPSI class that is responsible for rendering and responding to user actions. The object can respond to clicks, dropped workbench icons or a hotkey.

The icon button class is built in to application but the clock and memory meter in the linked image are loaded dynamically based on the config file.

One part that I haven't really decided on is the GUI for the preferences application. I'd like to have it dynamic so that each object can provide it's own config UI.

I've considered using MUI but would prefer something a bit lighter.

Are there any GUI libraries around that make it easy to add and remove gadgets to a window at run time?
Looks good, already. I'd love to see animation support (like Toolmanager 2.1). Also, variable size tiles might be worth a thought.
buggs is offline  
Old 07 October 2016, 16:50   #5
bwldrbst
Registered User

 
Join Date: Nov 2015
Location: Perth, Australia
Posts: 19
So I've been playing around a bit with Triton as it appears to be just a light wrapper around gadtools and boopsi gadgets. The preferences editor is currently looking like this:

Click image for larger version

Name:	dockbot_20161007.png
Views:	168
Size:	6.1 KB
ID:	50326

The plan is to have it support dropping of icons and displaying of icons in the prefs editor.

I'll probably change the dock to support tiles the same size as the icons. Simple animation is possible as each gadget in the dock receives a TICK message several times a second and can request a redraw at that time. This is used to display the icon's alternate image when it is clicked:

Click image for larger version

Name:	dockbot_20161007_2.png
Views:	103
Size:	4.4 KB
ID:	50327

I've run into a couple of gotchas with Triton: it doesn't seem to deal with TagItem lists in the intended way and won't work if you're trying to append tags using TAG_MORE. Also, even though it provides a way to display a BOOPSI image within the UI there doesn't seem to be a way to actually access the image instance (to, for example, hand my custom image class an icon to render) so unless I'm missing something I'm not sure what use it is.
bwldrbst is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Your thoughts on Minimig? Alternatives? appiah4 support.Hardware 20 17 April 2016 20:10
Alternatives to DiskLED Leandro Jardim request.Apps 3 05 July 2013 22:23
EasyAdf Alternatives? Gordon Retrogaming General Discussion 9 25 April 2009 20:16
Kumiko GUI - Amiga Workbench 3.1 GUI for Windows milika Amiga scene 31 18 April 2007 20:16
Alternatives to ClassicWB DDNI New to Emulation or Amiga scene 5 14 August 2006 17:03

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06723 seconds with 16 queries