which GUI tool to use?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • phony

    which GUI tool to use?

    Hi all,

    I am programming under Linux using c++. I need to visualize some
    curves and 2-D graphs in my program. Is there any package to do this?
    And I also need to add a user interfaces to my program. Could you also
    suggest a tool for GUI? GTK+ and QT are popular. Which one is better
    to use for normal program? Thanks a lot!


    Best wishes!


    Phony
  • Jonathan Turkanis

    #2
    Re: which GUI tool to use?

    "phony" <phony@126.co m> wrote in message
    news:854cd98a.0 401271210.1d0d5 c9@posting.goog le.com...[color=blue]
    > Hi all,[/color]
    [color=blue]
    >
    > I am programming under Linux using c++. I need to visualize some
    > curves and 2-D graphs in my program. Is there any package to do[/color]
    this?[color=blue]
    > And I also need to add a user interfaces to my program. Could you[/color]
    also[color=blue]
    > suggest a tool for GUI? GTK+ and QT are popular. Which one is better
    > to use for normal program? Thanks a lot!
    >[/color]

    Hi,

    People ask this type of question every day, and the response is
    always the same: this is a newsgroup devoted to standard C++, which
    does not include GUI facilities.

    Just out of curiosity, how do you end up posting here without
    reading a description of the group?

    Regards,

    Jonathan


    Comment

    • Phlip

      #3
      Re: which GUI tool to use?

      phony wrote:
      [color=blue]
      > I am programming under Linux using c++. I need to visualize some
      > curves and 2-D graphs in my program. Is there any package to do this?[/color]

      Look up gnuplot. You should write a data file and a command file, then call
      popen() or system() so gnuplot can eat them. It can create an X window
      containing the output, and it can produce file outputs such as postscript -
      possibly others. Then you can read the output files and host them in your
      own windows.

      If you need more interaction, look up BLT. But that can couple with Tk.
      [color=blue]
      > And I also need to add a user interfaces to my program. Could you also
      > suggest a tool for GUI? GTK+ and QT are popular. Which one is better
      > to use for normal program? Thanks a lot![/color]

      Tk is the most popular, and its Canvas and Text controls have an excellent
      full-featured architecture. But the best hosts for Tk are Ruby or Perl or
      Python. pTk binds with C, but I don't know how clean it is.

      This leads to the question: Why C++? Because everyone else was using it? If
      you just need some glue between components, and some logic, and some
      visualizations, any lite language would be much more productive.

      Warning: Specific questions about those systems will get the best answers on
      newsgroups devoted to Linux, GNU, or those systems.

      --
      Phlip


      Comment

      • Darius Fatakia

        #4
        Re: which GUI tool to use?

        where would one find a description of the group anyway?


        "Jonathan Turkanis" <technews@kanga roologic.com> wrote in message
        news:bv6gvv$p7l 3v$1@ID-216073.news.uni-berlin.de...[color=blue]
        > "phony" <phony@126.co m> wrote in message
        > news:854cd98a.0 401271210.1d0d5 c9@posting.goog le.com...[color=green]
        > > Hi all,[/color]
        >[color=green]
        > >
        > > I am programming under Linux using c++. I need to visualize some
        > > curves and 2-D graphs in my program. Is there any package to do[/color]
        > this?[color=green]
        > > And I also need to add a user interfaces to my program. Could you[/color]
        > also[color=green]
        > > suggest a tool for GUI? GTK+ and QT are popular. Which one is better
        > > to use for normal program? Thanks a lot!
        > >[/color]
        >
        > Hi,
        >
        > People ask this type of question every day, and the response is
        > always the same: this is a newsgroup devoted to standard C++, which
        > does not include GUI facilities.
        >
        > Just out of curiosity, how do you end up posting here without
        > reading a description of the group?
        >
        > Regards,
        >
        > Jonathan
        >
        >[/color]


        Comment

        • Kevin Goodsell

          #5
          Re: which GUI tool to use?

          Darius Fatakia wrote:[color=blue]
          > where would one find a description of the group anyway?
          >[/color]

          The welcome message, posted 2 or 3 times a week. Or the FAQ, easily
          located via any of the various FAQ archives, or by using Google (first
          hit on "c++ faq").

          And please don't top-post. See section 5 of the FAQ for more information.

          -Kevin
          --
          My email address is valid, but changes periodically.
          To contact me please use the address from a recent posting.

          Comment

          • Hendrik Belitz

            #6
            Re: which GUI tool to use?

            phony wrote:
            [color=blue]
            > Hi all,
            >
            > I am programming under Linux using c++. I need to visualize some
            > curves and 2-D graphs in my program. Is there any package to do this?
            > And I also need to add a user interfaces to my program. Could you also
            > suggest a tool for GUI? GTK+ and QT are popular. Which one is better
            > to use for normal program? Thanks a lot![/color]

            Now that's simple. Just test both options, e.g. with a simple dialog
            application. I personally prefer QT, but GTK+ also has many advantages.

            BTW: Asking such questions will not give you any useful answers most of the
            time, but instead only results in flaming wars between ignorant people.

            --
            To get my real email adress, remove the two onkas
            --
            Dipl.-Inform. Hendrik Belitz
            Central Institute of Electronics
            Research Center Juelich

            Comment

            • Peter Koch Larsen

              #7
              [OT] Re: which GUI tool to use? - welcome message


              "Kevin Goodsell" <usenet1.spamfr ee.fusion@never box.com> skrev i en
              meddelelse news:fXGRb.2967 4$1e.17885@news read2.news.pas. earthlink.net.. .[color=blue]
              > Darius Fatakia wrote:[color=green]
              > > where would one find a description of the group anyway?
              > >[/color]
              >
              > The welcome message, posted 2 or 3 times a week. Or the FAQ, easily[/color]

              I have never seen this welcome message... wonder why.

              [color=blue]
              > located via any of the various FAQ archives, or by using Google (first
              > hit on "c++ faq").
              >
              > And please don't top-post. See section 5 of the FAQ for more information.
              >
              > -Kevin
              > --
              > My email address is valid, but changes periodically.
              > To contact me please use the address from a recent posting.[/color]




              Comment

              • phony

                #8
                Re: which GUI tool to use?

                Thanks a lot!

                Actually, other groups related to Linux is in the second page of group
                list. So I chose this group, which I think is the most related. :-)

                Best regards!

                Phony

                "Phlip" <phlip_cpp@yaho o.com> wrote in message news:<jCzRb.130 29$iq1.9716@new ssvr16.news.pro digy.com>...[color=blue]
                > phony wrote:
                >[color=green]
                > > I am programming u[/color][/color]
                nder Linux using c++. I need to visualize some[color=blue][color=green]
                > > curves and 2-D graphs in my program. Is there any package to do this?[/color]
                >
                > Look up gnuplot. You should write a data file and a command file, then call
                > popen() or system() so gnuplot can eat them. It can create an X window
                > containing the output, and it can produce file outputs such as postscript -
                > possibly others. Then you can read the output files and host them in your
                > own windows.
                >
                > If you need more interaction, look up BLT. But that can couple with Tk.
                >[color=green]
                > > And I also need to add a user interfaces to my program. Could you also
                > > suggest a tool for GUI? GTK+ and QT are popular. Which one is better
                > > to use for normal program? Thanks a lot![/color]
                >
                > Tk is the most popular, and its Canvas and Text controls have an excellent
                > full-featured architecture. But the best hosts for Tk are Ruby or Perl or
                > Python. pTk binds with C, but I don't know how clean it is.
                >
                > This leads to the question: Why C++? Because everyone else was using it? If
                > you just need some glue between components, and some logic, and some
                > visualizations, any lite language would be much more productive.
                >
                > Warning: Specific questions about those systems will get the best answers on
                > newsgroups devoted to Linux, GNU, or those systems.[/color]

                Comment

                • phony

                  #9
                  Re: which GUI tool to use?

                  Thanks a lot!

                  I found gnuplot is really nice. There are some c/c++ interfaces,
                  through which gunplot command could be sent from c/c++ program. Since
                  I want to display the time serials data, how about the speed of
                  displaying graphs very often (say 1 plot per second)?

                  Best regards!

                  phony

                  "Phlip" <phlip_cpp@yaho o.com> wrote in message news:<jCzRb.130 29$iq1.9716@new ssvr16.news.pro digy.com>...[color=blue]
                  > phony wrote:
                  >[color=green]
                  > > I am programming under Linux using c++. I need to visualize some
                  > > curves and 2-D graphs in my program. Is there any package to do this?[/color]
                  >
                  > Look up gnuplot. You should write a data file and a command file, then call
                  > popen() or system() so gnuplot can eat them. It can create an X window
                  > containing the output, and it can produce file outputs such as postscript -
                  > possibly others. Then you can read the output files and host them in your
                  > own windows.
                  >
                  > If you need more interaction, look up BLT. But that can couple with Tk.
                  >[color=green]
                  > > And I also need to add a user interfaces to my program. Could you also
                  > > suggest a tool for GUI? GTK+ and QT are popular. Which one is better
                  > > to use for normal program? Thanks a lot![/color]
                  >
                  > Tk is the most popular, and its Canvas and Text controls have an excellent
                  > full-featured architecture. But the best hosts for Tk are Ruby or Perl or
                  > Python. pTk binds with C, but I don't know how clean it is.
                  >
                  > This leads to the question: Why C++? Because everyone else was using it? If
                  > you just need some glue between components, and some logic, and some
                  > visualizations, any lite language would be much more productive.
                  >
                  > Warning: Specific questions about those systems will get the best answers on
                  > newsgroups devoted to Linux, GNU, or those systems.[/color]

                  Comment

                  • Phlip

                    #10
                    Re: which GUI tool to use?

                    phony wrote:
                    [color=blue]
                    > Actually, other groups related to Linux is in the second page of group
                    > list. So I chose this group, which I think is the most related. :-)[/color]

                    It would be nice if other posters would say this:

                    - your question would get a better answer on newsgroup X

                    - the question "what cross-platform library does Y" is on-topic here,
                    because we don't trust any other newsgroup to pick a good one.
                    But specific questions about Y belong on its newsgroup.

                    But they just say "get lost - this question is off-topic, because our topic
                    is Standard C++". That's too narrow to admit nearly any question, but its
                    benefit is they can remember it.

                    However, I don't know how to upgrade GnuPlot in real-time. I know that BLT
                    has interactive hooks for Tk. Why don't you use Python instead of C++? Did
                    you actually assess your need? Or did you use C++ just because it has such a
                    polite newsgroup?

                    --
                    Phlip





                    Comment

                    Working...