Drawing eletrocardiogram graphs



Hi there.
I was intending to develop some program that could analyse
eletrocardiograms graphs. Data could be saved into xml and be opened
and represented (drawn) for further analysis.

What I would like to know is if there is anything easier than Cairo to
be used to draw using gtkmm (C++ or just C).
Any info on that would be appreciated.

Thanks in advance.
Arthur Maciel

2006/8/8, gtkmm-list-request gnome org <gtkmm-list-request gnome org>:
Send gtkmm-list mailing list submissions to
        gtkmm-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.gnome.org/mailman/listinfo/gtkmm-list
or, via email, send a message with subject or body 'help' to
        gtkmm-list-request gnome org

You can reach the person managing the list at
        gtkmm-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtkmm-list digest..."


Today's Topics:

   1. Re: Converting from Stock to Gtk::Pixbuf (Michael J M Thomson)
   2. Re: ANNOUNCE: gtkmm 2.9.10 (Murray Cumming)
   3. Re: gtkmm-list Digest, Vol 28, Issue 16 (Murray Cumming)
   4. How to delete a multiple selection from a ListStore?
      (Joost Ellerbroek)
   5. Re: How to delete a multiple selection from a ListStore?
      (Joost Ellerbroek)
   6. Re: How to delete a multiple selection from a ListStore?
      (Robert Caryl)
   7. Which button is used on a drag? (Mark Tilford)
   8. Re: How to delete a multiple selection from a ListStore?
      (Murray Cumming)
   9. Re: gtk (Michael Ekstrand)



---------- Mensagem encaminhada ----------
From: Michael J M Thomson <mjmt internode on net>
To:
Date: Tue, 08 Aug 2006 15:25:18 +1000
Subject: Re: Converting from Stock to Gtk::Pixbuf
Philipp Kerling wrote:
> hey guys,
>
> how do I convert from a stock image to a Gtk::Pixbuf?
>
> thanks, phiker
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
See Gtk::Widget::render_icon(const Gtk::StockID&, ...)




---------- Mensagem encaminhada ----------
From: "Murray Cumming" <murrayc murrayc com>
To: "Jonathon Jongsma" <jonathon jongsma gmail com>
Date: Tue, 8 Aug 2006 08:12:11 +0200 (CEST)
Subject: Re: ANNOUNCE: gtkmm 2.9.10

> Murray, I noticed that this announcement email directs users to
> download it at http://www.gtkmm.org/download.shtml, but
that page
> doesn't have any link to download 2.9.x (unstable).

Yeah, we need to mention the stable glibmm 2.10 and unstable glibmm
2.11/12 too, and in the sidebar too.

>  I was going to
> add it to that page somewhere, but wasn't sure where to add it.  Any
> preference?

Just with the existing links, please. Thanks.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





---------- Mensagem encaminhada ----------
From: "Murray Cumming" <murrayc murrayc com>
To: "weijie" <weijie90 gmail com>
Date: Tue, 8 Aug 2006 08:13:47 +0200 (CEST)
Subject: Re: gtkmm-list Digest, Vol 28, Issue 16

> the gnome live wiki does not seem to be active..?

Is seems fine now.
http://live.gnome.org/gtkmm

Maybe you are confusing it with the link to a separate wiki that Alex
Buehl just posted.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





---------- Mensagem encaminhada ----------
From: "Joost Ellerbroek" <j ellerbroek gmail com>
To: gtkmm-list gnome org
Date: Tue, 8 Aug 2006 10:05:51 +0200
Subject: How to delete a multiple selection from a ListStore?
I want to be able to delete / cut / copy and paste multiple-selections in a
TreeView.

What I do now obviously doesn't work correctly, presumably because the
iterators pointing to the rows change as soon as I change the model?
This is what I do now:
----------------code snippet:
std::vector<Gtk::TreeModel::Path> pathlist =
pView->get_selection()->get_selected_rows();
for (std::vector<Gtk::TreeModel::Path>::iterator i =
pathlist.begin(); i != pathlist.end(); ++i)
                pd_expModel->erase(pd_expModel->get_iter
(*i));
----------------

What would be the correct way to delete a multiple selection from the model?

cheers, Joost


---------- Mensagem encaminhada ----------
From: "Joost Ellerbroek" <j ellerbroek gmail com>
To: gtkmm-list gnome org
Date: Tue, 8 Aug 2006 11:08:59 +0200
Subject: Re: How to delete a multiple selection from a ListStore?
Ok, I've found something that atleast works, although I'm not sure if
it's the best way of doing it:


--------------
for (Gtk::TreeModel::iterator iter =
pd_expModel->children().begin();iter;)
                                if (treesel->is_selected(iter))
                                        iter = pd_expModel->erase(iter);
                                else
                                        ++iter;
-------------
I'd be interested to know if there's a better way of doing this.

cheers,

Joost

