Browse files

pres icon and file associations

  • Loading branch information...
1 parent d6569dd commit 903e86ce1ee4fcddb89c54cb43c8696d82902353 @jjallaire jjallaire committed Apr 4, 2013
View
3 package/win32/CMakeLists.txt
@@ -32,6 +32,7 @@ set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
WriteRegStr HKCR 'Applications\\\\rstudio.exe\\\\SupportedTypes' '.Rmd' ''
WriteRegStr HKCR 'Applications\\\\rstudio.exe\\\\SupportedTypes' '.Rmarkdown' ''
WriteRegStr HKCR 'Applications\\\\rstudio.exe\\\\SupportedTypes' '.Rhtml' ''
+ WriteRegStr HKCR 'Applications\\\\rstudio.exe\\\\SupportedTypes' '.Rpres' ''
WriteRegStr HKCR 'Applications\\\\rstudio.exe\\\\SupportedTypes' '.Rproj' ''
WriteRegStr HKCR '.R\\\\OpenWithList\\\\rstudio.exe' '' ''
@@ -42,6 +43,7 @@ set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
WriteRegStr HKCR '.Rmd\\\\OpenWithList\\\\rstudio.exe' '' ''
WriteRegStr HKCR '.Rmarkdown\\\\OpenWithList\\\\rstudio.exe' '' ''
WriteRegStr HKCR '.Rhtml\\\\OpenWithList\\\\rstudio.exe' '' ''
+ WriteRegStr HKCR '.Rpres\\\\OpenWithList\\\\rstudio.exe' '' ''
WriteRegStr HKCR '.Rproj\\\\OpenWithList\\\\rstudio.exe' '' ''
WriteRegStr HKCR '.tex\\\\OpenWithList\\\\rstudio.exe' '' ''
WriteRegStr HKCR '.md\\\\OpenWithList\\\\rstudio.exe' '' ''
@@ -71,6 +73,7 @@ set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
DeleteRegKey HKCR '.Rmd\\\\OpenWithList\\\\rstudio.exe'
DeleteRegKey HKCR '.Rmarkdown\\\\OpenWithList\\\\rstudio.exe'
DeleteRegKey HKCR '.Rhtml\\\\OpenWithList\\\\rstudio.exe'
+ DeleteRegKey HKCR '.Rpres\\\\OpenWithList\\\\rstudio.exe'
DeleteRegKey HKCR '.Rproj\\\\OpenWithList\\\\rstudio.exe'
DeleteRegKey HKCR '.tex\\\\OpenWithList\\\\rstudio.exe'
DeleteRegKey HKCR '.md\\\\OpenWithList\\\\rstudio.exe'
View
1 src/cpp/core/FilePath.cpp
@@ -414,6 +414,7 @@ MimeType s_mimeTypes[] =
{ "Rnw", "text/x-r-sweave"},
{ "Rmd", "text/x-r-markdown"},
{ "Rhtml", "text/x-r-html"},
+ { "Rpres", "text/x-r-presentation"},
{ "Rout", "text/plain" },
{ "po", "text/plain" },
{ "pot", "text/plain"},
View
15 src/cpp/desktop/Info.plist.in
@@ -124,6 +124,21 @@
<dict>
<key>CFBundleTypeExtensions</key>
<array>
+ <string>Rpres</string>
+ <string>rpres</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>RPresentation.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>R Presentation File</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ <key>LSIsAppleDefaultForType</key>
+ <true/>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
<string>tex</string>
</array>
<key>CFBundleTypeIconFile</key>
View
BIN src/cpp/desktop/resources/freedesktop/icons/128x128/text-x-r-presentation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/cpp/desktop/resources/freedesktop/icons/16x16/text-x-r-presentation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/cpp/desktop/resources/freedesktop/icons/24x24/text-x-r-presentation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/cpp/desktop/resources/freedesktop/icons/256x256/text-x-r-presentation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/cpp/desktop/resources/freedesktop/icons/32x32/text-x-r-presentation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/cpp/desktop/resources/freedesktop/icons/512x512/text-x-r-presentation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN src/cpp/desktop/resources/freedesktop/icons/64x64/text-x-r-presentation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 src/cpp/desktop/resources/freedesktop/rstudio.desktop.in
@@ -5,6 +5,4 @@ Type=Application
Terminal=false
Name=RStudio
Categories=Development;
-MimeType=text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-r-markdown;text/x-r-html;application/x-r-data;application/x-r-project;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/html;text/css;text/javascript;
-
-
+MimeType=text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-r-markdown;text/x-r-html;text/x-r-presentation;application/x-r-data;application/x-r-project;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/html;text/css;text/javascript;
View
7 src/cpp/desktop/resources/freedesktop/rstudio.xml
@@ -38,6 +38,13 @@
<glob pattern="*.rhtml"/>
</mime-type>
+ <mime-type type="text/x-r-presentation">
+ <sub-class-of type="text/plain"/>
+ <comment>R Presentation File</comment>
+ <glob pattern="*.Rpres"/>
+ <glob pattern="*.rpres"/>
+ </mime-type>
+
<mime-type type="application/x-r-data">
<comment>R Data File</comment>
<glob pattern="*.RData"/>
View
BIN src/cpp/desktop/resources/icns/RPresentation.icns
Binary file not shown.
View
1 src/gwt/src/org/rstudio/core/client/files/FileSystemItem.java
@@ -365,6 +365,7 @@ public final native StatusAndPathInfo getSVNStatus() /*-{
MIME_TYPES.put( "rnw", "text/x-r-sweave");
MIME_TYPES.put( "rmd", "text/x-r-markdown");
MIME_TYPES.put( "rhtml", "text/x-r-html");
+ MIME_TYPES.put( "rpres", "text/x-r-presentation");
MIME_TYPES.put( "rout", "text/plain");
MIME_TYPES.put( "po", "text/plain");
MIME_TYPES.put( "pot", "text/plain");

0 comments on commit 903e86c

Please sign in to comment.