Message: Is there a way to query the existence of a G4UIdirectory by name? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Is there a way to query the existence of a G4UIdirectory by name? 

Forum: (Graphical) User Interfaces
Date: 27 Oct, 2010
From: Michael H. Kelsey <Michael H. Kelsey>

I'm trying to modularize the top-level UI commands I'm defining for my application (e.g., run-action vs. event-action vs. geometry) into separate Messenger classes. To preserve my users' macro files, I would prefer not to change the command paths if possible.

In each Messenger class, I currently instantiate a top-level G4UIdirectory to carry around the subsequently defined commands. I believe the repetition of this construction is not recommended, and might be causing some internal confusion to the UImanager.

Is there a way to query G4UImanager to find out if a particular directory has been defined already? The existing G4UImanager::FindDirectory(...) function is delcared private, so that's not an option. I didn't find any useful guidance in either the Toolkit or Application books.

-- Michael Kelsey

 Add Message Add Message
to: "Is there a way to query the existence of a G4UIdirectory by name?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]