Board index FlightGear Development Canvas

Canvas GUI & Michat's GUI mockups

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Re: Canvas GUI & Michat's GUI mockups

Postby TheTom » Sat May 11, 2013 11:35 pm

Currently I'm working on compositing/window decorations based on the ideas of the metacity/gtk-window-decorator. Afterwards I want to make something similar to eg. the Qt layouting system with drawing elements similar to most common GUI toolkits like for example GTK. They make heavy use of images which can be scaled using 9-scale/image slice. So for default dialog elements like tabs/buttons/etc. we can probably just reuse existing (eg. GTK) themes (at least the images) but also create a special FlightGear theme. What probably is more interesting is to create dialogs/layouts unique to flight simulators, for example fuel and payload (will probably be different for each aircraft - at least a 2d drawing of the aircraft layout) or a weather dialog for showing and changing the current weather, or a layout for the virtual checklist dialog, the aircraft help/tutorial/etc. dialogs or some icons for the menu. You probably already got the idea :) I think creating icons and layouts for dialogs is much more useful than creating common gui elements with many existing (also GPL licensed) images.
TheTom
 
Posts: 322
Joined: Sun Oct 09, 2011 11:20 am

Re: Canvas GUI & Michat's GUI mockups

Postby Hooray » Sat May 11, 2013 11:59 pm

Absolutely - I cannot seem to find the thread at the moment, but at some point we were talking about supporting existing GUI markup formats, so that existing tools (namely GUI/dialog/widget designers) could be used to develop FG widgets - rather than having to write everything from scratch. Also, in some other discussion we actually agreed that we would need to come up with a library of widgets that can be used as PUI alternatives, so that we could then work on a Nasal parser for our existing PropertyList/GUI format to rip out PUI at some point.

@Michat: In case of doubt, please stick to what Tom has said - because he's already way ahead obviously, and the old wiki discussions can be considered "outdated" meanwhile.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Canvas GUI & Michat's GUI mockups

Postby Michat » Sun May 12, 2013 9:05 pm

Roger that. So for the moment I'll continue releasing my Open Radar mockups, still have a lot material to show and I have some retard. There you'll find more ideas that then we can comment. Anyway I did yesterday some interesting things using colors, I'll wait for your metacity profesional markup while I made some research.
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac

Previous

Return to Canvas

Who is online

Users browsing this forum: No registered users and 1 guest