Re: Your opinion about "how to get data from dialog box"

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

 



Hi,

Roger Leigh <roger@xxxxxxxxxxxxxxxxxxxxxx> writes:

> This might be OT, but I would inherit from Gtk::Dialog, and provide
> get_foo() methods to get at my data.

Mixing the user interface with the actual code seems to be a bad
design choice. The dialog should be a view on the data not providing
the data. So you should connect to the signals that indicate that the
user changed data in the view and update your model accordingly. The
rest of the application doesn't need to deal with the dialog or any
other portions of the user interface then.


Sven
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux