Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,212 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,259 people online right now. Registration is fast and FREE... Join Now!




gui on linux

 
Reply to this topicStart new topic

gui on linux

meenu sinha
6 Jul, 2008 - 10:26 PM
Post #1

New D.I.C Head
*

Joined: 6 Jul, 2008
Posts: 2

Hi,

I need to develop a gui application on linux using c++. The application needs to have extensive gui work, such as, a rectangle, inside which some text is written, the program(in c++) will take the text out of the rectangle, process it and produce some output.

Also, the rectangle has to be interactive, that is, it should be able to detect events such as mouse click on it, and execute trigger associated with this event.

Please tell me which tool kit should I use for it. Please suggest me something based on c++ on linux only.


User is offlineProfile CardPM
+Quote Post

kapax
RE: Gui On Linux
6 Jul, 2008 - 10:47 PM
Post #2

New D.I.C Head
*

Joined: 2 Jul, 2008
Posts: 39



Thanked: 1 times
My Contributions
The very first graphical application I have done was written using QuickCG library, which is based on SDL. It is very simple, yet quite powerful.

Try it, you might like it: http://student.kuleuven.be/~m0216922/CG/

And good luck smile.gif
User is offlineProfile CardPM
+Quote Post

meenu sinha
RE: Gui On Linux
6 Jul, 2008 - 11:02 PM
Post #3

New D.I.C Head
*

Joined: 6 Jul, 2008
Posts: 2

Thanks!! Before I go ahead with studying about QuickCG, could you please tell me if its possible to develop following using it or not:

user should be able to draw a rectangle(or a pentagon) anywhere on the screen and move it anywhere on the screen to place it properly. Then user should be able to write some text on the rectangle which the program will take and process to produce some output. Actually, the application is about drawing a list of figures by users(from pre-defined list which includes circle, rectangle, parallelogram, etc), which the user should be able to drag and drop from a provided list, resize it and enter some text into it.

Thanks in advance!


QUOTE(kapax @ 6 Jul, 2008 - 11:47 PM) *

The very first graphical application I have done was written using QuickCG library, which is based on SDL. It is very simple, yet quite powerful.

Try it, you might like it: http://student.kuleuven.be/~m0216922/CG/

And good luck smile.gif


User is offlineProfile CardPM
+Quote Post

joske
RE: Gui On Linux
7 Jul, 2008 - 12:44 AM
Post #4

D.I.C Head
**

Joined: 4 Sep, 2007
Posts: 158



Thanked: 12 times
My Contributions
You can use wxWidgets, for example use the programmaing IDE Code::Blocks or wxDev-C++.

You can also use Mono
User is offlineProfile CardPM
+Quote Post

captainhampton
RE: Gui On Linux
7 Jul, 2008 - 11:20 AM
Post #5

Jawsome++;
Group Icon

Joined: 17 Oct, 2007
Posts: 518



Thanked: 2 times
Dream Kudos: 825
My Contributions
wxWidgets has a lot of documentation for the basic properties you will use it for. wxDev is great and a bit more friendly due to it being very much the same to MFC, with a visual form for tweaking. Can be a bit buggy however, great way to get into it though.
User is offlineProfile CardPM
+Quote Post

Hyper_Eye
RE: Gui On Linux
8 Jul, 2008 - 02:31 PM
Post #6

D.I.C Head
**

Joined: 13 Sep, 2007
Posts: 72



Thanked: 5 times
My Contributions
I have worked with many Linux GUI library's. The easiest one to work with is Gtk+ in my opinion. It is easy to start with and you can quickly get an app going with it especially if you combine it with the glade gui builder. The one that produces the best looking apps is Qt (again imo.) You can combine it with QtDesigner or KDevelop to have a full IDE environment to work with it in as well as drag and drop gui building.

So having gotten those out of the way... wxWidgets is the best out there at the moment. I think it is the best no matter what platform you are developing on because it's portability is simply incredible. wxWidgets isn't just a GUI library but a portability framework as quoted from the wxWidget's founders book Cross-Platform GUI Programming With wxWidgets

QUOTE
wxWidgets is a programmer's toolkit for writing desktop or mobile applications with graphical user interfaces (GUIs). It is a framework, in the sense that it does a lot of the housekeeping work and provides default application behavior.


wxWidgets contains it's own functionality for a lot of the things that are troublesome in porting such as launching external applications, file io, sockets, threads, and many other necessary tasks. It is completely class based and the API structure makes sense. It is a great toolkit to work with. When you compile your app in Linux it will look like it belongs in Linux. When you compile it in OS X, Windows, or any one of the many platforms supported it will look native (and most of the time the widgets are the native ones.) If you use Code::Blocks and wxSmith or wxFormBuilder you will have a completely cross-platform environment to work in so that you are looking at the same application and working with the same project files whether you are working in Windows or Linux. I have been writing Linux apps and porting them to other platforms for many years and I have only been looking at wxWidgets and Code::Blocks as a multi-platform solution for the last year. I am very excited about it.

So now that I have gotten my spill out of the way... I would recommend wWidgets.
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Gui On Linux
9 Jul, 2008 - 05:58 PM
Post #7

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,463



Thanked: 10 times
Dream Kudos: 325
My Contributions
I don't like doing GUI work but QT's user interface building program was pretty slick. icon_up.gif They have a video on it if you browse over to their website.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 01:20PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month