comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Easiest way to build Qt/Gtk interfaces for Ada programs
Date: Sat, 29 Dec 2012 10:26:04 +0100
Date: 2012-12-29T10:26:04+01:00	[thread overview]
Message-ID: <1uzqolxxpmz0v.jea876uzf4tc$.dlg@40tude.net> (raw)
In-Reply-To: op.wp1xs8qtule2fv@cardamome

On Sat, 29 Dec 2012 01:18:34 +0100, Yannick Duch�ne (Hibou57) wrote:

> Le Fri, 28 Dec 2012 16:32:09 +0100, Dmitry A. Kazakov  
> <mailbox@dmitry-kazakov.de> a �crit:
> 
>> Ignoring casual applications, it is unfortunately so, that whatever
>> framework you use, and what the application is supposed to do  
>> functionally, you have to build it around the GUI.
> 
> On the opposite, this is the least recommended way to do. One should  
> create the UI around the application. The cleanest in my opinion, is to go  
> for a Model View Presenter (MVP), preferably with a passive view.

In order to deploy MVC, you must make your application providing the "M" in
the MVC (model). The application must be designed with this in mind. This
is why you build it around the GUI.

You don't own the main task it will belong to the GUI. You have to design
all vital data structures as models compatible to the GUI framework at
hand. You have to place inspection/rollback/abort check points in all
lengthy operations to be able to add progress bars, cancel buttons etc. You
have to rework all tasks making them compatible to single-threaded GUI,
preventing events floods, event generators, deadlocking in signal handlers.
You have to decide polling vs. event-driven policies along the M-V path and
design the tasks involved correspondingly. And so on and so forth. And you
honestly believe in a tool which would allow you to do all this lazily
dragging and dropping icons? I don't.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-12-29  9:26 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 14:51 Easiest way to build Qt/Gtk interfaces for Ada programs alb348
2012-12-28 15:32 ` Dmitry A. Kazakov
2012-12-28 17:30   ` alb348
2012-12-28 17:57     ` Dmitry A. Kazakov
2012-12-29  0:18   ` Yannick Duchêne (Hibou57)
2012-12-29  9:26     ` Dmitry A. Kazakov [this message]
2012-12-29 10:39       ` Yannick Duchêne (Hibou57)
2012-12-29 12:27         ` Dmitry A. Kazakov
2012-12-29 13:07           ` Georg Bauhaus
2012-12-29 13:26             ` Yannick Duchêne (Hibou57)
2012-12-29 13:09           ` Yannick Duchêne (Hibou57)
2012-12-29  0:27   ` Randy Brukardt
2012-12-29  1:02     ` Georg Bauhaus
2012-12-29  2:10       ` Yannick Duchêne (Hibou57)
2012-12-29  8:55       ` Dmitry A. Kazakov
2012-12-28 16:20 ` Vadim Godunko
2012-12-28 19:56   ` alb348
2012-12-28 20:38     ` Justin Time
2012-12-28 20:52       ` alb348
2012-12-29  0:48         ` Randy Brukardt
2012-12-29 10:23           ` Blady
2012-12-29 10:51             ` Yannick Duchêne (Hibou57)
2012-12-29 15:24           ` Justin Time
2012-12-31 21:49             ` Randy Brukardt
2013-01-01 10:46               ` Justin Time
2013-01-01 12:24                 ` Dmitry A. Kazakov
2013-01-01 16:55                   ` Justin Time
2013-01-02 10:00                     ` Dmitry A. Kazakov
2012-12-28 17:58 ` Justin Time
2012-12-31  8:07   ` ldries46
2012-12-31 20:58     ` John B. Matthews
2013-01-04 23:39     ` Brian Drummond
2012-12-29 16:40 ` leonid.dulman
2012-12-29 18:12   ` alb348
2012-12-30 17:27 ` leonid.dulman
2013-01-04 13:53   ` Patrick
2013-01-04 23:31     ` Brian Drummond
2013-01-05  8:57       ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox