+ Change some text
This commit is contained in:
parent
01921f4f25
commit
564f3d14e3
|
@ -335,7 +335,7 @@ void CmdRaytracingNewPovrayProject::activated(int iMsg)
|
|||
QAction* a = pcAction->actions()[iMsg];
|
||||
QFileInfo tfi(a->property("Template").toString());
|
||||
if (tfi.isReadable()) {
|
||||
openCommand("Raytracing create project");
|
||||
openCommand("Create Povray project");
|
||||
doCommand(Doc,"import Raytracing,RaytracingGui");
|
||||
doCommand(Doc,"App.activeDocument().addObject('Raytracing::RayProject','%s')",FeatName.c_str());
|
||||
doCommand(Doc,"App.activeDocument().%s.Template = '%s'",FeatName.c_str(), (const char*)tfi.filePath().toUtf8());
|
||||
|
@ -692,7 +692,7 @@ void CmdRaytracingNewLuxProject::activated(int iMsg)
|
|||
QAction* a = pcAction->actions()[iMsg];
|
||||
QFileInfo tfi(a->property("Template").toString());
|
||||
if (tfi.isReadable()) {
|
||||
openCommand("Raytracing create luxrender project");
|
||||
openCommand("Create LuxRender project");
|
||||
doCommand(Doc,"import Raytracing,RaytracingGui");
|
||||
doCommand(Doc,"App.activeDocument().addObject('Raytracing::LuxProject','%s')",FeatName.c_str());
|
||||
doCommand(Doc,"App.activeDocument().%s.Template = '%s'",FeatName.c_str(), (const char*)tfi.filePath().toUtf8());
|
||||
|
|
|
@ -65,7 +65,7 @@ bool ViewProviderLux::doubleClicked(void)
|
|||
void ViewProviderLux::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
{
|
||||
QAction* act;
|
||||
act = menu->addAction(QObject::tr("Edit project"), receiver, member);
|
||||
act = menu->addAction(tr("Edit LuxRender project"), receiver, member);
|
||||
act->setData(QVariant((int)ViewProvider::Default));
|
||||
ViewProviderDocumentObjectGroup::setupContextMenu(menu, receiver, member);
|
||||
}
|
||||
|
@ -89,10 +89,10 @@ bool ViewProviderLux::setEdit(int ModNum)
|
|||
}
|
||||
|
||||
bool ok;
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("Template"), tr("Select a template"), items, current, false, &ok);
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("LuxRender template"), tr("Select a LuxRender template"), items, current, false, &ok);
|
||||
if (ok) {
|
||||
App::Document* doc = getObject()->getDocument();
|
||||
doc->openTransaction("Edit Lux project");
|
||||
doc->openTransaction("Edit LuxRender project");
|
||||
QString fn = QString::fromAscii("%1%2.lxs").arg(dataDir).arg(file);
|
||||
static_cast<Raytracing::LuxProject*>(getObject())->Template.setValue((const char*)fn.toUtf8());
|
||||
doc->commitTransaction();
|
||||
|
@ -137,7 +137,7 @@ bool ViewProviderPovray::doubleClicked(void)
|
|||
void ViewProviderPovray::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
{
|
||||
QAction* act;
|
||||
act = menu->addAction(QObject::tr("Edit project"), receiver, member);
|
||||
act = menu->addAction(tr("Edit Povray project"), receiver, member);
|
||||
act->setData(QVariant((int)ViewProvider::Default));
|
||||
ViewProviderDocumentObjectGroup::setupContextMenu(menu, receiver, member);
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ bool ViewProviderPovray::setEdit(int ModNum)
|
|||
}
|
||||
|
||||
bool ok;
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("Template"), tr("Select a template"), items, current, false, &ok);
|
||||
QString file = QInputDialog::getItem(Gui::getMainWindow(), tr("Povray template"), tr("Select a Povray template"), items, current, false, &ok);
|
||||
if (ok) {
|
||||
App::Document* doc = getObject()->getDocument();
|
||||
doc->openTransaction("Edit Povray project");
|
||||
|
|
Loading…
Reference in New Issue
Block a user