Unix Programming - GUI

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2006 > GUI





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author GUI
pratsadhu@gmail.com

2006-03-08, 5:57 pm

hi all,
Am workin on sockets in Linux, how do i add the GUI interface
to my program? how do i connect it my original C-program?

Thanks,
prat

jakob

2006-03-08, 8:50 pm

On 2006-03-08, pratsadhu@gmail.com <pratsadhu@gmail.com> wrote:
> hi all,
> Am workin on sockets in Linux, how do i add the GUI interface
> to my program? how do i connect it my original C-program?
>
> Thanks,
> prat


You can either design the GUI directly in your original application, or
have a secondary frontend application that sends input to, and parses
the output of, the core program. This is how nmap (the core) and nmapfe
(the GUI) work.

Could you be more specific in what you're asking? Do you have any
experience in Xlib or GTK+?

jakob
NUPUL

2006-03-09, 2:49 am

> Am workin on sockets in Linux, how do i add the GUI interface
>to my program? how do i connect it my original C-program?


well a query similar to where i got stuck at one time and needed a gui
too....

well to interface a GUI to a c program....you need to use gui specific
libs...GTK+, Xlib,
Qt etc....now since you wish to do it in C, i suggest you go for GTK+
(coz the world goes for it in C) Although C-bindings are also available
in Qt 4.

using Xlib is quite low level and you may not like it's look and
feel....

you may even go for the ancient motif/lesstif....but still the look and
feel is not that good....Qt offers you an excellent and v.easy way to
integrate your prog into a GUI...

although there is a learning curve involved with GTK+, Qt, Xlib, it's
worth the effort...

you can try the following books...

Xlib programming manual: O'Reilly
Programming with Qt: O'Reilly

NUPUL

2006-03-09, 2:49 am

forgot to tell you though....if you are commercialising your app....you
can't use Qt - licensing issues....but if it is intended to be
completely open source....you can use one of the best toolkits around
for No Fee under the GPL.

nupul

David Schwartz

2006-03-09, 2:49 am


"NUPUL" <nupul.kukreja@gmail.com> wrote in message
news:1141878235.791067.160350@p10g2000cwp.googlegroups.com...

> forgot to tell you though....if you are commercialising your app....you
> can't use Qt - licensing issues....but if it is intended to be
> completely open source....you can use one of the best toolkits around
> for No Fee under the GPL.


You certainly can use Qt. The GPL doesn't put any restrictions or impose
any requirements at all on normal use. Can you post a poem on a billboard
and then sue everyone who reads it?

If you want to give your software away, and not impose any restrictions
as a condition of receiving the software, you lose the ability to charge for
its use. This is codified in the law as "first sale", section 109 of the
Copyright Act. Basically, if you lawfully acquire a work (without having to
sign a contract, click on a click-through agreement, or agree to an EULA),
you have the right to the normal expected use of that work.

DS


Jordan Abel

2006-03-09, 2:49 am

On 2006-03-09, David Schwartz <davids@webmaster.com> wrote:
>
> "NUPUL" <nupul.kukreja@gmail.com> wrote in message
> news:1141878235.791067.160350@p10g2000cwp.googlegroups.com...
>
>
> You certainly can use Qt. The GPL doesn't put any restrictions or impose
> any requirements at all on normal use. Can you post a poem on a billboard
> and then sue everyone who reads it?


I'm sure if they want they can find the thread on c.o.l.d.apps - let's
not repeat it here,
David Schwartz

2006-03-09, 2:49 am

NNTP-Posting-Host: joelkatz8.goldrush.com
X-Trace: nntp.webmaster.com 1141890580 11487 206.171.168.138 (9 Mar 2006 07:49:40 GMT)
X-Complaints-To: usenet@nntp.webmaster.com
NNTP-Posting-Date: Thu, 9 Mar 2006 07:49:40 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
Xref: number1.nntp.dca.giganews.com comp.unix.programmer:166787


"Jordan Abel" <random832@gmail.com> wrote in message
news:slrne0vip0.2shr.random832@random.yi.org...

> I'm sure if they want they can find the thread on c.o.l.d.apps - let's
> not repeat it here,


I'm not trying to repeat the thread, just to ensure that anyone who sees
misinformation also sees the correct information.

DS


Bjorn Reese

2006-03-09, 5:55 pm

NUPUL wrote:
> forgot to tell you though....if you are commercialising your app....you
> can't use Qt - licensing issues....but if it is intended to be
> completely open source....you can use one of the best toolkits around
> for No Fee under the GPL.


Qt is available in an Open Source edition and in a commercial edition.
If you are developing commercial applications (or rather, closed source
applications) then you can buy the commercial edition of Qt.

--
mail1dotstofanetdotdk
pratsadhu@gmail.com

2006-03-15, 2:49 am

yea..am actually using this GTK., how do i callback the functions now?

Roger Leigh

2006-03-15, 7:49 am

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"pratsadhu@gmail.com" <pratsadhu@gmail.com> writes:

> yea..am actually using this GTK., how do i callback the functions
> now?


You really should read the GTK+ tutorial at this point.

Your question isn't clear, but you are probably looking for the
g_signal_connect family of functions.


- --
Roger Leigh
Printing on GNU/Linux? http://gutenprint.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFEF+INVcFcaSW/uEgRAuaPAJ4455Nw2bsuX/CA6+r3LJNbhavgbQCfY+jf
Sm8HkAWaM96n00KVtxGOai0=
=t0dI
-----END PGP SIGNATURE-----
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com