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. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-24-2004, 01:46 AM
|
#1
|
Member
Registered: Sep 2004
Location: Hyderabad.
Posts: 83
Rep:
|
creating gui/interace using c
Hai,
i am new to linux. I want to create a gui or an interface in c. From that interface i want to take the values from the user and i want to store that values in a file for later processing. I want to know what are various libraries availlable in linux to develop such interfaces.
Thanx in advance.
rajesh.
|
|
|
09-24-2004, 03:36 AM
|
#2
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
The most primitive library for GUI development (known as a “widget set” or “widget toolkit”) is Xlib. It's fast but it's quite hard to use (or find good non-expensive documentation on).
The most common widget set in C in the gtk library, originallally used as the toolkit for the GNU Image Manipulator Program, now also used for the GNOME project.
If you're prepared to try C++ then you might want to look at Qt or the higher-level libkde (which is built on Qt) that is used by KDE. Java is also a nice language for built-in GUI support.
There's also ncurses, which is a terminal-based (text) widget library for creating user interfaces that work very much like windowed interfaces.
That's all that springs to mind; I know I've left quite a few out.
Hope that helps,
— Robert J. Lee
|
|
|
09-24-2004, 04:40 AM
|
#3
|
Member
Registered: Sep 2004
Location: Hyderabad.
Posts: 83
Original Poster
Rep:
|
Robert thanx for u reply. It provided me some information. And one more help i needed from u. I want to know which one is better option i.e. either ncurses or xlibc.
rajesh.
|
|
|
09-24-2004, 07:14 AM
|
#4
|
Member
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276
Rep:
|
Ncurses isn't really graphical. Instead it provides a framework which lets you work
with text based windows in a shell. In other words: Will work with any decent
linux box *without* X server installed.
Xlib is graphical, and if you chose it you have the advantage that you don't need
GTK or QT or any other library installed, *but* doesn't provide you with windows,
widgets and the like (it's more like DirectDraw, you can open a screen, draw lines,
points or arcs on it and move/copy rectangular areas, but that's it). It will take
you months or even years, if you go to develop a gui with Xlib only.
IMHO if you just want to provide a user with a means to graphically enter a set of
values, GTK is the fastest way to go.
If you can do without graphics and stick to text only, take ncurses (not very hard
to understand, either)
|
|
|
All times are GMT -5. The time now is 01:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|