Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge from develope/main #805

Closed
wants to merge 469 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
469 commits
Select commit Hold shift + click to select a range
06a41ce
feat: [Git] Git diff for current file
Kakueeen May 8, 2024
3b229da
feat: [Git] Git show for commit id
Kakueeen May 8, 2024
3b33485
fix: [project] the project could not be renamed
May 8, 2024
e529da1
fix: [builder] message filter ui modified
May 8, 2024
87e4a66
feat: [projecttree] add spinner while parsing project
LiHua000 May 8, 2024
4f0fb74
feat: [Git] Display git information for the project
Kakueeen May 8, 2024
841f8e9
fix: [builder] filter implementation method
May 8, 2024
24d8fb4
fix: [template] ui modified in new files and new projects dialog
May 9, 2024
8b38933
fix: [appoutputpane] can`t find in application output pane
LiHua000 May 9, 2024
116d941
fix: [builder] two lines of text appears in one line
May 9, 2024
1515f9d
feat: [locator] optimized display of long file name
LiHua000 May 9, 2024
b50be0f
fix: [reversedebug] ui modified in reversedebug dialog
May 9, 2024
327d328
fix: [builder] build failed when build parameters used
deepin-mozart May 10, 2024
10d5b93
fix: [recent] ui modified in recent display
May 10, 2024
244de75
fix: [common] ui modified in appoutput pane and valgrind pane
May 10, 2024
70ebff9
feat: [Ai] change api of ai plugin
LiHua000 May 13, 2024
a230984
feat: [codeeditor] Add Comment
May 14, 2024
00bf35c
fix: [filebrowser,project] code translation and warning dialog modified
May 13, 2024
1ab05c8
refactor: [binarytool] Refactor the binarytool
Kakueeen May 14, 2024
d0b0fe1
fix: [cxx] build parameters wrong
deepin-mozart May 15, 2024
e1b224f
fix: Fixed some issues
Kakueeen May 15, 2024
1263bce
feat: add default tool
Kakueeen May 15, 2024
d2605f5
fix: Fix compilation issue
Kakueeen May 15, 2024
81d27eb
fix: [find] ui modified
May 15, 2024
f524392
fix: [cxx] the settings cannot save in cxx project enviroment
May 15, 2024
5ec94fe
refactor: [actionanalyse] remove unused plugin
deepin-mozart May 16, 2024
be5ab71
feat: [tool] Optimize the output information of the tool
Kakueeen May 16, 2024
62f682c
fix: [codeeditor] optimized the comment feature
May 16, 2024
928bac9
fix: [debugger] can`t update variables when switch frame
LiHua000 May 16, 2024
4260530
feat: [controller] add interface of toptoolitem
LiHua000 May 16, 2024
911563e
fix: [codeeditor] comment logic && ui modified
May 17, 2024
76d9239
feat: [template] Support dfm-extension templates
LiHua000 May 14, 2024
65018e0
fix: [project] can`t create new document in root of projectTree
LiHua000 May 17, 2024
506fd3b
fix: Fixed some issues
Kakueeen May 17, 2024
ae314c6
fix: code translation
May 17, 2024
76f435c
fix: Fixed multi-thread resource contention issue
Kakueeen May 17, 2024
4a0cc2f
tag: update to 1.3.0
deepin-mozart May 17, 2024
ffd5dcd
fix: build failed
deepin-mozart May 17, 2024
0851357
fix: [codeeditor] can't save config && code translation
May 17, 2024
b951734
feat: [debugger] add interface of Conditional Breakpoint
LiHua000 May 20, 2024
af17d0b
fix: [ui] change icon
LiHua000 May 20, 2024
ee239d7
fix: [cxx] build parameter wrong work
deepin-mozart May 21, 2024
67e5f3b
fix: [codeeditor] Double shadows appear in the left and right columns
May 20, 2024
743dcca
fix: [find] ui modified
May 21, 2024
12a182a
fix: updated the website
May 22, 2024
65668b1
fix: [builder] the filter can't update in time
May 22, 2024
bb1e657
fix: update c/c++ python java javascript website
May 22, 2024
85b17c8
feat: [tool] Advance Setting
Kakueeen May 21, 2024
8bfc3ce
feat: [find] Added find shortcut keys
Kakueeen May 21, 2024
5fb4654
feat: [debugger] Add Variable Monitoring Feature
LiHua000 May 21, 2024
b5ad42e
fix: [appoutputpane] change icon path
LiHua000 May 23, 2024
f989ba2
fix: [codegeex] update some issues of ai
LiHua000 May 23, 2024
28cc297
feat: [tool] Add spell check tool
Kakueeen May 24, 2024
071334c
fix: [editor] Fixed an issue where text could not be dragged and drop…
Kakueeen May 24, 2024
bbad7a2
fix: [core] guide show wrong
deepin-mozart May 27, 2024
6961449
fix: [template] can't debug default template
May 24, 2024
f356a18
feat: [editor] Add `Range Formatting` for editor
Kakueeen May 27, 2024
5b49785
feat: [debugger] add "jump" function
LiHua000 May 27, 2024
e238a08
fix: [dapdebugger] crash when close ide
LiHua000 May 28, 2024
979d6ff
feat: [tool] Add `clang-format` tool
Kakueeen May 28, 2024
c101725
refactor: [search] Optimize advanced search logic
Kakueeen May 29, 2024
2afe08a
fix: [git] Fix git window closing issue
Kakueeen May 29, 2024
c9af616
chore: change build output directory
deepin-mozart May 29, 2024
602ee00
feat: [git] Add click-response for `Instant Blame`
Kakueeen May 29, 2024
61d71a2
feat: [ui] modified ui of run/debug
LiHua000 May 29, 2024
cdd2cb1
fix: [codeGeex] Fix the incorrect parsing method
LiHua000 May 30, 2024
884d4ec
fix: [editor] Optimize the cursor history
Kakueeen May 31, 2024
b322d8e
fix: [ui] issues of button
LiHua000 May 31, 2024
6a81305
fix: Optimize display of button`s tooltip
LiHua000 May 31, 2024
2c3a612
fix: crash when close App
LiHua000 May 31, 2024
831b922
fix: [project] executing program is not the program of the activated …
LiHua000 May 31, 2024
67451ef
fix: [appoutputpane] incorrect display of toolbar
LiHua000 May 31, 2024
47e075e
fix: translated the code
Jun 3, 2024
8140f11
feat: [project] enable `settings` button of project view
LiHua000 May 31, 2024
95d9dd1
fix: build faild
deepin-mozart Jun 3, 2024
d05163a
fix: add missing header
deepin-mozart Jun 3, 2024
910888a
fix: [project] can`t show run program propertys
LiHua000 Jun 3, 2024
f87c293
tag: update to 1.3.1
deepin-mozart Jun 3, 2024
74839a0
translation: update
deepin-mozart Jun 3, 2024
424243a
feat: [project] add interface of cmakeFileLists
LiHua000 Jun 3, 2024
ddcf66e
refactor: [search] Optimize advanced search logic
Kakueeen Jun 3, 2024
cafb66a
feat: [codeeditor] ctrl + tab
Jun 4, 2024
30319d1
chore: change build path
deepin-mozart Jun 4, 2024
715e4a4
doc: [readme] remove unused content
deepin-mozart Jun 4, 2024
0953afb
fix: [debugger] wrong debug state when activating project
LiHua000 Jun 3, 2024
83e6bb5
fix: [debugger] havn`t update runstate when debugging python program
LiHua000 Jun 4, 2024
8cb5215
fix: plugin detail view show incorrect
deepin-mozart Jun 5, 2024
c2d848c
refactor: [search] Support for currently open files
Kakueeen Jun 5, 2024
6777578
docs: updated README
Jun 6, 2024
f08c701
fix: [codeeditor] File name display problem and updated ui
Jun 6, 2024
acc25df
refactor: [search] Refactor advanced search
Kakueeen Jun 6, 2024
462f409
feat: [statusbar] Added editor information display
Kakueeen Jun 7, 2024
a87fe83
fix: [project] The project view cannot be expanded
Jun 7, 2024
de95d13
fix: [UI] Fixed issue of UI
Kakueeen Jun 7, 2024
e06aef9
chore: [cxx] enable target path editable
deepin-mozart Jun 11, 2024
988d051
fix: [editor] The modified file cannot be saved when the tab page is …
Kakueeen Jun 11, 2024
c0efe2b
chore: change StartupWMClass to UnionCode
deepin-mozart Jun 11, 2024
97e70d1
chore: [collaborators] disable svn
deepin-mozart Jun 12, 2024
0175bfe
fix: [codeeditor] editor tips time
Jun 12, 2024
d51ffcd
fix: [codegeex] Optimize Window Adjustment Strategy
LiHua000 Jun 12, 2024
925a808
fix: [filebrowser] delete file when click X
Jun 12, 2024
6538320
feat: [debugger] add functional of attach to running program
LiHua000 Jun 7, 2024
fe159db
fix: [tool] Fixed a crash issue when executing the tool
Kakueeen Jun 12, 2024
109eb34
fix: [tool] Update missing hint
Kakueeen Jun 12, 2024
9906372
fix: [codeedior] the buttons' ui display
Jun 12, 2024
1ab5c74
feat: [console] modified default path of console
LiHua000 May 31, 2024
9fe3758
fix: [core] can't expand when tapping the context widget tab
Jun 12, 2024
b9ea08b
fix: [output] Fixed an issue where the application froze when too man…
Kakueeen Jun 12, 2024
dda88b6
fix: [project] incorrect execute program of cmake project
LiHua000 Jun 13, 2024
01fe48c
fix: [project] environment settings of project can not save
LiHua000 Jun 13, 2024
5dc44c9
fix: [editor] Fixed the issue that LSP-related features were invalid …
Kakueeen Jun 13, 2024
32918f6
fix: [editor] Fixed an issue with incorrect prompt information
Kakueeen Jun 13, 2024
3bfc8db
fix: [browser] Fix file sorting issue on file browser page
Kakueeen Jun 13, 2024
45e61f2
fix: [python] issues of python
LiHua000 Jun 13, 2024
b833651
fix: [editor] Fixed an issue with abnormal cursor
Kakueeen Jun 13, 2024
908e14b
fix: [templates] Add hints for dfm-extension`s template configure fai…
LiHua000 Jun 14, 2024
9dfa37b
fix: [core] dividing line between the navigation bar and the dockwidget
Jun 14, 2024
1254d86
fix: [codeeditor] tabBar background color
Jun 14, 2024
34ee552
feat: [notify] New notification interface
Kakueeen Jun 11, 2024
4c92d86
fix: [editor] Added support for bash file highlighting
Kakueeen Jun 14, 2024
a359c7c
fix: [editor] Added an error message when saving the file
Kakueeen Jun 14, 2024
0c42e81
fix: [common] compile output text color issue while switching theme
Jun 14, 2024
be4cdee
feat: [project] Add menu action of create new directory
LiHua000 Jun 14, 2024
0759702
fix: [cxx] can't add environment variable
Jun 14, 2024
80742e2
feat: [git] Add shortcut keys
Kakueeen Jun 14, 2024
91ab01c
feat: [cmake] Prompt the user when files within the project change
LiHua000 Jun 14, 2024
90906e8
fix: [editor] Fixed issue where invalid field font color was too light
Kakueeen Jun 14, 2024
98068e9
fix: [editor] Fix code highlighting issue
Kakueeen Jun 17, 2024
3776f3d
fix: [symbol] Fixed an issue where the symbol page had no content
Kakueeen Jun 17, 2024
08e858f
fix: Fix program crash issue
Kakueeen Jun 17, 2024
d14d112
fix: [console] can't not create new terminal
Jun 17, 2024
66f736c
fix: [cxx] abnormal project view after running cmake
LiHua000 Jun 17, 2024
c22aa51
feat: [project] add `new dicreatory` action to project`s root
LiHua000 Jun 17, 2024
2c5b20d
fix: Fix program crash issue
Kakueeen Jun 18, 2024
d5c80f4
chore: [translation] Update translations
Kakueeen Jun 18, 2024
21146af
fix: Fix program crash issue
Kakueeen Jun 18, 2024
ea9d266
fix: [editor] Fixed code highlighting failure issue
Kakueeen Jun 18, 2024
ecdcd86
chore: Update translation
Kakueeen Jun 18, 2024
de763a6
fix: build faild
deepin-mozart Jun 18, 2024
5371654
chore: remove unused comment
deepin-mozart Jun 18, 2024
f955416
fix: [valgrind] Unable to run Valgrind properly
LiHua000 Jun 19, 2024
e0172f8
fix: [search] Fixed an issue where advanced search caused the program…
Kakueeen Jun 19, 2024
8c9cfdd
fix: [icon] differed the exe icon and lib icon
Jun 19, 2024
0b5e633
fix: [console] removeButton should be disabled
Jun 19, 2024
f4889b2
fix: [cmake] Cannot specify the execution path for the application
LiHua000 Jun 19, 2024
d96c3e7
style: [runner] change icon
LiHua000 Jun 20, 2024
93f89c1
fix: [cxx] modified the build environment ui
Jun 20, 2024
97e409d
fix: [cmake] wrong project view when trigger cmake by change cmakelists
LiHua000 Jun 20, 2024
285d828
fix: [workspacewidget] wrong state of toolbutton
LiHua000 Jun 20, 2024
0301654
fix: [editor] Fixed cursor style issue
Kakueeen Jun 19, 2024
c4bc0f7
feat: [symbol] Add `Symbol Locator` to the `locator`
Kakueeen Jun 20, 2024
ce01872
fix: [extension] ui modified in extension top area
Jun 20, 2024
77e3a43
fix: [codelens] Fixed some issues
Kakueeen Jun 21, 2024
100b6db
feat: [editor] Highlighted field references
Kakueeen Jun 24, 2024
d33be9a
fix: Update tool information
Kakueeen Jun 24, 2024
abfb382
fix: [plugin] modified ui
Jun 25, 2024
83ed73b
fix: [gradle] cannot expand after building gradle
Jun 24, 2024
5f2497c
fix: Fixed abnormal display of menu items in the dock
Kakueeen Jun 25, 2024
132c107
fix: [editor] Fixed an issue where the file save dialog could not be …
Kakueeen Jun 24, 2024
fef3d99
fix: [extensions] updated website
Jun 25, 2024
6d9bdda
fix: [shortcut] repeat shortcut
LiHua000 Jun 25, 2024
28ae060
chore: [control] remove npm depend
deepin-mozart Jun 25, 2024
d63c43e
chore: [translation] updated translation
Jun 25, 2024
299a8c1
fix: [debugger] can`t remove breakpoint when file closed
LiHua000 Jun 25, 2024
992a3ff
fix: [git] Fix the `Instant Blame` information display issue
Kakueeen Jun 25, 2024
6c70a94
fix: [locator] display area of contens
LiHua000 Jun 25, 2024
6fe6538
fix: [project] Incorrect path in tooltip
LiHua000 Jun 25, 2024
f08a146
feat: [template] add template of dtk application
LiHua000 Jun 25, 2024
2df0829
translations: update
LiHua000 Jun 25, 2024
45acb1f
fix: [ui] dockwidget header ui issues
Jun 26, 2024
a40bcb7
chore: Update translations
Kakueeen Jun 25, 2024
caffa28
feat: [templates] add template of Qt console
LiHua000 Jun 25, 2024
a5afe18
fix: build faild
deepin-mozart Jun 26, 2024
b06d6f2
perf: [editor] Optimize code completion logic
Kakueeen Jun 26, 2024
0a9791f
fix: [editor] Fixed a complete item ordering issue
Kakueeen Jun 26, 2024
7a1c30c
fix: [debugger] can`t use running environment to gdb
LiHua000 Jun 26, 2024
90e478d
pref: [editor] Optimize the ordering of complete items
Kakueeen Jun 26, 2024
b4362ff
fix: [editor] Change the field highlight color
Kakueeen Jun 26, 2024
8d69a2c
tag: update to 1.3.4
deepin-mozart Jun 26, 2024
917b42b
chore: [web] updated website
Jun 26, 2024
33ec222
fix: build failed
deepin-mozart Jun 26, 2024
27092fa
fix: build faild on v23
deepin-mozart Jun 27, 2024
9586d0f
fix: [codeeditor] missing namespace
deepin-mozart Jun 27, 2024
6299b26
fix: [codeeditor] replace desktopservice
deepin-mozart Jun 27, 2024
9405f2a
pefer: [editor] Optimized field highlighting logic
Kakueeen Jun 26, 2024
49d6717
feat: [project] open file widget
Jun 27, 2024
a5de57d
fix: [recent] recent page ui
Jun 28, 2024
41eddac
feat: [linglong] linglong
LiHua000 Jun 21, 2024
9622f85
fix: [linglong] asyn issues of generate project
LiHua000 Jun 27, 2024
40e0dbe
feat: [linglong] Add tool-check
LiHua000 Jul 1, 2024
800b62e
chore: Update license
Kakueeen Jul 2, 2024
552f514
docs: Update the extended-guide
Kakueeen Jul 2, 2024
9702e0d
fix: [cxx] project property ui
Jun 28, 2024
d45bd73
perf: [editor] Optimize code completion logic
Kakueeen Jul 1, 2024
2c8a4df
fix: [project] when trigger "open in terminal", the directory is inco…
LiHua000 Jul 3, 2024
d5fe1e0
fix: [locator] when trigger locator by shortcut, select all
LiHua000 Jul 3, 2024
d4db9c8
feat: [cmake] sort executable programs
LiHua000 Jul 3, 2024
04ca47e
fix: [project] when trigger "open in terminal", the directory is inco…
LiHua000 Jul 3, 2024
e0e02b4
feat: [core] Optimized dependent installation
Kakueeen Jul 2, 2024
eaed1df
feat: Adjust some interfaces in the uiController
LiHua000 Jul 2, 2024
1ebc3f7
fix: [core] widget register to mode failed
LiHua000 Jul 4, 2024
5ab4a87
feat: [runner] add functional of "Run In Terminal"
LiHua000 Jul 4, 2024
403d27e
fix: [linglong] ui of mainFrame
LiHua000 Jul 4, 2024
12447ab
fix: [common] added project name to project proerties
Jul 8, 2024
263e71c
chore: [copyright] update copyright
Jul 8, 2024
d23d223
refactor: export all user interface
deepin-mozart Jul 9, 2024
b93a4e3
feat: [common/util] add os util class
deepin-mozart Jul 9, 2024
f3bf576
fix: Fix some issues
Kakueeen Jul 5, 2024
4f7f8ea
feat: [core] Optimize the way to switch between widgets in the workspace
LiHua000 Jul 9, 2024
4398b37
fix: [editor] Fixed issue where breakpoint information was lost after…
Kakueeen Jul 9, 2024
2b7e28a
fix: [linglong] remove unused header file
LiHua000 Jul 9, 2024
2043d9b
fix: Fixed some issues
Kakueeen Jul 8, 2024
0d3c29a
fix: [locator] adjust icon size
LiHua000 Jul 11, 2024
940727d
fix: App name show incorrect
deepin-mozart Jul 12, 2024
c873ea7
fix: [environment] remove "enable debug level" check
LiHua000 Jul 12, 2024
fb87671
fix: [project] Incorrect parameters when executing clean
LiHua000 Jul 12, 2024
a5e9103
fix: [project] Default not running in the terminal.
LiHua000 Jul 12, 2024
9a948e5
fix: crash with opengl driver wrong
deepin-mozart Jul 12, 2024
9a31cf8
feat: [appoutputpane] add filter
LiHua000 Jul 15, 2024
61e7f3d
feat: [core] support more controll for widget
LiHua000 Jul 10, 2024
74023cf
feat: [core] save/restor mainWindow`s geometry
LiHua000 Jul 12, 2024
9456c49
fix: Correct inaccurate content
Kakueeen Jul 17, 2024
30e496f
fix: [build] Fix inaccurate menu item name
Kakueeen Jul 17, 2024
2da69ed
fix: [locator] incompletey display of locator
LiHua000 Jul 16, 2024
1d18be4
fix: [editor] Fixed issue where the program crashed when zooming edit…
Kakueeen Jul 10, 2024
88cc244
fix: update urlLink in plugin meta file
deepin-mozart Jul 18, 2024
36a938a
fix: The output log cannot be easily cleared
Kakueeen Jul 17, 2024
946d35a
fix: [mainwindow] can not show DTK`s menu
LiHua000 Jul 17, 2024
20267cc
fix: [project] Crashes/Display Issues Related to Project View
LiHua000 Jul 17, 2024
8e9df99
fix: [cmake] incorrect use of fileWathcer
LiHua000 Jul 17, 2024
e16288c
fix: [java] notify user when `javap` can`t find
LiHua000 Jul 18, 2024
9056b11
refactor: [search] Refactor the advanced search
Kakueeen Jul 16, 2024
a0c5860
fix: [project] switch display of build/cancel button when state changed
LiHua000 Jul 18, 2024
ef4ae95
fix: [ui] modified ui
LiHua000 Jul 19, 2024
f761dd7
feat: [editor] Added symbol navigation bar
Kakueeen Jul 19, 2024
3d90312
fix: [editor] Fixed issue with indentation exceptions
Kakueeen Jul 18, 2024
9f3d005
translations: update translations
LiHua000 Jul 19, 2024
418b907
translations: update
LiHua000 Jul 19, 2024
9f1cbb3
fix: build faild
deepin-mozart Jul 19, 2024
b001906
fix: build failed
deepin-mozart Jul 19, 2024
ff670a8
fix: Fix program crash issue
Kakueeen Jul 19, 2024
472096e
feat: [workspace] click workspace`s label to switch widget
LiHua000 Jul 22, 2024
f5b2fc3
feat: add icon for `SymbolBar`
Kakueeen Jul 22, 2024
8b0083a
fix: Fixed the cppcheck warnings
Kakueeen Jul 22, 2024
563c6e5
fix: [workspace] incorret logic
LiHua000 Jul 22, 2024
32d4971
fix: Optimize symbolic interaction logic
Kakueeen Jul 22, 2024
3d24752
fix: [codegeex] The format of the code in the parameters is incorrect.
LiHua000 Jul 22, 2024
f13c663
tag: update to 1.3.7
deepin-mozart Jul 22, 2024
30dc2d5
fix: [search] Fixed an issue where advanced search could not find res…
Kakueeen Jul 22, 2024
54061cf
chore: Merge branch 'master' into develope/main
deepin-mozart Jul 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,11 @@ Files: src/plugin/*
Copyright: UnionTech Software Technology Co., Ltd.
License: GPL-3.0-or-later

# commom
Files: src/common/*
Copyright: UnionTech Software Technology Co., Ltd.
License: GPL-3.0-or-later

# tool
Files: src/tool/*
Copyright: UnionTech Software Technology Co., Ltd.
License: GPL-3.0-or-later

# service
Files: src/*.service
Copyright: UnionTech Software Technology Co., Ltd.
License: GPL-3.0-or-later

# FlameGraph
Files: 3rdparty/scripts/*
Copyright: 2013 Brendan Gregg
Expand Down
11 changes: 8 additions & 3 deletions 3rdparty/unioncode-qscintilla214/scintilla/src/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright 1998-2011 by Neil Hodgson <[email protected]>
// The License.txt file describes the conditions under which this software may be distributed.

#include <bitset>
#include <cstddef>
#include <cstdlib>
#include <cassert>
Expand Down Expand Up @@ -2403,7 +2404,7 @@ void Editor::NotifyPainted() {
NotifyParent(scn);
}

void Editor::NotifyIndicatorClick(bool click, Sci::Position position, int modifiers) {
bool Editor::NotifyIndicatorClick(bool click, Sci::Position position, int modifiers) {
const int mask = pdoc->decorations->AllOnFor(position);
if ((click && mask) || pdoc->decorations->ClickNotified()) {
SCNotification scn = {};
Expand All @@ -2413,6 +2414,9 @@ void Editor::NotifyIndicatorClick(bool click, Sci::Position position, int modifi
scn.position = position;
NotifyParent(scn);
}

std::bitset<32> flags(static_cast<ulong>(mask));
return flags[INDIC_COMPOSITIONTHICK];
}

bool Editor::NotifyMarginClick(Point pt, int modifiers) {
Expand Down Expand Up @@ -4491,9 +4495,10 @@ void Editor::ButtonDownWithModifiers(Point pt, unsigned int curTime, int modifie
sel.SetMoveExtends(false);

if (NotifyMarginClick(pt, modifiers))
return;
return;

NotifyIndicatorClick(true, newPos.Position(), modifiers);
if (NotifyIndicatorClick(true, newPos.Position(), modifiers))
return;

const bool inSelMargin = PointInSelMargin(pt);
// In margin ctrl+(double)click should always select everything
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/unioncode-qscintilla214/scintilla/src/Editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class Editor : public EditModel, public DocWatcher {
void NotifyHotSpotReleaseClick(Sci::Position position, int modifiers);
bool NotifyUpdateUI();
void NotifyPainted();
void NotifyIndicatorClick(bool click, Sci::Position position, int modifiers);
bool NotifyIndicatorClick(bool click, Sci::Position position, int modifiers);
bool NotifyMarginClick(Point pt, int modifiers);
bool NotifyMarginRightClick(Point pt, int modifiers);
void NotifyNeedShown(Sci::Position pos, Sci::Position len);
Expand Down
14 changes: 13 additions & 1 deletion 3rdparty/unioncode-qscintilla214/src/qsciscintilla.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const char userSeparator = '\x04';
// The default fold margin width.
static const int defaultFoldMarginWidth = 14;

static const int MinFontZoomSize = 5;

// The default set of characters that make up a word.
static const char *defaultWordChars = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

Expand Down Expand Up @@ -919,6 +921,11 @@ int QsciScintilla::blockIndent(int line)
}
else if (line == l)
ind += ind_width;
else {
const auto &lineText = text(l).trimmed();
if (lineText.size() > 1 && lineText.endsWith(":"))
ind += ind_width;
}

return ind;
}
Expand Down Expand Up @@ -1725,10 +1732,15 @@ void QsciScintilla::zoomOut(int range)
zoomTo(SendScintilla(SCI_GETZOOM) - range);
}


// Zoom out a single point.
void QsciScintilla::zoomOut()
{
int value = SendScintilla(SCI_GETZOOM);
auto font = lex ? lex->defaultFont() : this->font();
auto fontSize = font.pointSize() * (100 + 10 * value) / 100;
if (fontSize < MinFontZoomSize)
return;

SendScintilla(SCI_ZOOMOUT);
}

Expand Down
21 changes: 2 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ if (NOT VERSION)
endif()

message(STATUS "build version ${VERSION}")
option(ENABLE_SANITIZE_CHECK "Enable Sanitize Check " OFF)

set(CMAKE_VERBOSE_MAKEFILE ON)

if ((NOT ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "sw_64")
AND (NOT ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "loongarch64")
AND (NOT ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips64")
AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
if (ENABLE_SANITIZE_CHECK AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
message("debug type open sanitize check")
set(CMAKE_CXX_FLAGS "-fsanitize=undefined,address,leak -fno-omit-frame-pointer")
set(CMAKE_C_FLAGS "-fsanitize=undefined,address,leak -fno-omit-frame-pointer")
Expand All @@ -31,15 +29,6 @@ if ((NOT ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "sw_64")
# set(CMAKE_L_FLAGS "-fsanitize=thread")
endif()

# Setup install paths
# /usr/bin/dde-file-manager
# execute bin file
# /usr/lib/x86_64-linux-gnu/dde-file-manager
# dir plugins && dir tools abv thumbnail
# /usr/include/dde-file-manager
# public *.h && private dir *.h
# /usr/share/dde-file-manager
# subdir"database mimetypeassociations mimetypes templates translations"
set(LIBRARY_INSTALL_PREFIX "/usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/${PROJECT_NAME}")

#set(ARCHIVE_INSTALL_RPEFIX "") undefined the static lib archive
Expand All @@ -66,7 +55,6 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/build/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/build/)
link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY})

# if no debug, can't out in code define key '__FUNCTION__' and so on
add_definitions(-DQT_MESSAGELOGCONTEXT)

# Setup the environment
Expand Down Expand Up @@ -105,17 +93,12 @@ foreach(QtModule ${QtFindModules})
message("QtModule found ${QtModule} OK!")
endforeach()

# Use PkgConfig modules
# You can setting mini version for "glib-2.0>=2.10 gtk+-2.0" in the list
set(PkgConfigFindModules)
include(FindPkgConfig)
foreach(PkgConfigModule ${PkgConfigFindModules})
pkg_check_modules(PkgUseModuleVal REQUIRED ${PkgConfigModule})
#can use target_link_libraries(xxx ${PkgUseModule})
list(APPEND PkgUseModules ${PkgUseModuleVal_LDFLAGS})
include_directories(${PkgUseModuleVal_INCLUDE_DIRS})
# link_libraries(${PkgUseModuleVal_LIBRARIES})
# link_directories(${PkgUseModuleVal_LINK_LIBRARIES})
endforeach(PkgConfigModule)

include_directories(${PROJECT_SOURCE_DIR}/src)
Expand Down
Loading
Loading