Commit Graph

33114 Commits

Author SHA1 Message Date
Kovid Goyal df1d52a7ef Fix positioning of completion popup above widgets 2016-08-11 18:19:58 +05:30
Kovid Goyal c40995b2b6 Use the new search bar widget for the ToC search bar 2016-08-11 17:29:19 +05:30
Kovid Goyal 7852aa3eac Add history to the search bar widget 2016-08-11 10:14:18 +05:30
Kovid Goyal 4815820f9b Merge branch 'regexfn_result_dialog' of https://github.com/Mymei2/calibre 2016-08-11 09:08:14 +05:30
Mymei 2479e304e9 Configurable suppression of replace result dialog (see 1610658)
This is the second part of the proposal filed originally as bug #1609111.

The result dialog, shown after replacements, slows down book editing in some cases.
For example, when the user repeatedly applies his own regex-function to relatively small pre-marked text fragments.

User should have a choice to suppress the result dialog.

This implementation allows for the following switch inside the user replace function:
replace.suppress_result_dialog = True

This way it nicely fits to the first part (see #1609111) and it allows individual configuration from case to case.
Actually, it's not dependent on the other two switches ('call_after_last_match' and 'append_final_output_to_marked'),
so it can be used in combination with any of them or even individually.

This implementation also should not have any impact on other modes of work and it should not change the previous behavior.
It also should not break the backwards compatibility, I hope.
2016-08-10 19:29:29 +02:00
Kovid Goyal 729cdb6306 Make the icon size in the Preferences dialog depend on the UI font size 2016-08-10 15:59:48 +05:30
Kovid Goyal 69d311033e Use the correct technique for getting the current y offset for checking if text is in the header/footer 2016-08-10 15:44:31 +05:30
Kovid Goyal b076795404 Fix dead links 2016-08-10 15:04:11 +05:30
Kovid Goyal 15cf137793 PDF Output: Fix a regression that caused the last page of a chapter to sometimes be dropped from the output 2016-08-10 13:07:02 +05:30
Kovid Goyal c7c1b175f3 Update Private Eye 2016-08-09 07:30:19 +05:30
Kovid Goyal 0cb677fb90 Edit book: Function mode: Allow appending text to the end of the marked text when running function mode search/replace on marked text
Merge branch 'regexfn_return_value' of https://github.com/Mymei2/calibre
2016-08-08 10:03:11 +05:30
Kovid Goyal a699cbc09a PDF Output: Add a new variable _TOP_LEVEL_SECTION_ for use in header/footer templates that resolves to the current top-most section in the Table of Contents 2016-08-08 09:52:46 +05:30
Mymei 27ecd03807 Append final user replace regex-function output to marked text (see #1609111)
Introduces a new flag "append_final_output_to_marked".
Depends also on existing flag "call_after_last_match".

Following two lines at the end of a user replace function will cause,
that the return value of the last additional call (after all replacements
are completed) will be appended to the marked text:
replace.call_after_last_match = True
replace.append_final_output_to_marked = True

TODO: Documentation update is required.
Part: Editing books
Chapter: Function Mode for Search & Replace in the Editor
Section: Having your function called an extra time after the last match is found
2016-08-07 10:30:34 +02:00
Kovid Goyal 324a5a2635 Do not show an error if the user tries to quit calibre while editing a cell in the book list. Instead, just silently abort the edit. See #1610539 (Data error when closing calibre) 2016-08-07 06:46:14 +05:30
Kovid Goyal c4d05d8a36 ... 2016-08-06 09:01:58 +05:30
Kovid Goyal e54f13b2f0 Update Prospect Magazine 2016-08-05 07:42:31 +05:30
Kovid Goyal a16d159724 Update De Standaard 2016-08-05 07:10:57 +05:30
Kovid Goyal fd60afd97e E-book viewer: Fix 0px margins not being respected when the option to override book margins is turned off. See #1608458 (ebook viewer: epub page margins bigger each chapter) 2016-08-04 05:22:04 +05:30
Kovid Goyal ece360f04c Linux/OSX: Shutdown gracefully on receiving interrupt or terminate signals 2016-08-03 11:14:39 +05:30
Kovid Goyal 57efd828ef Update RapydScript 2016-08-03 07:51:00 +05:30
Kovid Goyal 0e961be543 More Qt 5.7 compatibility fixes 2016-08-01 09:19:28 +05:30
Kovid Goyal fc1676e30f Another Qt 5.7 compatibility fix 2016-08-01 08:31:05 +05:30
Kovid Goyal 32fd1c2e7f Ignore the auto_proxy env var since we dont support pac files in any case 2016-08-01 00:45:48 +05:30
Kovid Goyal 5ef668a010 ... 2016-07-29 21:45:16 +05:30
Kovid Goyal f035e218de Data News by oCkz7bJ_ 2016-07-29 21:30:45 +05:30
Kovid Goyal 0bf25669f5 ... 2016-07-29 21:29:49 +05:30
Kovid Goyal 949187465d Update Jot Down 2016-07-29 21:29:03 +05:30
Kovid Goyal da9811c933 Update Weblogs SL 2016-07-29 21:28:06 +05:30
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30
Kovid Goyal 643977ffa6 Update Hola 2016-07-29 11:00:39 +05:30
Kovid Goyal 25e60aa62a Update El Correo 2016-07-29 10:55:21 +05:30
Kovid Goyal a585b65f3b Finish up EditWithComplete 2016-07-28 10:43:36 +05:30
Kovid Goyal 7c0d90f7b4 More work on the completion popup 2016-07-27 20:07:05 +05:30
Kovid Goyal 193db4879e Framework for easily developing widgets 2016-07-27 14:09:23 +05:30
Kovid Goyal c572d2436e Dont import regex on calibre startup, since importing it seems to fail for unknown reasons on some linux installs 2016-07-27 13:05:46 +05:30
Kovid Goyal 554cdeb746 ... 2016-07-27 12:44:33 +05:30
Kovid Goyal 447af0d9ef Move add_extra_css into the dom module 2016-07-27 12:42:10 +05:30
Kovid Goyal 14acd78494 Ignore close events that occur after shutdown has started 2016-07-27 12:06:52 +05:30
Kovid Goyal 34bbb6ab17 ... 2016-07-26 18:02:42 +05:30
Kovid Goyal 086f16714f ... 2016-07-26 12:50:54 +05:30
Kovid Goyal aef8a2773c Merge branch 'master' of https://github.com/badshah400/calibre 2016-07-26 09:43:35 +05:30
Atri Bhattacharya 5729f9ec6c Strip '.' from end of summary. 2016-07-26 01:33:13 +02:00
Atri Bhattacharya 5c38d151fb Different name fields for each appdata entry. 2016-07-26 01:02:51 +02:00
Atri Bhattacharya ece5b74dae Add name and summary to appdata file.
Mark summary for translation.
2016-07-26 00:47:42 +02:00
Kovid Goyal 2b20436621 Merge branch 'master' of https://github.com/cbhaley/calibre 2016-07-24 20:22:55 +05:30
Charles Haley 6439b98723 Comments custom columns:
- collapse the two booleans controlling the heading into one string
- allow short-text to appear on the right in book details
- make the new server and book details do (more-or-less) the same thing with headings
- use different CSS for short-text and long-text.

I changed the name of the show_heading property to heading_position to ensure the properties had no odd values, making it easier to test.
2016-07-24 12:42:50 +02:00
Kovid Goyal 0b0f6e6b9d Make heading-on-side for comments columns configurable 2016-07-24 09:42:28 +05:30
Kovid Goyal b49b1e81a9 Oops, forgot to remove a no longer needed mixin 2016-07-23 22:45:58 +05:30
Kovid Goyal 531f233a24 Dont use a separate global variable for the UA list 2016-07-23 17:01:30 +05:30
Kovid Goyal 560ebceac4 Ignore ECONNRESET when reading from test server 2016-07-23 16:59:41 +05:30