Files Browser->File Browser

This commit is contained in:
Kovid Goyal 2017-02-28 15:02:12 +05:30
parent c31ff8f30e
commit 3cd8b3f89d
6 changed files with 11 additions and 11 deletions

View File

@ -57,14 +57,14 @@ That is the basic work flow for editing books -- Open a file, make changes,
preview and save. The rest of this manual will discuss the various tools and preview and save. The rest of this manual will discuss the various tools and
features present to allow you to perform specific tasks efficiently. features present to allow you to perform specific tasks efficiently.
The Files Browser The File Browser
------------------ ------------------
.. image:: images/files_browser.png .. image:: images/files_browser.png
:alt: The Files Browser :alt: The File Browser
:class: float-left-img :class: float-left-img
The :guilabel:`Files Browser` gives you an overview of the various files inside The :guilabel:`File Browser` gives you an overview of the various files inside
the book you are editing. The files are arranged by category, with text (HTML) the book you are editing. The files are arranged by category, with text (HTML)
files at the top, followed by stylesheet (CSS) files, images and so on. Simply files at the top, followed by stylesheet (CSS) files, images and so on. Simply
double click on a file to start editing it. Editing is supported for HTML, CSS double click on a file to start editing it. Editing is supported for HTML, CSS
@ -194,7 +194,7 @@ being replaced.
Linking stylesheets to HTML files efficiently Linking stylesheets to HTML files efficiently
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
As a convenience, you can select multiple HTML files in the Files Browser, As a convenience, you can select multiple HTML files in the File Browser,
right click and choose Link stylesheets to have calibre automatically insert the right click and choose Link stylesheets to have calibre automatically insert the
<link> tags for those stylesheets into all the selected HTML files. <link> tags for those stylesheets into all the selected HTML files.
@ -736,7 +736,7 @@ the files inside the EPUB are arranged haphazardly, in different sub-folders.
This tool allows you to automatically move all files into sub-folders based on This tool allows you to automatically move all files into sub-folders based on
their types. Access it via :guilabel:`Tools->Arrange into folders`. Note that their types. Access it via :guilabel:`Tools->Arrange into folders`. Note that
this tool only changes how the files are arranged inside the EPUB, it does not this tool only changes how the files are arranged inside the EPUB, it does not
change how they are displayed in the Files Browser. change how they are displayed in the File Browser.
Importing files in other e-book formats as EPUB Importing files in other e-book formats as EPUB
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -326,7 +326,7 @@ class MainWindowSettings(BasicSettings):
l.addRow(nd) l.addRow(nd)
nd = self('file_list_shows_full_pathname') nd = self('file_list_shows_full_pathname')
nd.setText(_('Show full file paths in the Files Browser')) nd.setText(_('Show full file paths in the File Browser'))
nd.setToolTip('<p>' + _( nd.setToolTip('<p>' + _(
'Showing the full file paths is useful when editing books that contain' 'Showing the full file paths is useful when editing books that contain'
' multiple files with the same file name.' ' multiple files with the same file name.'

View File

@ -134,7 +134,7 @@ class WhereBox(QComboBox):
<dt><b>All style files</b></dt> <dt><b>All style files</b></dt>
<dd>Search in all style (CSS) files</dd> <dd>Search in all style (CSS) files</dd>
<dt><b>Selected files</b></dt> <dt><b>Selected files</b></dt>
<dd>Search in the files currently selected in the Files Browser</dd> <dd>Search in the files currently selected in the File Browser</dd>
<dt><b>Open files</b></dt> <dt><b>Open files</b></dt>
<dd>Search in the files currently open in the editor</dd> <dd>Search in the files currently open in the editor</dd>
<dt><b>Marked text</b></dt> <dt><b>Marked text</b></dt>
@ -1174,7 +1174,7 @@ def validate_search_request(name, searchable_names, has_marked_text, state, gui_
if name is None and where in {'current', 'selected-text'}: if name is None and where in {'current', 'selected-text'}:
err = _('No file is being edited.') err = _('No file is being edited.')
elif where == 'selected' and not searchable_names['selected']: elif where == 'selected' and not searchable_names['selected']:
err = _('No files are selected in the Files Browser') err = _('No files are selected in the File Browser')
elif where == 'selected-text' and not has_marked_text: elif where == 'selected-text' and not has_marked_text:
err = _('No text is marked. First select some text, and then use' err = _('No text is marked. First select some text, and then use'
' The "Mark selected text" action in the Search menu to mark it.') ' The "Mark selected text" action in the Search menu to mark it.')

View File

@ -60,7 +60,7 @@ class WhereBox(QComboBox):
<dt><b>All text files</b></dt> <dt><b>All text files</b></dt>
<dd>Search in all text (HTML) files</dd> <dd>Search in all text (HTML) files</dd>
<dt><b>Selected files</b></dt> <dt><b>Selected files</b></dt>
<dd>Search in the files currently selected in the Files Browser</dd> <dd>Search in the files currently selected in the File Browser</dd>
<dt><b>Open files</b></dt> <dt><b>Open files</b></dt>
<dd>Search in the files currently open in the editor</dd> <dd>Search in the files currently open in the editor</dd>
</dl>''')) </dl>'''))

View File

@ -689,7 +689,7 @@ class Main(MainWindow):
setattr(self, oname.replace('-', '_'), d) setattr(self, oname.replace('-', '_'), d)
return d return d
d = create(_('Files Browser'), 'files-browser') d = create(_('File Browser'), 'files-browser')
d.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea) d.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea)
self.file_list = FileListWidget(d) self.file_list = FileListWidget(d)
d.setWidget(self.file_list) d.setWidget(self.file_list)

View File

@ -122,7 +122,7 @@ class RationalizeFolders(Dialog): # {{{
l.addWidget(le, i + 1, 1) l.addWidget(le, i + 1, 1)
self.la2 = la = QLabel(_( self.la2 = la = QLabel(_(
'Note that this will only arrange files inside the book,' 'Note that this will only arrange files inside the book,'
' it will not affect how they are displayed in the Files Browser')) ' it will not affect how they are displayed in the File Browser'))
la.setWordWrap(True) la.setWordWrap(True)
l.addWidget(la, i + 2, 0, 1, -1) l.addWidget(la, i + 2, 0, 1, -1)
l.addWidget(self.bb, i + 3, 0, 1, -1) l.addWidget(self.bb, i + 3, 0, 1, -1)