Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Development branch for next release 6.0 (#123)
* fix(cf-tool): add --version to check, fixes #112 * fix(transparency): min/max: from 60/99 to 40/100 * feat: support hot exit, closes #92 * fix: set minimum transparency to 60 * fix: use monospace fonts for Windows * fix(Compiler): use canonicalFilePath for compiling * fix: use quotes for paths * fix(Runner): fix detached runner on Windows * perf(appwindow): remove useless operations, make startup faster * perf(appwindow): delete widgets after closing tabs * feat(appwindow): add context menu for tabs * perf: use timer for editorChanged Use a timer for editorChanged, this will save lots of duplicated works. As a benchmark, it took 29s to open a hundred tabs, and takes 18s now. * feat(appwindow): add action Close Current * chore(mainwindow): use QSaveFile instead of QFile for safety * feat: different heads for different save methods * feat(snippets): add extract snippets to files * feat(Hot Exit): add choice of enable hot exit or not * feat: add Linux reveal in file manager for popular file managers * feat(tabs): add Close to the Left in context menu * feat: Change template when change language Change template when change language, if the tab is untitled, and the code is unchanged template of the old language. * feat: add Ctrl+P as shortcut for Preferences * feat: add open contest action / open folder function / others 1. Add open contest action, which open serveral files named A.cpp, B.cpp, ..., Z.cpp (the suffix depends on the language) in a given directory. 2. Add open folder function, which open all files with a certain max depth and suffix. 3. Change "Cpp" to "C++". 4. Delete `Core.hpp` and `Core.cpp`. * feat(appwindow): Abort on a single cancel when close all * fix(cf-tool): accept 0 as problem code, fix #117 * feat(main.cc): add --help and --version * feat: add --depth --contest --lang --no-hot-exit * refactor(main.cc): use QTextStream instead of std::iostream * feat(ui): add separators in menus * docs(README.md): Add hot exit and transparency * fix(cf-tool): parse problemset URL * Update README.md (#119) * feat(appwindow): Add open multiple files * feat(ui): Use "..." for actions which need dialogs * feat(main.cc): Arbitary order of <number of problems>/<contest directory> Now you can use either `CPEditor -c <number of problems> <contest directory>` or `CP Editor -c <contest directory> <number of problems>`. This also fixes the segmentation fault happened when there are no positional arguments. * fix(main.cc): Optimize command line interaction * feat(appwindow): No hot exit for single template tab * Make application more flexible and re-sizeable The input and output boxes had a minimum size contraints that has been lifted and now they can be resized to smallest possible size, this makes default window small and also gives you more space for code on display with larger sizes. This commit also fixes #93 and fixes #88 * fix: make on_cfpath_button_clicked() a slot The conflict was resolved incorrectly in 99a18da. * fix: Use LineEdit instead of PushButton for CF Tool path Co-authored-by: ouuan <1609483441@qq.com> Co-authored-by: queen bee shuttle <wtnmmo@gmail.com>
- Loading branch information
Showing
19 changed files
with
914 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.