www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Guigle: Is there help?

reply "Stephen Jones" <siwenjo gmail.com> writes:
I was looking for a GUI that I could run over an openGL window in 
D and gave up and wrote a gui out of openGL that is the last 
sequence of draws and that gets rendered to the near plane. The 
project is called Guigle. So far it includes Button, CheckBox, 
Cursor, DropMenu, EditField, Editor, FileChooser, FileSaver, 
MsgBox, EntryBox, and TextField classes, all of which behave like 
a rudimentary WinForms. All of the workings, including loading 
Derelict3 are blackboxed into a Guigle folder, which also 
contains a layout.ini for setting colors, fonts and theme. To use 
Guigle you extend Form in the main App class, call super with 
window w, h, clearColor, and a parameterless delegate to an 
initial function. The App class also overrides a draw function 
which allows the programmer to access the GL loop to draw 
underneath the GUI; events for user defined GL, at this stage, 
have to be handled via events thrown from the GUI. Although not 
rigorously tested it all works on XP as expected and without 
crashing.

I would like to make the software openSource (BSD or community) 
and put it on GIT and was wondering if any body could help me 
publish the thing. I am really dense when it comes to figuring 
out configuration issues. My way would be to dump the MonoDevelop 
(Xamarin) .sln onto GIT and if people want to use it they can 
download it and treat the project like a template… basically 
clear out the initial App class and build the functionality they 
want; they do not need to go into the Guigle folder to access the 
functionality. But there is probably a way better way of doing 
things, like making the Guigle folder something you could place 
in the DMD2\scr directory and linking to it. When I try this I 
get all sorts of issues like dlls no longer found, file names 
missing, etc, basically configuration issues that I do not 
understand. Why oh why didn’t I take the blue pill?
Mar 24 2013
next sibling parent reply Russel Winder <russel winder.org.uk> writes:
On Mon, 2013-03-25 at 02:47 +0100, Stephen Jones wrote:
 I was looking for a GUI that I could run over an openGL window in=20
 D and gave up and wrote a gui out of openGL that is the last=20
 sequence of draws and that gets rendered to the near plane. The=20
 project is called Guigle. So far it includes Button, CheckBox,=20
 Cursor, DropMenu, EditField, Editor, FileChooser, FileSaver,=20
 MsgBox, EntryBox, and TextField classes, all of which behave like=20
 a rudimentary WinForms. All of the workings, including loading=20
 Derelict3 are blackboxed into a Guigle folder, which also=20
 contains a layout.ini for setting colors, fonts and theme. To use=20
 Guigle you extend Form in the main App class, call super with=20
 window w, h, clearColor, and a parameterless delegate to an=20
 initial function. The App class also overrides a draw function=20
 which allows the programmer to access the GL loop to draw=20
 underneath the GUI; events for user defined GL, at this stage,=20
 have to be handled via events thrown from the GUI. Although not=20
 rigorously tested it all works on XP as expected and without=20
 crashing.
Is this a Windows only thing or is the intention for it to be able to work on OS X and the X-based systems, GNOME, KDE, etc, and indeed Wayland? In other places, whenever anyone mention WinForms, the C# folks tend to growl with what appears to be hatred. =20
 I would like to make the software openSource (BSD or community)=20
 and put it on GIT and was wondering if any body could help me=20
 publish the thing. I am really dense when it comes to figuring=20
 out configuration issues. My way would be to dump the MonoDevelop=20
 (Xamarin) .sln onto GIT and if people want to use it they can=20
 download it and treat the project like a template=E2=80=A6 basically=20
 clear out the initial App class and build the functionality they=20
 want; they do not need to go into the Guigle folder to access the=20
 functionality. But there is probably a way better way of doing=20
 things, like making the Guigle folder something you could place=20
 in the DMD2\scr directory and linking to it. When I try this I=20
 get all sorts of issues like dlls no longer found, file names=20
 missing, etc, basically configuration issues that I do not=20
 understand. Why oh why didn=E2=80=99t I take the blue pill?
A Git repository should contain only the source code and not be tied to a particular IDE. Clearly there needs to be some documentation on how to use the source, but to mandate a specific IDE will ensure that there is little take up of the project. It all sounds from the above as though Guigle is deeply tied into Windows, but I may be misunderstanding. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Mar 25 2013
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2013-03-25 08:54, Russel Winder wrote:

 It all sounds from the above as though Guigle is deeply tied into
 Windows, but I may be misunderstanding.
