summaryrefslogtreecommitdiff
path: root/graphics/paraview/011_doc_path.diff
blob: 44250005f54fdec5405a32bd18c69def2e4f7fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- ParaViewCore/ClientServerCore/Default/vtkPVFileInformation.cxx.orig	2018-04-07 06:03:33.000000000 +1000
+++ ParaViewCore/ClientServerCore/Default/vtkPVFileInformation.cxx	2018-04-09 22:02:03.621998659 +1000
@@ -1238,7 +1238,8 @@
 //-----------------------------------------------------------------------------
 std::string vtkPVFileInformation::GetParaViewDocDirectory()
 {
-  return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/doc";
+  /* return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/doc"; */
+  return "/usr/doc/paraview-" PARAVIEW_VERSION_FULL ;
 }
 
 //-----------------------------------------------------------------------------
--- Qt/ApplicationComponents/pqParaViewMenuBuilders.cxx.orig	2018-04-07 06:03:33.000000000 +1000
+++ Qt/ApplicationComponents/pqParaViewMenuBuilders.cxx	2018-04-10 10:03:16.737203216 +1000
@@ -464,6 +464,7 @@
     (menu.addAction(QIcon(":/pqWidgets/Icons/pdf.png"), "Getting Started with ParaView")
                                   << pqSetName("actionGettingStarted")));
 
+/* Original
   // ParaView Guide
   QAction* guide = menu.addAction(QIcon(":/pqWidgets/Icons/pdf.png"), "ParaView Guide");
   guide->setObjectName("actionGuide");
@@ -472,6 +473,12 @@
                                      "download.php?submit=Download&version=v5.5&type=binary&os="
                                      "Sources&downloadFile=ParaViewGuide-5.5.0.pdf"),
     guide);
+*/
+/* Now use local Guide */
+  QString paraViewGuideFile = documentationPath + "/Guide.pdf";
+  new pqDesktopServicesReaction(QUrl::fromLocalFile(paraViewGuideFile),
+    (menu.addAction(QIcon(":/pqWidgets/Icons/pdf.png"), "ParaView Guide")
+                                  << pqSetName("actionGuide")));
 
 #ifdef PARAVIEW_USE_QTHELP
   // Help
@@ -482,12 +489,19 @@
   // -----------------
   menu.addSeparator();
 
+/* Originally
   // ParaView Tutorial notes
   new pqDesktopServicesReaction(QUrl("https://www.paraview.org/paraview-downloads/"
                                      "download.php?submit=Download&version=v5.5&type=binary&os="
                                      "Sources&downloadFile=ParaViewTutorial.pdf"),
     (menu.addAction(QIcon(":/pqWidgets/Icons/pdf.png"), "ParaView Tutorial")
                                   << pqSetName("actionTutorialNotes")));
+*/
+/* Now use local Tutorial */
+  QString paraTutorialFile = documentationPath + "/Tutorial.pdf";
+  new pqDesktopServicesReaction(QUrl::fromLocalFile(paraTutorialFile),
+    (menu.addAction(QIcon(":/pqWidgets/Icons/pdf.png"), "ParaView Tutorial")
+                                  << pqSetName("actionTutorial")));
 
   // Sandia National Labs Tutorials
   new pqDesktopServicesReaction(QUrl("http://www.paraview.org/Wiki/SNL_ParaView_4_Tutorials"),