examples.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .. _tool_resource_examples:
  2. Resource Browser Examples
  3. =========================
  4. Uploading an icon to a styles folder
  5. ------------------------------------
  6. To upload a file to the global styles folder:
  7. #. Use :guilabel:`Resource Browser` to select :menuselection:`/ --> styles` in the resource tree.
  8. .. figure:: img/upload_select_styles.png
  9. Resource Browser styles folder
  10. #. Click :guilabel:`Upload` button to open :guilabel:`Upload a Resource` dialog.
  11. #. Use :guilabel:`Browse` to select a file from the local file system.
  12. .. figure:: img/upload_icon.png
  13. Upload icon to styles folder
  14. #. Press :guilabel:`OK` to upload the file.
  15. .. figure:: img/upload_icon_complete.png
  16. Resource Browser icon
  17. Creating a control-flow configuration file
  18. ------------------------------------------
  19. Many extensions, such as :ref:`control_flow`, are managed using a configuration file.
  20. To create a :file:`controlflow.properties` file:
  21. #. Use :guilabel:`Resource Browser` to select the root :menuselection:`/` folder in the resource tree.
  22. This can be tricky as the label is not very long.
  23. .. figure:: img/control_root.png
  24. Resource Browser root folder
  25. #. Click :guilabel:`New resource` button to open :guilabel:`Edit a Resource` dialog.
  26. * :guilabel:`Resource`: :kbd:`controlflow.properties`
  27. * :guilabel:`Content`: file contents
  28. .. literalinclude:: /extensions/controlflow/controlflow.properties
  29. :language: properties
  30. #. Press :guilabel:`OK` to create the resource.
  31. .. figure:: img/control_edit.png
  32. Edit a Resource controlflow.properties