Re: Window-independent dialogs

2007-06-11 Thread Abdelrazak Younes

Stefan Schimanski wrote:

Hi!

Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window?


With current architecture we cannot change that not. I suggest that we 
number the LyX windows and we put that number in the title bar of the 
LyX window itself and of any child window.


We could do something in 1.6 though...

Abdel.



Re: Window-independent dialogs

2007-06-11 Thread Edwin Leuven

Stefan Schimanski wrote:
Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window?


another question (for 1.6 or later) is whether these non-modal dialogs 
should go and be replaced by toolbars?


(some are and some aren't, it is kinda messy and i don't know many other 
 apps that use 'em)


Re: Window-independent dialogs

2007-06-11 Thread Stefan Schimanski


Am 11.06.2007 um 15:17 schrieb Edwin Leuven:


Stefan Schimanski wrote:
Is there a reason that the non-modal dialogs (like to edit tables,  
change text styles etc.) depend on the LyX window?


another question (for 1.6 or later) is whether these non-modal  
dialogs should go and be replaced by toolbars?


Yes, please. Toolbars or tool windows.

(some are and some aren't, it is kinda messy and i don't know many  
other  apps that use 'em)


Stefan


PGP.sig
Description: Signierter Teil der Nachricht


Re: Window-independent dialogs

2007-06-11 Thread Abdelrazak Younes

Edwin Leuven wrote:

Stefan Schimanski wrote:
Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window?


another question (for 1.6 or later) is whether these non-modal dialogs 
should go and be replaced by toolbars?


We should definitely cleanup the dialogs in 1.6 (or 1.5.x). My opinion 
is that any dialog that aims to stay a dialog should be a modal dialog. 
All the others should be converted to DockWidget (so that those really 
preferring them as dialog can still use them this way by detaching them) 
or toolbars indeed.


Abdel.



Re: Window-independent dialogs

2007-06-11 Thread Abdelrazak Younes

Stefan Schimanski wrote:

Hi!

Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window?


With current architecture we cannot change that not. I suggest that we 
number the LyX windows and we put that number in the title bar of the 
LyX window itself and of any child window.


We could do something in 1.6 though...

Abdel.



Re: Window-independent dialogs

2007-06-11 Thread Edwin Leuven

Stefan Schimanski wrote:
Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window?


another question (for 1.6 or later) is whether these non-modal dialogs 
should go and be replaced by toolbars?


(some are and some aren't, it is kinda messy and i don't know many other 
 apps that use 'em)


Re: Window-independent dialogs

2007-06-11 Thread Stefan Schimanski


Am 11.06.2007 um 15:17 schrieb Edwin Leuven:


Stefan Schimanski wrote:
Is there a reason that the non-modal dialogs (like to edit tables,  
change text styles etc.) depend on the LyX window?


another question (for 1.6 or later) is whether these non-modal  
dialogs should go and be replaced by toolbars?


Yes, please. Toolbars or tool windows.

(some are and some aren't, it is kinda messy and i don't know many  
other  apps that use 'em)


Stefan


PGP.sig
Description: Signierter Teil der Nachricht


Re: Window-independent dialogs

2007-06-11 Thread Abdelrazak Younes

Edwin Leuven wrote:

Stefan Schimanski wrote:
Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window?


another question (for 1.6 or later) is whether these non-modal dialogs 
should go and be replaced by toolbars?


We should definitely cleanup the dialogs in 1.6 (or 1.5.x). My opinion 
is that any dialog that aims to stay a dialog should be a modal dialog. 
All the others should be converted to DockWidget (so that those really 
preferring them as dialog can still use them this way by detaching them) 
or toolbars indeed.


Abdel.



Re: Window-independent dialogs

2007-06-10 Thread Angus Leeming

Stefan Schimanski wrote:

Hi!

Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window? You can open another 
one for every window which is open. It's somehow strange and confusing 
to have a text style dialog, but it doesn't work because it belongs to 
another window.


That's just the way they were designed. getDialogs belongs to the 
LyXView. When a dialog is created, it contains a pointer to this 
LyXView so that it can dispatch requests back to it. See 
src/frontends/controllers/Kernel.cpp:


33 void Kernel::dispatch(FuncRequest const  fr) const
34 {
35 lyxview_.dispatch(fr);
36 }

Angus



Re: Window-independent dialogs

2007-06-10 Thread Angus Leeming

Stefan Schimanski wrote:

Hi!

Is there a reason that the non-modal dialogs (like to edit tables, 
change text styles etc.) depend on the LyX window? You can open another 
one for every window which is open. It's somehow strange and confusing 
to have a text style dialog, but it "doesn't work" because it belongs to 
another window.


That's just the way they were designed. getDialogs belongs to the 
LyXView. When a dialog is created, it contains a pointer to this 
LyXView so that it can dispatch requests back to it. See 
src/frontends/controllers/Kernel.cpp:


33 void Kernel::dispatch(FuncRequest const & fr) const
34 {
35 lyxview_.dispatch(fr);
36 }

Angus



Window-independent dialogs

2007-06-09 Thread Stefan Schimanski

Hi!

Is there a reason that the non-modal dialogs (like to edit tables,  
change text styles etc.) depend on the LyX window? You can open  
another one for every window which is open. It's somehow strange and  
confusing to have a text style dialog, but it doesn't work because  
it belongs to another window.


Create a bug report for it: http://bugzilla.lyx.org/show_bug.cgi?id=3836

Stefan


PGP.sig
Description: Signierter Teil der Nachricht


Window-independent dialogs

2007-06-09 Thread Stefan Schimanski

Hi!

Is there a reason that the non-modal dialogs (like to edit tables,  
change text styles etc.) depend on the LyX window? You can open  
another one for every window which is open. It's somehow strange and  
confusing to have a text style dialog, but it "doesn't work" because  
it belongs to another window.


Create a bug report for it: http://bugzilla.lyx.org/show_bug.cgi?id=3836

Stefan


PGP.sig
Description: Signierter Teil der Nachricht