MCPcopy Create free account
hub / github.com/Geant4/geant4 / SaveIconCallback

Method SaveIconCallback

source/interfaces/implementation/src/G4UIQt.cc:5851–5864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5849}
5850
5851void G4UIQt::SaveIconCallback(const QString& aParam)
5852{
5853 QString aCommand = aParam.left(aParam.indexOf(fStringSeparator));
5854 QString aLabel = aParam.mid(aParam.indexOf(fStringSeparator) + fStringSeparator.length());
5855
5856 QString nomFich =
5857 QFileDialog::getSaveFileName(fMainWindow, aLabel, fLastOpenPath, "Macro files (*.mac)");
5858 if (nomFich != "") {
5859 G4UImanager::GetUIpointer()->ApplyCommand(
5860 (QString(aCommand) + QString(" ") + nomFich).toStdString().c_str());
5861 QDir dir;
5862 fLastOpenPath = dir.absoluteFilePath(nomFich);
5863 }
5864}
5865
5866void G4UIQt::CreateViewerPropertiesDialog()
5867{

Callers 1

AddIconMethod · 0.95

Calls 4

c_strMethod · 0.80
QStringClass · 0.50
lengthMethod · 0.45
ApplyCommandMethod · 0.45

Tested by

no test coverage detected