Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-10-2008, 08:46 PM   #1
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
separating GUI from code

What are some tools/methods I can use to separate computations from GUI. The constraints are:

- GUI should be able to invoke compiled code (e.g. compiled C/C++).
- Portability is not a concern

I have tried using html with javascript & ajax, with Apache server. I don't want the distributed work to require a server to be setup. What other ways are there to separate GUI from code?

Thank you
Old 08-10-2008, 09:03 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Perhaps I don't understand what you are asking, but it seems like all you need to do is write a console application to do the actual work; and interface with it via a GUI front-end written in the code or toolset of your choice.
Old 08-10-2008, 09:16 PM   #3
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Glade3 is intended for exactly what you appear to want. It writes the entire GUI as an XML file, and libglade provides tools to build the GUI on the fly from that XML file.

Fully abstracts the GUI from the application, and makes it possible to change code flow at runtime by altering the XML file before reading it.

Furthermore, Glade uses the GTK toolkit, and can be deployed on Windows as well as *nix. I actually have started a complete rewrite of my commercial product and I am using C, C++, and Glade. I will be connecting with any of several SQL systems (including mysql, postgresql, or mssql) on the backend, and my new version will be deployed for Windows (of course), Linux, Mac, Solaris, and BSD, all off of one code base. Presently it is Windows-only, though it started life long ago on the Amiga.

Last edited by jiml8; 08-10-2008 at 09:20 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hook my code to GUI which I built with GTK? Dinux Linux - Software 1 05-05-2009 02:16 PM
Glade GUI :: Cancel Button Code nomb Programming 1 03-15-2007 08:06 AM
how to code borderless window gui war2004 Programming 0 01-29-2007 10:07 AM
Connection Between GUI and underlying code Centinul Programming 9 05-04-2006 04:23 PM
Hook my code to GUI which I built with GTK? Dinux Programming 1 04-26-2004 04:41 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration