PDA

View Full Version : fortran guis




anoopmj
Sep 28, 2010, 09:29 PM
Hi,

I have been programming with visual basic on windows for a while now and was hoping to move onto fortran (mainly because of lots of old code) on a mac. I have gfortran and g95 already, and it seems to work well.

I was wondering if anyone knew a good and simple (imp!) way to create GUIs for fortran code on a mac, like visual basic on windows? I have heard about Xcode, but that does not seem as intuitive as VB.

Cheers,

A



lee1210
Sep 28, 2010, 10:31 PM
There is not going to be a simple GUI builder that works with fortran. There is REALBasic, which some people like, but I don't know what support it has for integration with other languages. I do know that there is support for C and fortran integration, which should allow bridging to Objective-C. At that point you can use Interface Builder, but this seems pretty daunting to me.

-Lee

anoopmj
Sep 28, 2010, 10:45 PM
hi,

Thanks for the quick reply! I have heard about real basic, but was hoping to move away from basic completely... although would like the visual studio interface.
Have you tried eclipse or netbeans... I have been reading on these two and they seem interesting.

A

lee1210
Sep 28, 2010, 11:17 PM
The IDEs you mention are good... eclipse for a number of languages (maybe fortran is supported? i don't know), netbeans is Java-only. These don't have tools for visually building GUIs (that I know of), though. I could be mistaken, but I've never used them for this purpose.

-Lee

MorphingDragon
Sep 29, 2010, 04:58 AM
The IDEs you mention are good... eclipse for a number of languages (maybe fortran is supported? i don't know), netbeans is Java-only. These don't have tools for visually building GUIs (that I know of), though. I could be mistaken, but I've never used them for this purpose.

-Lee

Netbeans is now C++/C too. Apparently, you can use this link to use QT.


C, C++, Fortran

anoopmj
Sep 30, 2010, 07:31 PM
I think I'm going to give eclipse a try. The dedicated photran section is the main reason.

If you think of something else, let me know!

Cromulent
Sep 30, 2010, 08:16 PM
Netbeans is now C++/C too. Apparently, you can use this link to use QT.

And Python and Ruby. Plus the JVM based languages like Groovy and Scala.

vmagnin
Feb 19, 2011, 04:03 PM
I was wondering if anyone knew a good and simple (imp!) way to create GUIs for fortran code on a mac, like visual basic on windows?


Hi, it has not yet been tested on Mac, but it should work. Let me know.

The objective of the gtk-fortran project is to offer Fortran programmers a crossplatform library to build Graphical User Interfaces (GUI). Gtk-fortran is a GTK+ / Fortran binding entirely written in Fortran. It is based on the ISO_C_BINDING module for interoperability between C and Fortran, which is a part of the Fortran 2003 standard. GTK+ is a free software crossplatform graphical library available for Linux, Unix, Windows and MacOs X.

The home page of the project is https://github.com/jerryd/gtk-fortran/wiki

In its devel branch, gtk-fortran offers currently an interface to more than 7900 GTK+ functions (GTK, GDK, GdkPixbuf, Cairo, Pango). It is not complete but covers probably more than 85% of GTK, GDK, GdkPixbuf, Cairo and Pango. These interfaces were automatically created by a python script which parses the C header files of the GTK+ libraries.