On 8/8/06, Joost Ellerbroek <j ellerbroek gmail com> wrote:
> I want to be able to delete / cut / copy and paste multiple-selections in
a
> TreeView.
>
> What I do now obviously doesn't work correctly, presumably because the
> iterators pointing to the rows change as soon as I change the model?
> This is what I do now:
> ----------------code snippet:
> std::vector<Gtk::TreeModel::Path> pathlist =
> pView->get_selection()->get_selected_rows();
> for (std::vector<Gtk::TreeModel::Path>::iterator i =
pathlist.begin(); i !=
> pathlist.end(); ++i)
>                 pd_expModel->erase(pd_expModel->get_iter
(*i));
> ----------------
>
> What would be the correct way to delete a multiple selection from the
model?
>
> cheers, Joost
>
>




---------- Mensagem encaminhada ----------
From: Robert Caryl <bob fis-cal com>
To: Joost Ellerbroek <j ellerbroek gmail com>
Date: Tue, 08 Aug 2006 07:37:24 -0500
Subject: Re: How to delete a multiple selection from a ListStore?

 Convert your original list of selected rows into a list of
Gtk::TreeModel::RowReferences.  Using this list you can use the paths it
contains when you loop through the list calling the model's erase method.
The path each Gtk::TreeModel::RowReference contains remains valid so long as
the row to which it points exists regardless of the fact that you are
changing the model by deleting rows.

 Hope this helps.

 Bob Caryl

 Joost Ellerbroek wrote:
 Ok, I've found something that atleast works, although I'm not sure if
it's the best way of doing it:


--------------
for (Gtk::TreeModel::iterator iter =
pd_expModel->children().begin();iter;)
 if (treesel->is_selected(iter))
 iter = pd_expModel->erase(iter);
 else
 ++iter;
-------------
I'd be interested to know if there's a better way of doing this.

cheers,

Joost

On 8/8/06, Joost Ellerbroek <j ellerbroek gmail com> wrote:


 I want to be able to delete / cut / copy and paste multiple-selections in a
TreeView.

What I do now obviously doesn't work correctly, presumably because the
iterators pointing to the rows change as soon as I change the model?
This is what I do now:
----------------code snippet:
std::vector<Gtk::TreeModel::Path> pathlist =
pView->get_selection()->get_selected_rows();
for (std::vector<Gtk::TreeModel::Path>::iterator i =
pathlist.begin(); i !=
pathlist.end(); ++i)
 pd_expModel->erase(pd_expModel->get_iter (*i));
----------------

What would be the correct way to delete a multiple selection from the model?

cheers, Joost



 _______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




---------- Mensagem encaminhada ----------
From: "Mark Tilford" <ralphmerridew gmail com>
To: gtkmm-list gnome org
Date: Tue, 8 Aug 2006 08:15:19 -0500
Subject: Which button is used on a drag?
I want to have different behaviors on right-drag and left-drag.  How
do I find what button is being used for the drag?




---------- Mensagem encaminhada ----------
From: "Murray Cumming" <murrayc murrayc com>
To: "Robert Caryl" <bob fis-cal com>
Date: Tue, 8 Aug 2006 15:21:09 +0200 (CEST)
Subject: Re: How to delete a multiple selection from a ListStore?

> Convert your original list of selected rows into a list of
> Gtk::TreeModel::RowReferences.  Using this list you can use the paths it
> contains when you loop through the list calling the model's erase
> method.  The path each Gtk::TreeModel::RowReference contains remains
> valid so long as the row to which it points exists regardless of the
> fact that you are changing the model by deleting rows.

I've never quite understood the need for this class. A path is already
only a potential path. When you convert it to an iter then the iter will
be invalid if the path isn't valid at that time. (In the example code,
he's not checking the result of get_iter(), I see.)

And if we were just storing paths then the paths wouldn't indicate the
same rows if we have deleted the rows before the intended row.

Maybe RowReference always provides a valid (at the time, sometimes
different than originally) path.


Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





---------- Mensagem encaminhada ----------
From: Michael Ekstrand <mekstran scl ameslab gov>
To: Bill Cunningham <billcu1 verizon net>
Date: Tue, 8 Aug 2006 08:24:34 -0500
Subject: Re: gtk
On Aug 7, 2006, at 11:35 AM, Tor Lillqvist wrote:
> Bill Cunningham writes:
>> pkg-config doesn't help me much. I'm not quite sure how to use it. I
>> know there is the PKG_CONFIG variable. Do you set that in
>> bash_profile ? I
>> must confess I can't figure out how to use the package.

You don't really use pkg-config directly; the configure scripts for
what you're installing use it.  You merely provide some external
direction for it.

Basic idea:  packages provided pkg-config files (for example, gtk
+-2.0.pc).  These files tell pkg-config how to tell the build system
for another package how to build and link against the first package.
Now, to find those files, pkg-config must know where they are.
They're installed to $PREFIX/pkgconfig by packages.  So, if glib is
installed in /opt/gtk2, and you want to link GTK against that glib,
you'd run GTK's configure script like so:

$
PKG_CONFIG_PATH="/opt/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH"
./
configure <configure args as normal>

thereby setting the environment variable on the command line.
Optionally, you can set it in your .bashrc, .bash_profile, or
whatever the initialization script for your shell is.

- Michael

P.S.  Hit Reply to All rather than Reply to keep the discussion on
the list and avoid the problem Tor's brought to your attention.



_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]