Document the new file button

This commit is contained in:
Kovid Goyal 2013-12-12 21:04:21 +05:30
parent 8da8e4ea5a
commit f94cea6a52
2 changed files with 11 additions and 1 deletions

View File

@ -150,7 +150,7 @@ from the OPF file, saving you that chore. However, references in other places
are not removed, you can use the Check Book tool to easily find and
remove/replace them.
Export/import of files
Export of files
^^^^^^^^^^^^^^^^^^^^^^^^
You can export a file from inside the book to somewhere else on your computer.
@ -163,6 +163,14 @@ book, by right clicking on the file again and choosing :guilabel:`Replace with
file...` which will allow you to replace the file in the book with
the previously exported file.
Adding new images/fonts/etc. or creating new blank files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can add a new image, font, stylesheet, etc. from your computer into the
book by clicking :guilabel:`File->New file`. This lets you either import a file
by clicking the :guilabel:`Import resource file` button or create a new blank html file
or stylesheet by simply entering the file name into the box for the new file.
Search & Replace
-------------------

View File

@ -616,6 +616,8 @@ class NewFileDialog(QDialog): # {{{
bb.rejected.connect(self.reject)
self.imp_button = b = bb.addButton(_('Import resource file (image/font/etc.)'), bb.ActionRole)
b.setIcon(QIcon(I('view-image.png')))
b.setToolTip(_('Import a file from your computer as a new'
' file into the book.'))
b.clicked.connect(self.import_file)
self.ok_button = bb.button(bb.Ok)