Changed povray, Povray and PovRay to POV-Ray
This commit is contained in:
parent
641a2a75bf
commit
8c40c6d372
|
@ -79,8 +79,8 @@ CmdRaytracingWriteCamera::CmdRaytracingWriteCamera()
|
|||
{
|
||||
sAppModule = "Raytracing";
|
||||
sGroup = QT_TR_NOOP("Raytracing");
|
||||
sMenuText = QT_TR_NOOP("Export camera to povray...");
|
||||
sToolTipText = QT_TR_NOOP("Export the camera positon of the active 3D view in PovRay format to a file");
|
||||
sMenuText = QT_TR_NOOP("Export camera to POV-Ray...");
|
||||
sToolTipText = QT_TR_NOOP("Export the camera positon of the active 3D view in POV-Ray format to a file");
|
||||
sWhatsThis = sToolTipText;
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Raytrace_Camera";
|
||||
|
@ -96,7 +96,7 @@ void CmdRaytracingWriteCamera::activated(int iMsg)
|
|||
int ret = QMessageBox::warning(Gui::getMainWindow(),
|
||||
qApp->translate("CmdRaytracingWriteView","No perspective camera"),
|
||||
qApp->translate("CmdRaytracingWriteView","The current view camera is not perspective"
|
||||
" and thus the result of the povray image later might look different to"
|
||||
" and thus the result of the POV-Ray image later might look different to"
|
||||
" what you expect.\nDo you want to continue?"),
|
||||
QMessageBox::Yes|QMessageBox::No);
|
||||
if (ret != QMessageBox::Yes)
|
||||
|
@ -131,7 +131,7 @@ void CmdRaytracingWriteCamera::activated(int iMsg)
|
|||
float Dist = Cam->focalDistance.getValue();
|
||||
|
||||
QStringList filter;
|
||||
filter << QObject::tr("Povray (*.pov)");
|
||||
filter << QObject::tr("POV-Ray (*.pov)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn = Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page"), QString(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty())
|
||||
|
@ -172,8 +172,8 @@ CmdRaytracingWritePart::CmdRaytracingWritePart()
|
|||
{
|
||||
sAppModule = "Raytracing";
|
||||
sGroup = QT_TR_NOOP("Raytracing");
|
||||
sMenuText = QT_TR_NOOP("Export part to povray...");
|
||||
sToolTipText = QT_TR_NOOP("Write the selected Part (object) as a povray file");
|
||||
sMenuText = QT_TR_NOOP("Export part to POV-Ray...");
|
||||
sToolTipText = QT_TR_NOOP("Write the selected Part (object) as a POV-Ray file");
|
||||
sWhatsThis = sToolTipText;
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Raytrace_Part";
|
||||
|
@ -182,7 +182,7 @@ CmdRaytracingWritePart::CmdRaytracingWritePart()
|
|||
void CmdRaytracingWritePart::activated(int iMsg)
|
||||
{
|
||||
QStringList filter;
|
||||
filter << QObject::tr("Povray(*.pov)");
|
||||
filter << QObject::tr("POV-Ray (*.pov)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn = Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page"), QString(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty())
|
||||
|
@ -218,8 +218,8 @@ CmdRaytracingWriteView::CmdRaytracingWriteView()
|
|||
{
|
||||
sAppModule = "Raytracing";
|
||||
sGroup = QT_TR_NOOP("Raytracing");
|
||||
sMenuText = QT_TR_NOOP("Export view to povray...");
|
||||
sToolTipText = QT_TR_NOOP("Write the active 3D view with camera and all its content to a povray file");
|
||||
sMenuText = QT_TR_NOOP("Export view to POV-Ray...");
|
||||
sToolTipText = QT_TR_NOOP("Write the active 3D view with camera and all its content to a POV-Ray file");
|
||||
sWhatsThis = sToolTipText;
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Raytrace_Export";
|
||||
|
@ -235,7 +235,7 @@ void CmdRaytracingWriteView::activated(int iMsg)
|
|||
int ret = QMessageBox::warning(Gui::getMainWindow(),
|
||||
qApp->translate("CmdRaytracingWriteView","No perspective camera"),
|
||||
qApp->translate("CmdRaytracingWriteView","The current view camera is not perspective"
|
||||
" and thus the result of the povray image later might look different to"
|
||||
" and thus the result of the POV-Ray image later might look different to"
|
||||
" what you expect.\nDo you want to continue?"),
|
||||
QMessageBox::Yes|QMessageBox::No);
|
||||
if (ret != QMessageBox::Yes)
|
||||
|
@ -244,7 +244,7 @@ void CmdRaytracingWriteView::activated(int iMsg)
|
|||
}
|
||||
|
||||
QStringList filter;
|
||||
filter << QObject::tr("Povray(*.pov)");
|
||||
filter << QObject::tr("POV-Ray(*.pov)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn = Gui::FileDialog::getSaveFileName(Gui::getMainWindow(),
|
||||
QObject::tr("Export page"), QString(), filter.join(QLatin1String(";;")));
|
||||
|
@ -305,8 +305,8 @@ CmdRaytracingNewPovrayProject::CmdRaytracingNewPovrayProject()
|
|||
{
|
||||
sAppModule = "Raytracing";
|
||||
sGroup = QT_TR_NOOP("Raytracing");
|
||||
sMenuText = QT_TR_NOOP("New Povray project");
|
||||
sToolTipText = QT_TR_NOOP("Insert new Povray project into the document");
|
||||
sMenuText = QT_TR_NOOP("New POV-Ray project");
|
||||
sToolTipText = QT_TR_NOOP("Insert new POV-Ray project into the document");
|
||||
sWhatsThis = "Raytracing_NewPovrayProject";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Raytrace_New";
|
||||
|
@ -322,7 +322,7 @@ void CmdRaytracingNewPovrayProject::activated(int iMsg)
|
|||
int ret = QMessageBox::warning(Gui::getMainWindow(),
|
||||
qApp->translate("CmdRaytracingWriteView","No perspective camera"),
|
||||
qApp->translate("CmdRaytracingWriteView","The current view camera is not perspective"
|
||||
" and thus the result of the povray image later might look different to"
|
||||
" and thus the result of the POV-Ray image later might look different to"
|
||||
" what you expect.\nDo you want to continue?"),
|
||||
QMessageBox::Yes|QMessageBox::No);
|
||||
if (ret != QMessageBox::Yes)
|
||||
|
@ -336,7 +336,7 @@ void CmdRaytracingNewPovrayProject::activated(int iMsg)
|
|||
QAction* a = pcAction->actions()[iMsg];
|
||||
QFileInfo tfi(a->property("Template").toString());
|
||||
if (tfi.isReadable()) {
|
||||
openCommand("Create Povray project");
|
||||
openCommand("Create POV-Ray 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());
|
||||
|
@ -508,7 +508,7 @@ void CmdRaytracingExportProject::activated(int iMsg)
|
|||
filterLabel = "Luxrender Scene (*.lxs)";
|
||||
}
|
||||
} else {
|
||||
filterLabel = "Povray Scene (*.pov)";
|
||||
filterLabel = "POV-Ray Scene (*.pov)";
|
||||
}
|
||||
|
||||
QStringList filter;
|
||||
|
@ -578,14 +578,14 @@ void CmdRaytracingRender::activated(int iMsg)
|
|||
if (renderType == "povray") {
|
||||
renderer = hGrp->GetASCII("PovrayExecutable", "");
|
||||
if (renderer == "") {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Povray not found"),
|
||||
QObject::tr("Please set the path to the povray executable in the preferences."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("POV-Ray not found"),
|
||||
QObject::tr("Please set the path to the POV-Ray executable in the preferences."));
|
||||
return;
|
||||
} else {
|
||||
QFileInfo fi(QString::fromUtf8(renderer.c_str()));
|
||||
if (!fi.exists() || !fi.isFile()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Povray not found"),
|
||||
QObject::tr("Please correct the path to the povray executable in the preferences."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("POV-Ray not found"),
|
||||
QObject::tr("Please correct the path to the POV-Ray executable in the preferences."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
<item row="0" column="1">
|
||||
<widget class="Gui::PrefFileChooser" name="prefFileChooser2">
|
||||
<property name="toolTip">
|
||||
<string>The path to the povray executable, if you want to render from FreeCAD</string>
|
||||
<string>The path to the POV-Ray executable, if you want to render from FreeCAD</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>PovrayExecutable</cstring>
|
||||
|
@ -127,14 +127,14 @@
|
|||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Povray executable:</string>
|
||||
<string>POV-Ray executable:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Povray output parameters:</string>
|
||||
<string>POV-Ray output parameters:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -143,7 +143,7 @@
|
|||
<item>
|
||||
<widget class="Gui::PrefLineEdit" name="prefLineEdit1">
|
||||
<property name="toolTip">
|
||||
<string>The povray parameters to be passed to the render.</string>
|
||||
<string>The POV-Ray parameters to be passed to the render.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>+P +A</string>
|
||||
|
|
Loading…
Reference in New Issue
Block a user