The only thing I got from that post was that it was tested on Windows. -- /Jacob Carlborg
Mar 25 2013
prev sibling parent "Stephen Jones" <siwenjo gmail.com> writes:
On Monday, 25 March 2013 at 07:54:30 UTC, Russel Winder wrote:
 On Mon, 2013-03-25 at 02:47 +0100, Stephen Jones wrote:
 I was looking for a GUI that I could run over an openGL window 
 in D and gave up and wrote a gui out of openGL that is the 
 last sequence of draws and that gets rendered to the near 
 plane. The project is called Guigle. So far it includes 
 Button, CheckBox, Cursor, DropMenu, EditField, Editor, 
 FileChooser, FileSaver, MsgBox, EntryBox, and TextField 
 classes, all of which behave like a rudimentary WinForms. All 
 of the workings, including loading Derelict3 are blackboxed 
 into a Guigle folder, which also contains a layout.ini for 
 setting colors, fonts and theme. To use Guigle you extend Form 
 in the main App class, call super with window w, h, 
 clearColor, and a parameterless delegate to an initial 
 function. The App class also overrides a draw function which 
 allows the programmer to access the GL loop to draw underneath 
 the GUI; events for user defined GL, at this stage, have to be 
 handled via events thrown from the GUI. Although not 
 rigorously tested it all works on XP as expected and without 
 crashing.
Is this a Windows only thing or is the intention for it to be able to work on OS X and the X-based systems, GNOME, KDE, etc, and indeed Wayland? In other places, whenever anyone mention WinForms, the C# folks tend to growl with what appears to be hatred.
 I would like to make the software openSource (BSD or 
 community) and put it on GIT and was wondering if any body 
 could help me publish the thing. I am really dense when it 
 comes to figuring out configuration issues. My way would be to 
 dump the MonoDevelop (Xamarin) .sln onto GIT and if people 
 want to use it they can download it and treat the project like 
 a template… basically clear out the initial App class and 
 build the functionality they want; they do not need to go into 
 the Guigle folder to access the functionality. But there is 
 probably a way better way of doing things, like making the 
 Guigle folder something you could place in the DMD2\scr 
 directory and linking to it. When I try this I get all sorts 
 of issues like dlls no longer found, file names missing, etc, 
 basically configuration issues that I do not understand. Why 
 oh why didn’t I take the blue pill?
A Git repository should contain only the source code and not be tied to a particular IDE. Clearly there needs to be some documentation on how to use the source, but to mandate a specific IDE will ensure that there is little take up of the project. It all sounds from the above as though Guigle is deeply tied into Windows, but I may be misunderstanding.
The Gui runs off Derelict3 and should run on any OS that supports Derelict3. The FileChooser mechanism uses DMD2 std. imports to run around the directory structure. The initial folder (project folder) is found for Windows, OSX or Linux; finding this folder is crucial for images and fonts are specified relative to it. Again, only tested on Windows. I saw Luig but it is DMD1 with an earlier Derelict.
Mar 25 2013
prev sibling next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2013-03-25 02:47, Stephen Jones wrote:
 I was looking for a GUI that I could run over an openGL window in D and
 gave up and wrote a gui out of openGL that is the last sequence of draws
 and that gets rendered to the near plane.
There are some available, at least for D1. Like hybrid by team0xf. -- /Jacob Carlborg
Mar 25 2013
parent Jacob Carlborg <doob me.com> writes:
On 2013-03-25 10:09, Jacob Carlborg wrote:

 There are some available, at least for D1. Like hybrid by team0xf.
There's also this: http://www.prowiki.org/wiki4d/wiki.cgi?GuiLibraries -- /Jacob Carlborg
Mar 25 2013
prev sibling next sibling parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
25-Mar-2013 05:47, Stephen Jones пишет:
 I was looking for a GUI that I could run over an openGL window in D and
 gave up and wrote a gui out of openGL that is the last sequence of draws
 and that gets rendered to the near plane. The project is called Guigle.
 So far it includes Button, CheckBox, Cursor, DropMenu, EditField,
 Editor, FileChooser, FileSaver, MsgBox, EntryBox, and TextField classes,
 all of which behave like a rudimentary WinForms. All of the workings,
 including loading Derelict3 are blackboxed into a Guigle folder, which
 also contains a layout.ini for setting colors, fonts and theme. To use
 Guigle you extend Form in the main App class, call super with window w,
 h, clearColor, and a parameterless delegate to an initial function. The
 App class also overrides a draw function which allows the programmer to
 access the GL loop to draw underneath the GUI; events for user defined
 GL, at this stage, have to be handled via events thrown from the GUI.
 Although not rigorously tested it all works on XP as expected and
 without crashing.
