Back Midas Rome Roody Rootana
  Root Display GUI  Not logged in ELOG logo
Entry  08 Apr 2004, Joe, , context menu progress with TTriumfFileGUI 
    Reply  07 May 2004, Konstantin, , context menu progress with TTriumfFileGUI 
       Reply  07 May 2004, Konstantin, , context menu progress with TTriumfFileGUI 
       Reply  07 May 2004, Konstantin, , context menu progress with TTriumfFileGUI 
          Reply  07 May 2004, Konstantin, , context menu progress with TTriumfFileGUI 
Message ID: 45     Entry time: 07 May 2004     In reply to: 44
Author: Konstantin 
Topic:  
Subject: context menu progress with TTriumfFileGUI 
> > There are still problems to overcome:
> > - the PeakFind panel needs to communicate back to the gui that it has been
> deleted (to overcome a segmentation violation error when the pointer is deleted
> a second time);

This is because you delete it twice- (1) after the users hits the "close" button,
(2) when the destructor is called from TTriumfFileGUI::PeakFind().

I think we should create the peak finder panel once and then hide and show it as
need. I will commit a fix shortly.

> > - multiple PeakFind menu items appear when the canvas is split into multiple
> pads (even though it is not added if already in the menu???);

This is because Joe's check for duplicate menu items is broken (uses the wrong
object name). I simplified this by adding the menu item to the "TH1" class context
menu exactly once in the TTriumfFileGUI constructor. Will commit shortly.
 
K.O.
ELOG V3.1.4-2e1708b5