24 Commits

Author SHA1 Message Date
Le Tan
7c7b9e8a3d MdEditor: insert image from network via tempoary file 2018-08-26 15:01:22 +08:00
Le Tan
4549919e68 Editor: refine image-insert dialog 2018-06-08 20:01:37 +08:00
Le Tan
2dbb114b47 fix image issue
1. Do not judge the image format from the file suffix;
2. Enable file: scheme in Markdown-it;
2018-04-27 20:35:17 +08:00
Le Tan
6d24f7e92b bug-fix: remove unnecessary NULL check before delete 2018-02-13 22:18:38 +08:00
Le Tan
044b3d3c29 add VLineEdit which supports Ctrl+H/W/U shortcuts 2018-01-04 20:16:12 +08:00
Le Tan
b19b1d8079 minor-fix
- Support repeat in title jump in read mode;
- Trim input in VInsertLinkDialog;
- Rename VLineEdit to VMetaWordLineEdit;
2018-01-04 19:54:32 +08:00
Le Tan
8d6fc6cb4f VInsertImageDialog: fetch image from clipboard
Support `Ctrl+'` to insert image.
2017-12-12 09:46:59 +08:00
Le Tan
37c692b090 bug-fix: may download NULL image 2017-12-09 17:55:43 +08:00
Le Tan
1410c16280 add v_pure theme 2017-12-09 12:59:39 +08:00
Le Tan
34aa9e0083 use empty title by default when inserting new image 2017-10-17 19:49:48 +08:00
Le Tan
787c61a5af support meta word
- Add VLineEdit as a QLineEdit with meta data support;
- support custom magic words through [magic_words];
- add %help% for all magic words information;
2017-10-17 19:47:57 +08:00
Le Tan
f9080db71c minor-fix: scale images keeping aspect ration when previewing images in dialogs 2017-09-29 19:57:52 +08:00
Le Tan
2b78711eb4 confirm when cleaning up unused images
Add config confirm_images_clean_up.
2017-09-16 14:55:42 +08:00
Le Tan
0131569c02 support exporting note as PDF file
TODO: Currently the exported PDF does not have the outline which is
needed to fix via third-party utils.
2017-05-22 22:34:53 +08:00
Le Tan
d330bdae0f let image title edit get focus in VInsertImageDialog 2017-05-03 22:03:49 +08:00
Le Tan
238983ed0d refine all messages 2017-02-27 22:30:35 +08:00
Le Tan
517d1ed139 refine dialogs
Use QDialogButtonBox in all dialogs.
2017-02-26 19:59:42 +08:00
Le Tan
59611872d4 use "image" as the default image title
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-14 09:26:48 +08:00
Le Tan
9b6afa013d refine the layout of dialogs
Use gridlayout and formlayout to make a more beautiful dialog.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-01 16:52:56 +08:00
Le Tan
5ff46d6237 implement insert image menu action
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-12 23:14:53 +08:00
Le Tan
f37d1f57a8 fix regular expression in image-insert dialog
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-23 21:39:20 +08:00
Le Tan
1ed324fd20 regexp to validate image title and image name
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 23:16:10 +08:00
Le Tan
435d47bb74 support downloading image from URL
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-01 22:58:19 +08:00
Le Tan
047c26b598 support pasting image in markdown
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-31 22:43:59 +08:00