ProgrammingThis 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.
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.
Does this mean that i also have to learn GTK+ programming...??
Are there any Good Resources to this??
Actually i am totally new to Programming in Linux, so if u can give some links where i can find Basic tutorials or E-Books....
If you want to use GTK+, then yeah, you'll have to learn GTK+. There's a tutorial on their website and it's pretty good IMO. Learn GTK+ 2, as 1.2 is quite old now.
You'll need the libraries installed obviously: GTK+ 2, GLib (not the same as the GNU C Library), possibly GDK, ATK, Pango and others. If you have GNOME installed, you'll have these installed already.
As for other tools, well, C/C++ compiler and other stuff you usually use for development. You can use Glade to design interfaces, but I've never used it and prefer to write all the code myself. Be aware that GTK+ is written in C, but you can use it with C++ as is. If you want C++ bindings for it, look at gtkmm as someone mentioned earlier.
i want to C++ Programming, so i shud use gtkmm??
If i design the interface wid GLADE, how will i do the programming behind the interface??
Are there Any Good Tutorials available for GLADE...??
You don't have to, you can use the calls and structs from the normal gtk library in C++, but gtkmm gives you an object oriented interface to gtk.
Quote:
If i design the interface wid GLADE, how will i do the programming behind the interface??
You can define the callbacks to the events (like button_clicked, widget_destroy,...) by using glade. Just look on the net for a tutorial to glade, it's really easy to use. Creating UI's in glade is much faster and more flexible then coding them.
Creating UI's in glade is much faster and more flexible then coding them.
...it may be faster, and it's 'getting standard' for your code the easier way, but if you want to get fine looking/behaving applets its the more advantage thing to code that things, glade brings up, by hand.
On beginning it's very nice to see how glade does its work, and how it organizes the code.
Take the Tutorial from the Homepage, and make the Hello World.
The documentation ist the only API in now of that kind. It was never seen that kind of easy simplicity, ( in firefox you could hold open index, and watch for the functions by 'search as you type' [ok, its no ide, but works so far] ).
i want to C++ Programming, so i shud use gtkmm??
If i design the interface wid GLADE, how will i do the programming behind the interface??
Are there Any Good Tutorials available for GLADE...??
First of all, C++ as such is GOOEY agnostic (just like C). If you
want to do C++ & GOOEY you'll need to learn SOME class-
library that helps you with this, because at the least you'll need
C++ wrappers around the X-primitives.
Qt, gtkmm, fox, wx are just a few of the more common ones.
They're all distinct, with a distinct look & feel, and varied sets
of functionality. My personal preference would be Qt :}
I only use Kate (KDE Advanced Text Editor) which does all my job, as I don't need a more complicated application. I just edit my sources in Kate and use the built-in konsole to compile them, either with gcc or g++.
I only use Kate (KDE Advanced Text Editor) which does all my job...
Well, that's ok for a small app with few dependencies. Once you need automake, autoconf,... and IDE is much easier. That's because the automake files are not that easy to write. Of course you have other build systems that do offer you an easier way, like scons. Still it's nice to be able to browse your class hierarchy when a project starts to get a substantial size.
Well, that's ok for a small app with few dependencies. Once you need automake, autoconf,... and IDE is much easier. That's because the automake files are not that easy to write. Of course you have other build systems that do offer you an easier way, like scons. Still it's nice to be able to browse your class hierarchy when a project starts to get a substantial size.
Well yes, you are right, but I use it only for educational purposes ATM, for learning not developing. Once I'll learn C well, I guess I'll need to move to a complete IDE.
sure if you just want to learn C, kate is great . It's an easy language to learn, but a hard one to master. If you want to program stable C programs try to apply OO concepts, even though C is far from object oriented, you can still apply some of them with great results (like keeping stuff private, modularity,...).
Of course, this is completely OT .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.