Re: Using Qt in text.C

2003-02-11 Thread Daniel Naber
On Monday 10 February 2003 12:22, John Levon wrote: You'll have no joy trying that at all. You'll have to add some code in frontends/qt2/ and hide it behind the GUII firewall. Is there documentation on how to do that? Or are there files which can be used as an example (and which are not too

Re: Using Qt in text.C

2003-02-11 Thread John Levon
On Tue, Feb 11, 2003 at 03:08:22PM +0100, Daniel Naber wrote: Is there documentation on how to do that? not really Yes, it works for simple cases. But I cannot QObject::connect() stuff, since lyx_gui isn't a class but only a namespace it seems. Create an object in lyx_gui::init then, and

Re: Using Qt in text.C

2003-02-11 Thread Daniel Naber
On Monday 10 February 2003 12:22, John Levon wrote: > You'll have no joy trying that at all. You'll have to add some code in > frontends/qt2/ and hide it behind the GUII firewall. Is there documentation on how to do that? Or are there files which can be used as an example (and which are not too

Re: Using Qt in text.C

2003-02-11 Thread John Levon
On Tue, Feb 11, 2003 at 03:08:22PM +0100, Daniel Naber wrote: > Is there documentation on how to do that? not really > Yes, it works for simple cases. But I cannot QObject::connect() stuff, > since lyx_gui isn't a class but only a namespace it seems. Create an object in lyx_gui::init then,

Re: Using Qt in text.C

2003-02-10 Thread Andre Poenitz
On Fri, Feb 07, 2003 at 09:52:12PM +0100, Daniel Naber wrote: I'd like to use some Qt classes in text.C - just for trying some things out. Which Qt classes? And what would the benefit of using Qt classes in the LyX core be? Andre' -- Those who desire to give up Freedom in order to gain

Re: Using Qt in text.C

2003-02-10 Thread Juergen Vigna
Andre Poenitz wrote: On Fri, Feb 07, 2003 at 09:52:12PM +0100, Daniel Naber wrote: I'd like to use some Qt classes in text.C - just for trying some things out. Which Qt classes? And what would the benefit of using Qt classes in the LyX core be? I don't think we would like such a change as

Re: Using Qt in text.C

2003-02-10 Thread Daniel Naber
On Monday 10 February 2003 09:13, Andre Poenitz wrote: Which Qt classes? QSocket (and QString). And what would the benefit of using Qt classes in the LyX core be? Programming an asynchronous socket on the C level doesn't seem to be fun. As I said, for now it's just personal testing and it's

Re: Using Qt in text.C

2003-02-10 Thread Andre Poenitz
On Mon, Feb 10, 2003 at 09:31:35AM +0100, Juergen Vigna wrote: Which Qt classes? And what would the benefit of using Qt classes in the LyX core be? I don't think we would like such a change as then we would need qt libraties to comile one of the other frontends not really what we made

Re: Using Qt in text.C

2003-02-10 Thread Daniel Naber
On Friday 07 February 2003 21:57, Angus Leeming wrote: Have a look at src/frontends/qt2/Makefile.am Do you know what exactly I have to change in src/Makefile.am? For example when I just add $(FRONTEND_INCLUDES) to INCLUDES I get parser errors (in

Re: Using Qt in text.C

2003-02-10 Thread John Levon
On Mon, Feb 10, 2003 at 10:50:30AM +0100, Daniel Naber wrote: Have a look at src/frontends/qt2/Makefile.am Do you know what exactly I have to change in src/Makefile.am? For example when I just add $(FRONTEND_INCLUDES) to INCLUDES I get parser errors (in

Re: Using Qt in text.C

2003-02-10 Thread Andre Poenitz
On Fri, Feb 07, 2003 at 09:52:12PM +0100, Daniel Naber wrote: > I'd like to use some Qt classes in text.C - just for trying some things > out. Which Qt classes? And what would the benefit of using Qt classes in the LyX core be? Andre' -- Those who desire to give up Freedom in order to gain

Re: Using Qt in text.C

2003-02-10 Thread Juergen Vigna
Andre Poenitz wrote: On Fri, Feb 07, 2003 at 09:52:12PM +0100, Daniel Naber wrote: I'd like to use some Qt classes in text.C - just for trying some things out. Which Qt classes? And what would the benefit of using Qt classes in the LyX core be? I don't think we would like such a change as

Re: Using Qt in text.C

2003-02-10 Thread Daniel Naber
On Monday 10 February 2003 09:13, Andre Poenitz wrote: > Which Qt classes? QSocket (and QString). > And what would the benefit of using Qt classes in the LyX core be? Programming an asynchronous socket on the C level doesn't seem to be fun. As I said, for now it's just personal testing and

Re: Using Qt in text.C

2003-02-10 Thread Andre Poenitz
On Mon, Feb 10, 2003 at 09:31:35AM +0100, Juergen Vigna wrote: > >Which Qt classes? > > > >And what would the benefit of using Qt classes in the LyX core be? > > I don't think we would like such a change as then we would need qt > libraties to comile one of the other frontends not really what we

Re: Using Qt in text.C

2003-02-10 Thread Daniel Naber
On Friday 07 February 2003 21:57, Angus Leeming wrote: > Have a look at src/frontends/qt2/Makefile.am Do you know what exactly I have to change in src/Makefile.am? For example when I just add $(FRONTEND_INCLUDES) to INCLUDES I get parser errors (in

Re: Using Qt in text.C

2003-02-10 Thread John Levon
On Mon, Feb 10, 2003 at 10:50:30AM +0100, Daniel Naber wrote: > > Have a look at src/frontends/qt2/Makefile.am > > Do you know what exactly I have to change in src/Makefile.am? For example > when I just add $(FRONTEND_INCLUDES) to INCLUDES I get parser errors (in >

Using Qt in text.C

2003-02-07 Thread Daniel Naber
Hi, I'd like to use some Qt classes in text.C - just for trying some things out. As it's also about non-GUI classes, I guess using the GUI independance stuff doesn't make sense. Can someone tell me how to make Qt classes in text.C work? Currently the Qt headers aren't even found when included

Re: Using Qt in text.C

2003-02-07 Thread Angus Leeming
Daniel Naber wrote: Hi, I'd like to use some Qt classes in text.C - just for trying some things out. As it's also about non-GUI classes, I guess using the GUI independance stuff doesn't make sense. Can someone tell me how to make Qt classes in text.C work? Currently the Qt headers aren't

Using Qt in text.C

2003-02-07 Thread Daniel Naber
Hi, I'd like to use some Qt classes in text.C - just for trying some things out. As it's also about non-GUI classes, I guess using the GUI independance stuff doesn't make sense. Can someone tell me how to make Qt classes in text.C work? Currently the Qt headers aren't even found when included

Re: Using Qt in text.C

2003-02-07 Thread Angus Leeming
Daniel Naber wrote: > Hi, > > I'd like to use some Qt classes in text.C - just for trying some things > out. As it's also about non-GUI classes, I guess using the GUI > independance stuff doesn't make sense. Can someone tell me how to make Qt > classes in text.C work? Currently the Qt headers