1611 Commits

Author SHA1 Message Date
Le Tan
e3e18d040c use QStackedWidget to hold QTextBrowser and VEdit
Use QTextBrowser to display file in read mode and VEdit to display file
in edit mode.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-07 21:55:30 +08:00
Le Tan
b55ebe8f91 use itemClicked signal instead of currentItemChanged to trigger opening a file
This will handle the corner case: when user open file "f" and close it,
this file is still current item, so if user want to re-open it by
clicking on it, it won't work.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-07 11:07:43 +08:00
Le Tan
3f8c87a325 add basic logics for handling html file
Add edit/read/save logics for html file.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-07 10:56:28 +08:00
Le Tan
504e3323cf display selected file in a QTabWidget
Add VTabWidget and VEdit to display content of files.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-06 22:33:55 +08:00
Le Tan
b47c9f3368 bug-fix: currentItemChanged() may have NULL pointer
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-06 13:30:42 +08:00
Le Tan
9dd22760fc add VFileList to browse the files in current directory
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-06 12:55:00 +08:00
Le Tan
0f7f433833 move config logics to VConfigManager
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-05 17:13:40 +08:00
Le Tan
5d08a6f93d implement delete directory action to VDirectoryTree
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-05 15:19:17 +08:00
Le Tan
09f6415536 implement VDirectoryTree logics
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-05 14:28:48 +08:00
Le Tan
d8c5114c1b read/write the info about notebooks
Use QSettings to store notebooks info in INI format.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-02 13:38:05 +08:00
Le Tan
811172ef8a initial commit for VNote
VNote is a Vim-Like Note for Markdown.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-01 15:45:27 +08:00