@@ -257,7 +257,7 @@ RvApplication::RvApplication(int argc, char** argv, DeviceCreationFunc F)
257
257
m_webManager(0),
258
258
m_presentationMode(false),
259
259
m_presentationDevice(0),
260
- m_executableNameCaps("Open RV" ),
260
+ m_executableNameCaps(UI_APPLICATION_NAME ),
261
261
m_deviceCreationFunc(F),
262
262
m_desktopModule(0),
263
263
m_dispatchAtomicInt(0)
@@ -291,8 +291,8 @@ RvApplication::RvApplication(int argc, char** argv, DeviceCreationFunc F)
291
291
m_lazyBuildTimer->setSingleShot(true);
292
292
m_lazyBuildTimer->start();
293
293
294
- m_aboutAct = new QAction(tr("About Open RV ..."), this);
295
- m_aboutAct->setStatusTip(tr("Information about this version of Open RV" ));
294
+ m_aboutAct = new QAction(tr("About " UI_APPLICATION_NAME " ..."), this);
295
+ m_aboutAct->setStatusTip(tr("Information about this version of " UI_APPLICATION_NAME ));
296
296
m_aboutAct->setMenuRole(QAction::AboutRole);
297
297
connect(m_aboutAct, SIGNAL(triggered()), this, SLOT(about()));
298
298
@@ -310,24 +310,24 @@ RvApplication::RvApplication(int argc, char** argv, DeviceCreationFunc F)
310
310
sep2->setSeparator(true);
311
311
312
312
m_networkAct = new QAction(tr("Network..."), this);
313
- m_networkAct->setStatusTip(tr("Allow remote communication with this Open RV" ));
313
+ m_networkAct->setStatusTip(tr("Allow remote communication with this " UI_APPLICATION_NAME ));
314
314
m_networkAct->setMenuRole(QAction::ApplicationSpecificRole);
315
315
connect(m_networkAct, SIGNAL(triggered()), this, SLOT(showNetworkDialog()));
316
316
317
- m_quitAct = new QAction(tr("Quit Open RV" ), this);
317
+ m_quitAct = new QAction(tr("Quit " UI_APPLICATION_NAME ), this);
318
318
#ifndef PLATFORM_DARWIN
319
319
m_quitAct->setShortcut(QKeySequence("Ctrl+Q"));
320
320
#endif
321
- m_quitAct->setStatusTip(tr("Exit all Open RV Sessions"));
321
+ m_quitAct->setStatusTip(tr("Exit all " UI_APPLICATION_NAME " Sessions"));
322
322
m_quitAct->setMenuRole(QAction::QuitRole);
323
323
connect(m_quitAct, SIGNAL(triggered()), this, SLOT(quitAll()));
324
324
325
325
326
326
#if defined(PLATFORM_DARWIN)
327
327
m_macMenuBar = new QMenuBar(0);
328
- // NOTE: the 'Open RV' string below isn't what's visible as main menu.
328
+ // NOTE: the UI_APPLICATION_NAME string below isn't what's visible as main menu.
329
329
// The main menu visible string comes from the 'src/bin/nsapp/RV/Info.plist' file.
330
- m_macRVMenu = m_macMenuBar->addMenu("Open RV" );
330
+ m_macRVMenu = m_macMenuBar->addMenu(UI_APPLICATION_NAME );
331
331
m_macRVMenu->addAction(m_aboutAct);
332
332
if (m_networkAct) m_macRVMenu->addAction(m_networkAct);
333
333
m_macRVMenu->addAction(m_prefAct);
@@ -500,19 +500,22 @@ RvApplication::about()
500
500
vector<char> temp;
501
501
temp.reserve(2048);
502
502
sprintf(temp.data(),
503
- "<h1>Open RV</h1><h2>%d.%d.%d (%s)</h2> %s <p>Open RV Copyright contributors to the Open Review Initiative project. </p>",
503
+ "<h1>%s</h1><h2>%d.%d.%d (%s)</h2> %s <p>%s %s </p>",
504
+ UI_APPLICATION_NAME,
504
505
TWK_DEPLOY_MAJOR_VERSION(),
505
506
TWK_DEPLOY_MINOR_VERSION(),
506
507
TWK_DEPLOY_PATCH_LEVEL(),
507
508
GIT_HEAD,
508
- headerComment.str().c_str());
509
+ headerComment.str().c_str(),
510
+ UI_APPLICATION_NAME,
511
+ COPYRIGHT_TEXT);
509
512
510
513
const TwkApp::Document* doc = TwkApp::Document::activeDocument();
511
514
QWidget* parent = 0;
512
515
if (doc) parent = (RvDocument *)doc->opaquePointer();
513
516
514
517
QMessageBox *msgBox =
515
- new QMessageBox("About Open RV" , QString(temp.data()), QMessageBox::Information, 0, 0, 0, parent,
518
+ new QMessageBox("About " UI_APPLICATION_NAME , QString(temp.data()), QMessageBox::Information, 0, 0, 0, parent,
516
519
Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
517
520
msgBox->setAttribute(Qt::WA_DeleteOnClose);
518
521
QIcon icon = msgBox->windowIcon();
@@ -974,7 +977,7 @@ RvApplication::prefs()
974
977
QWidget* parent = 0;
975
978
if (doc) parent = (RvDocument *)doc->opaquePointer();
976
979
QMessageBox box(parent);
977
- box.setWindowTitle(tr("Open RV : Preferences"));
980
+ box.setWindowTitle(tr(UI_APPLICATION_NAME " : Preferences"));
978
981
box.setText(tr("Presentation Mode is Enabled -- Preferences cannot be shown.\nDisable Presentation Mode?"));
979
982
// the detailed box mess up the buttons on OS X with CSS
980
983
// just getting rid of it fixes it
@@ -1572,10 +1575,10 @@ RvApplication::setPresentationMode(bool value)
1572
1575
QWidget* parent = 0;
1573
1576
if (doc) parent = (RvDocument *)doc->opaquePointer();
1574
1577
QMessageBox box(parent);
1575
- box.setWindowTitle(tr("Open RV : Presentation Mode"));
1578
+ box.setWindowTitle(tr(UI_APPLICATION_NAME " : Presentation Mode"));
1576
1579
QString baseText = QString("The presentation device (%1/%2) is busy or cannot be opened.")
1577
1580
.arg(d->module()->name().c_str()).arg(d->name().c_str());
1578
- QString detailedText = QString("Open RV failed to open or bind the presentation device (%1/%2)."
1581
+ QString detailedText = QString(UI_APPLICATION_NAME " failed to open or bind the presentation device (%1/%2)."
1579
1582
" Check to see if another program is using the device"
1580
1583
" and that the parameters are valid in the preferences."
1581
1584
" You can start RV with -noPrefs or -resetPrefs if you"
@@ -1597,7 +1600,7 @@ RvApplication::setPresentationMode(bool value)
1597
1600
QWidget* parent = 0;
1598
1601
if (doc) parent = (RvDocument *)doc->opaquePointer();
1599
1602
QMessageBox box(parent);
1600
- box.setWindowTitle(tr("Open RV : Presentation Mode"));
1603
+ box.setWindowTitle(tr(UI_APPLICATION_NAME " : Presentation Mode"));
1601
1604
QString baseText = QString("The presentation device (%1/%2) failed to open.")
1602
1605
.arg(d->module()->name().c_str()).arg(d->name().c_str());
1603
1606
box.setText(baseText + "\n\n" + exc.what());
0 commit comments