Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2006, 3:30 AM   #1
DeLoRtEd1
Newbie
 
Join Date: Jan 2006
Posts: 8
Rep Power: 0 DeLoRtEd1 is on a distinguished road
Help in making a GUI for a program

Hi, it's obvious I'm brand new here, but I thought I could find some code gurus to help solve my kind of non-existant problem.
Basically, for my Sci-Tech fair at my school, my friends and I decided to write a program that basically did your physics homework for you.
You're given a menu of cout'ed choices that include sections of general grade 11 physics, IE one section would be on waves, another on velocity vs time vs distance.. anyways. Screenshot following
So basically, instead of a black and white textual adventure through calculations, I thought i'd try and create some kind of GUI, similar to the calculator that comes loaded with windows. Could anyone help me on this? Thanks - del
DeLoRtEd1 is offline   Reply With Quote
Old Jan 14th, 2006, 3:33 AM   #2
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
You coudl look into the Qt toolkit, at trolltech.com. Qt 4.1 opensource is free for windows, but any programs you make can't be sold. It comes witha visual designer, but you can design in code as well. Theres also loads of documentation on the net about it, its worth a try ;-)
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Jan 14th, 2006, 4:31 AM   #3
mikaoj
Programmer
 
mikaoj's Avatar
 
Join Date: Aug 2005
Location: Norway
Posts: 56
Rep Power: 0 mikaoj is an unknown quantity at this point
FLTK is a very simple and easy GUI tool...
__________________
Heh.
mikaoj is offline   Reply With Quote
Old Jan 14th, 2006, 6:26 AM   #4
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Take a dialog box as main window, then you can use the built-in GUI editor from Visual C++.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Jan 14th, 2006, 9:23 AM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Man, I wish my physics homework was this easy. :p

If you're using Visual C++ 2005, go with the form designer built in. It's actually very good. Otherwise, as other people have said, Qt is your best bet.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 14th, 2006, 10:02 AM   #6
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4 Jessehk is on a distinguished road
If you're on Windows, I would try using WinForms. If you are on Linux, then I would say Qt is your best bet.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Jan 14th, 2006, 2:30 PM   #7
Dragon_Master
Programmer
 
Dragon_Master's Avatar
 
Join Date: Jan 2006
Location: Some where
Posts: 74
Rep Power: 3 Dragon_Master is on a distinguished road
Try the forger's tutorial. It helped me learn API really well.
Dragon_Master is offline   Reply With Quote
Old Jan 14th, 2006, 4:13 PM   #8
DeLoRtEd1
Newbie
 
Join Date: Jan 2006
Posts: 8
Rep Power: 0 DeLoRtEd1 is on a distinguished road
I haven't taken any looks at these.. but are they easy to figure out for someone who is pretty much only done iostreaming? I don't want it in iostream, because then it seems to easy for the other people who are in my physics class / comp science.
DeLoRtEd1 is offline   Reply With Quote
Old Jan 14th, 2006, 4:20 PM   #9
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Originally Posted by coldDeath
but any programs you make can't be sold.
No, you can sell applications made with the GPL, but you have to provide source code along with them and the right to re-distribute or re-use according to the terms of the GPL. I can imagine it working quite nicely if you're selling applications to other students - this way they can put their money together and purchase one copy and then make a copy for each other.

Quote:
I haven't taken any looks at these.. but are they easy to figure out for someone who is pretty much only done iostreaming?
C++ is a lot more than just displaying things to the terminal or reading things from the terminal and arithmetic. If you can grasp the basics of object orientated programming (inheritance, etc) and pointers in the language, then you can use Qt without much of a problem. Heck, if you stick to the designer and use it to connect up your signals and slots you only have to write a couple of lines of code and you're set.
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:25 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC