--HG--
branch : gsoc2014-dfighter
This commit is contained in:
dfighter1985 2014-05-19 02:08:03 +02:00
parent 0974142bcc
commit eeb4e48d38
4 changed files with 10 additions and 10 deletions

View file

@ -27,7 +27,7 @@ ELSE(WIN32)
ENDIF(WIN32)
IF(UNIX AND WITH_STATIC)
MESSAGE(FATAL_ERROR "OVQT does not work with static NeL builds on Unix atm.")
MESSAGE(FATAL_ERROR "Studio does not work with static NeL builds on Unix atm.")
ENDIF()
ADD_SUBDIRECTORY(src)

View file

@ -1,7 +1,7 @@
#ifndef OVQT_CONFIG_H
#define OVQT_CONFIG_H
#define DATA_DIR "${NL_SHARE_ABSOLUTE_PREFIX}/object_viewer_qt"
#define PLUGINS_DIR "${NL_LIB_ABSOLUTE_PREFIX}/object_viewer_qt"
#define DATA_DIR "${NL_SHARE_ABSOLUTE_PREFIX}/studio"
#define PLUGINS_DIR "${NL_LIB_ABSOLUTE_PREFIX}/studio"
#endif

View file

@ -164,7 +164,7 @@ int main(int argc, char **argv)
pluginManager.setSettings(settings);
QStringList pluginPaths;
#if defined(NL_OS_MAC)
pluginPaths << settings->value("PluginPath", qApp->applicationDirPath() + QString("/../PlugIns/ovqt")).toString();
pluginPaths << settings->value("PluginPath", qApp->applicationDirPath() + QString("/../PlugIns/studio")).toString();
#else
pluginPaths << settings->value("PluginPath", QString("%1/plugins").arg(DATA_DIR)).toString();
#endif
@ -180,7 +180,7 @@ int main(int argc, char **argv)
{
QDir absolutePluginPaths(pluginPaths.join(QLatin1String(",")));
QString absolutePaths = absolutePluginPaths.absolutePath();
const QString reason = QCoreApplication::translate("Application", "Could not find ovqt_plugin_core in %1").arg(absolutePaths);
const QString reason = QCoreApplication::translate("Application", "Could not find studio_plugin_core in %1").arg(absolutePaths);
displayError(msgCoreLoadFailure(reason));
QString newPath = QFileDialog::getExistingDirectory(0, QCoreApplication::translate("Application", "Change the plugins path"), QDir::homePath());
@ -205,7 +205,7 @@ int main(int argc, char **argv)
errors.append(spec->fileName() + " : " + spec->errorString());
if (!errors.isEmpty())
QMessageBox::warning(0, QCoreApplication::translate("Application", "Object Viewer Qt - Plugin loader messages"),
QMessageBox::warning(0, QCoreApplication::translate("Application", "Studio - Plugin loader messages"),
errors.join(QString::fromLatin1("\n\n")));
int result = app.exec();

View file

@ -46,13 +46,13 @@ MainWindow::MainWindow(ExtensionSystem::IPluginManager *pluginManager, QWidget *
m_undoGroup(0),
m_settings(0)
{
QCoreApplication::setApplicationName(QLatin1String("ObjectViewerQt"));
QCoreApplication::setApplicationName(QLatin1String("Studio"));
QCoreApplication::setApplicationVersion(QLatin1String(Core::Constants::OVQT_VERSION_LONG));
QCoreApplication::setOrganizationName(QLatin1String("RyzomCore"));
setObjectName(Constants::MAIN_WINDOW);
setWindowIcon(QIcon(Constants::ICON_PILL));
setWindowTitle(tr("Object Viewer Qt"));
setWindowTitle(tr("Ryzom Core Studio"));
m_pluginManager = pluginManager;
m_settings = m_pluginManager->settings();
@ -232,8 +232,8 @@ bool MainWindow::showOptionsDialog(const QString &group,
void MainWindow::about()
{
QMessageBox::about(this, tr("About Object Viewer Qt"),
tr("<h2>Object Viewer Qt</h2>"
QMessageBox::about(this, tr("About Ryzom Core Studio"),
tr("<h2>Ryzom Core Studio</h2>"
"<p> Ryzom Core team <p>Compiled on %1 %2").arg(__DATE__).arg(__TIME__));
}