Re: Gtk::Fixed or Gtk::DrawingArea(Porting DBDesigner to c++ & gtkmm)
- From: Roger Leigh <rleigh whinlatter ukfsn org>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::Fixed or Gtk::DrawingArea(Porting DBDesigner to c++ & gtkmm)
- Date: Sat, 19 Feb 2005 23:28:48 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bart Verstraete <bartverstraete telenet be> writes:
[Please do trim extraneous lines when replying]
> Roger Leigh wrote:
> For the main display area, a GnomeCanvas would be a good solution.
> You can create the tables from a derived GnomeCanvasGroup, and the
> same for the connections and labels. For the palettes and lists on
> the right, GtkTreeView will do the job.
> Could u give samplecode for the tables, because that I not realy understood.
> I am already expirementing with the canvas, murray said that too on irc
I'm afraid not. I've only used the canvas in plain C, not C++.
It's very similar to a vector drawing program in that you have basic
drawing primitives (lines, circles, boxes, curves, text, images etc.)
which can be grouped to make "compound" elements. Your table item
will be a compound element (derived from GnomeCanvasGroup), and this
will contain GnomeCanvasText items plus other drawing elements
e.g. lines to make it pretty. You can handle moving, resizing,
drag/drop etc. in this item object.
This should be useful:
http://developer.gnome.org/doc/books/WGA/gnome-canvas.html
Try doing something simple to start with, like just a coloured box or
text.
Regards,
Roger
- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFCF8uuVcFcaSW/uEgRAhnMAJ99W/gEGsxrHl6S3EWNCIgL36ApGgCg9mI3
/HDVSTD/bbmqqLtfxelQ7JM=
=M+Gc
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]