Develop A calculator GUI interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shadyabhi
    New Member
    • Dec 2008
    • 18

    Develop A calculator GUI interface

    Experts, can you please guide me in whats should i learn to make a calculator with GUI..

    I currently know basic of C/C++, i mean the level to what is taught in Institutes in 1st semester while doing engineering. What libraries to learn or what else?
    I want the application to work in LINUX under Gnome desktop environment. I use GCC as compiler.

    Pls tell me in order(what should be learned first and then......)
  • mac11
    Contributor
    • Apr 2007
    • 256

    #2
    Are you asking for help with the calculator logic or building the GUI? (both?)

    You'll probably want to look at gtk for the GUI part, I've used it before and it's pretty nice, though it may take a while to get your head around it if you haven't built any GUI before. There is a C style library as well as C++ wrappers - documentation is pretty good though not excellent.

    GTK is a free and open-source cross-platform widget toolkit for creating graphical user interfaces.

    Comment

    • dzenanz
      New Member
      • Feb 2008
      • 45

      #3
      Read http://www.xminc.com/linux/wxpython.html Not bad!

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        Write the calculator first as a called function. When it works, remove the console code and replace it with your GUI code.

        This is called a front-end/back-end design. By doing it this way you isolate the application from its presentation. This leaves you free to supply as many presentations as needed without ever rewriting the application.

        Comment

        • shadyabhi
          New Member
          • Dec 2008
          • 18

          #5
          I have no problem with the logic... I want to learn, how to develop GUI applications thats the reason i took a very easy program of calculator..

          My aim is to learn how to develop GUI applications and NOT the logic...

          I also heard something called QT.. What is it? Is it useful in making GUI apps?

          Comment

          • newb16
            Contributor
            • Jul 2008
            • 687

            #6
            I also heard something called QT.. What is it?
            Wiki is your friend.There is a qt designer, that allows to throw buttons into the form and manage visual layout and the generate layout-forming code, while actual login is in drived class so that layout can be changed and regenerated later, and quite good docs. It's under gpl/commercial license and commercial one costs a lot, but as you are learning it doesn't matter.

            Comment

            Working...