Re: gplot (was: wave storage)
Abhinav singh <[email protected]>
| Newsgroups | gmane.comp.gnu.gnucap.devel |
|---|---|
| Message-ID | <CAPzf0g+ospp=Okwe1ngnCTRVAaoQjhrBZW+p8x6eC1d-w-fF2Q@mail.gmail.com> |
On Sat, Oct 4, 2014 at 2:55 PM, Felix Salfelder <[email protected]> wrote: > On Thu, Oct 02, 2014 at 09:39:05PM +0200, Felix Salfelder wrote: >> [..] >> WIN_MAIN* _window; >> _window->_current_title=_title; >> _window->_is_newsim=true; >> [..] > Hi Felix, _window->_current_title=_title //this set the tittle provide by the user to wavepanel and by default it is simulation mode name. _window->_is_newsim=true; // _is_newsim is a flag which tracks whether the provided title is new or it already exist.If it is new then new wavepanel get appended in window otherwise existing wavepanel get modified. How it works? In c_plot.cc about line 250, in CMD_PLOT::do_it if(_window->_is_newsim){ MY_THREAD *tran=new MY_THREAD(); tran->start(); _window->_is_proceed=false; Here tran->start() is responsible for all things. It invokes execute function of MY_THREAD class and there you will find all gtk stuffs. > > apparently, the three lines are equivalent to > WIN_MAIN::_current_title = _title; > WIN_MAIN::_is_newsim = true; > (it just never occurred to me...) > Another way of writing the same. > these members being static, multiple windows seem to be not intended, is > this correct? > Yes, because you can only run one main window or otherwise you have to start a new thread for running another main window. > also, the layout of the main window suggests that multiple tabs are > intended to contain various plots. how much of this is working? and what > is the empty area on the left supposed to be? Yes there is a main window which contains multiple tabs and with the old code base (before rework of wave storage) its working absolutely fine. Empty area is for variable list. A list which contains all the variable plotted in currently selected tab or wavepanel. From this list you directly add or delete waveform in the wavepanel. Like if you plotted v1,v2 and v3 initially. Then you wants to compare only v1 and v3 then simply right click on v2 and an option will pop up for delete. Now again if you wants to compare v1 and v2, right click on v2 to add it back and remove v3 by same procedure. Can you please tell me what exactly the error is occurring when you are trying to run it with new code base. thanks, Abhinav