Commit graph

722 commits

Author SHA1 Message Date
Youness Alaoui 5d0fdb7a80 fullscreen: Add option to remove spellcheck button from top panel 2019-04-02 11:42:25 -06:00
Youness Alaoui 9312427e13 Add clock widget to the bottom panel and add setting for showing seconds
The bottom panel now has a clock widget, and the myPanel has a addSetting method
in order to add non-widget settings to the popup menu.
2019-04-02 11:42:25 -06:00
Youness Alaoui 58ab998ad9 Add ability to save fullscreen panel settings
This includes the auto-hide of each panel as well as the shown/hidden status
of each of the displays. Now that it's consistent, it makes it so much more useful.
2019-04-02 11:42:25 -06:00
Youness Alaoui 932550be89 fullscreen: Add 'displays' to the bottom panel that can be shown/hidden.
This is an experimental idea. We can add to a myPanel a list of widgets to show/hide
if the user wants to, via the context menu. This can be very useful for a user who
wants to disable auto-hide for the bottom panel but remove the theme selector which
can be useless to have open permanently.

This is the first step in fixing #234. Would need the auto-hide and the displays
configurations to be saved in settings though before it can become usable.
2019-04-02 11:42:25 -06:00
Youness Alaoui 4a947a95ac Add support for IPython Jupyter QT Console as a debugging aid
If manuskript is launched with its last argument set to "--console" an
interactive console opens up to help debug the application.
The IPython, qtconsole and matplotlib libraries must be installed for it
to work and they won't get imported unless the argument is passed to the app.
2019-03-29 10:37:53 -06:00
Youness Alaoui 7c8458b0da Fix color scheme of fullscreen editor
Color scheme was inverted if foreground was transparent, bug and fix provided
by @tildagail [1] and the text on the left side panel was ignoring text color
settings, making it unreadable in dark themes, as reported by @worstje in #527

[1] https://github.com/olivierkes/manuskript/issues/527#issuecomment-469578130
2019-03-29 10:22:55 -06:00
Jan Wester 33ac127173 Directory entries in ZIP break loading code
While tackling issue #529, I stumbled across the odd behaviour that
re-compressing the archive with 7-Zip broke what should be a valid
Manuskript project.

After investigation it turned out that the code that loads the texts
sensibly expects there to only be files tracked in the files dictionary.

It is completely valid for a zip file to contain entries describing the
contained directories. The logical fix is to simply avoid adding these
directory entries to our files dictionary in the first place.
2019-03-12 14:44:51 -06:00
Youness Alaoui 143500b296 Add ability to add new background images through UI.
The Cork background and fullscreen theme backgrounds images can now be added
by using the "+" icon from the combobox. Once a file is added, the combobox
is repopulated and the new image is selected.

Note on line 871, in updateThemeBackground, there was a bug where it was using
self.cmbCorkImage instead of self.cmbThemeBackgroundImage

Fixes #399
2019-03-07 10:43:35 -07:00
Youness Alaoui a6942b7923 Fix crash when right-clicking twice on fullscreen panel
If you right click once on the fullscreen panel and the context menu pop up
then you right click again somewhere else on the panel *while the previous
context menu is still visible* then it will cause a crash with :
"Windows fatal exception: access violation"
It seems to be caused by a crash in the QT event loop, trying to delete the
existing QMenu within an event handler.
2019-02-28 10:58:23 -07:00
Youness Alaoui 3f217257c4 Fix background of popup menus that was transparent (black)
In the properties view, the context menu on the title line would be black
making its content unreadable. Same in the filter line of the "Set Custom icon"
window on the outline's context menu.
2019-02-27 10:49:05 -07:00
Curtis Gedak 4fdacc24f7 Ensure text file open methods use utf-8 encoding
Several crashes were encountered opening files on operating systems
that do not default to UTF-8 encoding, such as Windows.  In each case
the project file appears to have become corrupted.  Because the only
reports to date have been on Windows, attempt to fix by specifying
utf-8 encoding for all text file open methods.

See issues #331, #470, and #502.
2019-02-27 09:30:16 -07:00
Youness Alaoui 7928ea2796 Fix corkView background image on Windows
Windows path to the image has '\' path separator instead of '/' which makes
the stylesheet fail. Background images don't appear and console gets spammed with :
Could not parse stylesheet of object corkView(0x27248eb6900, name = "corkView")
2019-02-26 13:25:30 -07:00
Youness Alaoui c3c9eef415 Do not default spellcheck to True for new editor views
default spellcheck to the settings value instead. Otherwise any new editor tab
will have spellcheck enabled regardless of setting.

Fixes #474
2019-02-25 12:58:00 -07:00
Youness Alaoui 84d0979ffb Set editor theme stylesheet to QTextEdit only.
This prevents any child widget from inheriting the same stylesheet,
more specifically, the context menu of the full screen editor will now
appear normal instead of being black text on black background, which made
it unreadable.

Fixes #440
2019-02-25 11:15:16 -07:00
Youness Alaoui 4a9937f041 Do not use a lambda function in the fullScreenEditor's myScrollBar timer signal
The lambda function will keep a reference to the scrollbar python object preventing it
from getting destroyed when the QScrollbar is destroyed. This causes the underlying
QT widget to be freed while the python object still exists, therefore the timer itself
doesn't get stopped/cleaned, so the timer will get called and cause a crash with :
"RuntimeError: Wrapped C/C++ object of type myScrollbar has been deleted"

To reproduce, press F11 repeatedly while scrolling.
2019-02-25 10:22:48 -07:00
Youness Alaoui c7605b5819 Don't crash if a typo is made in the exporter's regular expression.
When a regexp error is thrown, cancel the export and show an info dialog
with the error message to the user. Fixes #488
2019-02-15 12:49:22 -07:00
Curtis Gedak baeb5f4653 2nd try to fix macOS X blank screen when leaving fullscreen editor mode
See issue #24.

The first attempt to fix this problem was with commit:

    Try to fix macOS X blank screen when leaving editor fullscreen mode
    1ae0a77464
2019-02-12 11:23:29 -07:00
Youness Alaoui 9b774d327f Fix crash when right clicking a word in editor and enchant is not installed. 2019-02-11 12:35:23 -07:00
Youness Alaoui d7203ddacf Fix crash when previewing pandoc HTML with QTextEdit as web rendering engine. 2019-02-11 10:27:35 -07:00
Youness Alaoui caed3e9224 Fix crash when 7 pound signs are written alone on a line.
The code would look for trailing pound signs and would
count all the way to the beginning and beyond, resulting
in an out of bounds exception.
2019-02-10 09:54:50 -07:00
Curtis Gedak 1ae0a77464 Try to fix macOS X blank screen when leaving editor fullscreen mode
Ensure showNormal() is called after leaving showFullScreen().

See issue #24.

References:

https://stackoverflow.com/questions/31666744/pyqt5-can-not-close-a-topmost-fullscreen-qdialog-on-mac-osx

