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



Hi,

Roger Leigh <roger whinlatter uklinux net> 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



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