Commit Graph

2359 Commits

Author SHA1 Message Date
Roy Qu eeb57ca6fa - fix: In compiler options page, Can't save default stack size to 0MB. 2024-05-17 18:12:11 +08:00
Roy Qu fc68af7b0b use Universal character names in string literals. 2024-05-17 16:58:29 +08:00
Roy Qu 4e688a9136 - fix: Shouldn't warn "xxx.s is modifed" when "Generate assembly" is reran.
- fix: Shouldn't warn "Makefile is modifed" when "View Makefile" is reran.
2024-05-17 16:51:34 +08:00
Roy Qu 454dcbadcb - optimization: use QString::constData() instead of QString::data() if possible
- fix: Can't correctly parse template parameters that contains "->", like "std::queue<std::function<auto()->void>>";
2024-05-14 21:19:42 +08:00
Roy Qu f4d3ebc9bc optimize: use constData() if possible 2024-05-14 20:26:32 +08:00
Cyano Hao 43e795e791
migrate QStringRef -> QStringView (#425) 2024-05-14 08:38:22 +08:00
Roy Qu 5d328823e5 fix: gutter background is not configuarable 2024-05-11 10:31:43 +08:00
Roy Qu 86e10af5b6 fix: gutter line number font style shouldn't be customable. 2024-05-11 10:24:38 +08:00
Roy Qu 93aaca10cd enhancement: Show full filepath in the tooltip of editor tab. 2024-05-11 10:19:44 +08:00
Cyano Hao e67a9992c2
Migrate deprecated APIs (#418)
* migrate deprecated QLayout::setMargin -> QLayout::setContentMargins

* migrate deprecated QRegExp -> QRegularExpression

* remove deprecated QDesktopWidget header

* migrage deprecated QDesktopWidget::width, height -> QScreen::geometry
2024-05-10 17:31:10 +08:00
Cyano Hao cc359651ef
fix unexpected "int -> QChar -> QString" conversion (#417) 2024-05-09 21:09:57 +08:00
Cyano Hao 2fc9b51053
Fix CI build (#414)
* remove git from CI test

* fix build
2024-05-09 16:14:47 +08:00
Roy Qu eca9d2ecbf - fix: Can't compile / run assembly files in gcc 13/14 . 2024-05-08 11:48:55 +08:00
Roy Qu d21de624ea - enhancement: New menu item "Code completion". 2024-05-08 10:27:00 +08:00
Roy Qu 4eecf263b5 update chinese website address 2024-05-08 09:56:00 +08:00
Roy Qu 89e2c330e3 optimize: don't invalidate all line width after each parsing. 2024-05-07 15:15:02 +08:00
Roy Qu 311fe880bb stack size doesn't work in linux 2024-05-05 16:11:34 +08:00
Roy Qu cd65ecd74a - fix: Fail to evaluate expressions if macro can't be expanded. 2024-05-05 16:01:29 +08:00
Roy Qu b3ca4f5d38 update translation 2024-05-05 13:06:14 +08:00
Roy Qu 29e5541477 fix: can't toggle bookmark when mouse is at end of the line 2024-05-05 12:59:49 +08:00
Roy Qu e6b57b79c0 update mainwindow size 2024-05-05 10:33:18 +08:00
Roy Qu eac49a90f0 - fix: The memory usage displayed after program execution is wrong.
- enhancement: New compiler option "stack size" in the link subpage.
  - change: Set "Ctrl+G" as the shortcut for "Goto page..."
  - change: Set "Ctrl+B" as the shortcut for "Toggle Bookmark"
2024-05-05 10:24:36 +08:00
Roy Qu 996dbc7055 change shortcuts 2024-05-04 21:58:02 +08:00
Roy Qu c19ca5e362 add infrastructure for number compiler options 2024-05-04 21:03:40 +08:00
Roy Qu ce97272fc0 fix: Crash when has source line like "std::cout << (3+4*4>5*(4+3)-1 && (4-3>5)) <<std::endl;". 2024-05-04 12:33:35 +08:00
Roy Qu 49049b0884 refactor: structural binding 2024-05-04 10:31:15 +08:00
Roy Qu 4bd3829484 fix: Correctly parsing array defines. 2024-05-03 21:00:38 +08:00
Roy Qu ebeea19794 - enhancement: support C++ 17 structured binding in stl map containers foreach loop. 2024-05-03 10:39:44 +08:00
Roy Qu 131941801d simplify implementation 2024-05-03 08:48:58 +08:00
Roy Qu 68209fe619 fix: project not correctly reparsed after rename unit. 2024-05-03 08:38:54 +08:00
Roy Qu c5cd30eb2a fix: compile error 2024-05-03 08:38:00 +08:00
Roy Qu 1eb804ab0e fix: (UB) get shared ptr from raw pointer 2024-05-03 07:50:05 +08:00
Roy Qu 0b56b6383f fix #408: In options -> code format -> Program, Choose astyle path button doesn't work. 2024-05-02 17:02:55 +08:00
Roy Qu 67b2ec1bc7 - fix: Current editor wouldn't get parsed, when it's switched from another editor being parsed.
- enhancement: Support macro in #include preprocessing statements. (Issue #497)
2024-05-02 16:58:01 +08:00
Cyano Hao 8b80e2a77d
remove pre-Qt 5.15 stuff (#405) 2024-04-28 16:46:01 +08:00
Roy Qu 9ef7d45640 Auto set "remove superfluous empty lines" spinbox enable state with the checkbox 2024-04-27 12:21:23 +08:00
Roy Qu f51ca9009e - enhancement: New code format option: "Remove superfluous empty lines exceeding"
- enhancement: New code format option: "Remove superfluous spaces"
  - change: Remove code format option: "Delete continuous empty lines"
2024-04-27 10:21:40 +08:00
Roy Qu fa7dc26e2c remove options "Delete multiple empty lines" 2024-04-26 14:54:50 +08:00
Roy Qu 533783ad30 minor change 2024-04-25 18:49:43 +08:00
Roy Qu 8048ef1d36 old version compatibility 2024-04-25 17:39:17 +08:00
Ltabsyy aaee5b9eb3
Add color scheme MoLo Mia (#394)
1.可满足MoLo主题复制到白纸的需求,例如实验报告。
2.可配合浅色主题作为常规的浅色配色使用。
2024-04-25 16:30:41 +08:00
Cyano Hao ff23e8c859
prefer Lucida Console font on Windows XP (#395) 2024-04-25 16:30:23 +08:00
Roy Qu 7df90b0d5d remove astyle sourcetree 2024-04-25 16:29:27 +08:00
Cyano Hao 30693baa9e
fix feature sdcc=n (#393) 2024-04-24 12:02:10 +08:00
Cyano Hao 334be5b76a
limit config appDir substitution to portable app only (#391) 2024-04-24 12:01:15 +08:00
Cyano Hao 5e9d9504d2
make `isGreenEdition` constexpr on Unix (#392) 2024-04-24 12:00:26 +08:00
Roy Qu 4797e53b61 update: only define functions in class/namespace/global scopes.
update: add remove custom theme button
2024-04-24 10:26:55 +08:00
Roy Qu 198ff102ac - enhancement: Improve how to manage themes in Options → general → appearance. 2024-04-23 17:21:32 +08:00
Roy Qu d3db8e2b4d Generate a customized copy for theme 2024-04-23 14:03:48 +08:00
Roy Qu 96c4e95172 - fix #388: Temp object + member function call is wrongly parsed as constructor. 2024-04-23 13:31:05 +08:00
Roy Qu 3887b9387d enhancement: Support lambda expression without a parameter list. 2024-04-23 13:05:54 +08:00
Roy Qu f59462025f minor code clean 2024-04-17 21:01:27 +08:00
Cyano Hao c90f0bc313
Add support for weston-terminal (#384)
* add support for weston-terminal

* move NonExclusiveTemporaryFileOwner to utils

* move wrapCommandForTerminalEmulator to utils
2024-04-17 12:49:37 +08:00
Cyano Hao 5fce5cead7
update theme category indicator (#387) 2024-04-17 12:48:47 +08:00
Cyano Hao 9650393db7
unify custom and built-in, lua and json themes (#386) 2024-04-16 20:46:17 +08:00
Roy Qu 6658d14ea0 remove outdated color scheme 2024-04-16 20:05:24 +08:00
Roy Qu 0867947c70 - fix: In sdcc project, parser are not correctly inited as sdcc parser. 2024-04-15 22:24:57 +08:00
Roy Qu d8b467b867 - fix: In sdcc project, sdcc keywords are not in completion suggest list. 2024-04-15 22:17:16 +08:00
Roy Qu 8c889a3a1b refactor: painter for qsyneditor : member Namespace
Spaces in disabled lines use the same color as in other places.
2024-04-15 21:25:07 +08:00
Roy Qu ae535a0f1b update custom font 2024-04-15 20:45:41 +08:00
Roy Qu d6e0e07943 - fix: Name of the macro for project private resource header is not correct. 2024-04-15 19:10:09 +08:00
Roy Qu aca3ce8b24 - change: Don't generate project resource files for sdcc project. 2024-04-15 16:55:10 +08:00
Roy Qu a485dac4cd Merge branch 'master' of github.com:royqh1979/RedPanda-CPP 2024-04-15 16:40:00 +08:00
Roy Qu 45f4047d82 use custom font to display line breaks 2024-04-15 16:39:49 +08:00
Roy Qu 92273a30bb Merge branch 'master' of github.com:royqh1979/RedPanda-CPP 2024-04-14 21:51:46 +08:00
Roy Qu e184466fda fix: options not correctly inited when project compiler set changed. 2024-04-14 21:51:28 +08:00
Roy Qu e78799f561 fix: -stack-protect default to Normal 2024-04-14 21:37:44 +08:00
Roy Qu 5a7589aeb1 - fix: project options -> compiler set -> static link & auto convert charset options not correctly loaded. 2024-04-14 21:24:21 +08:00
Roy Qu 481ad66881 update default theme lua script 2024-04-14 18:29:37 +08:00
Roy Qu 081d37e21f redirect 2>&1 2024-04-14 12:27:01 +08:00
Roy Qu 44802c6315 windows installer: Template -> template
- sdcc project compiler: compile source file in subfolders.
2024-04-14 12:23:31 +08:00
zw9629 697bdca255
sdcc makefile生成优化 (#377)
* sdcc makefile生成优化
1.隐藏删除文件的错误提示
2.支持生成目标文件输出目录

* 修复删不了文件

* 确保能删除编译文件同时不提示任何错误

* 更正clean脚本错误(%1 2>&1)应为(%1 2>%1)
指定生成目标文件输出目录支持跨盘,跨平台(理论)

* 预防配置项为相对路径

* clean 目标与>%1中间添加空格,避免错误
2024-04-14 12:13:39 +08:00
Roy Qu c6c7d92e1c - enhancement: Auto type induction for "std::make_shared"/"std::make_unique" 2024-04-14 10:17:17 +08:00
Roy Qu 5d1b874bdf fix: ">>" not correctly handled in auto var definition 2024-04-14 09:24:39 +08:00
Roy Qu 56310e8363 - fix: Can't show correct completion info for vars declared with template parameters ending with ">>". 2024-04-13 22:37:09 +08:00
Roy Qu 89f8d9ae21 - fix: Positions of current matching parenthesis not correctly updated. 2024-04-13 18:01:32 +08:00
Roy Qu e3145d680f - fix: Shouldn't consider preceeding '&'/'*' when popping completion suggest list for variable members. 2024-04-13 10:39:55 +08:00
Cyano Hao 3552077d5c
add failsafe theme (#381) 2024-04-13 09:06:13 +08:00
Roy Qu 039ec299a6 revert: turn off font hinting 2024-04-12 20:43:47 +08:00
Roy Qu 308cbb3ee8 - change: Turn off font hinting. 2024-04-12 20:18:06 +08:00
Roy Qu a86e872281 - fix: Size of the icons in problem and problem set panel are not correct. 2024-04-12 19:23:43 +08:00
Roy Qu 0862c0555e Merge branch 'master' of github.com:royqh1979/RedPanda-CPP 2024-04-12 17:12:16 +08:00
Roy Qu 680de80a37 remove git actions 2024-04-12 17:10:40 +08:00
Roy Qu 75ef074601 Shortcut conflicts 2024-04-12 17:07:00 +08:00
Cyano Hao 6388e3ae23
fix windows xp build (#379) 2024-04-12 12:57:40 +08:00
Roy Qu 87586202dc - fix: Toggle breakpoint by shortcut may use wrong line. 2024-04-12 12:54:12 +08:00
Roy Qu 30a8205058 Merge branch 'master' of github.com:royqh1979/RedPanda-CPP 2024-04-12 12:28:14 +08:00
Roy Qu 6b575ad8b2 - enhancement: In debug console, Ctrl+C/Ctrl+X/Ctrl+V conflicts with application action.
- enhancement: Auto hide Edit/Selection/Code/Refactor menu if no file openning.
  - enhancement: Auto hide Project menu if no project openning.
2024-04-12 09:02:17 +08:00
Roy Qu 306e1b6bc4 Merge branch 'master' of github.com:royqh1979/RedPanda-CPP 2024-04-11 18:59:37 +08:00
Roy Qu 7c7fb84a5a minor ui change 2024-04-11 09:05:38 +08:00
Roy Qu 90ed2dab15 dont auto scroll when copy file in files panel 2024-04-11 08:12:02 +08:00
Roy Qu 05a36d3ed1 Dont auto scroll when copy by drag & drop 2024-04-11 08:09:43 +08:00
Roy Qu 88db0b283a encoding name sensitivity 2024-04-11 07:00:32 +08:00
Roy Qu 57c4b4d646 - enhancement: Function tip's width changes with editor width.
- fix: '<' / '>' not shown in function tips.
2024-04-10 21:43:28 +08:00
Roy Qu 7abbe2f6b5 inline functions in tokenizer 2024-04-10 10:09:04 +08:00
Roy Qu a9295caff2 optimization: make parser methods inline 2024-04-09 22:12:03 +08:00
Roy Qu 1f1d79c094 optimize QHash/QMap iterations 2024-04-09 20:18:10 +08:00
Roy Qu 37c7405311 refactor: openInclude 2024-04-09 19:39:35 +08:00
Roy Qu 35dccca91e refactor: PParsedFileInfo 2024-04-09 18:19:48 +08:00
Roy Qu 9ef6d1f3e6 refactor: ParsedFileInfo 2024-04-09 18:10:44 +08:00