Join 136,248 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,209 people online right now. Registration is fast and FREE... Join Now!
Since every computer that I run a GUI has Linux, I find myself using the default Calculator when figuring sales tax, or any other time I need a quit calculation. The problem is, the default calculator that comes with Xorg looks like it came right out of the early 80's. With that in mind, the aim of this project is to make a much more graphically pleasing calculator as an alternative for the Linux environment.
No screen shots yet. I'm still working on the engine. I've got the four main math functions down, add, subtract, multiply, & divide. Now I need to get decimals working. Once it's usable, then I'll work on the GUI.
While it isn't set in stone as the graphical library, I have started working with OpenGL, & have released a graphical version (with a lone screenshot). While the functionality is there, I have no image of a calculator, so you'll have to pretend for now (lame I know!)
You can use F3 for addition, F4 for subtraction, F5 for multiplication, & F6 for Division. Again, once there is an image, this will all be easier. Lastly, you use enter to get the result.
If anyone thinks they can offer some graphics, please do so. I would like to eventually make this project skinable, so it'll be community friendly as well as customizable.
I think this project would be fun and would like to help, although my opengl experience is nonexistent. I am also curious as to why you are using ints instead of doubles or using asm for the calculations instead of simple c operators.
This post has been edited by GWatt: 7 Sep, 2008 - 10:41 PM
I never really cared much for projects made with GTK. Since I don't run Gnome I'm always on the wild goose chase for the latest GTK libraries & toolkit which almost always requires older dependencies or for some other reason won't run on my system. I spend hours downloading & installing packages which I either end up removing or they don't boot well with my existing libraries.
So I have the graphical mapping done (so the program is functional), & it can be altered to.. well I guess any image that someone would like to present, & then I can load.
You wouldn't happen to like QT any better than GTK, would you? and my offer for a parser still stands. It's mostly complete, too. Just some parenthesis stuff to work out.
P.S. The reason I'm offering a parser is that it's much easier to see what's going on if you have a multi-step equation. You can also get rid of the mess of buttons that many software calculators have.
This post has been edited by GWatt: 29 Sep, 2008 - 11:05 AM