const char* assistantName = "assistant";
#ifdef WNT
- const char* extString = ".exe";
const char* binDir = "\\";
const char* binDir1 = "\\..\\";
#else
- const char* extString = "";
- const char* binDir = "/";
- const char* binDir1 = "/";
+ const char* binDir = "/bin/";
+ const char* binDir1 = "/bin/bin/";
#endif
- QString assistantProgName;
- assistantProgName = assistantProgName + assistantName + extString;
-
- QString helper = QCoreApplication::applicationDirPath() + binDir + QString("pqClientDocFinder.txt");
+ QString helper = QString(getenv("PVHOME")) + binDir + QString("pqClientDocFinder.txt");
if(!QFile::exists(helper))
- helper = QCoreApplication::applicationDirPath() + binDir1 + QString("pqClientDocFinder.txt");
+ helper = QString(getenv("PVHOME")) + binDir1 + QString("pqClientDocFinder.txt");
if(QFile::exists(helper)) {
QFile file(helper);
if(file.open(QIODevice::ReadOnly)) {
- assistantExe = file.readLine().trimmed() + assistantProgName;
+ assistantExe = file.readLine().trimmed();
profileFile = file.readLine().trimmed();
+ // CMake escapes spaces, we need to unescape those.
+ assistantExe.replace("\\ ", " ");
+ profileFile.replace("\\ ", " ");
}
}
if(assistantExe.isEmpty()) {
- assistantExe = ::Locate(assistantProgName);
+ assistantExe = ::Locate(assistantName);//assistantExe = ::Locate(assistantProgName);
/*
QString assistant = QCoreApplication::applicationDirPath();
assistant += QDir::separator();
int aPVMnu = createMenu( tr( "MEN_DESK_FILE" ), -1, -1 );
createMenu( OpenFileId, aPVMnu, 5 );
+
+ // Recent Files
+ Implementation->RecentFilesMenu =
+ new pqRecentFilesMenu( *menuMgr()->findMenu( createMenu( tr( "MEN_RECENT_FILES" ), aPVMnu, -1, 5 ) ),
+ getApp()->desktop() );
+ connect( Implementation->RecentFilesMenu, SIGNAL( serverConnectFailed() ),
+ &Implementation->Core, SLOT( makeDefaultConnectionIfNoneExists() ) );
+
createMenu( separator(), aPVMnu, -1, 5 );
createMenu( LoadStateId, aPVMnu, 15 );
// See ParaView src/Applications/Client/MainWindow.cxx
QDockWidget* pipelineBrowserDock = new QDockWidget( tr( "Pipeline Browser" ), desk );
+ pipelineBrowserDock->setObjectName("pipelineBrowserDock");
pipelineBrowserDock->setAllowedAreas( Qt::LeftDockWidgetArea|Qt::NoDockWidgetArea|Qt::RightDockWidgetArea );
desk->addDockWidget( Qt::LeftDockWidgetArea, pipelineBrowserDock );
Implementation->Core.setupPipelineBrowser( pipelineBrowserDock );
Implementation->Core.pipelineMenu().setModels(browser->getModel(), browser->getSelectionModel());
QDockWidget* objectInspectorDock = new QDockWidget( tr( "Object Inspector" ), desk );
+ objectInspectorDock->setObjectName("objectInspectorDock");
objectInspectorDock->setAllowedAreas( Qt::LeftDockWidgetArea|Qt::NoDockWidgetArea|Qt::RightDockWidgetArea );
desk->addDockWidget( Qt::LeftDockWidgetArea, objectInspectorDock );
pqProxyTabWidget* const proxyTab = Implementation->Core.setupProxyTabWidget( objectInspectorDock );
this, SLOT( onPostAccept() ) );
QDockWidget* statisticsViewDock = new QDockWidget( tr( "Statistics View" ), desk );
+ statisticsViewDock->setObjectName("statisticsViewDock");
statisticsViewDock->setAllowedAreas( Qt::BottomDockWidgetArea|Qt::LeftDockWidgetArea|Qt::NoDockWidgetArea|Qt::RightDockWidgetArea );
desk->addDockWidget( Qt::BottomDockWidgetArea, statisticsViewDock );
Implementation->Core.setupStatisticsView( statisticsViewDock );
QDockWidget* animationPanelDock = new QDockWidget( tr( "Animation Inspector" ), desk );
+ animationPanelDock->setObjectName("animationPanelDock");
desk->addDockWidget( Qt::LeftDockWidgetArea, animationPanelDock );
pqAnimationPanel* animation_panel = Implementation->Core.setupAnimationPanel( animationPanelDock );
animation_panel->setCurrentTimeToolbar(toolMgr()->toolBar(createTool( tr("TOOL_CURRENT_TIME_CONTROLS") )));
QDockWidget* lookmarkBrowserDock = new QDockWidget( tr( "Lookmark Browser" ), desk );
+ lookmarkBrowserDock->setObjectName("lookmarkBrowserDock");
QSizePolicy sp( QSizePolicy::Preferred, QSizePolicy::Preferred );
sp.setHorizontalStretch( 0 );
sp.setVerticalStretch( 0 );
Implementation->Core.setupLookmarkBrowser( lookmarkBrowserDock );
QDockWidget* lookmarkInspectorDock = new QDockWidget( tr( "Lookmark Inspector" ), desk );
+ lookmarkInspectorDock->setObjectName("lookmarkInspectorDock");
lookmarkInspectorDock->setAllowedAreas( Qt::RightDockWidgetArea );
desk->addDockWidget( Qt::RightDockWidgetArea, lookmarkInspectorDock );
Implementation->Core.setupLookmarkInspector( lookmarkInspectorDock );
QDockWidget* comparativePanelDock = new QDockWidget( tr( "Comparative View Inspector" ), desk );
+ comparativePanelDock->setObjectName("comparativePanelDock");
desk->addDockWidget( Qt::LeftDockWidgetArea, comparativePanelDock );
pqComparativeVisPanel* cv_panel = new pqComparativeVisPanel( comparativePanelDock );
comparativePanelDock->setWidget(cv_panel);
QDockWidget* animationViewDock = new QDockWidget( tr( "Animation View" ), desk );
+ animationViewDock->setObjectName("animationViewDock");
desk->addDockWidget( Qt::BottomDockWidgetArea, animationViewDock );
Implementation->Core.setupAnimationView( animationViewDock );
QDockWidget* selectionInspectorDock = new QDockWidget( tr( "Selection Inspector" ), desk );
+ selectionInspectorDock->setObjectName("selectionInspectorDock");
selectionInspectorDock->setAllowedAreas( Qt::AllDockWidgetAreas );
desk->addDockWidget( Qt::LeftDockWidgetArea, selectionInspectorDock );
Implementation->Core.setupSelectionInspector( selectionInspectorDock );