Simply put I'd love to have a GL-oriented customizable GUI. Seem like your stuff fits the bill nicely. There were several projects that come and go, hope yours will be more permanent (with the help of community).
 I would like to make the software openSource (BSD or community) and put
 it on GIT and was wondering if any body could help me publish the thing.
 I am really dense when it comes to figuring out configuration issues. My
 way would be to dump the MonoDevelop (Xamarin) .sln onto GIT and if
 people want to use it they can download it and treat the project like a
 template…
This is where public place + git forks/pulls could help a lot. Say add a contrib folder to hold various project templates people come up with for their favorite builds systems.
 basically clear out the initial App class and build the
 functionality they want; they do not need to go into the Guigle folder
 to access the functionality. But there is probably a way better way of
 doing things, like making the Guigle folder something you could place in
 the DMD2\scr directory and linking to it. When I try this I get all
 sorts of issues like dlls no longer found, file names missing, etc,
 basically configuration issues that I do not understand. Why oh why
 didn’t I take the blue pill?
:) -- Dmitry Olshansky
Mar 25 2013
prev sibling next sibling parent reply "Jonas Drewsen" <jdrewsen nospam.com> writes:
So it runs on openGL, but I guess it uses some base libraries for 
things like window and event handling and text rendering. Can you 
tell a bit more about what the dependencies are?

You might want to consider using the boost license like the 
phobos standard library does. Up to you of course.

-Jonas
Mar 26 2013
parent Jacob Carlborg <doob me.com> writes:
On 2013-03-26 22:55, Jonas Drewsen wrote:
 So it runs on openGL, but I guess it uses some base libraries for things
 like window and event handling and text rendering. Can you tell a bit
 more about what the dependencies are?

 You might want to consider using the boost license like the phobos
 standard library does. Up to you of course.
It uses Derelict so hopefully it uses SDL or some other cross-platform library. -- /Jacob Carlborg
Mar 27 2013
prev sibling parent reply Alexandr Druzhinin <drug2004 bk.ru> writes:
25.03.2013 8:47, Stephen Jones пишет:
Stephen, where can we take a look at your GUI?
Mar 28 2013
parent reply "Stephen Jones" <siwenjo gmail.com> writes:
On Thursday, 28 March 2013 at 07:22:20 UTC, Alexandr Druzhinin 
wrote:
 25.03.2013 8:47, Stephen Jones пишет:
 Stephen, where can we take a look at your GUI?
The events are off SDL2. The dependencies are SDL2, SDLImage, SDL_TTF, and openGL all gathered under Derelict3. I have been re-organizing things so Guigle is a folder/package with all its required classes. As it stands Guigle can be added to a project by including the Guigle folder and importing two classes. I suspect it should be a library but haven't figured out how to compile a library using MonoDevelop (Xamarin). I will try loading it to GIT on the 5th March.
Mar 30 2013
parent reply "Stephen Jones" <siwenjo gmail.com> writes:
On Saturday, 30 March 2013 at 17:26:48 UTC, Stephen Jones wrote:
 On Thursday, 28 March 2013 at 07:22:20 UTC, Alexandr Druzhinin 
 wrote:
 25.03.2013 8:47, Stephen Jones пишет:
 Stephen, where can we take a look at your GUI?
The events are off SDL2. The dependencies are SDL2, SDLImage, SDL_TTF, and openGL all gathered under Derelict3. I have been re-organizing things so Guigle is a folder/package with all its required classes. As it stands Guigle can be added to a project by including the Guigle folder and importing two classes. I suspect it should be a library but haven't figured out how to compile a library using MonoDevelop (Xamarin). I will try loading it to GIT on the 5th March.
Sorry, 5th April
Mar 30 2013
parent Alexandr Druzhinin <drug2004 bk.ru> writes:
31.03.2013 0:56, Stephen Jones пишет:
 On Saturday, 30 March 2013 at 17:26:48 UTC, Stephen Jones wrote:
 On Thursday, 28 March 2013 at 07:22:20 UTC, Alexandr Druzhinin wrote:
 25.03.2013 8:47, Stephen Jones пишет:
 Stephen, where can we take a look at your GUI?
The events are off SDL2. The dependencies are SDL2, SDLImage, SDL_TTF, and openGL all gathered under Derelict3. I have been re-organizing things so Guigle is a folder/package with all its required classes. As it stands Guigle can be added to a project by including the Guigle folder and importing two classes. I suspect it should be a library but haven't figured out how to compile a library using MonoDevelop (Xamarin). I will try loading it to GIT on the 5th March.
Sorry, 5th April
Ok, will be waiting
Mar 31 2013