Re: trying to stop calling into the MainWindow

2015-11-08 Thread Tomaz Canabrava
On Fri, Nov 6, 2015 at 10:11 PM, Lubomir I. Ivanov wrote: > On 7 November 2015 at 00:58, K. "pestophagous" Heller > wrote: > > > > broadcast/listener pattern is one thing, but using it in *combination* > > with globally shared mutable state

Re: trying to stop calling into the MainWindow

2015-11-06 Thread K. "pestophagous" Heller
To Dirk and Tomaz: thank you for starting this untangling! and thank you for pushing it to master for all to see/comment/fix. i look forward to it. On Fri, Nov 6, 2015 at 4:59 AM, Lubomir I. Ivanov wrote: > > on the other hand, i can probably write a 10 page article (i.e.

Re: trying to stop calling into the MainWindow

2015-11-06 Thread Lubomir I. Ivanov
On 6 November 2015 at 21:28, Thiago Macieira wrote: > On Friday 06 November 2015 15:34:21 Lubomir I. Ivanov wrote: >> > connect( sender, ::method, receiver, ::method); >> >> method referencing in Qt, yey! > > connect(sender, ::signal, receiver, <:=]{}); > λ :D lubomir --

Re: trying to stop calling into the MainWindow

2015-11-06 Thread Lubomir I. Ivanov
On 7 November 2015 at 00:58, K. "pestophagous" Heller wrote: > > broadcast/listener pattern is one thing, but using it in *combination* > with globally shared mutable state ("displayed_dive" in the above > example) is really where things get fragile. > i agree, this has

Re: trying to stop calling into the MainWindow

2015-11-06 Thread Thiago Macieira
On Friday 06 November 2015 15:34:21 Lubomir I. Ivanov wrote: > > connect( sender, ::method, receiver, ::method); > > method referencing in Qt, yey! connect(sender, ::signal, receiver, <:=]{}); -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel

Re: trying to stop calling into the MainWindow

2015-11-06 Thread Lubomir I. Ivanov
On 6 November 2015 at 15:14, Tomaz Canabrava wrote: > > > On Fri, Nov 6, 2015 at 10:59 AM, Lubomir I. Ivanov > wrote: >> >> On 6 November 2015 at 07:29, Dirk Hohndel wrote: >> > We have created a monster. >> > >> >> when the Qt UI began

Re: trying to stop calling into the MainWindow

2015-11-06 Thread Thiago Macieira
On Friday 06 November 2015 11:14:05 Tomaz Canabrava wrote: > KGammaRay No K in GammaRay. http://www.kdab.com/gammaray/ https://github.com/KDAB/GammaRay -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center

Re: trying to stop calling into the MainWindow

2015-11-06 Thread Tomaz Canabrava
On Fri, Nov 6, 2015 at 10:59 AM, Lubomir I. Ivanov wrote: > On 6 November 2015 at 07:29, Dirk Hohndel wrote: > > We have created a monster. > > > > when the Qt UI began it's incarnation, i saw the > MainWindow::instance() method and secretly told myself "i

trying to stop calling into the MainWindow

2015-11-05 Thread Dirk Hohndel
We have created a monster. Over couple of releases Tomaz kept pushing me to focus on this, but there was always other stuff to work on. But given that we want to make progress with subsurface-mobile this is the time to address this. Right now our widgets are a tangled mess. Specifically, we keep