https://doc.qt.io/qt-5/qwidget.html#showFullScreen
  - To return from full-screen mode, call showNormal().

https://pythonprogramminglanguage.com/destructor/
2019-02-09 10:27:44 -07:00
Curtis Gedak f75bc69dd7 Fix spelling mistake "chose" should be "choose"
Mentioned in issue #470
2019-02-07 12:34:57 -07:00
Curtis Gedak 1cc7146aad Avoid crash on import
See issue #470
2019-02-07 12:34:57 -07:00
nephlm 592a4fddb7 #459 - remove debug/dead code 2019-01-22 00:41:32 -05:00
nephlm 4f2d57e86f Issue 459 - session progress/goal window 2019-01-22 00:37:22 -05:00
Allan Nordhøy f731e19e00 Spelling: Manuscript, may have to be restarted (#454)
* Spelling: Manuscript, may have to be restarted
2019-01-10 10:26:14 -07:00
LingSamuel 4ded8d29e0 fix #411: translator won't work in some window, such as settings 2018-12-09 11:35:34 -07:00
LingSamuel 3d6080f3c0 fix #428: zh translation suffix doesn't match system locale; new behavior: load translation from settings first 2018-12-09 11:19:26 -07:00
LingSamuel cbf35fa373 Open/Save As/Create last accessed directory 2018-12-07 12:01:33 -07:00
LingSamuel 7bbc112d25 Add last accessed directory 2018-12-07 12:01:33 -07:00
Curtis Gedak 0cbf337f09 ========== manuskript-0.8.0 ========== 2018-12-05 11:39:28 -07:00
Curtis Gedak 92b0f016ba Add new language translations to the Settings window 2018-12-05 10:41:33 -07:00
Curtis Gedak 528ea130ee Remove unimplemented snowflake view mode menu entry
The menu option "View -> Mode -> Snowflake" has not been implemented.
This greyed out / disabled option has caused some confusion for users.
Remove the snowflake menu option to avoid confusion.

Closes issue #419
See also earlier issue #45
2018-11-30 09:42:42 -07:00
Curtis Gedak 5ea37bd192 Remove plot resolution step key bindings Ctrl+Enter and Ctrl+Backspace
Many applications, including Manuskript in the Editor pane, use the
keyboard shortcut 'Ctrl+Backspace' to delete the previous word.
However in the Plot pane Manuskript uses 'Ctrl+Backspace' to delete a
plot resolution step.

Fix this inconsistent behaviour by removing the keyboard shortcuts for
'Ctrl+Enter' and 'Ctrl+Backspace' from the Plot pane.

Closes issue #375
2018-11-26 11:05:46 -07:00
Curtis Gedak 98a629454e Add support for pandoc v2 command line options
Now both pandoc v1 and v2 are supported.

Closes issue #304
2018-11-20 10:21:48 -07:00
Curtis Gedak 60b58d9658 Fix Python 3.7 DeprecationWarning use local.format_string() messages
Fix by replacing locale.format() with locale.format_string().
2018-11-16 12:52:56 -07:00
Curtis Gedak 7f592bae41 Fix Python 3.6 DeprecationWarning invalid escape sequence messages
Fix by ensuring that regular expressions are constructed using either
raw string literals [1] or double backslashes [2].

[1] https://stackoverflow.com/questions/44325948/pandas-invalid-escape-sequence-after-update
[2] https://github.com/joblib/joblib/pull/526

Note that python only shows the deprecation warnings on initial run [3].

[3] https://bugs.python.org/issue30091

To work around this issue, remove the cached bytecode with:

    find . -name "__pycache__" -exec rm -rf {} \;

Then to prevent compiling to bytecode add the "-B" option to python:

    python3 -B -m pytest -vs
2018-11-16 12:52:56 -07:00
Curtis Gedak af53102e77 Fix pytest warning about duplicate name when running tests
When running pytest on kubuntu 16.04 the following warning was displayed:

    $ python3 -m pytest -v
    ...
    ./manuskript/load_save/version_1.py:319: \
    UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md'
      zf.writestr(filename, content, compress_type=compression)

The error was tracked down using the following pytest invocation:

    $ python3 -m pytest -v -W error::UserWarning

This invocation showed 4 occurrences similar to the following warning:

    self = <zipfile.ZipFile filename='/tmp/tmpgs_sjpzr.msk' mode='w'>
    zinfo = <[AttributeError("compress_size") raised in repr()] \
    ZipInfo object at 0x7f3cc0124588>

        def _writecheck(self, zinfo):
            """Check for errors before writing a file to the archive."""
            if zinfo.filename in self.NameToInfo:
                import warnings
    >           warnings.warn('Duplicate name: %r' % zinfo.filename, \
                stacklevel=3)
    E           UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md'

These warnings arose in the following 4 tests:

  - test_references
  - test_autoLoad
  - test_loadExportWiget
  - test_loadImportWiget

The cause of the issue is that in manuskript/tests/conftest.py, the
mainWindow::closeProject() method is called to close the project, but
the project was never loaded.  This meant the zip file setting
defaulted to True, when in fact the Acts sample project is not stored
in a single zip project file.

Fix by removing the call to MW.closeProject() before the project is
loaded.
2018-11-16 12:52:09 -07:00
Curtis Gedak b0774b4149 Fix segmentation fault on import
Manuskript started to segmentation fault on import starting with Qt 5.11.

I found the following link and the Qt bug links within to be useful in
my trouble-shooting efforts.

[Qt 5.11] Various Applications Segfault in 'libfm-qt'
https://github.com/lxqt/libfm-qt/issues/164

Closes issue #402
2018-11-11 13:31:06 -07:00
Curtis Gedak 026861ee87 Fix plot importance changes if delete earlier plot and click other plots
The root cause was a mismatch between plot IDs and plot model rows.

This issue would appear when a plot was deleted such that the plot IDs
did not match the plot model row numbers and different plots had
different importance levels.  The problem would not occur if the most
recently added plot was deleted.

The plot ID / plot model row mismatch was introduced with the
following commit:

    Fixes: add plot then choose new plot does not set \
    importance slider
    3569f78928

Closes issue #404
2018-11-05 09:29:53 -07:00
Curtis Gedak 729489a77e Improve pandoc compile/export return code handling
See issue #186
2018-10-31 10:31:53 -06:00
RiderExMachina 41e9467267 Fix crash in Outline mode with multi-item select #355
Closes issue #355 and pull request #385
2018-10-14 11:10:46 -06:00
Curtis Gedak 21423734e9 Revert "Minor grammar fixes"
This reverts commit 2fdf8c64bf.

The problem introduced by the commit is that the Editor pane would
incorrectly label book elements with the plural form of a word.  For
example "Books 4", "Sections 2", "Chapters 1", or "Scenes 3".  Hence
the need to undo the commit.

Closes issue #383.
2018-09-20 14:57:44 -06:00
RiderExMachina 5f8168fb37 Moved incorrectly placed parameter to correct place. Closes #377. 2018-09-17 23:32:10 -07:00
RiderExMachina 2fdf8c64bf Minor grammar fixes
Fix grammar regarding multiple of an object.
2018-09-11 10:32:51 -06:00
Lech Baczynski 3fdef2b800 Fix for compile/export crash (error when saving in cp1250) #331
See issue #331 and pull request #340
2018-08-21 10:55:53 -06:00
Curtis Gedak 97e4679d83 ========== manuskript-0.7.0 ========== 2018-08-15 09:25:21 -06:00
Curtis Gedak 378f03c0b6 Clear Cheatsheet results when filter text empty 2018-08-14 09:04:00 -06:00
Curtis Gedak 713528a239 Fix crash if Cheatsheet filter term not found and Enter key pressed #354
See issue #354.
2018-08-14 09:04:00 -06:00
Curtis Gedak 0d84202da6 Add new language translations to the Settings window 2018-08-06 11:27:29 -06:00
Lech Baczynski e15cb80847 - formatting characters count according to locale, as in words count 2018-04-10 07:11:32 +02:00
Lech Baczynski c6da77baf9 - adding characters count. Implementing #334 2018-04-09 11:13:01 +02:00
Windspar 67db180c25 Fixes #217 - segfault when pasting text with focus mode enabled 2018-03-08 11:19:25 -07:00
JackXVII d3afa11ceb Remove _updateIndexFromID from textEditView
It is not used anymore.
2018-03-03 12:53:52 -07:00
JackXVII 3a21ddd137 Use QPersistentModelIndex in textEditView
It is much simpler than catching rowsAboutToBeDeleted signal from model. Also
it fixes #306.
2018-03-03 12:53:52 -07:00
Curtis Gedak 63b471e10d Make word match for spell check exclude underscore from words
See issue #283.

Adds (?!_) to perform negative lookahead to exclude "_" from pattern match.

https://stackoverflow.com/questions/14858346/regular-expressions-how-to-express-w-without-underscore
2018-02-20 10:51:57 -07:00
Windspar 4638ba878f stop crash when click btnGoUp and current editor is None 2018-02-18 14:06:33 -05:00
Curtis Gedak 43c077552a Avoid crash on spellcheck by ensuring enchant dictionary exists
See issue #273.
2018-02-12 10:59:14 -07:00
Allan Nordhøy 62a8a136c0 Spelling: LaTeX, Pandoc, XeLaTeX, Unicode, HTML. https link
See pull request #310.
2018-02-12 10:52:35 -07:00
Sebastian Rasmussen dde836e0f4 Fix typos that are visible to end-users. 2018-01-29 10:30:41 -07:00
Sebastian Rasmussen dfe88a9681 Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
Olivier Keshavjee 4a9dc00381 Fixes #307: Overlay status bar prevents access to add/delete world item icons when displaying a message 2018-01-22 18:19:22 +01:00
Olivier 30a49a44d4
Merge pull request #302 from gedakc/issue-281-hidden-file-crash-open-project
Skip loading directory and file names that begin with a period
2018-01-18 10:18:58 +01:00
JackXVII 8a9044b4ae Fix World items positional insertion 2018-01-15 22:02:43 +03:00
JackXVII 43df0b3d8a Fix World sub-items disappearing 2018-01-15 18:29:21 +03:00
Curtis Gedak 60cc6c59aa Skip loading directory and file names that begin with a period
See issue #281.

When loading a project that has the setting **Save to one single
file** disabled, Manuskript tries to read all directories and files
under the project directory.

Manuskript expects all files to contain valid unicode characters.

However if a file containing non-unicode characters is read then
Manuskript will crash.

The error message displayed on the console is similar to the
following:

----- begin snippet -----
Traceback (most recent call last):
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/ui/welcome.py", line 134, in loadRecentFile
    self.mw.loadProject(act.data())
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/mainWindow.py", line 566, in loadProject
    self.loadDatas(project)
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/mainWindow.py", line 793, in loadDatas
    errors = loadSave.loadProject(project)
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/loadSave.py", line 66, in loadProject
    v1.loadProject(project, zip=isZip)
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/load_save/version_1.py", line 657, in loadProject
    files[os.path.join(p, f)] = fo.read()
  File "/usr/lib/python3.5/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3131: invalid start byte
----- end snippet -----

There are at least two known situations in which files with
non-unicode characters can arise:

A. The project is on Mac OS X and the operating system automatically
   creates a .DS_Store file.

B. The project is under git version control and contains a .git
   subdirectory.

This enhancement prevents the Manuskript crash on project load by
ignoring all directory and file names that start with a period.
2018-01-14 11:51:50 -07:00
JackXVII fe617f871f Adds moving World items. #219 2018-01-11 23:44:50 +03:00
JackXVII 42bda30331 Fix bug in worldModel
Because of this bug treeView could not properly hide the columns
2018-01-11 22:36:42 +03:00
Olivier Keshavjee 3c140d755f Adds "Sentence mode" to Focus mode. #259 2017-12-15 20:56:40 +01:00
Olivier Keshavjee 19f8938852 Corrects bug in links tooltips 2017-12-15 20:12:51 +01:00
Olivier Keshavjee a6a82d1bba Clickable links: adds tip to tooltip 2017-12-14 15:06:51 +01:00
Olivier Keshavjee cd8ad6cc3a Adds: clickable links, and display images as tooltips (#22, #215) 2017-12-14 14:55:14 +01:00
Olivier Keshavjee e76b9b4a1c Another take on status bar (#262) 2017-12-08 10:20:33 +01:00
Olivier Keshavjee 1764baf292 Fixes a bug introduced when fixing #261 2017-12-06 18:53:42 +01:00
Olivier Keshavjee d521fc0771 Fixes #261: Manuskript response slow with recent addition of focus mode 2017-12-06 18:41:26 +01:00
Olivier Keshavjee 5e2ac47dcc Fixes #260: Organize Menu is not disabled on startup 2017-12-06 08:55:52 +01:00
Olivier Keshavjee 46384b68eb Fixes bugs in focus mode (#259) 2017-12-05 23:45:16 +01:00
Olivier Keshavjee 826d53933f Adds #259: Focus Mode (poke #234) 2017-12-05 23:18:32 +01:00
Olivier Keshavjee 3998ed68d3 Fixes #249: Ctrl+tab gets trapped in Debug tab 2017-12-04 14:50:09 +01:00
Olivier Keshavjee 3cdb2f8f25 Hides Navigation Dock's title bar 2017-12-04 14:18:58 +01:00
Olivier Keshavjee 17f341fe85 Hides debug tab, and fixes #253: French Tab in English Mode 2017-12-04 14:12:00 +01:00
Olivier Keshavjee 25911876eb Fixes #246: Index card status can spillover 2017-12-04 13:52:58 +01:00
Olivier Keshavjee 9cbd8887c7 Fixes #240: Cannot write a summary on a plot resolution step 2017-12-04 13:27:57 +01:00
Olivier Keshavjee 9c635301b5 Adds #223: command line parameter to open project 2017-11-30 17:47:23 +01:00
Olivier Keshavjee ca39121826 UI tweaks 2017-11-30 17:18:53 +01:00
Olivier Keshavjee 92e5c351b7 Adds: smart formatting on keypress 2017-11-30 13:21:40 +01:00
Olivier Keshavjee f3156f5bbd Adds formatting support to MDEditView 2017-11-30 13:12:55 +01:00
Olivier Keshavjee b1192101ce Adds Format menu to mainWindow ui 2017-11-30 11:11:01 +01:00
Olivier Keshavjee 3527f4ad8a Merge branch 'master' into develop 2017-11-30 10:13:25 +01:00
Olivier Keshavjee d32ee37e84 Hopefully last tweaks in context menu (#229) and optimization 2017-11-29 23:16:01 +01:00
Olivier Keshavjee e62b473c47 Adds: settings for applicatoin font size 2017-11-29 14:34:25 +01:00
Olivier Keshavjee 82c24498bb Tweaks Context menu to mirror Edit menu #229 2017-11-29 10:24:07 +01:00
Olivier Keshavjee c504cb510e Fixes fullScreen scrollbar range 2017-11-28 19:58:23 +01:00
Olivier Keshavjee 91989269f1 Fixes a bug in highlighter that makes it slow 2017-11-28 16:28:37 +01:00
Olivier Keshavjee 2b1465a1f3 Adds #175: Typewriter scrolling 2017-11-28 10:26:43 +01:00
Olivier Keshavjee b97cbdc1c3 Fixes a bug: click in treeview background does not deselect any more 2017-11-27 22:41:44 +01:00
Olivier Keshavjee f999d6b33d Fixes bug in welcome: cannot chose template with translation 2017-11-27 22:19:16 +01:00
Olivier Keshavjee cb79e504e7 Merge branch 'master' into develop 2017-11-27 21:53:37 +01:00
Olivier Keshavjee c2dcbf56a0 Adds new markdown highlighter and many little tweaks 2017-11-27 21:35:32 +01:00
Olivier Keshavjee 9baea11791 Fixes FullScreenEditor with MDEditView 2017-11-27 21:13:44 +01:00
Olivier Keshavjee 7b29d332c5 Removes textFormat panel (bold, italic, etc. buttons) 2017-11-27 20:58:02 +01:00
Olivier Keshavjee 79ef970bfd Autohide statusbar 2017-11-27 15:09:07 +01:00
Olivier Keshavjee c1ad771642 Subclass textEditView 2017-11-27 15:00:07 +01:00
Olivier Keshavjee c52df2c90d Changes menu organization #229 2017-11-27 08:05:53 +01:00
Olivier Keshavjee 6193dfe8f5 Adds #233: highlighter for CriticMarkup 2017-11-26 21:23:34 +01:00
Olivier Keshavjee d27ce4dec6 Fixes #232: Add markdown support of other tabs 2017-11-25 14:58:15 +01:00
Olivier Keshavjee 7940cdb336 Adds better fullscreen theme color integration 2017-11-25 14:17:49 +01:00
Olivier Keshavjee 5f76a25f39 Changes title color to something more contrasted 2017-11-25 09:54:10 +01:00
Olivier Keshavjee 59742accfa Moves textedit scrollbar outside the margins 2017-11-24 22:33:12 +01:00
Olivier Keshavjee 52af71757e Adds: better harmonization between Documents menu and context menu #229 2017-11-24 20:50:18 +01:00
Olivier Keshavjee 66f09729b5 Adds duplicate in contexte menu, and fixes a bug in it #229 2017-11-24 18:44:31 +01:00
Olivier Keshavjee 6d98427a2d Fixes UI stuff with Documents menu #229 2017-11-24 18:19:50 +01:00
Olivier Keshavjee 584e75eba4 Updates base translation files, and french translation. 2017-11-24 14:52:32 +01:00
Curtis Gedak 0ff701172d Change "Recents" to "Recent"
See issue #181.
2017-11-23 12:43:31 -07:00
Curtis Gedak af761dcbab Fix sentence structure for Summary Situation help text
See issue #181.
2017-11-23 12:43:31 -07:00
Curtis Gedak a8ed0f5767 Change "informations" to "information"
See issue #181.
2017-11-23 12:43:31 -07:00
Curtis Gedak 6210f63525 Change "Serie" to "Series"
See issue #181.
2017-11-23 12:43:31 -07:00
Olivier Keshavjee 0f49bc7517 Adds #206: Adjusting font size (CTRL+MouseWheelUp/Down) 2017-11-23 18:53:40 +01:00
Olivier Keshavjee c4d4f61702 Fixes highlighter colors, should work in most themes 2017-11-23 18:14:04 +01:00
Olivier Keshavjee 64994cde3a Adds: unit tests and starts refactoring models 2017-11-23 11:03:14 +01:00
Olivier Keshavjee 519d4666cf Updates version number and deb build script. 2017-11-22 22:26:28 +01:00
Olivier Keshavjee da62b823c7 Checkpoint: working highlighter. Optimization welcome. 2017-11-22 21:03:47 +01:00
Olivier Keshavjee 9be2edeee7 Checkpoint: adding new markdown highlighter 2017-11-22 13:43:40 +01:00
Olivier Keshavjee 43c82cb3c9 Adds: simple ui tests for exporter and importer widgets 2017-11-22 11:27:21 +01:00
Olivier Keshavjee 550f889251 Fixes: some Documents menu calls would crash manuskript if in textEdit 2017-11-22 09:37:02 +01:00
Olivier Keshavjee f945387066 Adds unit test for #225: Manuskript fails to run in Ubuntu 14.04 2017-11-22 09:08:54 +01:00
Olivier Keshavjee 6cc8864937 Fixes #225: Manuskript fails to run in Ubuntu 14.04 2017-11-22 08:52:30 +01:00
Olivier Keshavjee ba4fe6b57a Fixes the organizationName issue in #225. 2017-11-21 23:11:08 +01:00
Olivier Keshavjee 8ff046b23b Extends coverage in settingsWindow 2017-11-20 23:26:22 +01:00
Olivier Keshavjee a7f668c2bf Fixes test_settingsWindow and clean up 2017-11-20 22:35:39 +01:00
Olivier Keshavjee b9e35c8709 Adds unit tests for settingWindow 2017-11-20 22:24:47 +01:00
Olivier Keshavjee 9e91fe3f2c Fixes: POV column visibility in outline is always hidden at start 2017-11-20 16:18:25 +01:00
Olivier Keshavjee 9d3b64de8f Adds: references tests, corrects bugs 2017-11-20 15:42:30 +01:00
Olivier Keshavjee 7db2848474 This should build with SemaphoreCI 2017-11-19 17:54:04 +01:00
Olivier Keshavjee f098e74f45 Adds: unit test coverage for outlineItem 2017-11-19 16:03:18 +01:00
Olivier Keshavjee 584b0b04a6 Checkpoint: revisions 2017-11-19 15:29:38 +01:00
Olivier Keshavjee a0fac27e07 Checkpoint: outlineItem tests 2017-11-19 01:36:58 +01:00
Olivier Keshavjee 159e1c3f75 Adds mainWindow and completes function.py coverage 2017-11-19 00:54:11 +01:00
Olivier Keshavjee 1a5fdc7b1f Adds unit tests for functions 2017-11-19 00:20:49 +01:00
Olivier Keshavjee 84466b90e3 Adding unit test 2017-11-18 22:07:10 +01:00
Olivier Keshavjee 04fc6a5ae4 Checkpoint: refactoring 2017-11-18 20:53:10 +01:00
Olivier Keshavjee a42c7a41ab Merge branch 'feature/Exporters' into develop 2017-11-18 18:00:54 +01:00
Olivier Keshavjee ad01de4cd4 Checkpoint in refactoring outlineItem 2017-11-17 12:16:39 +01:00
Olivier Keshavjee cf4c1c83bf Changes every Enum to IntEnum 2017-11-15 21:05:48 +01:00
Olivier Keshavjee 9e95196cc5 Changes Outline enums to IntEnum 2017-11-15 20:58:12 +01:00
Olivier Keshavjee 805d7adaba Starts mirgration from Enum to IntEnum 2017-11-15 20:40:14 +01:00
Olivier Keshavjee bc0d6f5760 Creates base classes 2017-11-15 20:34:05 +01:00
Olivier Keshavjee 170c8ef404 Fixes #194: Editor tab should trim long titles 2017-11-14 18:11:50 +01:00
Olivier Keshavjee 31dcc6d53a Adds better style colors of references 2017-11-14 15:22:16 +01:00
Olivier Keshavjee a334e8bd1b Improves theme desktop integration greatly 2017-11-14 15:01:20 +01:00
Olivier Keshavjee ee212db39c Removes most of hard-coded colors 2017-11-14 14:56:11 +01:00
Olivier Keshavjee 58bdf35953 Adds: transparent text editor 2017-11-14 11:23:18 +01:00
Olivier Keshavjee b0af99eddc Adds default system style to text editor 2017-11-14 10:50:32 +01:00
Olivier Keshavjee 2109f88816 Improves colors of goal progress bar 2017-11-14 10:36:57 +01:00
Olivier Keshavjee 845aa8b205 Improves colors of index card delegate editor 2017-11-14 10:12:07 +01:00
Olivier Keshavjee 0c3f96014a Improves readabily of outline delegate 2017-11-14 10:00:35 +01:00
Olivier Keshavjee cc84f53f04 Improves readabily of tree and card delegate 2017-11-14 09:42:49 +01:00
Olivier Keshavjee ed864eab1e Fixes #213: Program Crash on Import with images 2017-11-14 08:25:23 +01:00
Olivier Keshavjee fd0cd2cd4f Improves the Mind Map importer #208 2017-11-13 22:55:33 +01:00
Olivier Keshavjee c4f8d0da60 Fixes: Missing default file extension when Saving As... #211 2017-11-13 00:51:08 +01:00
Olivier Keshavjee d3e724ccb0 Import: preview after chosing file, and add seting to Mind Map importer #208 2017-11-13 00:45:50 +01:00
Olivier Keshavjee 7b4ba33d15 Adds: MindMap import format #208 2017-11-13 00:32:34 +01:00
Olivier Keshavjee 1aa6afc2bc Fixes: One white pixel visible in full screen mode #210 2017-11-12 20:48:27 +01:00
Olivier Keshavjee 40b07938d0 Corrects a typo. #200 2017-11-11 09:55:36 +01:00
Olivier Keshavjee 4445b55559 Allows pasted items to keep ID if not already in model. 2017-11-10 17:40:59 +01:00
Olivier Keshavjee bb57d3d057 Adds: merge 2017-11-10 17:21:02 +01:00
Olivier Keshavjee a153606811 Adds: split dialog, split at cursor 2017-11-10 16:31:40 +01:00
Olivier Keshavjee 3b17c4e2b4 Adds: Menu Documents. Edit operations (copy, cut, paste, duplicate, remove), and Move up and down. 2017-11-10 11:35:53 +01:00
Olivier Keshavjee bc70501373 Fixes a bug when entering non-digit values for item's goal in metadata 2017-11-09 20:30:54 +01:00
Olivier Keshavjee 15ccaa513b Adds: import documents from several sources (txt, md, html, epub, docx, OPML, odt, etc.) #200 2017-11-09 15:21:25 +01:00
Olivier Keshavjee a231721bdb Adds: ability to split scenes at custom points. #200 2017-11-09 15:18:21 +01:00
Olivier Keshavjee 24607bca59 Adds setting to manage word wrap, and enhances UI. #200 2017-11-09 11:25:24 +01:00
Paweł Świątkowski 0807b14e5c Don't pass none to enchant.dict_exists 2017-11-09 10:45:05 +01:00
Olivier Keshavjee 3cef130bc6 Fixes a strupid bug recentrly introduced in outlineItem.findUniqueID. 2017-11-09 10:40:54 +01:00
Olivier Keshavjee 271f467d0e Adds pandoc wrap option to manage non-semantic linebreaks in imports 2017-11-09 08:46:31 +01:00
Paweł Świątkowski b3ba8e813d Get default locale in more reliable way 2017-11-09 01:44:01 +01:00
Olivier Keshavjee 9c99d186e5 Adds: import with pandoc through either OPML or markdown. #200 2017-11-08 23:46:18 +01:00
Olivier Keshavjee 34b55b511c Adds: support of setext-style headers in markdown import. #200 2017-11-08 23:20:13 +01:00
Olivier Keshavjee bc5c53fe6d Adds: internal markdown importer. #200 2017-11-08 22:54:31 +01:00
Olivier Keshavjee c6391e976c Adds: ability to import from folder structure. #200 2017-11-08 21:35:26 +01:00
Olivier Keshavjee ccf33b3ccf Adds: import from many formats using pandoc. #200 2017-11-07 20:30:39 +01:00
Olivier Keshavjee 9eb1402613 Fixes two small bugs #200. 2017-11-07 16:22:59 +01:00
Olivier Keshavjee a29eddabea Adds: OPML import with preview (using @camstevenson's importer) #200 2017-11-07 15:33:18 +01:00
Olivier Keshavjee fb50d42348 Checkpoint: import now works. 2017-11-07 14:40:46 +01:00
Olivier Keshavjee 543d5a232a Checkpoint: preview seems to work 2017-11-07 14:25:47 +01:00
Olivier Keshavjee 316651245c Checkpoint: opml import can be previewed in tree view 2017-11-07 12:50:40 +01:00
Olivier Keshavjee d51233ebba Cleans treeView of some call to mainWindow that should be here 2017-11-07 12:02:02 +01:00
Olivier Keshavjee 221c7a181d Checkpoint: basic mechanics of settings implemented 2017-11-07 11:25:19 +01:00
Olivier Keshavjee 0a0649a0db Fixes: Manuskript crashes when a wrong locale is set. See #188. 2017-11-06 18:29:18 +01:00
Olivier Keshavjee 340fceeda3 Checkpoint: selecting file working, have to preview and import now. 2017-11-06 18:21:40 +01:00
Olivier Keshavjee b520b12d7a Adds a tip if pandoc is not installed. #190 2017-11-06 10:05:20 +01:00
Olivier Keshavjee 72b44fe90d Fixes docstrings 2017-11-06 09:30:33 +01:00
Olivier Keshavjee 572feb5409 Creates empty import window 2017-11-06 09:16:44 +01:00
Olivier 1f04bf6f54
Merge pull request #192 from camstevenson/import-export
Adds: Import OPML
2017-11-06 08:21:06 +01:00
Cam Stevenson 1fa86ddd73 Finish OPML Import 2017-11-05 08:24:25 -05:00
Olivier Keshavjee 81de19165b Adds a 'Rename Item' option to context menu in the Tree view #189 2017-11-05 13:49:31 +01:00
Olivier Keshavjee fc1bd40c21 Uses instead of (#186) 2017-11-04 08:26:42 +01:00
Olivier Keshavjee 4ddb95ff67 Removes MultiMarkDown exporter. See #186. 2017-11-04 08:01:45 +01:00
Olivier Keshavjee 2cc721674a Fixes: Index card text almost invisible in dark themes. #183 2017-11-02 12:14:45 +01:00
Olivier Keshavjee 701833ed7e Bumps version number 2017-10-31 21:25:27 +01:00
Olivier Keshavjee 687286f9ab Merge branch 'feature/future' into develop
Conflicts:
	manuskript/settingsWindow.py
2017-10-31 21:02:09 +01:00
Olivier Keshavjee f67f5a6817 Fixes: Settings window / left hand pane too narrow with translation #177 2017-10-30 09:58:29 +01:00
Olivier Keshavjee c85bb7d2fd Adds: Swedish translation #177. Tack Vare @vithiri. 2017-10-30 09:36:03 +01:00
Olivier Keshavjee 59df6ea98c Fixes: Untranslatable strings. #178 2017-10-30 09:26:46 +01:00
Olivier Keshavjee 45a8200d3b Working on: Pandoc output: add more custom settings #173 2017-10-29 14:50:16 +01:00
Olivier Keshavjee 4d82963eba Fixes: Create new project ignores changes made to template levels before Create #171 2017-10-29 13:40:10 +01:00
Olivier Keshavjee e393848bc0 App crash when moving a step in Plots section #134 2017-10-29 10:21:28 +01:00
Olivier Keshavjee 276559bc04 Fixes a bug in #169: crash when moving around folders with the same name 2017-10-27 12:27:12 +02:00
Olivier Keshavjee c9fc18f685 Fixes a bug in #169: dragging an open folder creates duplicates 2017-10-27 07:30:07 +02:00
Olivier Keshavjee f99e4facab Fixes a bug in #169: when dragging a folder and dropping it between two same folder split panes it is silently deleted 2017-10-25 19:15:30 +02:00
Olivier Keshavjee 761286c497 Merges feature/CustomIcons 2017-10-23 15:10:30 +02:00
Olivier Keshavjee 583734512b Adds: custom item sizes in Tree View 2017-10-23 14:40:55 +02:00
Olivier Keshavjee 40cc136836 Adds: custom icons 2017-10-23 13:45:08 +02:00
Cam Stevenson 44db1a5989 Checkpoint: functional OPML import 2017-10-22 10:21:39 -04:00
Cam Stevenson 3557c222ce Merge remote-tracking branch 'upstream/develop' into import-export
# Conflicts:
#	manuskript/mainWindow.py
2017-10-21 16:38:20 -04:00
Cam Stevenson bdc6a096f2 Checkpoint: OPML import 2017-10-21 16:29:17 -04:00
Olivier Keshavjee f09c961399 Adds: Passes title, subtitle and author to pandoc for document export 2017-10-21 01:01:26 +02:00
Olivier Keshavjee 497d1e83a1 Corrects a stylesheet mistake that could make context menu in textEditView hard to read 2017-10-21 00:01:43 +02:00
Olivier Keshavjee 648b4b67eb Fixes more bugs in drag n drop: seg fault when creating an item after deleting an item that was open for editing, and other small stuff 2017-10-20 23:39:57 +02:00
Olivier Keshavjee d95c3f821d Fixes: Some panels require initial two clicks of RHS tab to hide #167 2017-10-20 10:01:47 -06:00
Olivier Keshavjee 1a8d4c5c72 Adds some docstrings on editor/view classes, because I never remember who they are and what they do... 2017-10-20 16:20:33 +02:00
Olivier Keshavjee a44dd41f00 Fixes bug in drag'n'drop: item can be dropped into itself (or children of itself) 2017-10-20 15:28:37 +02:00
Olivier Keshavjee 6ec0c19376 Corrects: Spell checker is active for partial words. #166 2017-10-19 22:48:49 +02:00
Olivier Keshavjee 4484423ace Fixes: Some panels require initial two clicks of RHS tab to hide #167 2017-10-19 22:21:15 +02:00
Olivier Keshavjee d78b8196cc Fixes but for: disable cursor blinking #165 2017-10-19 18:15:56 +02:00
Olivier Keshavjee ee058a309f Fixes: Spell checker is active for partial words. #166 2017-10-19 13:33:36 +02:00
Olivier Keshavjee eb89d2f309 Adds optimization of fullscreen's theme thumbnail generation in settings, and corrects a small stylesheet bug 2017-10-19 12:27:11 +02:00
Olivier Keshavjee b81a571b2e Adds: Disable cursor blinking (#165), Configurable editor margins (#168) 2017-10-19 12:13:20 +02:00
Olivier Keshavjee bffe17f9f0 Slight optimization through delay in Settings Windows 2017-10-19 10:38:32 +02:00
Olivier Keshavjee d51797df77 Fixes: Compile without open project causes a crash #164 2017-10-18 11:12:10 +02:00
Olivier Keshavjee f36abfd2e4 Adds: Block insertion cursor. (#163) 2017-10-18 10:44:05 +02:00
Olivier Keshavjee 3eda56ed5a Tries to fix 'Indent not saved in custom full screen theme #133', and adds cache to theme thumbnails 2017-10-18 10:13:22 +02:00
Olivier Keshavjee 2c36902d46 Fixes a bug when creating a new project, introduced with #148 2017-10-17 22:15:13 +02:00
Olivier Keshavjee dc0cc57ffa Merge branch 'feature/justify' into develop to add: Justified formatting of text #148 2017-10-17 18:29:42 +02:00
Olivier Keshavjee cbc02b15d9 Improves on: Use on smaller resolution screens #108 2017-10-17 18:04:30 +02:00
Olivier Keshavjee 4e74da41d1 Working on: Request: Justified formatting of text #148 2017-10-17 13:05:46 +02:00
Olivier Keshavjee b37dc9715c Adds a few more icons 2017-10-16 10:48:04 +02:00
Olivier Keshavjee 6e895af789 Fixes: Multiple selections of items sometimes gets Notes/references field to be ereased #10 2017-10-16 09:43:09 +02:00
Olivier Keshavjee d7407afb8f Fixes: In revision mode text, selecting group doesn't load text-preferences right. #51 2017-10-16 00:40:41 +02:00
Cam Stevenson 56553cf119 Merge branch 'develop' into import-export 2017-10-15 17:27:08 -04:00
Cam Stevenson 982a96021b Checkpoint: OPML import 2017-10-15 17:25:09 -04:00
Olivier Keshavjee 67efc47a18 Spell checking works but does not underline misspelled words #147 2017-10-15 22:45:57 +02:00
Olivier Keshavjee aed93550f2 Adds missing icons, and changes one in navigation dock (#159) 2017-10-15 22:23:06 +02:00
Olivier Keshavjee c7e6a2d53e Fixes again: Crash when permissions don't allow saving #138 2017-10-15 21:39:36 +02:00
Olivier Keshavjee f160d7d1c2 Small display bug corrected 2017-10-15 14:58:51 +02:00
Olivier Keshavjee 33f1a9b840 Adds icons to settings window 2017-10-15 14:53:05 +02:00
Olivier Keshavjee 86184ab2d8 Changes icons in navigation dock (#159) 2017-10-15 14:30:50 +02:00
Olivier Keshavjee a6123292ae Adds: go-up button. See #157 2017-10-14 21:39:16 +02:00
Olivier Keshavjee 742e24dbd2 Improving english words: redaction → editor, infos → info. See #53 2017-10-14 20:40:50 +02:00
Olivier Keshavjee dba1874b6b Adds: double click in index cards view background goes to the parent folder (#157) 2017-10-14 17:39:46 +02:00
Olivier Keshavjee e11e9f81b5 Adds: new flash card style 2017-10-14 17:11:17 +02:00
Olivier Keshavjee db8ef59c2f Adds tooltip to navigation bar 2017-10-14 14:14:17 +02:00
Olivier Keshavjee 2ad05cf32b Fixes: Use on smaller resolution screens #108 2017-10-14 14:05:22 +02:00
Olivier Keshavjee 79f2321128 Fixes: Contrast Problem in Notes/Refences with Dark Background #143 2017-10-14 12:34:16 +02:00
Olivier Keshavjee f2aa9abc85 Fixes: Crash when permissions don't allow saving #138 2017-10-14 12:17:03 +02:00
Olivier Keshavjee c89dd460da Adds: Ability to always show word target in distraction free mode #109 2017-10-14 11:38:22 +02:00
Olivier Keshavjee f069183ac8 Fixes a small bug in when closing fullScreenEditor 2017-10-14 11:12:56 +02:00
Olivier Keshavjee 452ac6212c Fixes: Undo/redo works in some text areas but not others #34 2017-10-14 11:01:38 +02:00
Olivier Keshavjee 6a88cb9aca Temporary fix for: Undo/redo works in some text areas but not others #34 2017-10-14 10:35:48 +02:00
Olivier Keshavjee 6bc74454c7 Partially fixes: Some bugs in Windows XP and Ubuntu 15.1 #25. Removes unused button in character's detailed infos. 2017-10-14 09:35:29 +02:00
Olivier Keshavjee 7ad2e93a3b Fixes: Indent not saved in custom full screen theme #133 2017-10-14 09:32:25 +02:00
Olivier Keshavjee d2762f2819 Merge branch 'feature/QtWebEngine' into develop 2017-10-12 08:47:57 +02:00
Olivier Keshavjee bae8c2f570 Adds OPML format to pandoc exporter 2017-10-12 08:36:10 +02:00
Olivier ab9c95cc6d Merge pull request #136 from gedakc/fix-fail-to-load-last-state-of-panels
Fixes: Manuskript fails to load last state of panels
2017-10-11 08:50:22 +02:00
Olivier c635d335f9 Merge pull request #149 from gedakc/add-missing-init-file
Add missing __init__.py file
2017-10-11 08:48:16 +02:00
Olivier 6660dabace Merge pull request #151 from gedakc/add-world-tab-help-tip
Add help tip for world tab
2017-10-11 08:47:01 +02:00
Olivier Keshavjee 99bd090288 Put software version in one sigle label to allow easier copy/pasting 2017-10-11 08:32:44 +02:00
Curtis Gedak 6d607e8804 Add Help -> About dialog window
Add "Help -> About" menu entry that invokes an "About" dialog window
for Manuskript.

Show details such as logo, version, website, copyright, license, and
software versions in use (Python, PyQT, and Qt).
2017-09-29 09:27:53 -06:00
Curtis Gedak 5d462d6a47 Single source the package version
Define one place to store the Manuskript version so that it can be
used in multiple locations.

Reference:

Single-sourcing the package version
https://packaging.python.org/guides/single-sourcing-package-version/
2017-09-28 13:54:53 -06:00
Curtis Gedak 4b4c9f4258 Add help tip for world tab 2017-09-23 12:53:18 -06:00
Curtis Gedak 539f8fd228 Add missing __init__.py file 2017-09-19 10:18:05 -06:00
Curtis Gedak e93c958598 Fixes: Manuskript fails to load last state of panels
See issue #14.

Four panels use custom widgets on the Right-Hand-Side tabs to control
visibility.  These panels are:

  PANEL NAME     VIEWABLE ON NAVIGATION TAB
  ------------   --------------------------
  Book summary   Plots
  Project tree   Redaction
  Metadata       Redaction
  Story line     Redaction

When the custom widget is created, it is assigned a name that is
marked for translation.  The final text name appears to have a
shortcut letter automatically assigned.  For example in English:

  Book summary   ->   B&ook summary
  Project tree   ->   &Project tree
  Metadata       ->   &Metadata
  Story line     ->   Story &line

On restoration the choice to restore state is based on successful
comparison between title and btn.text().  Currently this comparison
fails because title contains "&" and btn.text() does not contain "&".

Fix by removing all ampersand "&" characters from both title and
btn.text() when performing comparison.
2017-08-06 10:14:40 -06:00
Olivier e971d7e167 Merge pull request #121 from gedakc/ensure-same-add-character-importance-values
Fixes: add character button does not set importance slider to default…
2017-07-15 07:16:41 +02:00
Olivier 6cc7b724da Merge pull request #129 from gedakc/fix-file-save-as
Fixes: Contents missing when non-single file project saved with Save as
2017-07-15 07:12:17 +02:00
Curtis Gedak 8abb274c9f Fixes: Contents missing when non-single file project saved with Save as
See issue #128.

With the "Save to one single file" setting **disabled** (accessible
via "Edit -> Settings" under the General tab), then using
"File -> Save as..." creates only a portion of the previous project
files and content.

Steps to Reproduce:

1.  Open or create project with data (characters, plots, outline, etc.)
2.  Ensure existing project is saved with "File -> Save".
3.  Choose "File -> Save as..."
4.  Enter a new filename and click Save button.
5.  Choose "File -> Close Project"
6.  Choose "File -> Open" and choose the newly created project filename.

    Note that most of the project contents are missing or empty
    (plots, outline, etc.).

This enhancement disables smart caching for the first save of the new
project filename so that all project files are saved under the new
filename.
2017-07-04 12:42:27 -06:00
Curtis Gedak 3569f78928 Fixes: add plot then choose new plot does not set importance slider
By default when a plot is added to the plot model, the
importance value is set to "0" (Minor).  However when the new
plot is selected, the importance slider remains set to the value
of the previously selected plot.

Steps to Reproduce:

1.  Click add plot (plus sign) button.
2.  Select this "New plot".
3.  Select "Basic infos" tab and change Plot name to "My Plot".
4.  Move Importance slider all the way to the right (Main).
5.  Click add plot (plus sign) button.
6.  Select this "New plot".

    Note that the "New plot" is shown in the plot list pane under
    "Minor", but the Importance slider is still all the way to the
    right (Main).

This enhancement ensures that the corresponding plot UI importance
slider is also set to the proper plot importance.
2017-07-01 10:18:46 -06:00
Curtis Gedak 8fe282e484 Ensure character tabs are disabled when no valid character is selected
Previously if a character was selected, and next
  either:  a title (Main, Secondary, Minor) was selected,
      or:  the character remove button was clicked,
then the character tabs would remain enabled.  This was incorrect
behaviour.

In the case a character was removed and the user moved the
importance slider then Manuskript would crash.

This enhancement disables the character tabs when there is no valid
character selected.
2017-07-01 10:17:17 -06:00
Curtis Gedak dedf5fb27a Fixes: add character then choose new character does not set importance slider
See issue #102.

By default when a character is added to the character model, the
importance value is set to "0" (Minor).  However when the new
character is selected, the importance slider remains set to the value
of the previously selected character.

Steps to Reproduce:

1.  Click add character (plus sign) button.
2.  Select this "New character".
3.  Select "Basic infos" tab and change Name to "Bob".
4.  Move Importance slider all the way to the right (Main).
5.  Click add character (plus sign) button.
6.  Select this "New character".

    Note that the "New character" is shown in the character list pane
    under "Minor", but the Importance slider is still all the way to
    the right (Main).

This enhancement ensures that the corresponding character UI
importance slider is also set to the proper character importance.
2017-07-01 10:17:07 -06:00
Olivier Keshavjee 2beb3a939b Conditional import of QtWebEngine or QtWebKit 2017-06-20 15:24:15 +02:00
Olivier Keshavjee 35bb0f7cfe Fixes #119: Distraction free mode crashes with time target 2017-06-20 14:08:48 +02:00
Olivier Keshavjee fb9eb479f8 Reverts a mistake 2017-06-15 16:03:00 +02:00
Olivier Keshavjee 28e28e71e5 Adds webFiew file, forgotten in last commit 2017-06-15 15:40:22 +02:00
Olivier Keshavjee 2ff7cf80c6 Adds QtWebEngine support, while keeping QtWebKit support. 2017-06-15 15:24:06 +02:00
Olivier Keshavjee dfed1e7ec9 Fixes Pandoc PDF output error with unicode characters #117 2017-06-15 14:37:55 +02:00
Olivier Keshavjee 4c03326fca Merge branch 'enable-change-index-cards-background-to-color' of git://github.com/gedakc/manuskript into gedakc-enable-change-index-cards-background-to-color 2017-06-15 14:13:36 +02:00
Olivier 147d1c0952 Merge pull request #110 from gedakc/change-translator-warning-to-note
Change message from warning to note for failed to load translator string
2017-06-15 14:10:50 +02:00
Olivier Keshavjee 32861a4a9a Merge branch 'ScullyBlue-german_translation' into develop 2017-06-15 14:07:25 +02:00
Olivier Keshavjee 47826c6419 Adds setting to change language 2017-06-15 14:07:09 +02:00
Curtis Gedak 13f8f72ee8 Request confirmation if create project would overwrite existing file(s)
Previously creating a new project with an existing filename would
blindly overwrite the existing project file(s).  This could result in
an author accidentally losing all of their work, assuming they did not
have a backup.

This enhancement pops up a warning asking the user if they wish to
overwrite the existing project filename.
2017-06-12 10:58:29 -06:00
Curtis Gedak 8d356c52ce Fixes: Unable to change index cards background from image to a color
See issue #52.

Enable selection of background color in addition to background image
for index cards.  This setting is accessed from the manuskript menu
**Edit -> Settings -> Views -> Index cards**.

Keep initial default of "writingdesk" background image for Index cards.

Also update comments for functions to better describe how these work.
2017-06-10 12:53:55 -06:00
Curtis Gedak 828fc3375e Change message from warning to note for failed to load translator
The message for failing to find and load a language translator was
misleading.

There is no problem running Manuskript with the default English
language (no translation loaded).  The word **Warning** implied that
something was wrong with manuskript and could be confusing to users.
2017-06-06 10:10:23 -06:00
Olivier Keshavjee 79962f1e0d Bumped version number 2017-05-25 18:15:43 +02:00
Olivier Keshavjee e16f47bd2a Double signal for double efficency (#23) 2017-05-23 17:05:09 +02:00
Olivier Keshavjee 48a45e7498 Changes signal to allow activation by single click (see #23) 2017-05-23 17:02:04 +02:00
Olivier Keshavjee 3fba51fe24 Merge branch 'fix-after-close-open-or-create-project-fails' of git://github.com/gedakc/manuskript into gedakc-fix-after-close-open-or-create-project-fails 2017-05-23 16:04:23 +02:00
Olivier e6ab89fcbf Merge pull request #97 from gedakc/fix-icon-numeric-reference
Fixes: incorrect reference to 32px icon
2017-05-23 16:00:32 +02:00
Curtis Gedak d0afce48b4 Add project name to main window title 2017-05-22 10:48:20 -06:00
Curtis Gedak 589eb42235 Fixes: after project close, open or create project fails
See issue #96.

This change creates a new class disconnectAll() to ensure that all
connections are disconnected for a specific signal and slot.  Now when
a project is closed, the UI signals are disconnected.  As before,
these signals and slots are connected when a project is opened.

Because Manuskript permits working on only one project at a time, the
menu items for File Open and Recents are disabled after a project is
loaded.  These menu items are enabled when a project is closed.

Prior to this commit, subsequent open project selections would
complain with the following message:

  TypeError: connection is not unique
2017-05-21 12:04:27 -06:00
Curtis Gedak 7ba028ecc8 Fixes: incorrect reference to 32px icon 2017-05-09 14:55:27 -06:00
Olivier Keshavjee 9a646cb403 Preview can display images in html relative to project path (temporary solution for #22) 2017-05-08 09:10:33 +02:00