Re: coding question

2000-08-07 Thread Allan Rae
On 7 Aug 2000, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: [...] > | void BufferView::Pimpl::restorePosition() > | { > | if (backstack.empty()) return; > | > | int x, y; > - string fname = backstack.pop(&x, &y); > + string fname(backstack.pop(&x,

Re: coding question

2000-08-07 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars, | The code extract below works for me. | Are you happy with this? Is it permissible to use "current_view"? No! Hey you are doing this from inside the current_view so why should you need to reference it? And since you are inside the BufferView::P

Re: coding question

2000-08-07 Thread Angus Leeming
Lars, The code extract below works for me. Are you happy with this? Is it permissible to use "current_view"? Angus extern BufferView * current_view; void BufferView::Pimpl::restorePosition() { if (backstack.empty()) return; int x, y; string fname = backstack.po

Re: coding question

2000-08-07 Thread Angus Leeming
Lars> Did my above comments help? Yes. I'll try out your suggestion. Angus

Re: coding question

2000-08-07 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | { | if (backstack.empty()) return; | | int x, y; | string fname = backstack.pop(&x, &y); | | beforeChange(); + bool exist = bufferlist.exists(fname); - Buffer * b = bufferlist.exists(fname) ? + B

coding question

2000-08-07 Thread Angus Leeming
I have a question for those that know: in my new GUIIndependent (xforms implementation) InsetRef dialog (that is the new "big" dialog with browser), I can go to the reference and go back. Well and good. I go back by calling LxXFunc::Dispatch( LFUN_REF_BACK ), which in turn calls BufferView::Pim