Copy disabled (too large)
Download .txt
Showing preview only (22,266K chars total). Download the full file to get everything.
Repository: cxasm/notepad--
Branch: main
Commit: 144c14a9f918
Files: 1704
Total size: 20.9 MB
Directory structure:
gitextract_p2dfp083/
├── .gitignore
├── CMakeLists.txt
├── LICENSE
├── README.md
├── README_EN.md
├── THIRDPARTY.md
├── changelog.txt
├── cmake/
│ ├── deb_package_config.cmake
│ └── nsis_package_config.cmake
├── src/
│ ├── .qmake.stash
│ ├── CmpareMode.cpp
│ ├── CmpareMode.h
│ ├── Encode.cpp
│ ├── Encode.h
│ ├── LICENSE
│ ├── MediatorDisplay.cpp
│ ├── MediatorDisplay.h
│ ├── MediatorFileTree.cpp
│ ├── MediatorFileTree.h
│ ├── QTreeWidgetSortItem.cpp
│ ├── QTreeWidgetSortItem.h
│ ├── RcTreeWidget.cpp
│ ├── RcTreeWidget.h
│ ├── RealCompare.pri
│ ├── RealCompare.pro
│ ├── RealCompare.qrc
│ ├── RealCompare.rc
│ ├── RealCompareToMinGw.rc
│ ├── Resources/
│ │ └── macicon.icns
│ ├── Sorters.h
│ ├── StrategyCompare.h
│ ├── aboutndd.cpp
│ ├── aboutndd.h
│ ├── aboutndd.ui
│ ├── batchfindreplace.cpp
│ ├── batchfindreplace.h
│ ├── batchfindreplace.ui
│ ├── bigfilemessage.cpp
│ ├── bigfilemessage.h
│ ├── bigfilemessage.ui
│ ├── cceditor/
│ │ ├── ccnotepad.cpp
│ │ ├── ccnotepad.h
│ │ ├── ccnotepad.ui
│ │ ├── filemanager.cpp
│ │ └── filemanager.h
│ ├── closeDlg.cpp
│ ├── closeDlg.h
│ ├── closeDlg.ui
│ ├── columnedit.cpp
│ ├── columnedit.h
│ ├── columnedit.ui
│ ├── command.cpp
│ ├── command.h
│ ├── common.cpp
│ ├── common.h
│ ├── ctipwin.cpp
│ ├── ctipwin.h
│ ├── ctipwin.ui
│ ├── dectfilechanges.cpp
│ ├── dectfilechanges.h
│ ├── diff.h
│ ├── dirfindfile.cpp
│ ├── dirfindfile.h
│ ├── dirfindfile.ui
│ ├── doctypelistview.cpp
│ ├── doctypelistview.h
│ ├── doctypelistview.ui
│ ├── donate.cpp
│ ├── donate.h
│ ├── donate.ui
│ ├── draglineedit.cpp
│ ├── draglineedit.h
│ ├── encodeconvert.cpp
│ ├── encodeconvert.h
│ ├── encodeconvert.ui
│ ├── extLexermanager.cpp
│ ├── extlexermanager.h
│ ├── filecmprulewin.cpp
│ ├── filecmprulewin.h
│ ├── filecmprulewin.ui
│ ├── filelistview.cpp
│ ├── filelistview.h
│ ├── filelistview.ui
│ ├── findcmpwin.cpp
│ ├── findcmpwin.h
│ ├── findcmpwin.ui
│ ├── findresultview.cpp
│ ├── findresultview.h
│ ├── findresultwin.cpp
│ ├── findresultwin.h
│ ├── findresultwin.ui
│ ├── findwin.cpp
│ ├── findwin.h
│ ├── findwin.ui
│ ├── gotolinewin.cpp
│ ├── gotolinewin.h
│ ├── gotolinewin.ui
│ ├── hexcmprangewin.cpp
│ ├── hexcmprangewin.h
│ ├── hexcmprangewin.ui
│ ├── hexfilegoto.cpp
│ ├── hexfilegoto.h
│ ├── hexfilegoto.ui
│ ├── hexrulewin.cpp
│ ├── hexrulewin.h
│ ├── hexrulewin.ui
│ ├── include/
│ │ └── pluginGl.h
│ ├── installer/
│ │ ├── NsisMultiUser/
│ │ │ └── Include/
│ │ │ ├── NsisMultiUser.nsh
│ │ │ ├── NsisMultiUserLang.nsh
│ │ │ ├── StdUtils.nsh
│ │ │ └── UAC.nsh
│ │ ├── installer.nsi
│ │ ├── newinstall.iss
│ │ ├── newinstall_dync.iss
│ │ └── utils.nsh
│ ├── langextset.cpp
│ ├── langextset.h
│ ├── langextset.ui
│ ├── langstyledefine.cpp
│ ├── langstyledefine.h
│ ├── langstyledefine.ui
│ ├── linux/
│ │ └── usr/
│ │ └── share/
│ │ ├── applications/
│ │ │ └── NotePad--.desktop
│ │ ├── licenses/
│ │ │ └── notepad--/
│ │ │ └── LICENSE
│ │ └── metainfo/
│ │ └── io.gitee.cxasm.notepad--.metainfo.xml
│ ├── mac.icns
│ ├── macicon/
│ │ └── mac.icns
│ ├── macpro/
│ │ └── RealCompare.pro
│ ├── main.cpp
│ ├── markdownview.cpp
│ ├── markdownview.h
│ ├── markdownview.ui
│ ├── md5hash.cpp
│ ├── md5hash.h
│ ├── md5hash.ui
│ ├── mystyle.qss
│ ├── mytreeview.cpp
│ ├── mytreeview.h
│ ├── nddpluginapi.cpp
│ ├── nddpluginapi.h
│ ├── nddsetting.cpp
│ ├── nddsetting.h
│ ├── ndstyleditemdelegate.cpp
│ ├── ndstyleditemdelegate.h
│ ├── optionsview.cpp
│ ├── optionsview.h
│ ├── optionsview.ui
│ ├── plugin/
│ │ ├── helloworld/
│ │ │ ├── CMakeLists.txt
│ │ │ ├── helloworld.pro
│ │ │ ├── helloworldexport.cpp
│ │ │ ├── qttestclass.cpp
│ │ │ ├── qttestclass.h
│ │ │ └── qttestclass.ui
│ │ └── test/
│ │ ├── test.cpp
│ │ └── test.pro
│ ├── plugin.cpp
│ ├── plugin.h
│ ├── pluginGl.h
│ ├── pluginmgr.cpp
│ ├── pluginmgr.h
│ ├── pluginmgr.ui
│ ├── progresswin.cpp
│ ├── progresswin.h
│ ├── progresswin.ui
│ ├── qscidisplaywindow.cpp
│ ├── qscidisplaywindow.h
│ ├── qscint/
│ │ ├── CMakeLists.txt
│ │ ├── ChangeLog
│ │ ├── LICENSE
│ │ ├── NEWS
│ │ ├── Python/
│ │ │ ├── README
│ │ │ ├── config-tests/
│ │ │ │ └── cfgtest_Qsci.cpp
│ │ │ ├── project.py
│ │ │ ├── pyproject-qt5.toml
│ │ │ ├── pyproject-qt6.toml
│ │ │ └── sip/
│ │ │ ├── qsciabstractapis.sip
│ │ │ ├── qsciapis.sip
│ │ │ ├── qscicommand.sip
│ │ │ ├── qscicommandset.sip
│ │ │ ├── qscidocument.sip
│ │ │ ├── qscilexer.sip
│ │ │ ├── qscilexeravs.sip
│ │ │ ├── qscilexerbash.sip
│ │ │ ├── qscilexerbatch.sip
│ │ │ ├── qscilexercmake.sip
│ │ │ ├── qscilexercoffeescript.sip
│ │ │ ├── qscilexercpp.sip
│ │ │ ├── qscilexercsharp.sip
│ │ │ ├── qscilexercss.sip
│ │ │ ├── qscilexercustom.sip
│ │ │ ├── qscilexerd.sip
│ │ │ ├── qscilexerdiff.sip
│ │ │ ├── qscilexeredifact.sip
│ │ │ ├── qscilexerfortran.sip
│ │ │ ├── qscilexerfortran77.sip
│ │ │ ├── qscilexerhtml.sip
│ │ │ ├── qscilexeridl.sip
│ │ │ ├── qscilexerjava.sip
│ │ │ ├── qscilexerjavascript.sip
│ │ │ ├── qscilexerjson.sip
│ │ │ ├── qscilexerlua.sip
│ │ │ ├── qscilexermakefile.sip
│ │ │ ├── qscilexermarkdown.sip
│ │ │ ├── qscilexermatlab.sip
│ │ │ ├── qscilexeroctave.sip
│ │ │ ├── qscilexerpascal.sip
│ │ │ ├── qscilexerperl.sip
│ │ │ ├── qscilexerpo.sip
│ │ │ ├── qscilexerpostscript.sip
│ │ │ ├── qscilexerpov.sip
│ │ │ ├── qscilexerproperties.sip
│ │ │ ├── qscilexerpython.sip
│ │ │ ├── qscilexerruby.sip
│ │ │ ├── qscilexerspice.sip
│ │ │ ├── qscilexersql.sip
│ │ │ ├── qscilexertcl.sip
│ │ │ ├── qscilexertex.sip
│ │ │ ├── qscilexerverilog.sip
│ │ │ ├── qscilexervhdl.sip
│ │ │ ├── qscilexerxml.sip
│ │ │ ├── qscilexeryaml.sip
│ │ │ ├── qscimacro.sip
│ │ │ ├── qscimod5.sip
│ │ │ ├── qscimod6.sip
│ │ │ ├── qscimodcommon.sip
│ │ │ ├── qsciprinter.sip
│ │ │ ├── qsciscintilla.sip
│ │ │ ├── qsciscintillabase.sip
│ │ │ ├── qscistyle.sip
│ │ │ └── qscistyledtext.sip
│ │ ├── doc/
│ │ │ ├── README.doc
│ │ │ ├── Scintilla/
│ │ │ │ ├── Design.html
│ │ │ │ ├── Icons.html
│ │ │ │ ├── LPegLexer.html
│ │ │ │ ├── Lexer.txt
│ │ │ │ ├── Privacy.html
│ │ │ │ ├── SciCoding.html
│ │ │ │ ├── ScintillaDoc.html
│ │ │ │ ├── ScintillaDownload.html
│ │ │ │ ├── ScintillaHistory.html
│ │ │ │ ├── ScintillaRelated.html
│ │ │ │ ├── ScintillaToDo.html
│ │ │ │ ├── ScintillaUsage.html
│ │ │ │ ├── Steps.html
│ │ │ │ ├── StyleMetadata.html
│ │ │ │ └── index.html
│ │ │ ├── html/
│ │ │ │ ├── annotated.html
│ │ │ │ ├── classQsciAPIs-members.html
│ │ │ │ ├── classQsciAPIs.html
│ │ │ │ ├── classQsciAbstractAPIs-members.html
│ │ │ │ ├── classQsciAbstractAPIs.html
│ │ │ │ ├── classQsciCommand-members.html
│ │ │ │ ├── classQsciCommand.html
│ │ │ │ ├── classQsciCommandSet-members.html
│ │ │ │ ├── classQsciCommandSet.html
│ │ │ │ ├── classQsciDocument-members.html
│ │ │ │ ├── classQsciDocument.html
│ │ │ │ ├── classQsciLexer-members.html
│ │ │ │ ├── classQsciLexer.html
│ │ │ │ ├── classQsciLexerAVS-members.html
│ │ │ │ ├── classQsciLexerAVS.html
│ │ │ │ ├── classQsciLexerBash-members.html
│ │ │ │ ├── classQsciLexerBash.html
│ │ │ │ ├── classQsciLexerBatch-members.html
│ │ │ │ ├── classQsciLexerBatch.html
│ │ │ │ ├── classQsciLexerCMake-members.html
│ │ │ │ ├── classQsciLexerCMake.html
│ │ │ │ ├── classQsciLexerCPP-members.html
│ │ │ │ ├── classQsciLexerCPP.html
│ │ │ │ ├── classQsciLexerCSS-members.html
│ │ │ │ ├── classQsciLexerCSS.html
│ │ │ │ ├── classQsciLexerCSharp-members.html
│ │ │ │ ├── classQsciLexerCSharp.html
│ │ │ │ ├── classQsciLexerCoffeeScript-members.html
│ │ │ │ ├── classQsciLexerCoffeeScript.html
│ │ │ │ ├── classQsciLexerCustom-members.html
│ │ │ │ ├── classQsciLexerCustom.html
│ │ │ │ ├── classQsciLexerD-members.html
│ │ │ │ ├── classQsciLexerD.html
│ │ │ │ ├── classQsciLexerDiff-members.html
│ │ │ │ ├── classQsciLexerDiff.html
│ │ │ │ ├── classQsciLexerEDIFACT-members.html
│ │ │ │ ├── classQsciLexerEDIFACT.html
│ │ │ │ ├── classQsciLexerFortran-members.html
│ │ │ │ ├── classQsciLexerFortran.html
│ │ │ │ ├── classQsciLexerFortran77-members.html
│ │ │ │ ├── classQsciLexerFortran77.html
│ │ │ │ ├── classQsciLexerHTML-members.html
│ │ │ │ ├── classQsciLexerHTML.html
│ │ │ │ ├── classQsciLexerIDL-members.html
│ │ │ │ ├── classQsciLexerIDL.html
│ │ │ │ ├── classQsciLexerJSON-members.html
│ │ │ │ ├── classQsciLexerJSON.html
│ │ │ │ ├── classQsciLexerJava-members.html
│ │ │ │ ├── classQsciLexerJava.html
│ │ │ │ ├── classQsciLexerJavaScript-members.html
│ │ │ │ ├── classQsciLexerJavaScript.html
│ │ │ │ ├── classQsciLexerLua-members.html
│ │ │ │ ├── classQsciLexerLua.html
│ │ │ │ ├── classQsciLexerMakefile-members.html
│ │ │ │ ├── classQsciLexerMakefile.html
│ │ │ │ ├── classQsciLexerMarkdown-members.html
│ │ │ │ ├── classQsciLexerMarkdown.html
│ │ │ │ ├── classQsciLexerMatlab-members.html
│ │ │ │ ├── classQsciLexerMatlab.html
│ │ │ │ ├── classQsciLexerOctave-members.html
│ │ │ │ ├── classQsciLexerOctave.html
│ │ │ │ ├── classQsciLexerPO-members.html
│ │ │ │ ├── classQsciLexerPO.html
│ │ │ │ ├── classQsciLexerPOV-members.html
│ │ │ │ ├── classQsciLexerPOV.html
│ │ │ │ ├── classQsciLexerPascal-members.html
│ │ │ │ ├── classQsciLexerPascal.html
│ │ │ │ ├── classQsciLexerPerl-members.html
│ │ │ │ ├── classQsciLexerPerl.html
│ │ │ │ ├── classQsciLexerPostScript-members.html
│ │ │ │ ├── classQsciLexerPostScript.html
│ │ │ │ ├── classQsciLexerProperties-members.html
│ │ │ │ ├── classQsciLexerProperties.html
│ │ │ │ ├── classQsciLexerPython-members.html
│ │ │ │ ├── classQsciLexerPython.html
│ │ │ │ ├── classQsciLexerRuby-members.html
│ │ │ │ ├── classQsciLexerRuby.html
│ │ │ │ ├── classQsciLexerSQL-members.html
│ │ │ │ ├── classQsciLexerSQL.html
│ │ │ │ ├── classQsciLexerSpice-members.html
│ │ │ │ ├── classQsciLexerSpice.html
│ │ │ │ ├── classQsciLexerTCL-members.html
│ │ │ │ ├── classQsciLexerTCL.html
│ │ │ │ ├── classQsciLexerTeX-members.html
│ │ │ │ ├── classQsciLexerTeX.html
│ │ │ │ ├── classQsciLexerVHDL-members.html
│ │ │ │ ├── classQsciLexerVHDL.html
│ │ │ │ ├── classQsciLexerVerilog-members.html
│ │ │ │ ├── classQsciLexerVerilog.html
│ │ │ │ ├── classQsciLexerXML-members.html
│ │ │ │ ├── classQsciLexerXML.html
│ │ │ │ ├── classQsciLexerYAML-members.html
│ │ │ │ ├── classQsciLexerYAML.html
│ │ │ │ ├── classQsciMacro-members.html
│ │ │ │ ├── classQsciMacro.html
│ │ │ │ ├── classQsciPrinter-members.html
│ │ │ │ ├── classQsciPrinter.html
│ │ │ │ ├── classQsciScintilla-members.html
│ │ │ │ ├── classQsciScintilla.html
│ │ │ │ ├── classQsciScintillaBase-members.html
│ │ │ │ ├── classQsciScintillaBase.html
│ │ │ │ ├── classQsciStyle-members.html
│ │ │ │ ├── classQsciStyle.html
│ │ │ │ ├── classQsciStyledText-members.html
│ │ │ │ ├── classQsciStyledText.html
│ │ │ │ ├── classes.html
│ │ │ │ ├── dir_68267d1309a1af8e8297ef4c3efbcdba.html
│ │ │ │ ├── dir_e7e7b0b6fe362def31d601fa026bbeed.html
│ │ │ │ ├── doxygen.css
│ │ │ │ ├── dynsections.js
│ │ │ │ ├── functions.html
│ │ │ │ ├── functions_b.html
│ │ │ │ ├── functions_c.html
│ │ │ │ ├── functions_d.html
│ │ │ │ ├── functions_e.html
│ │ │ │ ├── functions_enum.html
│ │ │ │ ├── functions_eval.html
│ │ │ │ ├── functions_eval_b.html
│ │ │ │ ├── functions_eval_c.html
│ │ │ │ ├── functions_eval_d.html
│ │ │ │ ├── functions_eval_e.html
│ │ │ │ ├── functions_eval_f.html
│ │ │ │ ├── functions_eval_g.html
│ │ │ │ ├── functions_eval_h.html
│ │ │ │ ├── functions_eval_i.html
│ │ │ │ ├── functions_eval_j.html
│ │ │ │ ├── functions_eval_k.html
│ │ │ │ ├── functions_eval_l.html
│ │ │ │ ├── functions_eval_m.html
│ │ │ │ ├── functions_eval_n.html
│ │ │ │ ├── functions_eval_o.html
│ │ │ │ ├── functions_eval_p.html
│ │ │ │ ├── functions_eval_q.html
│ │ │ │ ├── functions_eval_r.html
│ │ │ │ ├── functions_eval_s.html
│ │ │ │ ├── functions_eval_t.html
│ │ │ │ ├── functions_eval_u.html
│ │ │ │ ├── functions_eval_v.html
│ │ │ │ ├── functions_eval_w.html
│ │ │ │ ├── functions_eval_x.html
│ │ │ │ ├── functions_eval_z.html
│ │ │ │ ├── functions_f.html
│ │ │ │ ├── functions_func.html
│ │ │ │ ├── functions_func_b.html
│ │ │ │ ├── functions_func_c.html
│ │ │ │ ├── functions_func_d.html
│ │ │ │ ├── functions_func_e.html
│ │ │ │ ├── functions_func_f.html
│ │ │ │ ├── functions_func_g.html
│ │ │ │ ├── functions_func_h.html
│ │ │ │ ├── functions_func_i.html
│ │ │ │ ├── functions_func_k.html
│ │ │ │ ├── functions_func_l.html
│ │ │ │ ├── functions_func_m.html
│ │ │ │ ├── functions_func_o.html
│ │ │ │ ├── functions_func_p.html
│ │ │ │ ├── functions_func_q.html
│ │ │ │ ├── functions_func_r.html
│ │ │ │ ├── functions_func_s.html
│ │ │ │ ├── functions_func_t.html
│ │ │ │ ├── functions_func_u.html
│ │ │ │ ├── functions_func_v.html
│ │ │ │ ├── functions_func_w.html
│ │ │ │ ├── functions_func_z.html
│ │ │ │ ├── functions_func_~.html
│ │ │ │ ├── functions_g.html
│ │ │ │ ├── functions_h.html
│ │ │ │ ├── functions_i.html
│ │ │ │ ├── functions_j.html
│ │ │ │ ├── functions_k.html
│ │ │ │ ├── functions_l.html
│ │ │ │ ├── functions_m.html
│ │ │ │ ├── functions_n.html
│ │ │ │ ├── functions_o.html
│ │ │ │ ├── functions_p.html
│ │ │ │ ├── functions_q.html
│ │ │ │ ├── functions_r.html
│ │ │ │ ├── functions_s.html
│ │ │ │ ├── functions_t.html
│ │ │ │ ├── functions_u.html
│ │ │ │ ├── functions_v.html
│ │ │ │ ├── functions_w.html
│ │ │ │ ├── functions_x.html
│ │ │ │ ├── functions_z.html
│ │ │ │ ├── functions_~.html
│ │ │ │ ├── hierarchy.html
│ │ │ │ ├── index.html
│ │ │ │ ├── jquery.js
│ │ │ │ ├── menu.js
│ │ │ │ ├── menudata.js
│ │ │ │ └── tabs.css
│ │ │ └── qscintilla.dxy
│ │ ├── qsci/
│ │ │ └── api/
│ │ │ └── python/
│ │ │ ├── Python-2.4.api
│ │ │ ├── Python-2.5.api
│ │ │ ├── Python-2.6.api
│ │ │ ├── Python-2.7.api
│ │ │ ├── Python-3.1.api
│ │ │ ├── Python-3.2.api
│ │ │ ├── Python-3.3.api
│ │ │ ├── Python-3.4.api
│ │ │ ├── Python-3.5.api
│ │ │ ├── Python-3.6.api
│ │ │ ├── Python-3.7.api
│ │ │ ├── Python-3.8.api
│ │ │ └── Python-3.9.api
│ │ ├── scintilla/
│ │ │ ├── boostregex/
│ │ │ │ ├── AnsiDocumentIterator.h
│ │ │ │ ├── BoostRegExSearch.cpp
│ │ │ │ ├── UTF8DocumentIterator.cpp
│ │ │ │ ├── UTF8DocumentIterator.h
│ │ │ │ └── boost/
│ │ │ │ ├── assert/
│ │ │ │ │ └── source_location.hpp
│ │ │ │ ├── config/
│ │ │ │ │ ├── abi/
│ │ │ │ │ │ ├── borland_prefix.hpp
│ │ │ │ │ │ ├── borland_suffix.hpp
│ │ │ │ │ │ ├── msvc_prefix.hpp
│ │ │ │ │ │ └── msvc_suffix.hpp
│ │ │ │ │ ├── abi_prefix.hpp
│ │ │ │ │ ├── abi_suffix.hpp
│ │ │ │ │ ├── assert_cxx03.hpp
│ │ │ │ │ ├── assert_cxx11.hpp
│ │ │ │ │ ├── assert_cxx14.hpp
│ │ │ │ │ ├── assert_cxx17.hpp
│ │ │ │ │ ├── assert_cxx20.hpp
│ │ │ │ │ ├── assert_cxx98.hpp
│ │ │ │ │ ├── auto_link.hpp
│ │ │ │ │ ├── compiler/
│ │ │ │ │ │ ├── borland.hpp
│ │ │ │ │ │ ├── clang.hpp
│ │ │ │ │ │ ├── clang_version.hpp
│ │ │ │ │ │ ├── codegear.hpp
│ │ │ │ │ │ ├── comeau.hpp
│ │ │ │ │ │ ├── common_edg.hpp
│ │ │ │ │ │ ├── compaq_cxx.hpp
│ │ │ │ │ │ ├── cray.hpp
│ │ │ │ │ │ ├── diab.hpp
│ │ │ │ │ │ ├── digitalmars.hpp
│ │ │ │ │ │ ├── gcc.hpp
│ │ │ │ │ │ ├── gcc_xml.hpp
│ │ │ │ │ │ ├── greenhills.hpp
│ │ │ │ │ │ ├── hp_acc.hpp
│ │ │ │ │ │ ├── intel.hpp
│ │ │ │ │ │ ├── kai.hpp
│ │ │ │ │ │ ├── metrowerks.hpp
│ │ │ │ │ │ ├── mpw.hpp
│ │ │ │ │ │ ├── nvcc.hpp
│ │ │ │ │ │ ├── pathscale.hpp
│ │ │ │ │ │ ├── pgi.hpp
│ │ │ │ │ │ ├── sgi_mipspro.hpp
│ │ │ │ │ │ ├── sunpro_cc.hpp
│ │ │ │ │ │ ├── vacpp.hpp
│ │ │ │ │ │ ├── visualc.hpp
│ │ │ │ │ │ ├── xlcpp.hpp
│ │ │ │ │ │ └── xlcpp_zos.hpp
│ │ │ │ │ ├── detail/
│ │ │ │ │ │ ├── cxx_composite.hpp
│ │ │ │ │ │ ├── posix_features.hpp
│ │ │ │ │ │ ├── select_compiler_config.hpp
│ │ │ │ │ │ ├── select_platform_config.hpp
│ │ │ │ │ │ ├── select_stdlib_config.hpp
│ │ │ │ │ │ └── suffix.hpp
│ │ │ │ │ ├── header_deprecated.hpp
│ │ │ │ │ ├── helper_macros.hpp
│ │ │ │ │ ├── no_tr1/
│ │ │ │ │ │ ├── cmath.hpp
│ │ │ │ │ │ ├── complex.hpp
│ │ │ │ │ │ ├── functional.hpp
│ │ │ │ │ │ ├── memory.hpp
│ │ │ │ │ │ └── utility.hpp
│ │ │ │ │ ├── platform/
│ │ │ │ │ │ ├── aix.hpp
│ │ │ │ │ │ ├── amigaos.hpp
│ │ │ │ │ │ ├── beos.hpp
│ │ │ │ │ │ ├── bsd.hpp
│ │ │ │ │ │ ├── cloudabi.hpp
│ │ │ │ │ │ ├── cray.hpp
│ │ │ │ │ │ ├── cygwin.hpp
│ │ │ │ │ │ ├── haiku.hpp
│ │ │ │ │ │ ├── hpux.hpp
│ │ │ │ │ │ ├── irix.hpp
│ │ │ │ │ │ ├── linux.hpp
│ │ │ │ │ │ ├── macos.hpp
│ │ │ │ │ │ ├── qnxnto.hpp
│ │ │ │ │ │ ├── solaris.hpp
│ │ │ │ │ │ ├── symbian.hpp
│ │ │ │ │ │ ├── vms.hpp
│ │ │ │ │ │ ├── vxworks.hpp
│ │ │ │ │ │ ├── wasm.hpp
│ │ │ │ │ │ ├── win32.hpp
│ │ │ │ │ │ └── zos.hpp
│ │ │ │ │ ├── pragma_message.hpp
│ │ │ │ │ ├── requires_threads.hpp
│ │ │ │ │ ├── stdlib/
│ │ │ │ │ │ ├── dinkumware.hpp
│ │ │ │ │ │ ├── libcomo.hpp
│ │ │ │ │ │ ├── libcpp.hpp
│ │ │ │ │ │ ├── libstdcpp3.hpp
│ │ │ │ │ │ ├── modena.hpp
│ │ │ │ │ │ ├── msl.hpp
│ │ │ │ │ │ ├── roguewave.hpp
│ │ │ │ │ │ ├── sgi.hpp
│ │ │ │ │ │ ├── stlport.hpp
│ │ │ │ │ │ ├── vacpp.hpp
│ │ │ │ │ │ └── xlcpp_zos.hpp
│ │ │ │ │ ├── user.hpp
│ │ │ │ │ ├── warning_disable.hpp
│ │ │ │ │ └── workaround.hpp
│ │ │ │ ├── config.hpp
│ │ │ │ ├── cstdint.hpp
│ │ │ │ ├── current_function.hpp
│ │ │ │ ├── exception/
│ │ │ │ │ ├── all.hpp
│ │ │ │ │ ├── current_exception_cast.hpp
│ │ │ │ │ ├── detail/
│ │ │ │ │ │ ├── clone_current_exception.hpp
│ │ │ │ │ │ ├── error_info_impl.hpp
│ │ │ │ │ │ ├── exception_ptr.hpp
│ │ │ │ │ │ ├── is_output_streamable.hpp
│ │ │ │ │ │ ├── object_hex_dump.hpp
│ │ │ │ │ │ ├── shared_ptr.hpp
│ │ │ │ │ │ └── type_info.hpp
│ │ │ │ │ ├── diagnostic_information.hpp
│ │ │ │ │ ├── enable_current_exception.hpp
│ │ │ │ │ ├── enable_error_info.hpp
│ │ │ │ │ ├── errinfo_api_function.hpp
│ │ │ │ │ ├── errinfo_at_line.hpp
│ │ │ │ │ ├── errinfo_errno.hpp
│ │ │ │ │ ├── errinfo_file_handle.hpp
│ │ │ │ │ ├── errinfo_file_name.hpp
│ │ │ │ │ ├── errinfo_file_open_mode.hpp
│ │ │ │ │ ├── errinfo_nested_exception.hpp
│ │ │ │ │ ├── errinfo_type_info_name.hpp
│ │ │ │ │ ├── error_info.hpp
│ │ │ │ │ ├── exception.hpp
│ │ │ │ │ ├── get_error_info.hpp
│ │ │ │ │ ├── info.hpp
│ │ │ │ │ ├── info_tuple.hpp
│ │ │ │ │ ├── to_string.hpp
│ │ │ │ │ └── to_string_stub.hpp
│ │ │ │ ├── regex/
│ │ │ │ │ ├── concepts.hpp
│ │ │ │ │ ├── config/
│ │ │ │ │ │ ├── borland.hpp
│ │ │ │ │ │ └── cwchar.hpp
│ │ │ │ │ ├── config.hpp
│ │ │ │ │ ├── icu.hpp
│ │ │ │ │ ├── mfc.hpp
│ │ │ │ │ ├── pattern_except.hpp
│ │ │ │ │ ├── pending/
│ │ │ │ │ │ ├── object_cache.hpp
│ │ │ │ │ │ ├── static_mutex.hpp
│ │ │ │ │ │ └── unicode_iterator.hpp
│ │ │ │ │ ├── regex_traits.hpp
│ │ │ │ │ ├── user.hpp
│ │ │ │ │ └── v5/
│ │ │ │ │ ├── basic_regex.hpp
│ │ │ │ │ ├── basic_regex_creator.hpp
│ │ │ │ │ ├── basic_regex_parser.hpp
│ │ │ │ │ ├── c_regex_traits.hpp
│ │ │ │ │ ├── char_regex_traits.hpp
│ │ │ │ │ ├── cpp_regex_traits.hpp
│ │ │ │ │ ├── cregex.hpp
│ │ │ │ │ ├── error_type.hpp
│ │ │ │ │ ├── icu.hpp
│ │ │ │ │ ├── iterator_category.hpp
│ │ │ │ │ ├── iterator_traits.hpp
│ │ │ │ │ ├── match_flags.hpp
│ │ │ │ │ ├── match_results.hpp
│ │ │ │ │ ├── mem_block_cache.hpp
│ │ │ │ │ ├── object_cache.hpp
│ │ │ │ │ ├── pattern_except.hpp
│ │ │ │ │ ├── perl_matcher.hpp
│ │ │ │ │ ├── perl_matcher_common.hpp
│ │ │ │ │ ├── perl_matcher_non_recursive.hpp
│ │ │ │ │ ├── primary_transform.hpp
│ │ │ │ │ ├── regbase.hpp
│ │ │ │ │ ├── regex.hpp
│ │ │ │ │ ├── regex_format.hpp
│ │ │ │ │ ├── regex_fwd.hpp
│ │ │ │ │ ├── regex_grep.hpp
│ │ │ │ │ ├── regex_iterator.hpp
│ │ │ │ │ ├── regex_match.hpp
│ │ │ │ │ ├── regex_merge.hpp
│ │ │ │ │ ├── regex_raw_buffer.hpp
│ │ │ │ │ ├── regex_replace.hpp
│ │ │ │ │ ├── regex_search.hpp
│ │ │ │ │ ├── regex_split.hpp
│ │ │ │ │ ├── regex_token_iterator.hpp
│ │ │ │ │ ├── regex_traits.hpp
│ │ │ │ │ ├── regex_traits_defaults.hpp
│ │ │ │ │ ├── regex_workaround.hpp
│ │ │ │ │ ├── states.hpp
│ │ │ │ │ ├── sub_match.hpp
│ │ │ │ │ ├── syntax_type.hpp
│ │ │ │ │ ├── u32regex_iterator.hpp
│ │ │ │ │ ├── u32regex_token_iterator.hpp
│ │ │ │ │ ├── unicode_iterator.hpp
│ │ │ │ │ └── w32_regex_traits.hpp
│ │ │ │ ├── regex.hpp
│ │ │ │ ├── regex_fwd.hpp
│ │ │ │ └── throw_exception.hpp
│ │ │ ├── include/
│ │ │ │ ├── BoostRegexSearch.h
│ │ │ │ ├── ILexer.h
│ │ │ │ ├── ILoader.h
│ │ │ │ ├── License.txt
│ │ │ │ ├── Platform.h
│ │ │ │ ├── SciLexer.h
│ │ │ │ ├── Sci_Position.h
│ │ │ │ ├── Scintilla.h
│ │ │ │ ├── Scintilla.iface
│ │ │ │ └── ScintillaWidget.h
│ │ │ ├── lexers/
│ │ │ │ ├── LexA68k.cpp
│ │ │ │ ├── LexAPDL.cpp
│ │ │ │ ├── LexASY.cpp
│ │ │ │ ├── LexAU3.cpp
│ │ │ │ ├── LexAVE.cpp
│ │ │ │ ├── LexAVS.cpp
│ │ │ │ ├── LexAbaqus.cpp
│ │ │ │ ├── LexAda.cpp
│ │ │ │ ├── LexAsm.cpp
│ │ │ │ ├── LexAsn1.cpp
│ │ │ │ ├── LexBaan.cpp
│ │ │ │ ├── LexBash.cpp
│ │ │ │ ├── LexBasic.cpp
│ │ │ │ ├── LexBatch.cpp
│ │ │ │ ├── LexBibTeX.cpp
│ │ │ │ ├── LexBullant.cpp
│ │ │ │ ├── LexCLW.cpp
│ │ │ │ ├── LexCOBOL.cpp
│ │ │ │ ├── LexCPP.cpp
│ │ │ │ ├── LexCSS.cpp
│ │ │ │ ├── LexCaml.cpp
│ │ │ │ ├── LexCmake.cpp
│ │ │ │ ├── LexCoffeeScript.cpp
│ │ │ │ ├── LexConf.cpp
│ │ │ │ ├── LexCrontab.cpp
│ │ │ │ ├── LexCsound.cpp
│ │ │ │ ├── LexD.cpp
│ │ │ │ ├── LexDMAP.cpp
│ │ │ │ ├── LexDMIS.cpp
│ │ │ │ ├── LexDiff.cpp
│ │ │ │ ├── LexECL.cpp
│ │ │ │ ├── LexEDIFACT.cpp
│ │ │ │ ├── LexEScript.cpp
│ │ │ │ ├── LexEiffel.cpp
│ │ │ │ ├── LexErlang.cpp
│ │ │ │ ├── LexErrorList.cpp
│ │ │ │ ├── LexFlagship.cpp
│ │ │ │ ├── LexForth.cpp
│ │ │ │ ├── LexFortran.cpp
│ │ │ │ ├── LexGAP.cpp
│ │ │ │ ├── LexGui4Cli.cpp
│ │ │ │ ├── LexHTML.cpp
│ │ │ │ ├── LexHaskell.cpp
│ │ │ │ ├── LexHex.cpp
│ │ │ │ ├── LexIndent.cpp
│ │ │ │ ├── LexInno.cpp
│ │ │ │ ├── LexJSON.cpp
│ │ │ │ ├── LexKVIrc.cpp
│ │ │ │ ├── LexKix.cpp
│ │ │ │ ├── LexLPeg.cpp
│ │ │ │ ├── LexLaTeX.cpp
│ │ │ │ ├── LexLisp.cpp
│ │ │ │ ├── LexLout.cpp
│ │ │ │ ├── LexLua.cpp
│ │ │ │ ├── LexMMIXAL.cpp
│ │ │ │ ├── LexMPT.cpp
│ │ │ │ ├── LexMSSQL.cpp
│ │ │ │ ├── LexMagik.cpp
│ │ │ │ ├── LexMake.cpp
│ │ │ │ ├── LexMarkdown.cpp
│ │ │ │ ├── LexMatlab.cpp
│ │ │ │ ├── LexMaxima.cpp
│ │ │ │ ├── LexMetapost.cpp
│ │ │ │ ├── LexModula.cpp
│ │ │ │ ├── LexMySQL.cpp
│ │ │ │ ├── LexNimrod.cpp
│ │ │ │ ├── LexNsis.cpp
│ │ │ │ ├── LexNull.cpp
│ │ │ │ ├── LexOScript.cpp
│ │ │ │ ├── LexOpal.cpp
│ │ │ │ ├── LexPB.cpp
│ │ │ │ ├── LexPLM.cpp
│ │ │ │ ├── LexPO.cpp
│ │ │ │ ├── LexPOV.cpp
│ │ │ │ ├── LexPS.cpp
│ │ │ │ ├── LexPascal.cpp
│ │ │ │ ├── LexPerl.cpp
│ │ │ │ ├── LexPowerPro.cpp
│ │ │ │ ├── LexPowerShell.cpp
│ │ │ │ ├── LexProgress.cpp
│ │ │ │ ├── LexProps.cpp
│ │ │ │ ├── LexPython.cpp
│ │ │ │ ├── LexR.cpp
│ │ │ │ ├── LexRebol.cpp
│ │ │ │ ├── LexRegistry.cpp
│ │ │ │ ├── LexRuby.cpp
│ │ │ │ ├── LexRust.cpp
│ │ │ │ ├── LexSAS.cpp
│ │ │ │ ├── LexSML.cpp
│ │ │ │ ├── LexSQL.cpp
│ │ │ │ ├── LexSTTXT.cpp
│ │ │ │ ├── LexScriptol.cpp
│ │ │ │ ├── LexSmalltalk.cpp
│ │ │ │ ├── LexSorcus.cpp
│ │ │ │ ├── LexSpecman.cpp
│ │ │ │ ├── LexSpice.cpp
│ │ │ │ ├── LexStata.cpp
│ │ │ │ ├── LexTACL.cpp
│ │ │ │ ├── LexTADS3.cpp
│ │ │ │ ├── LexTAL.cpp
│ │ │ │ ├── LexTCL.cpp
│ │ │ │ ├── LexTCMD.cpp
│ │ │ │ ├── LexTXT.cpp
│ │ │ │ ├── LexTeX.cpp
│ │ │ │ ├── LexTxt2tags.cpp
│ │ │ │ ├── LexVB.cpp
│ │ │ │ ├── LexVHDL.cpp
│ │ │ │ ├── LexVerilog.cpp
│ │ │ │ ├── LexVisualProlog.cpp
│ │ │ │ ├── LexYAML.cpp
│ │ │ │ └── License.txt
│ │ │ ├── lexlib/
│ │ │ │ ├── Accessor.cpp
│ │ │ │ ├── Accessor.h
│ │ │ │ ├── CharacterCategory.cpp
│ │ │ │ ├── CharacterCategory.h
│ │ │ │ ├── CharacterSet.cpp
│ │ │ │ ├── CharacterSet.h
│ │ │ │ ├── DefaultLexer.cpp
│ │ │ │ ├── DefaultLexer.h
│ │ │ │ ├── LexAccessor.h
│ │ │ │ ├── LexerBase.cpp
│ │ │ │ ├── LexerBase.h
│ │ │ │ ├── LexerModule.cpp
│ │ │ │ ├── LexerModule.h
│ │ │ │ ├── LexerNoExceptions.cpp
│ │ │ │ ├── LexerNoExceptions.h
│ │ │ │ ├── LexerSimple.cpp
│ │ │ │ ├── LexerSimple.h
│ │ │ │ ├── License.txt
│ │ │ │ ├── OptionSet.h
│ │ │ │ ├── PropSetSimple.cpp
│ │ │ │ ├── PropSetSimple.h
│ │ │ │ ├── SparseState.h
│ │ │ │ ├── StringCopy.h
│ │ │ │ ├── StyleContext.cpp
│ │ │ │ ├── StyleContext.h
│ │ │ │ ├── SubStyles.h
│ │ │ │ ├── WordList.cpp
│ │ │ │ └── WordList.h
│ │ │ └── src/
│ │ │ ├── AutoComplete.cpp
│ │ │ ├── AutoComplete.h
│ │ │ ├── CallTip.cpp
│ │ │ ├── CallTip.h
│ │ │ ├── CaseConvert.cpp
│ │ │ ├── CaseConvert.h
│ │ │ ├── CaseFolder.cpp
│ │ │ ├── CaseFolder.h
│ │ │ ├── Catalogue.cpp
│ │ │ ├── Catalogue.h
│ │ │ ├── CellBuffer.cpp
│ │ │ ├── CellBuffer.h
│ │ │ ├── CharClassify.cpp
│ │ │ ├── CharClassify.h
│ │ │ ├── ContractionState.cpp
│ │ │ ├── ContractionState.h
│ │ │ ├── DBCS.cpp
│ │ │ ├── DBCS.h
│ │ │ ├── Decoration.cpp
│ │ │ ├── Decoration.h
│ │ │ ├── Document.cpp
│ │ │ ├── Document.h
│ │ │ ├── EditModel.cpp
│ │ │ ├── EditModel.h
│ │ │ ├── EditView.cpp
│ │ │ ├── EditView.h
│ │ │ ├── Editor.cpp
│ │ │ ├── Editor.h
│ │ │ ├── ElapsedPeriod.h
│ │ │ ├── ExternalLexer.cpp
│ │ │ ├── ExternalLexer.h
│ │ │ ├── FontQuality.h
│ │ │ ├── Indicator.cpp
│ │ │ ├── Indicator.h
│ │ │ ├── IntegerRectangle.h
│ │ │ ├── KeyMap.cpp
│ │ │ ├── KeyMap.h
│ │ │ ├── License.txt
│ │ │ ├── LineMarker.cpp
│ │ │ ├── LineMarker.h
│ │ │ ├── MarginView.cpp
│ │ │ ├── MarginView.h
│ │ │ ├── Partitioning.h
│ │ │ ├── PerLine.cpp
│ │ │ ├── PerLine.h
│ │ │ ├── Position.h
│ │ │ ├── PositionCache.cpp
│ │ │ ├── PositionCache.h
│ │ │ ├── RESearch.cpp
│ │ │ ├── RESearch.h
│ │ │ ├── RunStyles.cpp
│ │ │ ├── RunStyles.h
│ │ │ ├── SciTE.properties
│ │ │ ├── ScintillaBase.cpp
│ │ │ ├── ScintillaBase.h
│ │ │ ├── Selection.cpp
│ │ │ ├── Selection.h
│ │ │ ├── SparseVector.h
│ │ │ ├── SplitVector.h
│ │ │ ├── Style.cpp
│ │ │ ├── Style.h
│ │ │ ├── UniConversion.cpp
│ │ │ ├── UniConversion.h
│ │ │ ├── UniqueString.h
│ │ │ ├── ViewStyle.cpp
│ │ │ ├── ViewStyle.h
│ │ │ ├── XPM.cpp
│ │ │ └── XPM.h
│ │ └── src/
│ │ ├── .qmake.stash
│ │ ├── InputMethod.cpp
│ │ ├── ListBoxQt.cpp
│ │ ├── ListBoxQt.h
│ │ ├── MacPasteboardMime.cpp
│ │ ├── PlatQt.cpp
│ │ ├── Qsci/
│ │ │ ├── qsciabstractapis.h
│ │ │ ├── qsciapis.h
│ │ │ ├── qscicommand.h
│ │ │ ├── qscicommandset.h
│ │ │ ├── qscidocument.h
│ │ │ ├── qsciglobal.h
│ │ │ ├── qscilexer.h
│ │ │ ├── qscilexerasm.h
│ │ │ ├── qscilexeravs.h
│ │ │ ├── qscilexerbash.h
│ │ │ ├── qscilexerbatch.h
│ │ │ ├── qscilexercmake.h
│ │ │ ├── qscilexercoffeescript.h
│ │ │ ├── qscilexercpp.h
│ │ │ ├── qscilexercsharp.h
│ │ │ ├── qscilexercss.h
│ │ │ ├── qscilexercustom.h
│ │ │ ├── qscilexerd.h
│ │ │ ├── qscilexerdiff.h
│ │ │ ├── qscilexeredifact.h
│ │ │ ├── qscilexerfortran.h
│ │ │ ├── qscilexerfortran77.h
│ │ │ ├── qscilexerglobal.h
│ │ │ ├── qscilexergo.h
│ │ │ ├── qscilexerhtml.h
│ │ │ ├── qscilexeridl.h
│ │ │ ├── qscilexerjava.h
│ │ │ ├── qscilexerjavascript.h
│ │ │ ├── qscilexerjson.h
│ │ │ ├── qscilexerlua.h
│ │ │ ├── qscilexermakefile.h
│ │ │ ├── qscilexermarkdown.h
│ │ │ ├── qscilexermatlab.h
│ │ │ ├── qscilexernsis.h
│ │ │ ├── qscilexeroctave.h
│ │ │ ├── qscilexerpascal.h
│ │ │ ├── qscilexerperl.h
│ │ │ ├── qscilexerpo.h
│ │ │ ├── qscilexerpostscript.h
│ │ │ ├── qscilexerpov.h
│ │ │ ├── qscilexerproperties.h
│ │ │ ├── qscilexerpython.h
│ │ │ ├── qscilexerr.h
│ │ │ ├── qscilexerruby.h
│ │ │ ├── qscilexerrust.h
│ │ │ ├── qscilexerspice.h
│ │ │ ├── qscilexersql.h
│ │ │ ├── qscilexertcl.h
│ │ │ ├── qscilexertex.h
│ │ │ ├── qscilexertext.h
│ │ │ ├── qscilexervb.h
│ │ │ ├── qscilexerverilog.h
│ │ │ ├── qscilexervhdl.h
│ │ │ ├── qscilexerxml.h
│ │ │ ├── qscilexeryaml.h
│ │ │ ├── qscimacro.h
│ │ │ ├── qsciprinter.h
│ │ │ ├── qsciscintilla.h
│ │ │ ├── qsciscintillabase.h
│ │ │ ├── qscistyle.h
│ │ │ └── qscistyledtext.h
│ │ ├── SciAccessibility.cpp
│ │ ├── SciAccessibility.h
│ │ ├── SciClasses.cpp
│ │ ├── SciClasses.h
│ │ ├── ScintillaQt.cpp
│ │ ├── ScintillaQt.h
│ │ ├── features/
│ │ │ └── qscintilla2.prf
│ │ ├── features_staticlib/
│ │ │ └── qscintilla2.prf
│ │ ├── qsciabstractapis.cpp
│ │ ├── qsciapis.cpp
│ │ ├── qscicommand.cpp
│ │ ├── qscicommandset.cpp
│ │ ├── qscidocument.cpp
│ │ ├── qscilexer.cpp
│ │ ├── qscilexerasm.cpp
│ │ ├── qscilexeravs.cpp
│ │ ├── qscilexerbash.cpp
│ │ ├── qscilexerbatch.cpp
│ │ ├── qscilexercmake.cpp
│ │ ├── qscilexercoffeescript.cpp
│ │ ├── qscilexercpp.cpp
│ │ ├── qscilexercsharp.cpp
│ │ ├── qscilexercss.cpp
│ │ ├── qscilexercustom.cpp
│ │ ├── qscilexerd.cpp
│ │ ├── qscilexerdiff.cpp
│ │ ├── qscilexeredifact.cpp
│ │ ├── qscilexerfortran.cpp
│ │ ├── qscilexerfortran77.cpp
│ │ ├── qscilexerglobal.cpp
│ │ ├── qscilexergo.cpp
│ │ ├── qscilexerhtml.cpp
│ │ ├── qscilexeridl.cpp
│ │ ├── qscilexerjava.cpp
│ │ ├── qscilexerjavascript.cpp
│ │ ├── qscilexerjson.cpp
│ │ ├── qscilexerlua.cpp
│ │ ├── qscilexermakefile.cpp
│ │ ├── qscilexermarkdown.cpp
│ │ ├── qscilexermatlab.cpp
│ │ ├── qscilexernsis.cpp
│ │ ├── qscilexeroctave.cpp
│ │ ├── qscilexerpascal.cpp
│ │ ├── qscilexerperl.cpp
│ │ ├── qscilexerpo.cpp
│ │ ├── qscilexerpostscript.cpp
│ │ ├── qscilexerpov.cpp
│ │ ├── qscilexerproperties.cpp
│ │ ├── qscilexerpython.cpp
│ │ ├── qscilexerr.cpp
│ │ ├── qscilexerruby.cpp
│ │ ├── qscilexerrust.cpp
│ │ ├── qscilexerspice.cpp
│ │ ├── qscilexersql.cpp
│ │ ├── qscilexertcl.cpp
│ │ ├── qscilexertex.cpp
│ │ ├── qscilexertext.cpp
│ │ ├── qscilexervb.cpp
│ │ ├── qscilexerverilog.cpp
│ │ ├── qscilexervhdl.cpp
│ │ ├── qscilexerxml.cpp
│ │ ├── qscilexeryaml.cpp
│ │ ├── qscimacro.cpp
│ │ ├── qscintilla.pro
│ │ ├── qscintilla.vcxproj
│ │ ├── qscintilla_ch.qm
│ │ ├── qscintilla_ch.ts
│ │ ├── qscintilla_cs.qm
│ │ ├── qscintilla_cs.ts
│ │ ├── qscintilla_de.qm
│ │ ├── qscintilla_de.ts
│ │ ├── qscintilla_es.qm
│ │ ├── qscintilla_es.ts
│ │ ├── qscintilla_fr.qm
│ │ ├── qscintilla_fr.ts
│ │ ├── qscintilla_pt_br.qm
│ │ ├── qscintilla_pt_br.ts
│ │ ├── qsciprinter.cpp
│ │ ├── qsciscintilla.cpp
│ │ ├── qsciscintillabase.cpp
│ │ ├── qscistyle.cpp
│ │ ├── qscistyledtext.cpp
│ │ ├── xmlMatchedTagsHighlighter.cpp
│ │ └── xmlMatchedTagsHighlighter.h
│ ├── qss/
│ │ ├── black.qss
│ │ ├── common.qss
│ │ ├── flatgray.qss
│ │ ├── lightblue.qss
│ │ ├── lightbluestyle.qss
│ │ ├── myblack.qss
│ │ ├── mystyle.qss
│ │ ├── mystyle_new.qss
│ │ └── templetestyle.qss
│ ├── qtlangset.cpp
│ ├── qtlangset.h
│ ├── qtlangset.ui
│ ├── rcglobal.cpp
│ ├── rcglobal.h
│ ├── realcompare_zh.qm
│ ├── realcompare_zh.ts
│ ├── renamewin.cpp
│ ├── renamewin.h
│ ├── renamewin.ui
│ ├── replacecommand.h
│ ├── resource.h
│ ├── rgba_icons.h
│ ├── scintillaeditview.cpp
│ ├── scintillaeditview.h
│ ├── scintillahexeditview.cpp
│ ├── scintillahexeditview.h
│ ├── shortcutkeyeditwin.cpp
│ ├── shortcutkeyeditwin.h
│ ├── shortcutkeyeditwin.ui
│ ├── shortcutkeymgr.cpp
│ ├── shortcutkeymgr.h
│ ├── shortcutkeymgr.ui
│ ├── statuswidget.cpp
│ ├── statuswidget.h
│ ├── statuswidget.ui
│ ├── styleset.cpp
│ ├── styleset.h
│ ├── texteditsetwin.cpp
│ ├── texteditsetwin.h
│ ├── texteditsetwin.ui
│ ├── textfind.cpp
│ ├── textfind.h
│ ├── textfind.ui
│ ├── themes/
│ │ ├── Bespin/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── Black board/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── Blue light/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── avs.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── coffeescript.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── flash.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── go.ini
│ │ │ ├── html.ini
│ │ │ ├── idl.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── jsp.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── rust.ini
│ │ │ ├── spice.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── typescript.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ ├── xml.ini
│ │ │ └── yaml.ini
│ │ ├── Choco/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── DansLeRuSH-Dark/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── coffeescript.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ ├── xml.ini
│ │ │ └── yaml.ini
│ │ ├── Deep Black/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ ├── xml.ini
│ │ │ └── yaml.ini
│ │ ├── HotFudgeSundae/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── coffeescript.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ ├── xml.ini
│ │ │ └── yaml.ini
│ │ ├── Mono Industrial/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── Monokai/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── Obsidian/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ ├── xml.ini
│ │ │ └── yaml.ini
│ │ ├── Plastic Code Wrap/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── Ruby Blue/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── Twilight/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── Vibrant Ink/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── html.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ └── xml.ini
│ │ ├── lavender/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── avs.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── coffeescript.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── flash.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── go.ini
│ │ │ ├── html.ini
│ │ │ ├── idl.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── jsp.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── rust.ini
│ │ │ ├── spice.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── typescript.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ ├── xml.ini
│ │ │ └── yaml.ini
│ │ ├── misty rose/
│ │ │ ├── AllGlobal.ini
│ │ │ ├── asp.ini
│ │ │ ├── avs.ini
│ │ │ ├── bash.ini
│ │ │ ├── batch.ini
│ │ │ ├── c.ini
│ │ │ ├── cmake.ini
│ │ │ ├── coffeescript.ini
│ │ │ ├── cpp.ini
│ │ │ ├── csharp.ini
│ │ │ ├── css.ini
│ │ │ ├── diff.ini
│ │ │ ├── flash.ini
│ │ │ ├── fortran.ini
│ │ │ ├── fortran77.ini
│ │ │ ├── go.ini
│ │ │ ├── html.ini
│ │ │ ├── idl.ini
│ │ │ ├── ini.ini
│ │ │ ├── java.ini
│ │ │ ├── javascript.ini
│ │ │ ├── json.ini
│ │ │ ├── jsp.ini
│ │ │ ├── lua.ini
│ │ │ ├── makefile.ini
│ │ │ ├── matlab.ini
│ │ │ ├── nsis.ini
│ │ │ ├── objc.ini
│ │ │ ├── pascal.ini
│ │ │ ├── perl.ini
│ │ │ ├── php.ini
│ │ │ ├── props.ini
│ │ │ ├── python.ini
│ │ │ ├── rc.ini
│ │ │ ├── ruby.ini
│ │ │ ├── rust.ini
│ │ │ ├── spice.ini
│ │ │ ├── sql.ini
│ │ │ ├── tcl.ini
│ │ │ ├── txt.ini
│ │ │ ├── typescript.ini
│ │ │ ├── vb.ini
│ │ │ ├── verilog.ini
│ │ │ ├── vhdl.ini
│ │ │ ├── xml.ini
│ │ │ └── yaml.ini
│ │ └── yellow rice/
│ │ ├── AllGlobal.ini
│ │ ├── asp.ini
│ │ ├── avs.ini
│ │ ├── bash.ini
│ │ ├── batch.ini
│ │ ├── c.ini
│ │ ├── cmake.ini
│ │ ├── coffeescript.ini
│ │ ├── cpp.ini
│ │ ├── csharp.ini
│ │ ├── css.ini
│ │ ├── diff.ini
│ │ ├── flash.ini
│ │ ├── fortran.ini
│ │ ├── fortran77.ini
│ │ ├── go.ini
│ │ ├── html.ini
│ │ ├── idl.ini
│ │ ├── ini.ini
│ │ ├── java.ini
│ │ ├── javascript.ini
│ │ ├── json.ini
│ │ ├── jsp.ini
│ │ ├── lua.ini
│ │ ├── makefile.ini
│ │ ├── matlab.ini
│ │ ├── nsis.ini
│ │ ├── objc.ini
│ │ ├── pascal.ini
│ │ ├── perl.ini
│ │ ├── php.ini
│ │ ├── props.ini
│ │ ├── python.ini
│ │ ├── rc.ini
│ │ ├── ruby.ini
│ │ ├── rust.ini
│ │ ├── spice.ini
│ │ ├── sql.ini
│ │ ├── tcl.ini
│ │ ├── txt.ini
│ │ ├── typescript.ini
│ │ ├── vb.ini
│ │ ├── verilog.ini
│ │ ├── vhdl.ini
│ │ ├── xml.ini
│ │ └── yaml.ini
│ ├── userlexdef.cpp
│ └── userlexdef.h
├── win.bat
├── win.mk
├── 插件编程开发说明.docx
└── 编译说明.docx
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
build
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
# Visual Studio 6 technical files
*.ncb
*.aps
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# Visual Studio History (VSHistory) files
.vshistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp
# JetBrains Rider
*.sln.iml
# Created by https://www.toptal.com/developers/gitignore/api/cmake
# Edit at https://www.toptal.com/developers/gitignore?templates=cmake
### CMake ###
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
### CMake Patch ###
# External projects
*-prefix/
# End of https://www.toptal.com/developers/gitignore/api/cmake
!/Makefile
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.so.*
*.dll
*.dylib
# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.prl
# Qt unit tests
target_wrapper.*
# QtCreator
*.autosave
# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*
# QtCreator CMake
CMakeLists.txt.user*
# QtCreator 4.8< compilation database
compile_commands.json
# QtCreator local machine specific files for imported projects
*creator.user*
[Bb]uild/
.vscode/
.vs/
================================================
FILE: CMakeLists.txt
================================================
cmake_minimum_required(VERSION 3.16)
project(NotePad-- VERSION 1.22.0)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Concurrent Network PrintSupport XmlPatterns)
# qscint 关键依赖库
add_subdirectory(${PROJECT_SOURCE_DIR}/src/qscint)
# 插件库包含
# helloworld 动态插件库
add_subdirectory(${PROJECT_SOURCE_DIR}/src/plugin/helloworld)
# win下需要开启UNICODE进行支持TCHAR
if(CMAKE_HOST_WIN32)
add_definitions(-D_UNICODE -DUNICODE)
endif()
if(${PLUGIN_EN})
if(${PLUGIN_EN} STREQUAL on)
add_definitions(-DNO_PLUGIN=1)
endif(${PLUGIN_EN})
endif()
file(GLOB UI_SRC ${PROJECT_SOURCE_DIR}/src/*.ui)
set(UI_SRC ${UI_SRC} ${PROJECT_SOURCE_DIR}/src/cceditor/ccnotepad.ui)
aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/cceditor SRC)
if(CMAKE_HOST_WIN32)
# 添加 WIN32 保证主程序启动没有命令行
list(APPEND WIN_RCS ${PROJECT_SOURCE_DIR}/src/RealCompareToMinGw.rc)
add_executable(${PROJECT_NAME} WIN32 ${WIN_RCS} ${SRC} ${UI_SRC} ${PROJECT_SOURCE_DIR}/src/RealCompare.qrc)
else()
add_executable(${PROJECT_NAME} ${SRC} ${UI_SRC} ${PROJECT_SOURCE_DIR}/src/RealCompare.qrc)
endif()
target_include_directories(${PROJECT_NAME} PRIVATE
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/src/cceditor
${PROJECT_SOURCE_DIR}/src/qscint/src
${PROJECT_SOURCE_DIR}/src/qscint/src/Qsci
${PROJECT_SOURCE_DIR}/src/qscint/scintilla/src
${PROJECT_SOURCE_DIR}/src/qscint/scintilla/include
${PROJECT_SOURCE_DIR}/src/qscint/scintilla/lexlib
${PROJECT_SOURCE_DIR}/src/qscint/scintilla/boostregex
)
target_link_libraries(${PROJECT_NAME} qscint Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Concurrent Qt5::Network Qt5::PrintSupport Qt5::XmlPatterns)
# set(PROJECT_BINARY_DIR "${PROJECT_BINARY_DIR}/bin")
# set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
if(CMAKE_HOST_UNIX)
install(
TARGETS ${PROJECT_NAME}
DESTINATION "bin"
)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/linux/usr
DESTINATION "/")
include(${PROJECT_SOURCE_DIR}/cmake/deb_package_config.cmake)
include(CPack)
elseif(CMAKE_HOST_WIN32)
install(TARGETS ${PROJECT_NAME}
DESTINATION "/")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/build/bin/
DESTINATION "/")
# 设置软件版本
set(CPACK_PACKAGE_NAME "NotePad--")
set(CPACK_PACKAGE_DESCRIPTION "NotePad--")
set(CPACK_PACKAGE_COPYRIGHT "Copyright (c) 2023")
set(CPACK_PACKAGE_VERSION "1.22.0")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "22")
set(CPACK_PACKAGE_VERSION_PATCH "0")
include(${PROJECT_SOURCE_DIR}/cmake/nsis_package_config.cmake)
include(CPack)
endif()
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
================================================
FILE: README.md
================================================
# notepad--
[中文 ](README.md) | [English](README_EN.md)
## 项目简介
Notepad--是一个轻量级文本编辑器软件,可以支持Win/Linux/Mac平台。
其开发目标是进行文本编辑类软件的国产可替代,重点在国产信创Uos系统、Mac 系统、各类linux系统上发展。
对比其它竞品Notepad类软件而言,ndd 的优势是可以跨平台,支持linux mac操作系统。
**鉴于某些Notepad竞品作者的不当言论,Notepad--的意义在于:减少一点错误言论,减少一点自以为是。**
**Notepad--的目标,致力于国产软件的可替代,专心做软件。**
您可以在这个项目提交bug或反馈问题。
本仓库与https://gitee.com/cxasm/notepad-- 是同一个软件。
中国内使用https://gitee.com/cxasm/notepad-- 。国外使用本github库,该库会定期同步国内gitee库。
由于作者在中国经常网络无法访问github,所以该库可能不会及时更新,还请见谅。
最新版本下载地址:https://gitee.com/cxasm/notepad--/releases/tag/v3.5
**鉴于Notepad--遭到竞品软件的匿名发帖诋毁,ndd项目申明:**
**Notepad--不涉及任何政治,更不会随意发布政治言论。**
对此Notepad--澄清如下:
[Ndd 对诋毁者们恶意歪曲事实的说明](https://gitee.com/cxasm/notepad--/wikis/Ndd-%E5%AF%B9%E8%AF%8B%E6%AF%81%E8%80%85%E4%BB%AC%E6%81%B6%E6%84%8F%E6%AD%AA%E6%9B%B2%E4%BA%8B%E5%AE%9E%E7%9A%84%E8%AF%B4%E6%98%8E)
**建议全体海内外同胞,务必禁用发表错误言论的软件,您可以选择用其它同类软件进行替代,比如vscode,notepad3,sublime都行。大家用实际行动拒绝错误言论软件, 不去评论它,不去关注它,不给它带来任何流量,则发布错误言论的人,终将自讨没趣而闭嘴。**
ndd在深度国产uos运行效果:

ndd在windows运行效果:


ndd 在macOs运行效果:

subtwo在redhat运行效果:

================================================
FILE: README_EN.md
================================================
# Notepad--
[中文 ](README.md) | [English](README_EN.md)
## Project Introduction
Introducing Notepad-- a text editor written in C++ that works seamlessly across Windows, Linux, and Mac platforms. Our aim is to eventually surpass Notepad++, with a particular focus on the Chinese UOS operating system. Unlike Notepad++, our advantage lies in our cross-platform compatibility and support for various OSes.
**The purpose of Notepad-- is to counteract some of the misguided remarks made by the author of Notepad++ and to promote a more humble and grounded perspective.**
If you come across any bugs or have any feedback, feel free to share it with us.
You can download the latest version at https://gitee.com/cxasm/notepad--/releases/tag/v2.0
We have recently added the plugin writing feature to Notepad-- and we hope that many CPP/QT developers will join us in this endeavor. If you develop a plugin, you can include your name and a donation channel.
Creating a free text editor requires support from users like you. If you'd like to contribute, please consider donating through WeChat.

## Compilation
**CMake Toolchain Compilation Instructions:**
- Ubuntu/Debian
1. Install compilation environment `sudo apt-get install g++ make cmake`
1. Install qt tools and libraries `sudo apt-get install qtbase5-dev qt5-qmake qtbase5-dev-tools libqt5printsupport5 libqt5xmlpatterns5-dev `
1. Configure `cmake -B build -DCMAKE_BUILD_TYPE=Release`
1. Compile `cd build && make -j`
1. Package `cpack`
- ArchLinux
1. Install compilation environment `sudo pacman -S gcc cmake make ninja`
1. Install qt tools and libraries `sudo pacman -S qt5-tools qt5-base qt5-xmlpatterns `
1. Configure `cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -W no-dev`
1. Compile `ninja -C build && ninja -C build install`
1. Package: use [AUR/notepad---git](https://aur.archlinux.org/packages/notepad---git) `yay -S notepad---git`
1. Installation:
- Pre-compiled package add [ArchLinuxCN/notepad---git](https://github.com/archlinuxcn/repo) mirror `yay -S archlinuxcn/notepad---git`
- Pre-compiled package [Debuginfod/notepad---git-debug](https://wiki.archlinux.org/title/Debuginfod) package `yay -S archlinuxcn/notepad---git-debug`
**Qt Project Compilation Instructions:**
1) Start by opening qscint/src/qscintilla.pro in either Qt Creator or Visual Studio and compile the qscintilla dependency library.
2) Next, open RealCompare.pro and compile it after loading.
3) Due to the multi-platform compilation, involving Windows/Linux/MacOS, if there are any compilations or problems, please join qq group 959439826. We welcome contributions and code submissions from everyone.
Recently, the code was made available online. However, the commercial comparison function and registration function have been removed for commercial reasons. All other functions have been retained.
4) For Arch Linux and its derivatives, you can install Notepad-- through the AUR using the following command: [notepad---git](https://aur.archlinux.org/packages/notepad---git)
```
yay -S notepad---git
```
## Preview




================================================
FILE: THIRDPARTY.md
================================================
## 第三方依赖
## 源码依赖
- [[GPL v3](src/qscint/LICENSE)] [QScintilla](https://riverbankcomputing.com/software/qscintilla/intro)
- [GPL v3]
- [boostregex](src/qscint/scintilla/boostregex)
- [rgba_icons.h](src/rgba_icons.h)
- [xmlMatchedTagsHighlighter.cpp](src/qscint/src/xmlMatchedTagsHighlighter.cpp)
- [xmlMatchedTagsHighlighter.h](src/qscint/src/xmlMatchedTagsHighlighter.h)
## 开发、打包时依赖
- [[zlib/libpng](https://nsis.sourceforge.io/License)] [NSIS](https://nsis.sourceforge.io)
打包工具
================================================
FILE: changelog.txt
================================================
Ndd V1.23 发布 20230226
功能:
1 希望可以支持xml按照层次折叠和展开操作
2 能否增加自动刷新和滚动文本功能,以及手动重新打开文件。提供tailf方式。
3 建议 查找与替换 添加ESC键响应,ESC键退出查找替换窗体
4 查找替换没有默认选中
5 新窗口打开的文件,不能再拖放回去
6 无法计算选中内容的行数
7 json 格式化,提供json格式化插件,命令行插件等
8 高清屏幕适配一些列问题
9 能否支持在软件内设置文件关联。安装包支持
10 希望记录一下关闭软件时的标签页
11 增加md5/sha计算
改进:
1 新建文件缩进参考线会消失
2 XML 文件 注释部分文字偏小看不清
3 关闭编辑器之后,编辑器的设置窗口还在,如果多次就会有下图的样子
4 Ctrl+F时,建议文本框内的内容默认选中
5 建议程序打开时tab页为最后关闭时tab页
6 选中多个文件右键打开时会启动多个窗口,而非多个标签,
7 双击英文句点全部文本都会高亮
8 command只能-缩小,+没用 不能放大
9 CTRL+F搜索框丢失焦点后,再用快捷键CTRL+F不能自动聚焦
10 已设置的快捷键可以取消
11 希望显示总字数
12 Ctrl+S时,并不能删除.swp临时文件,建议隐藏.swp文件
13 建议 增加 打开当前文件目录下 命令提示符的功能
14 显示空格的问题
15 鼠标选择文本后高亮
Ndd V1.22 预发布 20230202
1 提供大文本、超大文本打开两种方式;并尽量显示行号。
2 增加ASM语言的语法高亮;增加shell语法高亮。
3 大文本打开时,显示行号。
4 BUG: 超大文本打开乱码。
5 批量查找窗口大小记住恢复。
6 块注释崩溃。
7 替换ctrl+h 自动填充选中内容,查找替换切换自动带过去关键字。
8 查找结果框,可以放大缩小,避免看不清楚;完善配色。
9 第一次安装后,新建NEW文件,下次打开无法自动恢复的问题。
10 win10下面管理员授权打开文件后,旧文件修改跟随到新打开窗口
11 解决一些列小bug等。
12 提供ARCH LINUX的构建版本等。
Ndd V1.21 预发布 20230107
1 支持主题的修改,完善八种新主题
2 初步支持插件开发
3 小需求完善:批量替换支持进度条、支持web地址高亮双击打开
4 解决反馈的bug
v1.21.1 小版本 20230125
解决如下问题
1 新增语法与文件后缀关联的设置。16A5Y1
2 新增快捷键的管理与修改设置
3 查找框完善:选中文本查找,字段自动填充到替换的查找框中。
4 查找框完善:默认不选中文本查找时,查找框和替换框中默认填空,
避免残留上次结果,让用户还需要手动去删除。gitee:16ALEJ
5 用户反馈,默认字体14过大,修改为12
6 查找结果太长时,增加查找结果框的水平滚动条功能。gitee:16A77D
7 区块选择崩溃bug修复
8 调整对比框中的配色问题
9 解决右键菜单中清除标记颜色无效的bug
10 解决ndd关闭后再打开,恢复出来的文件顺序可能不一样的问题
11 解决gitee:169U01:关闭软件后重启,新建文件名称从原来的序号开始,导致重名。
12 git169twc 打开文件时窗口没有还原
Ndd V1.20 预发布 20221216
1 增加文件列表,方便多文件时选中。
2 增加快捷注释功能
3 完善黑色配色
4 完善大文本文件打开时选择的方式
5 解决New0冒出问题
6 打开文件时,如果在后台,窗口自动弹到前面
7 菜单最近对比合入对比
8 解决输入法有时会无法出现的bug
9 提速,使用vs2019 qt515.7重新构建版本
10 新增代码自动缩进的功能
11 工具栏增加 缩放率 大小显示。ctrl+鼠标滑动,增加缩放率显示
12 长行查找结构,进行截断处理,避免太长导致结果框慢
1.19 预发布 20221205 version26
1 提供深色功能
2 对比目录增加递归处理菜单项
3 增加对比文件时的差异图
4 完善查找功能、查找结果位置修正
5 增加vb语法高亮等
6 解决一系列发现的bug或其它小问题
1.18 预发布版本发布 20221120 version25
1 字体风格提供全局一键修改全部功能
2 对比可以直接拷贝粘贴内容进行对比
3 记住窗口大小未知;查找结果位置记住;放大缩小率记住;下次打开恢复上述信息
4 安装位置修改到x64安装目录
5 支持书签下8种功能,快捷键F2切换书签等。
6 解决一些列bug,如txt下字体大小显示不等宽;对比窗口行号不统一等;
7 提高安全性,崩溃后下次打开无条件保存新旧文件等。
8 提高打开速度。内部使用ini配置替换json格式等。
1.17.0 发布 20221108
1.17 win10版本发布了,完成如下功能
1 完成自定义编程语言风格 -- 给出一个基础版本,可自定义语言,添加关键词。
2 语言风格全局设置,快捷一键全部弄成一样的字体样式
3 查询关键字计数
4 增加大小写转换功能
5 使用了boot的正则表达式
6 增加移除空行功能
7 列编辑功能
8 行编辑中16 种功能移植
9 中文安装包
10 对比卡死bug解决
11 其它小功能。比如根据win linxu自动设置换行符号、长行显示不全等bug。
//5 1.3
//6 1.4 20211027日
//7 1.5 20211110日发布,是第一个真正意义上的稳定版本。
//8 1.6 20211201发布,增加了网络消息中的6和7命令。第一次发布了notebook版本。
//9 1.7 20211224日发布,增加了bin二进制的对比方式。暂时先在www.itdp.cn发布。
//10 没有使用,单独给mac的一个版本做尝试
//11 20210118日发布,单独发布ccompare和ccnotepad。notepad暂时在www.itdp.cn发布。这个版本中的linux 和 windows的 VERIFY_CODE 做了不同的区别。将二者分离出来
//12 1.9 发布。
//13 1.9.1 20220225发布,bin对比背景高亮。调整了界面美观度
//版本号没有修改,换皮。20220525重新发布,不再继续维护修改了。
因为编辑器的市场已经是红海,没必要死磕,考虑其它途径。就这样吧。
//15 1.9.0 20220530左右发布。在uos上面第一次发布。
//16 1.10.0 20220616左右发布。在uos上面发布了。增加查找高亮、Uos上右键关联打开等。
//17 1.11.0 20220629左右编译发布,在Uos也发布了。增加单词高亮、自动保存、前后位置跳转等。
//18 1.11.0 20220630 linux uos下面重新编译了下,版本直接修改为18,在网站发布。因为已经提交到uos商店中去了,后续再提交时,不修改版本,直接保持为18即可。
//18 1.12.0 20220707 只发布了windows版本,修改为多线程、取消数据库db,修改为json存储格式。加速第一次运行时的速度处理。
//19 1.13.0 20220802 只发布了windows版本,增加文件夹查找功能,美化界面。马上要发布uos版本。
//19 1.13.0 20220803 大幅度改善查找文件框的设置,优化其显示。20220804发布了uos 1.13版本
//21 1.14.0 20220901 大幅完善细节,中间有个20的版本做了皮肤风格的。本次对查找扩展、大量细节做了完善。已经发布了win10版本。
//22 1.14.0 202209010 先发布了windows下面的版本、自动检测二进制文件或文本,支持大文本分块显示、合入文件对比的功能、提交了第一个版本的注册界面。
理论上这个版本应该是一个里程碑式样的版本。先只发布了windows版本。mac和uos的在后面等稳定后再发布。
//23 1.16.0 20221008 完善了大量细节,应该是更加完善的一个里程碑版本。目前windows mac 都已经发布,uos的还没有提交到商场,预计月底提交。
//23 1.16.1 20221011 1.16里面存在问题,对比时会卡死,紧急解决了这个故障。使用nsis进行了打包,只发布了win10,后续还需要uos mac发布。
================================================
FILE: cmake/deb_package_config.cmake
================================================
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_NAME "notepad--")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "a text editor like notepad++")
set(CPACK_PACKAGE_CONTACT "coconil")
set(CPACK_PACKAGE_VERSION "1.22.0")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "22")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5concurrent5,libqt5core5a,libqt5gui5,libqt5network5,libqt5printsupport5,libqt5xmlpatterns5")
================================================
FILE: cmake/nsis_package_config.cmake
================================================
set(CPACK_GENERATOR NSIS)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_NAME}")
# 维护人员
set(CPACK_PACKAGE_CONTACT "XiaoPb")
set(P4_VERSION_INFO_CL_HIGH "0")
set(P4_VERSION_INFO_CL_LOW "0")
# set(CPACK_PACKAGE_VERSION_PATCH "0")
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}")
set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_NAME}V${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_NSIS_PACKAGE_NAME "${CPACK_PACKAGE_NAME}V${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/ico/txt (9).ico")
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_CURRENT_SOURCE_DIR}/src/Resources/ico/txt (9).ico")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/License")
set (CPACK_PACKAGE_EXECUTABLES "${PROJECT_NAME}" "${PROJECT_NAME}" )
# 设置 安装包属性信息
set (CPACK_NSIS_DEFINES "
${CPACK_NSIS_DEFINES}
VIProductVersion ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${P4_VERSION_INFO_CL_HIGH}.${P4_VERSION_INFO_CL_LOW}
VIFileVersion ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${P4_VERSION_INFO_CL_HIGH}.${P4_VERSION_INFO_CL_LOW}
VIAddVersionKey /LANG=0 \\\"ProductName\\\" \\\"${CPACK_PACKAGE_NAME}\\\"
VIAddVersionKey /LANG=0 \\\"ProductVersion\\\" \\\"v${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}${CPACK_PACKAGE_BUILD_TYPE_REVISION}\\\"
VIAddVersionKey /LANG=0 \\\"Comments\\\" \\\"${CPACK_PACKAGE_DESCRIPTION}\\\"
VIAddVersionKey /LANG=0 \\\"CompanyName\\\" \\\"${CPACK_PACKAGE_VENDOR}\\\"
VIAddVersionKey /LANG=0 \\\"LegalCopyright\\\" \\\"${CPACK_PACKAGE_COPYRIGHT}\\\"
VIAddVersionKey /LANG=0 \\\"FileDescription\\\" \\\"${CPACK_PACKAGE_NAME} Installer\\\"
VIAddVersionKey /LANG=0 \\\"FileVersion\\\" \\\"v${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}${CPACK_PACKAGE_BUILD_TYPE_REVISION}\\\"
"
)
# 设置 安装时需要的环境变量
set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
WriteRegStr SHCTX \\\"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\App Paths\\\\${PROJECT_NAME}\\\" \\\"\\\" \\\"$INSTDIR\\\\bin\\\\${PROJECT_NAME}.exe\\\"
WriteRegStr SHCTX \\\"Software\\\\Classes\\\\${PROJECT_NAME}\\\\shell\\\" \\\"\\\" \\\"open\\\"
WriteRegStr SHCTX \\\"Software\\\\Classes\\\\${PROJECT_NAME}\\\\shell\\\\open\\\\command\\\" \\\"\\\" \\\"$\\\\\\\"$INSTDIR\\\\bin\\\\${PROJECT_NAME}.exe$\\\\\\\" $\\\\\\\"%1$\\\\\\\"\\\"
WriteRegStr SHCTX \\\"Software\\\\Classes\\\\.txt\\\\OpenWithProgids\\\" \\\"${PROJECT_NAME}\\\" \\\"\\\"
WriteRegStr SHCTX \\\"Software\\\\Classes\\\\*\\\\shell\\\\${PROJECT_NAME}\\\" \\\"\\\" \\\"Edit with ${PROJECT_NAME}\\\"
WriteRegStr SHCTX \\\"Software\\\\Classes\\\\*\\\\shell\\\\${PROJECT_NAME}\\\" \\\"Icon\\\" \\\"$INSTDIR\\\\bin\\\\${PROJECT_NAME}.exe\\\"
WriteRegStr SHCTX \\\"Software\\\\Classes\\\\*\\\\shell\\\\${PROJECT_NAME}\\\\command\\\" \\\"\\\" \\\"$\\\\\\\"$INSTDIR\\\\bin\\\\${PROJECT_NAME}.exe$\\\\\\\" $\\\\\\\"%1$\\\\\\\"\\\"
")
# 设置 卸载时需要的环境变量
set (CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
Delete \\\"$DESKTOP\\\\${PROJECT_NAME}.lnk\\\"
Delete \\\"$SMPROGRAMS\\\\${PROJECT_NAME}.lnk\\\"
DeleteRegKey SHCTX \\\"Software\\\\Classes\\\\*\\\\shell\\\\${PROJECT_NAME}\\\"
DeleteRegKey SHCTX \\\"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\App Paths\\\\bin\\\\${PROJECT_NAME}.exe\\\" \\\"\\\" \\\"$INSTDIR\\\\bin\\\\${PROJECT_NAME}.exe\\\"
DeleteRegKey SHCTX \\\"Software\\\\${PROJECT_NAME}\\\"
DeleteRegValue SHCTX \\\"Software\\\\Classes\\\\.txt\\\\OpenWithProgids\\\" \\\"${PROJECT_NAME}\\\"
DeleteRegKey SHCTX \\\"Software\\\\Classes\\\\${PROJECT_NAME}\\\"
")
================================================
FILE: src/.qmake.stash
================================================
QMAKE_CXX.QT_COMPILER_STDCXX = 199711L
QMAKE_CXX.QMAKE_MSC_VER = 1929
QMAKE_CXX.QMAKE_MSC_FULL_VER = 192930142
QMAKE_CXX.COMPILER_MACROS = \
QT_COMPILER_STDCXX \
QMAKE_MSC_VER \
QMAKE_MSC_FULL_VER
QMAKE_CXX.INCDIRS = \
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\ATLMFC\\include" \
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\include" \
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt" \
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\shared" \
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\um" \
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\winrt" \
"C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\cppwinrt"
QMAKE_CXX.LIBDIRS = \
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\ATLMFC\\lib\\x64" \
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\lib\\x64" \
"C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\ucrt\\x64" \
"C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.19041.0\\um\\x64"
================================================
FILE: src/CmpareMode.cpp
================================================
#include "CmpareMode.h"
#include "Encode.h"
#include "rcglobal.h"
#include <QFile>
#include <QFileDevice>
#include <QVector>
#include <QCryptographicHash>
#include <functional>
#include <QDataStream>
#include <QtConcurrent>
CmpareMode::CmpareMode()
{
}
CmpareMode::~CmpareMode()
{
}
//识别文字编码,并将文字按照原始编码格式,转换为QString。如果失败,默认按照utf8的格式进行转换;
bool CmpareMode::recognizeTextCode(QByteArray & text, LineFileInfo &lineInfo, QString &outUnicodeText)
{
int lineNums = lineInfo.lineNums;
int length = text.count();
int result = false;
//第一行时,检测一下文件编码,返回值也是文件的编码
if (0 == lineNums)
{
int skip = 0;
lineInfo.code = Encode::DetectEncode((uchar*) text.data(), length, skip);
//根据编码跳过第一行前面的几个字符编码标识字段
if (skip > 0)
{
text = text.mid(skip);
}
return Encode::tranStrToUNICODE((CODE_ID)lineInfo.code, text.data(), text.count(), outUnicodeText);
}
else
{
/*对于头部没有标识的行,需要每行进行详细检查,比较耗时
*对于第一行已经是GBK的编码,标识出所有的确是GBK的行号
*严格来说,如果以后要做国际版,不应该只考虑GBK,而是要考虑本地ASNI编码。
*对中国而言,本地ASNI编码是GBK,对其它国家,比如日本/韩国而言,这些ASNI是它们本国
*对应的本地编码。
*/
//#if 0
// //全部都在ascii范围以内,就作为ascii码。注意ASCII处理时其它地方时按照UTF8进行编码的
// if (Encode::CheckTextIsAllAscii((uchar*)text.data(), length))
// {
// lineInfo.code = CODE_ID::ASCII;
// return Encode::tranStrToUNICODE((CODE_ID)lineInfo.code, text.data(), length, outUnicodeText);
// }
// else
// {
//#endif
CODE_ID actualCode = Encode::CheckUnicodeWithoutBOM((uchar*)text.data(), length, outUnicodeText);
if (CODE_ID::UTF8_NOBOM == actualCode)
{
lineInfo.code = CODE_ID::UTF8_NOBOM;
result = true;
}
else if (CODE_ID::GBK == actualCode)
{
//如果发现存在GBK,则要以GBK作为字符编码。这里识别gbk是因为显示的时候,需要转化gbk进行显示
lineInfo.code = CODE_ID::GBK;
result = true;
}
else if (CODE_ID::ANSI == actualCode)
{
lineInfo.code = CODE_ID::UNKOWN; //这里就是乱码了。即不是utf8也不是GBK,也不能说乱码,目前其它国家未处理的码
result = false;
}
//#if 0
// }
//#endif
}
return result;
}
//LE编码要特殊对待。
bool CmpareMode::isUnicodeLeBomFile(uchar* fileFpr, int fileLength)
{
if (fileLength >= 2 && fileFpr[0] == 0xFF && fileFpr[1] == 0xFE)
{
return true;
}
return false;
}
//isCheckHead:是否检测头。只有文件开头,才有。如果是分块加载,中间打开的文件,则不需要检测。默认检测
CODE_ID CmpareMode::getTextFileEncodeType(uchar* fileFpr, int fileLength, QString filePath, bool isCheckHead)
{
if (isCheckHead)
{
if (fileLength >= 2 && fileFpr[0] == 0xFF && fileFpr[1] == 0xFE)
{
return CODE_ID::UNICODE_LE; //skip 2
}
else if (fileLength >= 2 && fileFpr[0] == 0xFE && fileFpr[1] == 0xFF)
{
return CODE_ID::UNICODE_BE; //skip 2
}
else if (fileLength >= 3 && fileFpr[0] == 0xEF && fileFpr[1] == 0xBB && fileFpr[2] == 0xBF)
{
return CODE_ID::UTF8_BOM; //skip 3 with BOM
}
}
//走到这里说明没有文件头BOM,进行全盘文件扫描
if (!filePath.isEmpty())
{
return scanFileRealCode(filePath);
}
return CODE_ID::UNKOWN;
}
//20230201新增:把Unicode_LE的字节流,转换为QString 发现如果是CODE_ID::UNICODE_LE,\r\n变成了\r\0\n\0,读取readLine遇到\n就结束了,而且toUnicode也会变成乱码失败
//所以UNICODE_LE需要单独处理。该函数只处理Unicode_LE编码文件,事先一定要检查文件编码
//返回字符数,不是编码类型,注意是字符数,不是bytes
//这里有个问题,当初读取文件分块是,是无条件读取到\n就结束,则可能最后不是\n\0,而是\n。这种情况要特殊处理。标记为A。
//是否跳过前面的LE头。默认不跳过。只有文件块开头第一块,才需要跳过。
bool CmpareMode::tranUnicodeLeToUtf8Bytes(uchar* fileFpr, const int fileLength, QString &outUtf8Bytes, bool isSkipHead)
{
CODE_ID code = CODE_ID::UNICODE_LE;
int lineStartPos = (isSkipHead ? 2:0); //uicode_le前面有2个特殊标识,故跳过2
//获取一行在文件中
auto getOneLineFromFile = [fileFpr](int& startPos, const int fileLength, QByteArray& ret)->bool {
if (startPos < fileLength)
{
ret.clear();
int lineLens = 0;
bool isFindLine = false;
for (int i = startPos; i < fileLength; ++i, ++lineLens)
{
//遇到换行符号
if (fileFpr[i] == 0x0A)
{
//lineLens需要加2,因为当前这个没有加,而且后面还有一个\0,这是le格式规定的。
//特殊对待A。如果后续还要一个\0,及长度足够,则+2,否则只能加1
if (startPos + lineLens + 2 < fileLength)
{
ret.append((char*)(fileFpr + startPos), lineLens + 2);
startPos += lineLens + 2;
}
else
{
//这里就是特殊情况,尾部后面没有\0,只能前进1个。
ret.append((char*)(fileFpr + startPos), lineLens + 1);
//必须手动补上一个\0。避免格式残缺
ret.append('\0');
startPos += lineLens + 1;
}
isFindLine = true;
break;
}
}
//没有找到一行
if (!isFindLine)
{
//最后一行,可能没有带\r\0直接返回
ret.append((char*)(fileFpr + startPos), fileLength - startPos);
startPos = fileLength;
}
return true;
}
return false;
};
QByteArray line;
QByteArray tempUtf8Bytes;
tempUtf8Bytes.reserve(fileLength+1);
while (getOneLineFromFile(lineStartPos, fileLength, line)) {
tempUtf8Bytes.append(line);
}
return Encode::tranStrToUNICODE(code, tempUtf8Bytes.data(), tempUtf8Bytes.count(), outUtf8Bytes);
}
//20210802:发现如果是CODE_ID::UNICODE_LE,\r\n变成了\r\0\n\0,读取readLine遇到\n就结束了,而且toUnicode也会变成乱码失败
//所以UNICODE_LE需要单独处理。该函数只处理Unicode_LE编码文件,事先一定要检查文件编码
//返回字符数,不是编码类型,注意是字符数,不是bytes
quint32 CmpareMode::readLineFromFileWithUnicodeLe(uchar* m_fileFpr, const int fileLength, QList<LineFileInfo>& lineInfoVec, QList<LineFileInfo>& blankLineInfoVec,int mode, int &maxLineSize)
{
QCryptographicHash md4(QCryptographicHash::Md4);
int lineNums = 0;
CODE_ID code = CODE_ID::UNICODE_LE;
int lineStartPos = 2; //uicode_le前面有2个特殊标识,故跳过2
//获取一行在文件中
auto getOneLineFromFile = [m_fileFpr](int& startPos, const int fileLength, QByteArray& ret)->bool{
if (startPos < fileLength)
{
ret.clear();
int lineLens = 0;
bool isFindLine = false;
for (int i = startPos; i < fileLength; ++i,++lineLens)
{
//遇到换行符号
if (m_fileFpr[i] == 0x0A)
{
if (startPos + lineLens + 2 < fileLength)
{
//lineLens需要加2,因为当前这个没有加,而且后面还有一个\0,这是le格式规定的
ret.append((char*)(m_fileFpr + startPos), lineLens + 2);
startPos += lineLens + 2;
}
else
{
//这里就是特殊情况,尾部后面没有\0,只能前进1个。
//其实是容错,可能最后一个没有\0
ret.append((char*)(m_fileFpr + startPos), lineLens + 1);
//必须手动补上一个\0。避免格式残缺
ret.append('\0');
startPos += lineLens + 1;
}
isFindLine = true;
break;
}
}
//没有找到一行
if (!isFindLine)
{
//最后一行,可能没有带\r\0直接返回
ret.append((char*)(m_fileFpr + startPos), fileLength - startPos);
startPos = fileLength;
}
return true;
}
return false;
};
QByteArray line;
quint32 charNums = 0;
auto work = [mode, &md4](LineFileInfo& lineInfo, const int n) {
if (mode == 0)
{
md4.addData(lineInfo.unicodeStr.trimmed().toUtf8());
}
else if (mode == 1)
{
md4.addData(lineInfo.unicodeStr.left(lineInfo.unicodeStr.length() - n).toUtf8());
}
else if (mode == 2)
{
QString temp = lineInfo.unicodeStr;
md4.addData(temp.replace(QRegExp("\\s"), QString("")).toUtf8());
}
};
while (getOneLineFromFile(lineStartPos, fileLength,line)) {
LineFileInfo lineInfo;
lineInfo.lineNums = lineNums;
/* 这种方式读取文件会包含后面的行尾 */
int length = line.length();
if (maxLineSize < length)
{
maxLineSize = length;
}
//如果是头部有标识的格式,则后续不用详细检查每行编码,直接按照头部标识走
Encode::tranStrToUNICODE(code, line.data(), line.count(), lineInfo.unicodeStr);
lineInfo.code = code;
charNums += lineInfo.unicodeStr.size();
if (lineInfo.unicodeStr.endsWith("\r\r\n"))
{
//这里是一种错误,但确实可能出现
if (length > 3)
{
work(lineInfo, 3);
}
else
{
//空白行
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::DOS_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\r\n"))
{
if (length > 2)
{
work(lineInfo, 2);
}
else
{
//空白行
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::DOS_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\n"))
{
if (length > 1)
{
work(lineInfo, 1);
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::UNIX_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\r"))
{
if (length > 1)
{
work(lineInfo, 1);
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::MAC_LINE;
}
else
{
if (length > 0)
{
work(lineInfo, 0);
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::UNKNOWN_LINE;
}
if (lineInfo.isEmptyLine)
{
blankLineInfoVec.append(lineInfo);
}
else
{
lineInfo.md4 = md4.result();
//qDebug() << lineInfo.md4;
md4.reset();
lineInfoVec.append(lineInfo);
}
++lineNums;
}
return charNums;
}
//读取每一行,将空白行和非空白行分开。非空白行取他们的行md4值(不包含尾部的换行符)
//返回值:文件扫描出来的字符编码
//在对比行的md5值时,忽略了后面的行尾类型。即只对比字符内容,忽略了行尾。
//20210802:发现如果是CODE_ID::UNICODE_LE,\r\n变成了\r\0\n\0,读取readLine遇到\n就结束了,而且toUnicode也会变成乱码失败
//所以UNICODE_LE需要单独处理。注意UNICODE_BE没有这个问题,因为BE是\0\r\0\n,0在前面就没有这个问题
//20210901 发现使用readLine的方式来读取一行不可靠。因为有些文件中一行中间有个\r,这种情况没有识别为多行。readLine是根据\n来识别的。
//进而导致中间的\r没有识别为多行,但是在编辑器中却多一行,导致对比错误。还是要自己来识别行。不依赖于readLine
//CODE_ID fileCode 事先预判定的编码
CODE_ID CmpareMode::readLineFromFile(uchar* m_fileFpr, const int fileLength, const CODE_ID fileCode, QList<LineFileInfo>&lineInfoVec, QList<LineFileInfo>&blankLineInfoVec, int mode, int &maxLineSize)
{
QCryptographicHash md4(QCryptographicHash::Md4);
int lineNums = 0;
CODE_ID code = fileCode;
bool isExistGbk = false;
bool isExistUnKownCode = false;
bool isExistUtf8 = false;
int lineStartPos = 0;
//跳过前面的BOM头部。LE不在这里处理,在外面
if (fileCode == CODE_ID::UNICODE_BE || fileCode == CODE_ID::UNICODE_LE)
{
lineStartPos = 2;
}
else if (fileCode == CODE_ID::UTF8_BOM)
{
lineStartPos = 3;
}
//获取一行在文件中
auto getOneLineFromFile = [m_fileFpr](int& startPos, const int fileLength, const CODE_ID fileCode, QByteArray& ret)->bool {
if (startPos < fileLength)
{
ret.clear();
int lineLens = 0;
bool isFindLine = false;
for (int i = startPos; i < fileLength; ++i, ++lineLens)
{
//遇到符号CR
if (m_fileFpr[i] == 0x0D)
{
//后一个是LF,即以CRLF结尾
if ((i + 1 < fileLength) && (m_fileFpr[i+1] == 0x0A))
{
//lineLens需要加2,因为当前这个没有加,而且后面还有一个\n
ret.append((char*)(m_fileFpr + startPos), lineLens + 2);
startPos += lineLens + 2;
isFindLine = true;
break;
}
else if ((fileCode == UNICODE_BE)&&((i>0) && m_fileFpr[i-1] == '\0'))
{
//事先发现就是BE格式,以\0\r\0\n为结尾的
if ((i + 2 < fileLength) && (m_fileFpr[i + 1] == 0x0) && (m_fileFpr[i + 2] == 0x0A))
{
//lineLens需要加3,因为当前这个没有加,而且后面还有一个\0\n
ret.append((char*)(m_fileFpr + startPos), lineLens + 3);
startPos += lineLens + 3;
isFindLine = true;
break;
}
else
{
//虽然说是BE格式,但是后面没有以\0\n结尾,而是以\r结尾。这种多半就是错误。直接按\0\r结尾
//lineLens需要加1,因为当前这个没有加
ret.append((char*)(m_fileFpr + startPos), lineLens + 1);
startPos += lineLens + 1;
isFindLine = true;
break;
}
}
else
{
//直接以\r结尾了,后面没有\n或者\0\n。符合MAC格式,windows可能编码只有\r,没有\n的错误情况。
//lineLens需要加1,因为当前这个没有加
ret.append((char*)(m_fileFpr + startPos), lineLens + 1);
startPos += lineLens + 1;
isFindLine = true;
break;
}
}
else if(m_fileFpr[i] == 0x0A)
{
//没有先遇到\r,直接遇到\n.20210903发现忘记处理该情况le
//lineLens需要加1,因为当前这个没有加
ret.append((char*)(m_fileFpr + startPos), lineLens + 1);
startPos += lineLens + 1;
isFindLine = true;
break;
}
}
//没有找到一行
if (!isFindLine)
{
//最后一行,可能没有带\r\0直接返回
ret.append((char*)(m_fileFpr + startPos), fileLength - startPos);
startPos = fileLength;
}
return true;
}
return false;
};
QByteArray line;
auto work = [mode,&md4](LineFileInfo& lineInfo, const int n) {
if (mode == 0)
{
md4.addData(lineInfo.unicodeStr.trimmed().toUtf8());
}
else if (mode == 1)
{
md4.addData(lineInfo.unicodeStr.left(lineInfo.unicodeStr.length() - n).toUtf8());
}
else if (mode == 2)
{
QString temp = lineInfo.unicodeStr;
md4.addData(temp.replace(QRegExp("\\s"), QString("")).toUtf8());
}
};
while (getOneLineFromFile(lineStartPos, fileLength, code, line)) {
LineFileInfo lineInfo;
lineInfo.lineNums = lineNums;
/* 这种方式读取文件会包含后面的行尾 */
int length = line.length();
if (maxLineSize < length)
{
maxLineSize = length;
}
//外面必须把code先检测好了
//if (fileCode == CODE_ID::UNICODE_BE /*|| fileCode == CODE_ID::UNICODE_LE */ || fileCode == CODE_ID::UTF8_BOM)
if(fileCode != CODE_ID::UNKOWN)
{
//如果是头部有标识的格式,则后续不用详细检查每行编码,直接按照头部标识走
Encode::tranStrToUNICODE(code, line.data(), line.count(), lineInfo.unicodeStr);
lineInfo.code = fileCode;
}
else if(fileCode == CODE_ID::UNKOWN)
{
/*对于头部没有标识的行,需要每行进行详细检查,比较耗时
*对于第一行已经是GBK的编码,标识出所有的确是GBK的行号
*严格来说,如果以后要做国际版,不应该只考虑GBK,而是要考虑本地ASNI编码。
*对中国而言,本地ASNI编码是GBK,对其它国家,比如日本/韩国而言,这些ASNI是它们本国
*对应的本地编码。
*/
recognizeTextCode(line, lineInfo, lineInfo.unicodeStr);
if (CODE_ID::UTF8_NOBOM == lineInfo.code)
{
isExistUtf8 = true;
}
else if (CODE_ID::GBK == lineInfo.code)
{
//如果发现存在GBK,则要以GBK作为字符编码。这里识别gbk是因为显示的时候,需要转化gbk进行显示
isExistGbk = true;
}
else if (CODE_ID::UNKOWN == lineInfo.code)
{
isExistUnKownCode = true;
}
}
if (lineInfo.unicodeStr.endsWith("\r\r\n"))
{
//这里是一种错误,但确实可能出现
if (length > 3)
{
work(lineInfo,3);
}
else
{
//空白行
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::DOS_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\r\n"))
{
if (length > 2)
{
work(lineInfo, 2);
}
else
{
//空白行
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::DOS_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\n"))
{
if (length > 1)
{
work(lineInfo, 1);
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::UNIX_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\r"))
{
if (length > 1)
{
work(lineInfo, 1);
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::MAC_LINE;
}
else
{
if (length > 0)
{
work(lineInfo, 0);
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::UNKNOWN_LINE;
}
if (lineInfo.isEmptyLine)
{
blankLineInfoVec.append(lineInfo);
}
else
{
lineInfo.md4 = md4.result();
md4.reset();
lineInfoVec.append(lineInfo);
}
++lineNums;
}
//如果外部指定了格式,则直接返回外部格式
if (fileCode != CODE_ID::UNKOWN)
{
return fileCode;
}
return judgeFinalTextCode(code, isExistUnKownCode, isExistGbk, isExistUtf8);
}
CODE_ID CmpareMode::judgeFinalTextCode(CODE_ID code, bool isExistUnKownCode, bool isExistGbk, bool isExistUtf8)
{
//如果是三种有明确标识的字符编码,则严格按照标识的逻辑去读取。哪怕里面存在错误编码,也只能按照头部标识为准
if (CODE_ID::UNICODE_LE == code || CODE_ID::UNICODE_BE == code || CODE_ID::UTF8_BOM == code || code == CODE_ID::GBK)
{
return code;
}
//剩下的是在文件头没有严格标识编码的文件
//存在不能识别的编码,则应该是ASNI,需要用户指定编码
if (isExistUnKownCode)
{
return CODE_ID::UNKOWN;
}
if (isExistGbk)
{
//如果没有错误码,而且发现gbk,则是gbk编码
return CODE_ID::GBK;
}
//如果不存在错误和gbk,就是纯粹的ut8_nobom
if (isExistUtf8)
{
return CODE_ID::UTF8_NOBOM;
}
return code;
}
//读取用于纯输出,不做比较。bool &isMaybeHexFile 是否是hex文件,不一定准确,做一个推测
// int& charsNums 输出字符个数
CODE_ID CmpareMode::readLineFromFile(uchar* m_fileFpr, const int fileLength, const CODE_ID fileCode, QList<LineFileInfo>&lineInfoVec, int& maxLineSize, int& charsNums, bool &isMaybeHexFile)
{
int lineNums = 0;
CODE_ID code = fileCode;
bool isExistGbk = false;
bool isExistUnKownCode = false;
bool isExistUtf8 = false;
int lineStartPos = 0;
int errorCodeLines = 0;
charsNums = 0;
if (fileCode == CODE_ID::UNICODE_BE || fileCode == CODE_ID::UNICODE_LE)
{
lineStartPos = 2;
}
else if (fileCode == CODE_ID::UTF8_BOM)
{
lineStartPos = 3;
}
//获取一行在文件中
auto getOneLineFromFile = [m_fileFpr](int& startPos, const int fileLength, const CODE_ID fileCode, QByteArray& ret)->bool {
if (startPos < fileLength)
{
ret.clear();
int lineLens = 0;
bool isFindLine = false;
for (int i = startPos; i < fileLength; ++i, ++lineLens)
{
//遇到符号CR
if (m_fileFpr[i] == 0x0D)
{
//后一个是LF,即以CRLF结尾
if ((i + 1 < fileLength) && (m_fileFpr[i + 1] == 0x0A))
{
//lineLens需要加2,因为当前这个没有加,而且后面还有一个\n
ret.append((char*)(m_fileFpr + startPos), lineLens + 2);
startPos += lineLens + 2;
isFindLine = true;
break;
}
else if ((fileCode == UNICODE_BE) && ((i > 0) && m_fileFpr[i - 1] == '\0'))
{
//事先发现就是BE格式,以\0\r\0\n为结尾的
if ((i + 2 < fileLength) && (m_fileFpr[i + 1] == 0x0) && (m_fileFpr[i + 2] == 0x0A))
{
//lineLens需要加3,因为当前这个没有加,而且后面还有一个\0\n
ret.append((char*)(m_fileFpr + startPos), lineLens + 3);
startPos += lineLens + 3;
isFindLine = true;
break;
}
else
{
//虽然说是BE格式,但是后面没有以\0\n结尾,而是以\r结尾。这种多半就是错误。直接按\0\r结尾
//lineLens需要加1,因为当前这个没有加
ret.append((char*)(m_fileFpr + startPos), lineLens + 1);
startPos += lineLens + 1;
isFindLine = true;
break;
}
}
else
{
//直接以\r结尾了,后面没有\n或者\0\n。符合MAC格式,windows可能编码只有\r,没有\n的错误情况。
//lineLens需要加1,因为当前这个没有加
ret.append((char*)(m_fileFpr + startPos), lineLens + 1);
startPos += lineLens + 1;
isFindLine = true;
break;
}
}
else if (m_fileFpr[i] == 0x0A)
{
//没有先遇到\r,直接遇到\n.20210903发现忘记处理该情况le
//lineLens需要加1,因为当前这个没有加
ret.append((char*)(m_fileFpr + startPos), lineLens + 1);
startPos += lineLens + 1;
isFindLine = true;
break;
}
}
//没有找到一行
if (!isFindLine)
{
//最后一行,可能没有带\r\0直接返回
ret.append((char*)(m_fileFpr + startPos), fileLength - startPos);
startPos = fileLength;
}
return true;
}
return false;
};
QByteArray line;
while (getOneLineFromFile(lineStartPos, fileLength, code, line)) {
LineFileInfo lineInfo;
lineInfo.lineNums = lineNums;
/* 这种方式读取文件会包含后面的行尾 */
int length = line.length();
if (maxLineSize < length)
{
maxLineSize = length;
}
//外面必须把code先检测好了
//if (fileCode == CODE_ID::UNICODE_BE /*|| fileCode == CODE_ID::UNICODE_LE */ || fileCode == CODE_ID::UTF8_BOM)
if(fileCode != CODE_ID::UNKOWN)
{
//如果是头部有标识的格式,则后续不用详细检查每行编码,直接按照头部标识走
Encode::tranStrToUNICODE(code, line.data(), line.count(), lineInfo.unicodeStr);
lineInfo.code = fileCode;
}
else if (fileCode == CODE_ID::UNKOWN)
{
/*对于头部没有标识的行,需要每行进行详细检查,比较耗时
*对于第一行已经是GBK的编码,标识出所有的确是GBK的行号
*严格来说,如果以后要做国际版,不应该只考虑GBK,而是要考虑本地ASNI编码。
*对中国而言,本地ASNI编码是GBK,对其它国家,比如日本/韩国而言,这些ASNI是它们本国
*对应的本地编码。
*/
recognizeTextCode(line, lineInfo, lineInfo.unicodeStr);
if (CODE_ID::UTF8_NOBOM == lineInfo.code)
{
isExistUtf8 = true;
}
else if (CODE_ID::GBK == lineInfo.code)
{
//如果发现存在GBK,则要以GBK作为字符编码。这里识别gbk是因为显示的时候,需要转化gbk进行显示
isExistGbk = true;
}
else if (CODE_ID::UNKOWN == lineInfo.code)
{
isExistUnKownCode = true;
//增加错误行的计数
errorCodeLines++;
}
}
if (lineInfo.unicodeStr.endsWith("\r\r\n"))
{
//这里是一种错误,但确实可能出现
if (length > 3)
{
}
else
{
//空白行
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::DOS_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\r\n"))
{
if (length > 2)
{
}
else
{
//空白行
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::DOS_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\n"))
{
if (length > 1)
{
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::UNIX_LINE;
}
else if (lineInfo.unicodeStr.endsWith("\r"))
{
if (length > 1)
{
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::MAC_LINE;
}
else
{
if (length > 0)
{
}
else
{
lineInfo.isLcsExist = false;
lineInfo.isEmptyLine = true;
}
lineInfo.lineEndFormat = RC_LINE_FORM::UNKNOWN_LINE;
}
lineInfoVec.append(lineInfo);
charsNums += lineInfo.unicodeStr.size();
++lineNums;
}
//如果超过一半的行都是错误的,则考虑为hex文件。
if (lineNums >= 10 && (errorCodeLines * 100 / lineNums > 50))
{
isMaybeHexFile = true;
}
else
{
isMaybeHexFile = false;
//如果前面三行中含有\0字符,也可能是二进制文件
if (lineNums > 3)
{
for (int i = 0; i < 3; ++i)
{
if (lineInfoVec.at(i).unicodeStr.contains(QChar('\0')))
{
isMaybeHexFile = true;
break;
}
}
}
}
//如果用户外部强制编码,则直接按改编码返回
if (fileCode != CODE_ID::UNKOWN)
{
return fileCode;
}
return judgeFinalTextCode(code, isExistUnKownCode, isExistGbk, isExistUtf8);
}
//扫描文件的字符编码,不输出文件
//扫描多少行scanLineNum 默认100
//如果是-1 之前全部扫描
CODE_ID CmpareMode::scanFileRealCode(QString filePath, int scanLineNum)
{
QFile file(filePath);
file.open(QIODevice::ReadOnly);
CODE_ID code = CODE_ID::UNKOWN;
int lineNums = 0;
bool isExistGbk = false;
bool isExistUnKownCode = false;
bool isExistUtf8 = false;
while (!file.atEnd()) {
LineFileInfo lineInfo;
QByteArray line = file.readLine();
lineInfo.lineNums = lineNums;
/* 这种方式读取文件会包含后面的行尾 */
//int length = line.length();
//第一行时,检测一下文件编码,返回值也是文件的编码
if (0 == lineNums)
{
recognizeTextCode(line, lineInfo, lineInfo.unicodeStr);
code = (CODE_ID)lineInfo.code;
//已经找到文本的标签,相信标签,之前返回
if (code == CODE_ID::UNICODE_BE || code == CODE_ID::UNICODE_LE || code == CODE_ID::UTF8_BOM || code == CODE_ID::GBK)
{
break;
}
}
else
{
/*对于头部没有标识的行,需要每行进行详细检查,比较耗时
*对于第一行已经是GBK的编码,标识出所有的确是GBK的行号
*严格来说,如果以后要做国际版,不应该只考虑GBK,而是要考虑本地ASNI编码。
*对中国而言,本地ASNI编码是GBK,对其它国家,比如日本/韩国而言,这些ASNI是它们本国
*对应的本地编码。
*/
recognizeTextCode(line, lineInfo, lineInfo.unicodeStr);
if (CODE_ID::UTF8_NOBOM == lineInfo.code)
{
isExistUtf8 = true;
}
else if (CODE_ID::GBK == lineInfo.code)
{
//如果发现存在GBK,则要以GBK作为字符编码。这里识别gbk是因为显示的时候,需要转化gbk进行显示
isExistGbk = true;
}
else if (CODE_ID::UNKOWN == lineInfo.code)
{
isExistUnKownCode = true;
//20220127一旦发现错误编码,或者说不能识别的编码,则直接跳出。
//因为肯定是不能识别的编码ASNI
break;
}
}
++lineNums;
//默认最多扫描200行,加块速度。速度与精确性的权衡
//对于打开文件,默认扫描前面的200行,加快速度。
//对于编码转换,为了精确,默认全部都要处理
if ((scanLineNum != -1) && (lineNums >= scanLineNum))
{
break;
}
}
file.close();
return judgeFinalTextCode(code, isExistUnKownCode, isExistGbk, isExistUtf8);
}
//读取文件,并输出
//bytescharsNums:文件字符个数,不是文件大小
//20220908 自动判断是否是二进制文件。isHexFile 是输出
CODE_ID CmpareMode::scanFileOutPut(CODE_ID code, QString filePath, QList<LineFileInfo>& outputLineInfoVec, int &maxLineSize, int& charsNums, bool &isHexFile)
{
QFile* file = new QFile(filePath);
file->open(QIODevice::ReadOnly);
uchar* m_fileFpr = file->map(0, file->size());
if (code == UNKOWN)
{
code = getTextFileEncodeType(m_fileFpr, file->size(), filePath);
}
//UNICODE_LE格式需要单独处理
if (code == UNICODE_LE)
{
charsNums = readLineFromFileWithUnicodeLe(m_fileFpr, file->size(), outputLineInfoVec, outputLineInfoVec, 0, maxLineSize);
}
else
{
code = readLineFromFile(m_fileFpr, file->size(), code, outputLineInfoVec, maxLineSize, charsNums, isHexFile);
}
file->unmap(m_fileFpr);
file->close();
delete file;
return code;
}
//读取文件,并输出
//bytes charsNums:文件字符个数,不是文件大小
//20220908 自动判断是否是二进制文件。isHexFile 是输出
//20230304 新增,一次性读取文件,不检测每行文本,加快速度。existGrbledCode 是否存在乱码
CODE_ID CmpareMode::scanFileOutPut(QFile& pFile, CODE_ID code, QString filePath, QString& outText, bool & existGrbledCode)
{
QByteArray outTextBytes = pFile.readAll();
if (outTextBytes.size() == 0)
{
outText = "";
existGrbledCode = false;
return CODE_ID::UTF8_NOBOM;
}
if (code == UNKOWN)
{
code = getTextFileEncodeType((uchar * )outTextBytes.data(), pFile.size(), filePath);
//编码还是检测失败,这里概率是比较小的。
if (code == CODE_ID::UNKOWN)
{
//无条件按照ANSI/GBK编码打开
code = CODE_ID::GBK;
}
}
int lineStartPos = 0; //uicode_le前面有2个特殊标识,故跳过2
if (code == CODE_ID::UNICODE_BE || code == CODE_ID::UNICODE_LE)
{
lineStartPos = 2;
}
else if (code == CODE_ID::UTF8_BOM)
{
lineStartPos = 3;
}
bool codeSucess = Encode::tranStrToUNICODE(code, outTextBytes.data()+ lineStartPos, outTextBytes.size()- lineStartPos, outText);
//如果存在乱码,而且不是以gbk编码打开,再无条件尝试ASNI/GBK编码打开。如果是国际版,后续还得完善策略,得无条件以ASNI本地编码打开。
if (!codeSucess && (code != CODE_ID::GBK))
{
code = CODE_ID::GBK;
outText.clear();
codeSucess = Encode::tranStrToUNICODE(code, outTextBytes.data() + lineStartPos, outTextBytes.size() - lineStartPos, outText);
}
existGrbledCode = !codeSucess;
return code;
}
================================================
FILE: src/CmpareMode.h
================================================
#pragma once
#include <qobject.h>
#include<QVector>
#include<QMap>
#include <QFuture>
#include <functional>
#include "rcglobal.h"
#include "Encode.h"
class BlockUserData;
class QFile;
const int LEFT = 0;
const int RIGHT = 1;
//对比bin二进制文件。
const int MAX_BIN_SIZE = 1024 * 1024 * 10; //最大10M
typedef void(* CALL_FUNC)(void *, uchar *, int);
typedef struct lineFileInfo_ {
qint32 lineNums; //行号码
bool isLcsExist;//是否属于lcsline的一部分
bool isEmptyLine; //是否是空白行,只包含换行符的行
int code; //该行的字符编码
int lineEndFormat; //行尾:见RC_LINE_FORM
QByteArray md4;
QString unicodeStr; //这个是包含行尾的换行符的
lineFileInfo_()
{
isLcsExist = false;
isEmptyLine = false;
code = UNKOWN;
lineEndFormat = UNKNOWN_LINE;
}
}LineFileInfo;
const int EMPTY_FILE = 0;
const int SCAN_SUCCESS = 1;
class CmpareMode;
typedef struct ThreadFileCmpParameter_ {
QString leftPath;
QString rightPath;
CmpareMode *resultCmpObj;
ThreadFileCmpParameter_(QString leftPath_, QString rightPath_)
{
leftPath = leftPath_;
rightPath = rightPath_;
resultCmpObj = nullptr;
}
}ThreadFileCmpParameter;
class CmpareMode :public QObject
{
Q_OBJECT
public:
CmpareMode();
virtual ~CmpareMode();
static CODE_ID readLineFromFile(uchar * m_fileFpr, const int fileLength, const CODE_ID fileCode, QList<LineFileInfo>& lineInfoVec, QList<LineFileInfo>& blankLineInfoVec, int mode, int& maxLineSize);
static CODE_ID judgeFinalTextCode(CODE_ID code, bool isExistUnKownCode, bool isExistGbk, bool isExistUtf8);
static CODE_ID readLineFromFile(uchar * m_fileFpr, const int fileLength, const CODE_ID fileCode, QList<LineFileInfo>& lineInfoVec,int& maxLineSize, int& charsNums, bool &isMaybeHexFile);
static CODE_ID scanFileRealCode(QString filePath,int scanLineNum=200);
static CODE_ID scanFileOutPut(CODE_ID code, QString filePath, QList<LineFileInfo>& outputLineInfoVec, int & maxLineSize, int & charsNums, bool &isHexFile);
static CODE_ID scanFileOutPut(QFile& pFile, CODE_ID code, QString filePath, QString& outText, bool& existGrbledCode);
static CODE_ID getTextFileEncodeType(uchar* fileFpr, int fileLength, QString filePath="", bool isCheckHead = true);
static bool tranUnicodeLeToUtf8Bytes(uchar* fileFpr, const int fileLength, QString& outUtf8Bytes, bool isSkipHead=false);
static bool isUnicodeLeBomFile(uchar* fileFpr, int fileLength);
private:
static bool recognizeTextCode(QByteArray & text, LineFileInfo & lineInfo, QString & outUnicodeText);
quint32 static readLineFromFileWithUnicodeLe(uchar* m_fileFpr, const int fileLength, QList<LineFileInfo>& lineInfoVec, QList<LineFileInfo>& blankLineInfoVec,int mode, int &maxLineSize);
};
================================================
FILE: src/Encode.cpp
================================================
#include "Encode.h"
#include <QTextCodec>
#include <QtDebug>
/* 检查字符串编码的类。看了大量文献,结论如下:
*如果是UTF BOM格式,或者UNICODE格式,其文件头部前几个字节(2-3)有一定的标识。由此标识直接按对应编码处理。
*如果没有标识,默认就是UTF8(NO BOM) 与 ANSI(现在只考虑GBK)进行对比。
*此时需要做统计分析。对所有行进行UTF8解析,如果按照UTF8解析错位再按照GBK解析。如果解析出GBK那么大概率认为文件是GBK编码的。
*/
Encode::Encode()
{
}
Encode::~Encode()
{
}
CODE_ID Encode::getCodeByName(QString name)
{
CODE_ID id;
if (name == "unknown")
{
id = CODE_ID::UNKOWN;
}
else if (name == "UTF16-LE")
{
id = CODE_ID::UNICODE_LE;
}
else if (name == "UTF16-BE")
{
id = CODE_ID::UNICODE_BE;
}
else if (name == "UTF8")
{
id = CODE_ID::UTF8_NOBOM;
}
else if (name == "UTF8-BOM")
{
id = CODE_ID::UTF8_BOM;
}
else if (name == "GBK")
{
id = CODE_ID::GBK;
}
else if (name == "EUC-JP")
{
id = CODE_ID::EUC_JP;
}
else if (name == "Shift-JIS")
{
id = CODE_ID::Shift_JIS;
}
else if (name == "EUC-KR")
{
id = CODE_ID::EUC_KR;
}
else if (name == "KOI8-R")
{
id = CODE_ID::KOI8_R;
}
else if (name == "TSCII")
{
id = CODE_ID::TSCII;
}
else if (name == "TIS-620")
{
id = CODE_ID::TIS_620;
}
else
{
id = CODE_ID::UNKOWN;
}
return id;
}
QString Encode::getLineEndById(RC_LINE_FORM id)
{
QString ret;
switch (id)
{
case PAD_LINE:
case UNKNOWN_LINE:
#ifdef WIN32
ret = "Windows(CR LF)";
#else
ret = "Unix(LF)";
#endif
ret = "NULL";
break;
case UNIX_LINE:
ret = "Unix(LF)";
break;
case DOS_LINE:
ret = "Windows(CR LF)";
break;
case MAC_LINE:
ret = "Mac(CR)";
break;
default:
break;
}
return ret;
}
QString Encode::getCodeNameById(CODE_ID id)
{
QString ret;
switch (id)
{
case UNKOWN:
ret = "unknown";
break;
case ANSI:
ret = "unknown";
break;
case UNICODE_LE:
ret = "UTF16-LE";
break;
case UNICODE_BE:
ret = "UTF16-BE";
break;
case UTF8_NOBOM:
ret = "UTF8";
break;
case UTF8_BOM:
ret = "UTF8-BOM";
break;
case GBK:
ret = "GBK";
break;
case EUC_JP:
ret = "EUC-JP";
break;
case Shift_JIS:
ret = "Shift-JIS";
break;
case EUC_KR:
ret = "EUC-KR";
break;
case KOI8_R:
ret = "KOI8-R";
break;
case TSCII:
ret = "TSCII";
break;
case TIS_620:
ret = "TIS-620";
break;
case BIG5:
ret = "BIG5-HKSCS";
break;
default:
ret = "unknown";
break;
}
return ret;
}
QByteArray Encode::getEncodeStartFlagByte(CODE_ID code)
{
QByteArray ret;
switch (code)
{
case UNICODE_LE:
{
ret.append((char)0xFF);
ret.append((char)0xFE);
}
break;
case UNICODE_BE:
{
ret.append((char)0xFE);
ret.append((char)0xFF);
}
break;
case UTF8_BOM:
{
ret.append((char)0xEF);
ret.append((char)0xBB);
ret.append((char)0xBF);
}
break;
default:
break;
}
return ret;
}
CODE_ID Encode::DetectEncode(const uchar* pBuffer, int length, int &skip)
{
if (pBuffer[0] == 0xFF && pBuffer[1] == 0xFE)
{
skip = 2;
return CODE_ID::UNICODE_LE; //skip 2
}
if (pBuffer[0] == 0xFE && pBuffer[1] == 0xFF)
{
skip = 2;
return CODE_ID::UNICODE_BE; //skip 2
}
if (pBuffer[0] == 0xEF && pBuffer[1] == 0xBB && pBuffer[2] == 0xBF)
{
skip = 3;
return CODE_ID::UTF8_BOM; //skip 3 with BOM
}
// 不能知道是不是UTF8
CODE_ID code = CheckUnicodeWithoutBOM(pBuffer, length);
skip = 0;
return code; //skip 0
}
bool Encode::tranGbkToUNICODE(const char* pText, int length, QString &out)
{
QTextCodec::ConverterState state;
QTextCodec *codec = QTextCodec::codecForName("GBK");
out = codec->toUnicode((const char *)pText, length, &state);
if (state.invalidChars > 0) {
return false;
}
return true;
}
bool Encode::tranUtf8ToUNICODE(const char* pText, int length, QString &out)
{
QTextCodec::ConverterState state;
QTextCodec *codec = QTextCodec::codecForName("UTF-8");
out = codec->toUnicode((const char *)pText, length, &state);
if (state.invalidChars > 0) {
return false;
}
return true;
}
//与getCodeNameById类似,但是返回的是QT系统支持的编码的字符串名称
QString Encode::getQtCodecNameById(CODE_ID id)
{
QString ret;
switch (id)
{
case UNKOWN:
case ANSI:
ret = "unknown";
break;
case UNICODE_LE:
ret = "UTF16-LE";
break;
case UNICODE_BE:
ret = "UTF16-BE";
break;
case UTF8_NOBOM://qt没有这种
case UTF8_BOM:
ret = "UTF8";
break;
case GBK:
ret = "GBK";
break;
case EUC_JP:
ret = "EUC-JP";
break;
case Shift_JIS:
ret = "Shift-JIS";
break;
case EUC_KR:
ret = "EUC-KR";
break;
case KOI8_R:
ret = "KOI8-R";
break;
case TSCII:
ret = "TSCII";
break;
case TIS_620:
ret = "TIS-620";
break;
case BIG5:
ret = "Big5-HKSCS";
break;
default:
ret = "unknown";
break;
}
return ret;
}
//将指定编码的字符串转换到unicode
bool Encode::tranStrToUNICODE(CODE_ID code, const char* pText, int length, QString &out)
{
if (length < 0)
{
return false;
}
QTextCodec::ConverterState state;
QTextCodec *codec = nullptr;
QString textCodeName = getQtCodecNameById(code);
if (textCodeName.isEmpty() || textCodeName == "unknown")
{
//对于其它非识别编码,统一转换为utf8。减去让用户选择的麻烦
//这里其实是有问题的。先这样简单处理
codec = QTextCodec::codecForName("UTF-8");
}
else
{
codec = QTextCodec::codecForName(textCodeName.toStdString().c_str());
}
if (codec == nullptr)
{
return false;
}
out = codec->toUnicode((const char *)pText, length, &state);
if (state.invalidChars > 0) {
return false;
}
return true;
}
/* 这里其实是穷举字符串的字符编码;ASNI utf8。目前只检测GBK和utf8;其它语种没有穷举
*GB2312 GBK GB18030 三种差别见https://cloud.tencent.com/developer/article/1343240
*关于编码的详细说明,见https://blog.csdn.net/libaineu2004/article/details/19245205
*/
//这里是有限检查utf8的,如果出现gbk,说明一定不是utf8,因为utf8检查到错误码。
CODE_ID Encode::CheckUnicodeWithoutBOM(const uchar* pText, int length)
{
QTextCodec::ConverterState state;
QTextCodec *codec = QTextCodec::codecForName("UTF-8");
const QString text = codec->toUnicode((const char *)pText, length, &state);
if (state.invalidChars > 0) {
/*不是UTF-8格式的文件,这里优先判断是不是UTF8,再判断是不是GBK;我们先做中文版;如果后续要做
*国际版,其实不应该只检查GBK,而是应该检查本地ASCI码,包括ascii码*/
QTextCodec::ConverterState state1;
QTextCodec *codec1 = QTextCodec::codecForName("GBK");
codec1->toUnicode((const char *)pText, length, &state1);
if (state1.invalidChars > 0) {
return CODE_ID::ANSI;
}
else
{
return CODE_ID::GBK;
}
}
return CODE_ID::UTF8_NOBOM;
}
CODE_ID Encode::CheckUnicodeWithoutBOM(const uchar* pText, int length, QString &outUnicodeText)
{
QTextCodec::ConverterState state;
QTextCodec *codec = QTextCodec::codecForName("UTF-8");
outUnicodeText = codec->toUnicode((const char *)pText, length, &state);
if (state.invalidChars > 0) {
/*不是UTF-8格式的文件,这里优先判断是不是UTF8,再判断是不是GBK;我们先做中文版;如果后续要做
*国际版,其实不应该只检查GBK,而是因为检查本地ASCI码,包括ascii码*/
QTextCodec::ConverterState state1;
QTextCodec *codec1 = QTextCodec::codecForName("GBK");
QString gbkStr = codec1->toUnicode((const char *)pText, length, &state1);
if (state1.invalidChars > 0) {
//如果也不是gbk,姑且按照utf8直接返回
return CODE_ID::ANSI;
}
else
{
outUnicodeText = gbkStr;
return CODE_ID::GBK;
}
}
return CODE_ID::UTF8_NOBOM;
}
//检查是否全是ascii字符码
bool Encode::CheckTextIsAllAscii(const uchar* pText, int length)
{
for (int i = 0; i < length; ++i)
{
if (*(pText + i) < 0 || *(pText + i) > 0x7F)
{
return false;
}
}
return true;
}
================================================
FILE: src/Encode.h
================================================
#pragma once
#include <QtGlobal>
//#define GBK_
#include "rcglobal.h"
class Encode
{
public:
Encode();
~Encode();
static CODE_ID getCodeByName(QString name);
static QString getLineEndById(RC_LINE_FORM id);
static QString getCodeNameById(CODE_ID id);
static QByteArray getEncodeStartFlagByte(CODE_ID code);
static CODE_ID DetectEncode(const uchar* pBuffer, int length,int &skip);
static bool tranGbkToUNICODE(const char* pText, int length, QString &out);
static bool tranUtf8ToUNICODE(const char * pText, int length, QString & out);
static QString getQtCodecNameById(CODE_ID id);
static bool tranStrToUNICODE(CODE_ID code, const char * pText, int length, QString & out);
static CODE_ID CheckUnicodeWithoutBOM(const uchar * pText, int length);
static CODE_ID CheckUnicodeWithoutBOM(const uchar * pText, int length, QString & outUnicodeText);
static bool CheckTextIsAllAscii(const uchar * pText, int length);
};
================================================
FILE: src/LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
================================================
FILE: src/MediatorDisplay.cpp
================================================
#include "MediatorDisplay.h"
//这里如果直接让左右互相同步,互相影响,可能导致混乱。需要一个中间调停者模式,作为中间人去控制同步消息
//中介者模式意图:用一个中介对象来封装一系列的对象交互,中介者使各对象不需要显式地相互引用,从而使其耦合松散,而且可以独立地改变它们之间的交互。
//主要解决:对象与对象之间存在大量的关联关系,这样势必会导致系统的结构变得很复杂,同时若一个对象发生改变,我们也需要跟踪与之相关联的对象,同时做出相应的处理。
//之前不使用该模式时,左右显示同步互相交互,时而发生消息混乱
MediatorDisplay::MediatorDisplay():QObject(nullptr)
{
m_leftLineNum = 0;
m_rightLineNum = 0;
m_leftScrollValue = 0;
m_rightScrollValue = 0;
}
MediatorDisplay::~MediatorDisplay()
{
}
void MediatorDisplay::setLeftNum(int value)
{
m_leftLineNum = value;
if (m_leftLineNum != m_rightLineNum)
{
emit syncCurLineNum(0);
}
}
void MediatorDisplay::setRightNum(int value)
{
m_rightLineNum = value;
if (m_leftLineNum != m_rightLineNum)
{
emit syncCurLineNum(1);
}
}
int MediatorDisplay::getLeftNum()
{
return m_leftLineNum;
}
int MediatorDisplay::getRightNum()
{
return m_rightLineNum;
}
void MediatorDisplay::setLeftScrollValue(int value)
{
if (m_leftScrollValue != value)
{
m_leftScrollValue = value;
}
//如果左右不相等,则推动对方去同步
if (m_leftScrollValue != m_rightScrollValue)
{
emit syncCurScrollValue(0);
}
}
void MediatorDisplay::setRightScrollValue(int value)
{
if (m_rightScrollValue != value)
{
m_rightScrollValue = value;
}
if (m_leftScrollValue != m_rightScrollValue)
{
emit syncCurScrollValue(1);
}
}
int MediatorDisplay::getLeftScrollValue()
{
return m_leftScrollValue;
}
int MediatorDisplay::getRightScrollValue()
{
return m_rightScrollValue;
}
void MediatorDisplay::setLeftScrollXValue(int value)
{
if (m_leftScrollXValue != value)
{
m_leftScrollXValue = value;
}
//如果左右不相等,则推动对方去同步
if (m_leftScrollXValue != m_rightScrollXValue)
{
emit syncCurScrollXValue(0);
}
}
void MediatorDisplay::setRightScrollXValue(int value)
{
if (m_rightScrollXValue != value)
{
m_rightScrollXValue = value;
}
if (m_leftScrollXValue != m_rightScrollXValue)
{
emit syncCurScrollXValue(1);
}
}
int MediatorDisplay::getLeftScrollXValue()
{
return m_leftScrollXValue;
}
int MediatorDisplay::getRightScrollXValue()
{
return m_rightScrollXValue;
}
================================================
FILE: src/MediatorDisplay.h
================================================
#pragma once
#include <QObject>
class MediatorDisplay:public QObject
{
Q_OBJECT
public:
MediatorDisplay();
virtual ~MediatorDisplay();
void setLeftNum(int value);
void setRightNum(int value);
int getLeftNum();
int getRightNum();
void setLeftScrollValue(int value);
void setRightScrollValue(int value);
int getLeftScrollValue();
int getRightScrollValue();
void setLeftScrollXValue(int value);
void setRightScrollXValue(int value);
int getLeftScrollXValue();
int getRightScrollXValue();
signals:
//当前行同步
void syncCurLineNum(int direction);
//滚动条同步
void syncCurScrollValue(int direction);
void syncCurScrollXValue(int direction);
private:
//左右当前行的值
int m_leftLineNum;
int m_rightLineNum;
//左右滚动条的值
int m_leftScrollValue;
int m_rightScrollValue;
//左右滚动条的值x
int m_leftScrollXValue;
int m_rightScrollXValue;
};
================================================
FILE: src/MediatorFileTree.cpp
================================================
#include "MediatorFileTree.h"
/* 文件夹对比界面的中介者,使用中介者是为了让消息经过中介对象统一调度,避免左右互相依赖导致交互混乱
*/
MediatorFileTree::MediatorFileTree() :QObject(nullptr)
{
}
MediatorFileTree::~MediatorFileTree()
{
}
void MediatorFileTree::setLeftScrollValue(int value)
{
m_leftScrollValue = value;
//如果左右不相等,则推动对方去同步
if (m_leftScrollValue != m_rightScrollValue)
{
emit syncCurScrollValue(0);
}
}
void MediatorFileTree::setRightScrollValue(int value)
{
m_rightScrollValue = value;
if (m_leftScrollValue != m_rightScrollValue)
{
emit syncCurScrollValue(1);
}
}
int MediatorFileTree::getLeftScrollValue()
{
return m_leftScrollValue;
}
int MediatorFileTree::getRightScrollValue()
{
return m_rightScrollValue;
}
//设置item。中介本身不保存ITEM,因为太多,发送消息给外面空间
void MediatorFileTree::setLeftItemStatus(QString name, int status)
{
emit syncExpandStatus(name, RC_LEFT, status);
}
void MediatorFileTree::setRightItemStatus(QString name, int status)
{
emit syncExpandStatus(name, RC_RIGHT, status);
}
================================================
FILE: src/MediatorFileTree.h
================================================
#pragma once
#include <qobject.h>
#include "rcglobal.h"
class MediatorFileTree :public QObject
{
Q_OBJECT
public:
MediatorFileTree();
virtual ~MediatorFileTree();
void setLeftScrollValue(int value);
void setRightScrollValue(int value);
int getLeftScrollValue();
int getRightScrollValue();
void setLeftItemStatus(QString name, int status);
void setRightItemStatus(QString name, int status);
signals:
//滚动条同步
void syncCurScrollValue(int direction);
//同步展开和收起状态
void syncExpandStatus(QString name, int direction, int status);
private:
int m_leftScrollValue;
int m_rightScrollValue;
};
================================================
FILE: src/QTreeWidgetSortItem.cpp
================================================
#include "QTreeWidgetSortItem.h"
#include "rcglobal.h"
/* 自己重新实现一个QTreeWidgetSortItem,主要是为了重载函数的排序功能,不适应默认的名字排序,而是使用
* 每个项自带的tip字符串排序。这样做是因为对齐的时候,有些空白对齐项目,并没有名称,就会导致无法排序
*/
int QTreeWidgetSortItem::s_sortType = 0;
bool QTreeWidgetSortItem::s_syncOrder = false;
QTreeWidgetSortItem::QTreeWidgetSortItem(int type):QTreeWidgetItem(type)
{
}
QTreeWidgetSortItem::QTreeWidgetSortItem(const QStringList &strings, int type):QTreeWidgetItem(strings, type)
{
}
QTreeWidgetSortItem::~QTreeWidgetSortItem()
{
}
bool QTreeWidgetSortItem::operator<(const QTreeWidgetItem & other) const
{
if (s_sortType == 0)
{
if (!s_syncOrder) //按名称排序
{
//目录最大,放在文件前面。都是目录则按照名称排序
if ((type() == RC_DIR) && (other.type() == RC_DIR))
{
goto cmp_name;
}
else if ((type() == RC_DIR) && (other.type() != RC_DIR))
{
return false;
}
else if ((type() != RC_DIR) && (other.type() == RC_DIR))
{
return true;
}
cmp_name:
QString a = this->data(0, Item_RelativePath).toString();
QString b = other.data(0, Item_RelativePath).toString();
return (a.compare(b, Qt::CaseInsensitive) > 0);
}
else
{
//同步序号,按序号进行排序
#if 0
if ((type() == RC_DIR) && (other.type() == RC_DIR))
{
QString a = this->data(0, Item_RelativePath).toString();
QString b = other.data(0, Item_RelativePath).toString();
return !(a.compare(b, Qt::CaseInsensitive) > 0);
}
else if ((type() == RC_DIR) && (other.type() != RC_DIR))
{
return true;
}
else if ((type() != RC_DIR) && (other.type() == RC_DIR))
{
return false;
}
cmp_index:
#endif
//同步对方的操作。
int a = this->data(0, Item_Index).toInt();
int b = other.data(0, Item_Index).toInt();
return(a > b);
}
}
else if (s_sortType == 1) //按大小排序
{
//目录最大,放在文件前面。都是目录则按照名称排序
if ((type() == RC_DIR) && (other.type() == RC_DIR))
{
qint64 a = this->data(0, DIR_ITEM_MAXSIZE_FILE).toULongLong();
qint64 b = other.data(0, DIR_ITEM_MAXSIZE_FILE).toULongLong();
return(a > b);
#if 0
QString a = this->data(0, Item_RelativePath).toString();
QString b = other.data(0, Item_RelativePath).toString();
return (a.compare(b, Qt::CaseInsensitive) > 0);
#endif
}
else if ((type() == RC_DIR) && (other.type() != RC_DIR))
{
return false;
}
else if ((type() != RC_DIR) && (other.type() == RC_DIR))
{
return true;
}
int leftSize = this->text(1).toInt();
int rightSize = other.text(1).toInt();
return(leftSize > rightSize);
}
else if (s_sortType == 2) //by 修改日期
{
//目录最大,放在文件前面。都是目录则按照名称排序
if ((type() == RC_DIR) && (other.type() == RC_DIR))
{
QString a = this->data(0, Item_RelativePath).toString();
QString b = other.data(0, Item_RelativePath).toString();
return (a.compare(b, Qt::CaseInsensitive) > 0);
}
else if ((type() == RC_DIR) && (other.type() != RC_DIR))
{
return false;
}
else if ((type() != RC_DIR) && (other.type() == RC_DIR))
{
return true;
}
QString a = this->text(2);
QString b = other.text(2);
return(a.compare(b, Qt::CaseInsensitive) > 0);
}
return false;
}
================================================
FILE: src/QTreeWidgetSortItem.h
================================================
#pragma once
#include <qtreewidget.h>
class QTreeWidgetSortItem : public QTreeWidgetItem
{
public:
QTreeWidgetSortItem(int type);
QTreeWidgetSortItem(const QStringList &strings, int type);
virtual ~QTreeWidgetSortItem();
virtual bool operator<(const QTreeWidgetItem &other) const override;
static void setSortColumn(int index)
{
s_sortType = index;
}
static void setSyncOrder(bool v)
{
s_syncOrder = v;
}
private :
static int s_sortType;
static bool s_syncOrder;
};
================================================
FILE: src/RcTreeWidget.cpp
================================================
#include "RcTreeWidget.h"
#include "MediatorFileTree.h"
#include <QScrollBar>
#include <QMenu>
#include <QProcess>
RcTreeWidget::RcTreeWidget(QWidget *parent):QTreeWidget(parent), m_userAddMenu(nullptr)
{
connect(this->verticalScrollBar(), &QScrollBar::valueChanged, this, &RcTreeWidget::slot_scrollValueChange);
//收起和伸开子项
connect(this, &QTreeWidget::itemCollapsed, this, &RcTreeWidget::slot_itemCollapsed);
connect(this, &QTreeWidget::itemExpanded, this, &RcTreeWidget::slot_itemExpanded);
setContextMenuPolicy(Qt::CustomContextMenu); //设置枚举值
connect(this, &QTreeWidget::customContextMenuRequested, this, &RcTreeWidget::slot_ShowPopMenu);
}
RcTreeWidget::~RcTreeWidget()
{
}
//给用户进行菜单增加的回调函数
void RcTreeWidget::setContextUserDefineItemMenuCallBack(std::function<void(int dire,QMenu*, QTreeWidgetItem*)>* userAddMenu)
{
m_userAddMenu = userAddMenu;
}
//右键菜单
void RcTreeWidget::slot_ShowPopMenu(const QPoint& pos)
{
QTreeWidgetItem* curItem = this->itemAt(pos);
if (curItem != nullptr)
{
QMenu* menu = new QMenu(this);
if (m_userAddMenu != nullptr)
{
(*m_userAddMenu)(m_direction, menu, curItem);
}
QAction* action = menu->addAction(tr("Show File in Explorer"), this, [&]() {
QString path = QString("%1/%2").arg(m_rootDir).arg(curItem->data(0, Qt::ToolTipRole).toString());
showFileInExplorer(path);
});
//没有名称表示是对齐的item,不存在对应的文件,只是占位
if (curItem->text(0).isEmpty())
{
action->setEnabled(false);
}
if (menu)
{
menu->setAttribute(Qt::WA_DeleteOnClose);
menu->exec(QCursor::pos());
}
}
}
//点击收起的槽函数
void RcTreeWidget::slot_itemCollapsed(QTreeWidgetItem *item)
{
QString name = item->data(0, Qt::ToolTipRole).toString();
//左边变化,通知右边去改变
if (m_direction == RC_LEFT)
{
//通知右边去收起
m_mediator->setRightItemStatus(name,RC_COLLAPSED);
}
else
{
//通知左边去收起
m_mediator->setLeftItemStatus(name, RC_COLLAPSED);
}
}
//点击展开的槽函数
void RcTreeWidget::slot_itemExpanded(QTreeWidgetItem *item)
{
QString name = item->data(0, Qt::ToolTipRole).toString();
//左边变化,通知右边去改变
if (m_direction == RC_LEFT)
{
//右边展开
m_mediator->setRightItemStatus(name, RC_EXPANDED);
}
else
{
//左边收起
m_mediator->setLeftItemStatus(name, RC_EXPANDED);
}
}
void RcTreeWidget::setDirection(RC_DIRECTION direction)
{
m_direction = direction;
}
void RcTreeWidget::setMediator(MediatorFileTree *mediator)
{
m_mediator = mediator;
}
//滚动条值变化后的槽函数。一旦滚动则会出发这里,发送消息给中介,让中介去同步另外一方
void RcTreeWidget::slot_scrollValueChange(int value)
{
if (m_direction == RC_LEFT)
{
if (m_mediator->getLeftScrollValue() != value)
{
m_mediator->setLeftScrollValue(value);
}
}
else
{
if (m_mediator->getRightScrollValue() != value)
{
m_mediator->setRightScrollValue(value);
}
}
}
//注意,这里一旦开始调整后,又会引发滚动条值的变化
void RcTreeWidget::setVerticalValue(int value)
{
//不相等才需要设置
if (verticalScrollBar()->value() != value)
{
//超过最大值,只能设置为最大值
if (value > verticalScrollBar()->maximum())
{
verticalScrollBar()->setValue(verticalScrollBar()->maximum());
}
else
{
verticalScrollBar()->setValue(value);
}
}
}
================================================
FILE: src/RcTreeWidget.h
================================================
#pragma once
#include <qtreewidget.h>
#include <QPoint>
#include <functional>
#include <QMenu>
#include "rcglobal.h"
class MediatorFileTree;
class RcTreeWidget :public QTreeWidget
{
public:
RcTreeWidget(QWidget *parent=nullptr);
~RcTreeWidget();
void setContextUserDefineItemMenuCallBack(std::function<void(int dire, QMenu*, QTreeWidgetItem*)>* userAddMenu);
void setDirection(RC_DIRECTION direction);
void setMediator(MediatorFileTree * mediator);
void setVerticalValue(int value);
void setRootDir(QString dir)
{
m_rootDir = dir;
}
QString getRootDir()
{
return m_rootDir;
}
public slots:
void slot_scrollValueChange(int value);
void slot_itemCollapsed(QTreeWidgetItem * item);
void slot_itemExpanded(QTreeWidgetItem * item);
void slot_ShowPopMenu(const QPoint& pos);
private:
MediatorFileTree * m_mediator;
RC_DIRECTION m_direction;
QString m_rootDir;
std::function<void(int dire, QMenu*, QTreeWidgetItem*)>* m_userAddMenu;
};
================================================
FILE: src/RealCompare.pri
================================================
# ----------------------------------------------------
# This file is generated by the Qt Visual Studio Tools.
# ------------------------------------------------------
# This is a reminder that you are using a generated .pro file.
# Remove it when you are finished editing this file.
message("You are running qmake on a generated .pro file. This may not work!")
HEADERS += ./RealCompare.h \
$$PWD/diff.h \
./CompareWin.h
SOURCES += ./CompareWin.cpp \
./main.cpp \
./RealCompare.cpp
FORMS += ./CompareWin.ui \
./RealCompare.ui
RESOURCES += RealCompare.qrc
================================================
FILE: src/RealCompare.pro
================================================
TEMPLATE = app
LANGUAGE = C++
TARGET = Notepad--
CONFIG += qt warn_on
QT += core gui widgets concurrent network xmlpatterns
HEADERS += *.h \
cceditor/ccnotepad.h \
cceditor/filemanager.h
SOURCES += *.cpp \
cceditor/ccnotepad.cpp \
cceditor/filemanager.cpp
FORMS += *.ui \
cceditor/ccnotepad.ui
RESOURCES += RealCompare.qrc
INCLUDEPATH += qscint/src
INCLUDEPATH += qscint/src/Qsci
INCLUDEPATH += qscint/scintilla/include
INCLUDEPATH += cceditor
#DEFINES += QSCINTILLA_DLL
TRANSLATIONS += realcompare_zh.ts
if(contains(QMAKE_HOST.arch, x86_64|loongarch64)){
CONFIG(Debug, Debug|Release){
DESTDIR = x64/Debug
LIBS += -Lx64/Debug
LIBS += -lqmyedit_qt5d
}else{
DESTDIR = x64/Release
LIBS += -Lx64/Release
LIBS += -lqmyedit_qt5
#QMAKE_CXXFLAGS += /openmp
}
}
unix{
if(CONFIG(debug, Debug|Release)){
LIBS += -L/home/yzw/build/CCNotePad/x64/Debug -lqmyedit_qt5
QMAKE_CXXFLAGS += -fopenmp
LIBS += -lgomp -lpthread
}else{
LIBS += -L/home/yzw/build/CCNotePad/x64/Release -lqmyedit_qt5
DESTDIR = x64/Release
QMAKE_CXXFLAGS += -fopenmp -O2
LIBS += -lgomp -lpthread
}
}
RC_FILE += RealCompare.rc
unix
{
INCLUDEPATH += $$PWD/.
DEPENDPATH += $$PWD/.
unix:!macx: LIBS += -L$$PWD/x64/Release/ -lqmyedit_qt5
INCLUDEPATH += $$PWD/x64/Release
DEPENDPATH += $$PWD/x64/Release
unix:!macx: PRE_TARGETDEPS += $$PWD/x64/Release/libqmyedit_qt5.a
}
================================================
FILE: src/RealCompare.qrc
================================================
<RCC>
<qresource prefix="/">
<file>Resources/img/dir.png</file>
<file>Resources/img/file.png</file>
<file>Resources/img/open.png</file>
<file>Resources/img/open1.png</file>
<file>Resources/img/save.png</file>
<file>Resources/img/all.png</file>
<file>Resources/img/same1.png</file>
<file>Resources/img/diff1.png</file>
<file>Resources/img/swap.png</file>
<file>Resources/img/reload.png</file>
<file>Resources/img/rule.png</file>
<file>Resources/img/left3.png</file>
<file>Resources/img/right3.png</file>
<file>Resources/img/point.png</file>
<file>Resources/img/main.png</file>
<file>Resources/img/showchar.png</file>
<file>Resources/img/hidechar.png</file>
<file>Resources/img/reload2.png</file>
<file>Resources/img/tran.png</file>
<file>Resources/img/6688.png</file>
<file>Resources/img/clear.png</file>
<file>Resources/img/undo.png</file>
<file>Resources/img/redo.png</file>
<file>Resources/edit/global/close.png</file>
<file>Resources/edit/global/closehover.png</file>
<file>Resources/edit/global/needsave.png</file>
<file>Resources/edit/global/noneedsave.png</file>
<file>Resources/edit/global/notebook.png</file>
<file>Resources/img/next.png</file>
<file>Resources/img/pre.png</file>
<file>Resources/edit/styledeepblue/rename.png</file>
<file>realcompare_zh.qm</file>
<file>Resources/edit/styleblack/rename.png</file>
<file>Resources/img/bin.png</file>
<file>Resources/img/info.png</file>
<file>Resources/edit/styledeepblue/next.png</file>
<file>Resources/edit/styledeepblue/pre.png</file>
<file>Resources/edit/styledeepblue/goto.png</file>
<file>Resources/edit/styledeepblue/bincmp.png</file>
<file>Resources/img/strict.png</file>
<file>Resources/img/1.png</file>
<file>Resources/img/2.png</file>
<file>Resources/img/3.png</file>
<file>Resources/img/4.png</file>
<file>Resources/img/5.png</file>
<file>Resources/img/6.png</file>
<file>Resources/img/next2.png</file>
<file>Resources/img/pre2.png</file>
<file>Resources/img/zoomin.png</file>
<file>Resources/img/zoomout.png</file>
<file>Resources/img/unequaldir.png</file>
<file>Resources/img/unequalfile.png</file>
<file>Resources/img/onlyfile.png</file>
<file>Resources/img/showall.png</file>
<file>Resources/img/diff.png</file>
<file>Resources/img/tolerant.png</file>
<file>Resources/img/needsave.png</file>
<file>Resources/img/break.png</file>
<file>Resources/img/pullopen.png</file>
<file>notepad/closeAll.png</file>
<file>notepad/closeFile.png</file>
<file>notepad/closeTabButton.png</file>
<file>notepad/closeTabButton_hover.png</file>
<file>notepad/closeTabButton_inact.png</file>
<file>notepad/closeTabButton_push.png</file>
<file>notepad/copy.png</file>
<file>notepad/cut.png</file>
<file>notepad/find.png</file>
<file>notepad/findReplace.png</file>
<file>notepad/indentGuide.png</file>
<file>notepad/invisibleChar.png</file>
<file>notepad/newFile.png</file>
<file>notepad/openFile.png</file>
<file>notepad/paste.png</file>
<file>notepad/redo.png</file>
<file>notepad/saveAll.png</file>
<file>notepad/saveFile.png</file>
<file>notepad/undo.png</file>
<file>notepad/wrap.png</file>
<file>notepad/zoomIn.png</file>
<file>notepad/zoomOut.png</file>
<file>notepad/savetab.png</file>
<file>notepad/close.png</file>
<file>notepad/closehover.png</file>
<file>notepad/cmpbin.png</file>
<file>notepad/cmpdir.png</file>
<file>notepad/cmpfile.png</file>
<file>notepad/cmpfile1.png</file>
<file>notepad/ecg.png</file>
<file>notepad/go.png</file>
<file>notepad/needsave.png</file>
<file>notepad/next.png</file>
<file>notepad/noneedsave.png</file>
<file>notepad/pre.png</file>
<file>notepad/rename.png</file>
<file>Resources/edit/global/ndd.ico</file>
<file>notepad/mark.png</file>
<file>notepad/sign.png</file>
<file>notepad/clearsign.png</file>
<file>notepad/autosave.png</file>
<file>qss/lightblue/arrow_bottom.png</file>
<file>qss/lightblue/add_bottom.png</file>
<file>qss/mystyle.qss</file>
<file>qss/lightbluestyle.qss</file>
<file>qss/lightblue/add_top.png</file>
<file>mac.icns</file>
<file>Resources/img/register.png</file>
<file>notepad/rightClose.png</file>
<file>Resources/img/bookmark.png</file>
<file>Resources/img/refresh.png</file>
<file>Resources/edit/styledeepblue/autosave.png</file>
<file>Resources/edit/styledeepblue/clearsign.png</file>
<file>Resources/edit/styledeepblue/closeall.png</file>
<file>Resources/edit/styledeepblue/closefile.png</file>
<file>Resources/edit/styledeepblue/copy.png</file>
<file>Resources/edit/styledeepblue/crlf.png</file>
<file>Resources/edit/styledeepblue/cut.png</file>
<file>Resources/edit/styledeepblue/dircompare.png</file>
<file>Resources/edit/styledeepblue/filecompare.png</file>
<file>Resources/edit/styledeepblue/find.png</file>
<file>Resources/edit/styledeepblue/indentGuide.png</file>
<file>Resources/edit/styledeepblue/mark.png</file>
<file>Resources/edit/styledeepblue/needsavebar.png</file>
<file>Resources/edit/styledeepblue/newfile.png</file>
<file>Resources/edit/styledeepblue/openfile.png</file>
<file>Resources/edit/styledeepblue/paste.png</file>
<file>Resources/edit/styledeepblue/redo.png</file>
<file>Resources/edit/styledeepblue/replace.png</file>
<file>Resources/edit/styledeepblue/sign.png</file>
<file>Resources/edit/styledeepblue/transcode.png</file>
<file>Resources/edit/styledeepblue/undo.png</file>
<file>Resources/edit/styledeepblue/white.png</file>
<file>Resources/edit/styledeepblue/zoomin.png</file>
<file>Resources/edit/styledeepblue/zoomout.png</file>
<file>Resources/edit/styledeepblue/needsaveall.png</file>
<file>Resources/img/savedark.png</file>
<file>Resources/img/opendark.png</file>
<file>Resources/img/reloaddark.png</file>
<file>Resources/img/vip.png</file>
<file>Resources/img/vipdark.png</file>
<file>Resources/edit/global/noneedsavedark.png</file>
<file>Resources/img/diffall.png</file>
<file>Resources/img/expand.png</file>
<file>Resources/img/fold.png</file>
<file>qss/common.qss</file>
<file>notepad/tailf.png</file>
<file>Resources/edit/styledeepblue/tailf.png</file>
</qresource>
</RCC>
================================================
FILE: src/RealCompareToMinGw.rc
================================================
#include <windows.h>
IDI_ICON1 ICON DISCARDABLE ".\\Resources\\edit\\global\\ndd.ico"
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,22,0,0
PRODUCTVERSION 1,22,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0x0L
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080404b0"
BEGIN
VALUE "FileDescription", "notepad-- v1.22.0\0"
VALUE "FileVersion", "1.22.0.0\0"
VALUE "LegalCopyright", "Copyright (C) 2020-2023\0"
VALUE "OriginalFilename", "Notepad--.exe\0"
VALUE "ProductName", "notepad-- \0"
VALUE "ProductVersion", "1.22.0.0\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0804, 1200
END
END
/* End of Version info */
================================================
FILE: src/Sorters.h
================================================
#pragma once
#include <algorithm>
#include <utility>
#include <random>
#include <QString>
// Base interface for line sorting.
class ISorter
{
private:
bool _isDescending = true;
size_t _fromColumn = 0;
size_t _toColumn = 0;
protected:
bool isDescending() const
{
return _isDescending;
}
QString getSortKey(const QString& input)
{
if (isSortingSpecificColumns())
{
if (input.length() < _fromColumn)
{
// prevent an std::out_of_range exception
return QString("");
}
else if (_fromColumn == _toColumn)
{
// get characters from the indicated column to the end of the line
return input.mid(_fromColumn);
}
else
{
// get characters between the indicated columns, inclusive
return input.mid(_fromColumn, _toColumn - _fromColumn);
}
}
else
{
return input;
}
}
bool isSortingSpecificColumns()
{
return _toColumn != 0;
}
public:
ISorter(bool isDescending, size_t fromColumn, size_t toColumn) : _isDescending(isDescending), _fromColumn(fromColumn), _toColumn(toColumn)
{
assert(_fromColumn <= _toColumn);
};
virtual ~ISorter() { };
virtual QList<QString> sort(QList<QString> lines) = 0;
};
// Implementation of lexicographic sorting of lines.
class LexicographicSorter : public ISorter
{
public:
LexicographicSorter(bool isDescending, size_t fromColumn, size_t toColumn) : ISorter(isDescending, fromColumn, toColumn) { };
QList<QString> sort(QList<QString> lines) override
{
// Note that both branches here are equivalent in the sense that they always give the same answer.
// However, if we are *not* sorting specific columns, then we get a 40% speed improvement by not calling
// getSortKey() so many times.
if (isSortingSpecificColumns())
{
std::sort(lines.begin(), lines.end(), [this](QString a, QString b)
{
if (isDescending())
{
return getSortKey(a).compare(getSortKey(b)) > 0;
}
else
{
return getSortKey(a).compare(getSortKey(b)) < 0;
}
});
}
else
{
std::sort(lines.begin(), lines.end(), [this](QString a, QString b)
{
if (isDescending())
{
return a.compare(b) > 0;
}
else
{
return a.compare(b) < 0;
}
});
}
return lines;
}
};
// Implementation of lexicographic sorting of lines, ignoring character casing
class LexicographicCaseInsensitiveSorter : public ISorter
{
public:
LexicographicCaseInsensitiveSorter(bool isDescending, size_t fromColumn, size_t toColumn) : ISorter(isDescending, fromColumn, toColumn) { };
QList<QString> sort(QList<QString> lines) override
{
// Note that both branches here are equivalent in the sense that they always give the same answer.
// However, if we are *not* sorting specific columns, then we get a 40% speed improvement by not calling
// getSortKey() so many times.
if (isSortingSpecificColumns())
{
std::sort(lines.begin(), lines.end(), [this](QString a, QString b)
{
if (isDescending())
{
return getSortKey(a).compare(getSortKey(b), Qt::CaseInsensitive) > 0;
}
else
{
return getSortKey(a).compare(getSortKey(b), Qt::CaseInsensitive) < 0;
}
});
}
else
{
std::sort(lines.begin(), lines.end(), [this](QString a, QString b)
{
if (isDescending())
{
return QString::compare(a, b, Qt::CaseInsensitive) > 0;
}
else
{
return QString::compare(a, b, Qt::CaseInsensitive) < 0;
}
});
}
return lines;
}
};
class ReverseSorter : public ISorter
{
public:
ReverseSorter(bool isDescending, size_t fromColumn, size_t toColumn) : ISorter(isDescending, fromColumn, toColumn) { };
QList<QString> sort(QList<QString> lines) override
{
std::reverse(lines.begin(), lines.end());
return lines;
}
};
================================================
FILE: src/StrategyCompare.h
================================================
#pragma once
#include "CmpareMode.h"
#include "AbstractCompare.h"
#include <QMap>
class StrategyCompare
{
public:
StrategyCompare();
virtual ~StrategyCompare();
virtual void BlockCmpLcs(const BlocksInfo & leftBlockInfo, uchar * leftFileData, QVector<LineFileInfo>& leftLinesInfo, const BlocksInfo & rightBlockInfo, uchar * rightFileData, QVector<LineFileInfo>& rightLinesInfo, BlockCmpPairResult & result);
private:
void lessCmpMore(const BlocksInfo & lessBlockInfo, uchar * lessFileData, QVector<LineFileInfo>& lessLinesInfo, const BlocksInfo & moreBlockInfo, uchar * moreFileData, QVector<LineFileInfo>&moreLinesInfo, QMap<int, BlockCmpPairInfo>& result);
};
================================================
FILE: src/aboutndd.cpp
================================================
#include "aboutndd.h"
AboutNdd::AboutNdd(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
ui.label->setOpenExternalLinks(true);
// 隐藏最大化、最小化按钮
setWindowFlags(windowFlags() & ~Qt::WindowMinMaxButtonsHint);
connect(ui.aboutPushButton, &QPushButton::clicked, this, &AboutNdd::onButtonOkayClicked);
}
AboutNdd::~AboutNdd()
{}
void AboutNdd::appendText(QString text)
{
ui.nddMsgText->appendPlainText(text);
}
void AboutNdd::onButtonOkayClicked()
{
close();
}
================================================
FILE: src/aboutndd.h
================================================
#pragma once
#include <QWidget>
#include "ui_aboutndd.h"
class AboutNdd : public QWidget
{
Q_OBJECT
public:
AboutNdd(QWidget *parent = nullptr);
~AboutNdd();
void appendText(QString text);
private slots:
void onButtonOkayClicked();
private:
Ui::AboutNddClass ui;
};
================================================
FILE: src/aboutndd.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AboutNddClass</class>
<widget class="QWidget" name="AboutNddClass">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>180</height>
</rect>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>180</height>
</size>
</property>
<property name="windowTitle">
<string>About Notepad--</string>
</property>
<property name="windowIcon">
<iconset resource="RealCompare.qrc">
<normaloff>:/Resources/edit/global/ndd.ico</normaloff>:/Resources/edit/global/ndd.ico</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item row="1" column="0">
<layout class="QVBoxLayout" name="verticalLayout0">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>General Public License</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="nddMsgText">
<property name="readOnly">
<bool>true</bool>
</property>
<property name="plainText">
<string>This software is licensed under the terms of the GNU General Public License version 3 (GPLv3). You are free to redistribute and modify the software in accordance with the license.</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string><html><head/><body><p>Home: <a href="https://gitee.com/cxasm/notepad--"><span style=" font-size:10pt; text-decoration: underline; color:#0000ff;">https://gitee.com/cxasm/notepad--</span></a></p></body></html></string>
</property>
</widget>
</item>
<item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="aboutPushButton">
<property name="minimumSize">
<size>
<width>100</width>
<height>28</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>28</height>
</size>
</property>
<property name="text">
<string>Okay</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>
<include location="RealCompare.qrc"/>
</resources>
<connections/>
</ui>
================================================
FILE: src/batchfindreplace.cpp
================================================
#include "batchfindreplace.h"
#include "scintillaeditview.h"
#include "ccnotepad.h"
#include "progresswin.h"
#include "nddsetting.h"
#include "ctipwin.h"
#include <QTableWidgetItem>
#include <QFileDialog>
BatchFindReplace::BatchFindReplace(QWidget *parent)
: QMainWindow(parent), m_curEditWin(nullptr), m_editTabWidget(nullptr)
{
ui.setupUi(this);
m_mainNotepad = dynamic_cast<CCNotePad*>(parent);
}
BatchFindReplace::~BatchFindReplace()
{
}
void BatchFindReplace::closeEvent(QCloseEvent* event)
{
QByteArray curGeo = this->saveGeometry();
NddSetting::updataWinPos(BATCH_FIND_REPLACE_POS, curGeo);
}
void BatchFindReplace::setTabWidget(QTabWidget* editTabWidget)
{
m_editTabWidget = editTabWidget;
}
//Զǰڵ״̬˱仯Ҫ϶Ϊ״β
QWidget* BatchFindReplace::autoAdjustCurrentEditWin()
{
QWidget* pw = m_editTabWidget->currentWidget();
if (m_curEditWin != pw)
{
m_curEditWin = pw;
}
return pw;
}
void BatchFindReplace::appendToFindTable(QString findKeyword)
{
int rNum = ui.findReplaceTable->rowCount();
ui.findReplaceTable->insertRow(rNum);
QTableWidgetItem* itemFind = new QTableWidgetItem(findKeyword);
ui.findReplaceTable->setItem(rNum, 0, itemFind);
ui.findReplaceTable->setItem(rNum, 1, new QTableWidgetItem());
}
//ﲻӣDz룬ӦItemѾڡ
void BatchFindReplace::insertToReplaceTable(int row, QString replaceKeyword)
{
QTableWidgetItem* item = ui.findReplaceTable->item(row, 1);
if (item == nullptr)
{
ui.statusBar->showMessage(tr("$1 has no find match work item").arg(replaceKeyword));
return;
}
item->setText(replaceKeyword);
}
void BatchFindReplace::insertToFindReplaceTable(QStringList& replaceKeyword)
{
for (int i = 0; i < replaceKeyword.size(); ++i)
{
insertToReplaceTable(i, replaceKeyword.at(i));
}
}
void BatchFindReplace::appendToFindReplaceTable(QStringList& findKeyword)
{
if (findKeyword.isEmpty())
{
return;
}
int rNum = ui.findReplaceTable->rowCount();
for (int i = 0; i < findKeyword.size(); ++i)
{
int curRow = rNum + i;
ui.findReplaceTable->insertRow(curRow);
QTableWidgetItem* itemFind = new QTableWidgetItem(findKeyword.at(i));
ui.findReplaceTable->setItem(curRow, 0, itemFind);
ui.findReplaceTable->setItem(curRow, 1, new QTableWidgetItem());
}
}
bool BatchFindReplace::tranInputKeyword(QString& findKeyWord, QStringList& outputKeyWordList)
{
//ѿհַո\t \r\n ַ滻Ϊո
QRegExp re("\\s");
findKeyWord.replace(re, QString(" "));
//ٽпոָ
outputKeyWordList = findKeyWord.split(" ");
if (outputKeyWordList.size() > 20000)
{
ui.statusBar->showMessage(tr("Max find key word 20000 !"), 10000);
return false;
}
//ɾÿһյԪ
for (int i = outputKeyWordList.size() - 1; i >= 0; --i)
{
if (outputKeyWordList[i].trimmed().isEmpty())
{
outputKeyWordList.removeAt(i);
}
}
if (outputKeyWordList.isEmpty())
{
return false;
}
return true;
}
void BatchFindReplace::on_freshBtClick()
{
QStringList findWordList;
QString findKeyWord = ui.findKeywordEdit->toPlainText();
if (findKeyWord.isEmpty())
{
ui.statusBar->showMessage(tr("Please input find keyword !"),10000);
if (ui.findReplaceTable->rowCount() > 0)
{
ui.findReplaceTable->clearContents();
ui.findReplaceTable->setRowCount(0);
}
return;
}
if (!tranInputKeyword(findKeyWord, findWordList))
{
return;
}
else
{
ui.findReplaceTable->clearContents();
ui.findReplaceTable->setRowCount(0);
appendToFindReplaceTable(findWordList);
}
QStringList replaceWordList;
QString replaceKeyWord = ui.replaceKeywordEdit->toPlainText();
if (!tranInputKeyword(replaceKeyWord, replaceWordList))
{
return;
}
else
{
insertToFindReplaceTable(replaceWordList);
}
}
//ҹ
void BatchFindReplace::on_findBtClick()
{
if (m_mainNotepad != nullptr && m_mainNotepad)
{
int rowNums = ui.findReplaceTable->rowCount();
if (rowNums == 0)
{
CTipWin::showTips(this, tr("Please fresh first !"), 1200);
return;
}
int foundTimes = 0;
QStringList findKeyList;
for (int i = 0; i < rowNums; ++i)
{
QTableWidgetItem* item = ui.findReplaceTable->item(i, 0);
if (item != nullptr && !item->text().isEmpty())
{
findKeyList.append(item->text());
}
}
foundTimes = m_mainNotepad->findAtBack(findKeyList);
ui.statusBar->showMessage(tr("Batch Find Finished! total %1 found.").arg(foundTimes),10000);
}
}
//滻
void BatchFindReplace::on_replaceBtClick()
{
if (m_mainNotepad != nullptr)
{
int rowNums = ui.findReplaceTable->rowCount();
if (rowNums == 0)
{
CTipWin::showTips(this, tr("Please fresh first !"), 1200);
return;
}
QStringList findKeyList;
QStringList replaceKeyList;
for (int i = 0; i < rowNums; ++i)
{
QTableWidgetItem* item = ui.findReplaceTable->item(i, 0);
if (item != nullptr && !item->text().isEmpty())
{
QTableWidgetItem* replaceItem = ui.findReplaceTable->item(i, 1);
if (replaceItem != nullptr)
{
if (item->text() != replaceItem->text())
{
findKeyList.append(item->text());
replaceKeyList.append(replaceItem->text());
}
}
}
}
m_mainNotepad->replaceAtBack(findKeyList, replaceKeyList);
ui.statusBar->showMessage(tr("Batch Replace Finished, total Replace %1 times !").arg(findKeyList.size()), 10000);
}
}
void BatchFindReplace::on_swapFindReplace()
{
QString findText = ui.findKeywordEdit->toPlainText();
QString replaceText = ui.replaceKeywordEdit->toPlainText();
ui.findKeywordEdit->setPlainText(replaceText);
ui.replaceKeywordEdit->setPlainText(findText);
on_freshBtClick();
}
void BatchFindReplace::on_export()
{
QString filter("Text files (*.txt);;All types(*.*)");
QString fileName = QFileDialog::getSaveFileName(this, tr("Save File As ..."), QString(), filter);
if (!fileName.isEmpty())
{
QSettings setting(fileName, QSettings::IniFormat);
setting.setIniCodec("UTF-8");
int rowNums = ui.findReplaceTable->rowCount();
QStringList findList;
QStringList replaceList;
for (int i = 0; i < rowNums; ++i)
{
QTableWidgetItem* item = ui.findReplaceTable->item(i, 0);
if (item != nullptr && !item->text().isEmpty())
{
QTableWidgetItem* replaceItem = ui.findReplaceTable->item(i, 1);
if (replaceItem != nullptr)
{
findList.append(item->text());
replaceList.append(replaceItem->text());
}
}
}
if (!findList.isEmpty())
{
setting.setValue("find", findList);
setting.setValue("replace", replaceList);
ui.statusBar->showMessage(tr("Export File finished !"), 10000);
}
else
{
ui.statusBar->showMessage(tr("No Content to Export !"), 10000);
}
}
}
void BatchFindReplace::on_import()
{
QFileDialog fd(this, QString(), CCNotePad::s_lastOpenDirPath);
fd.setFileMode(QFileDialog::ExistingFile);
if (fd.exec() == QDialog::Accepted) //ɹִ
{
QStringList fileNameList = fd.selectedFiles(); //ļб
QFileInfo fi(fileNameList[0]);
QSettings setting(fi.filePath(), QSettings::IniFormat);
setting.setIniCodec("UTF-8");
ui.findKeywordEdit->setPlainText(setting.value("find").toStringList().join(" "));
ui.replaceKeywordEdit->setPlainText(setting.value("replace").toStringList().join(" "));
on_freshBtClick();
}
else
{
fd.close();
}
}
void BatchFindReplace::on_mark()
{
if (m_mainNotepad != nullptr)
{
int rowNums = ui.findReplaceTable->rowCount();
if (rowNums == 0)
{
CTipWin::showTips(this, tr("Please fresh first !"), 1200);
return;
}
int markTimes = 0;
QStringList findKeyList;
for (int i = 0; i < rowNums; ++i)
{
QTableWidgetItem* item = ui.findReplaceTable->item(i, 0);
if (item != nullptr && !item->text().isEmpty())
{
findKeyList.append(item->text());
}
}
markTimes = m_mainNotepad->markAtBack(findKeyList);
ui.statusBar->showMessage(tr("Batch Mark Finished, total Mark %1 times !").arg(markTimes), 10000);
}
}
void BatchFindReplace::on_clearMark()
{
if (m_mainNotepad != nullptr)
{
m_mainNotepad->slot_clearMark();
}
}
================================================
FILE: src/batchfindreplace.h
================================================
#pragma once
#include <QMainWindow>
#include <QTabWidget>
#include <QCloseEvent>
#include "ui_batchfindreplace.h"
class CCNotePad;
class BatchFindReplace : public QMainWindow
{
Q_OBJECT
public:
BatchFindReplace(QWidget *parent = nullptr);
virtual ~BatchFindReplace();
void setTabWidget(QTabWidget* editTabWidget);
protected:
void closeEvent(QCloseEvent* event);
private slots:
void on_freshBtClick();
void on_findBtClick();
void on_replaceBtClick();
void on_swapFindReplace();
void on_export();
void on_import();
void on_mark();
void on_clearMark();
private:
bool tranInputKeyword(QString& keyWord, QStringList& outputKeyWordList);
void appendToFindReplaceTable(QStringList& findKeyword);
void appendToFindTable(QString findKeyword);
void insertToReplaceTable(int row, QString replaceKeyword);
void insertToFindReplaceTable(QStringList& replaceKeyword);
QWidget* autoAdjustCurrentEditWin();
private:
Ui::BatchFindReplaceClass ui;
QTabWidget* m_editTabWidget;
QWidget* m_curEditWin;
CCNotePad* m_mainNotepad;
};
================================================
FILE: src/batchfindreplace.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>BatchFindReplaceClass</class>
<widget class="QMainWindow" name="BatchFindReplaceClass">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>902</width>
<height>737</height>
</rect>
</property>
<property name="windowTitle">
<string>BatchFindReplace</string>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="leftMargin">
<number>3</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>3</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Enter multiple find keywords, separated by blank characters</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="findKeywordEdit"/>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Enter multiple Replace keywords, separated by blank characters</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="replaceKeywordEdit"/>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QTableWidget" name="findReplaceTable">
<attribute name="horizontalHeaderVisible">
<bool>true</bool>
</attribute>
<column>
<property name="text">
<string>Keyword</string>
</property>
</column>
<column>
<property name="text">
<string>Replace</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="freshBt">
<property name="text">
<string>Fresh</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="swapBt">
<property name="text">
<string>swap</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="findBt">
<property name="text">
<string>Find</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="replaceBt">
<property name="text">
<string>Replace</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="markBt">
<property name="text">
<string>Mark</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>ClearMark</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="importBt">
<property name="text">
<string>Import</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="exportBt">
<property name="text">
<string>Export</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections>
<connection>
<sender>freshBt</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_freshBtClick()</slot>
<hints>
<hint type="sourcelabel">
<x>204</x>
<y>710</y>
</hint>
<hint type="destinationlabel">
<x>218</x>
<y>703</y>
</hint>
</hints>
</connection>
<connection>
<sender>findBt</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_findBtClick()</slot>
<hints>
<hint type="sourcelabel">
<x>366</x>
<y>710</y>
</hint>
<hint type="destinationlabel">
<x>426</x>
<y>736</y>
</hint>
</hints>
</connection>
<connection>
<sender>replaceBt</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_replaceBtClick()</slot>
<hints>
<hint type="sourcelabel">
<x>447</x>
<y>710</y>
</hint>
<hint type="destinationlabel">
<x>530</x>
<y>709</y>
</hint>
</hints>
</connection>
<connection>
<sender>swapBt</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_swapFindReplace()</slot>
<hints>
<hint type="sourcelabel">
<x>285</x>
<y>710</y>
</hint>
<hint type="destinationlabel">
<x>378</x>
<y>736</y>
</hint>
</hints>
</connection>
<connection>
<sender>importBt</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_import()</slot>
<hints>
<hint type="sourcelabel">
<x>690</x>
<y>710</y>
</hint>
<hint type="destinationlabel">
<x>687</x>
<y>736</y>
</hint>
</hints>
</connection>
<connection>
<sender>exportBt</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_export()</slot>
<hints>
<hint type="sourcelabel">
<x>771</x>
<y>710</y>
</hint>
<hint type="destinationlabel">
<x>799</x>
<y>698</y>
</hint>
</hints>
</connection>
<connection>
<sender>markBt</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_mark()</slot>
<hints>
<hint type="sourcelabel">
<x>528</x>
<y>710</y>
</hint>
<hint type="destinationlabel">
<x>584</x>
<y>742</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton</sender>
<signal>clicked()</signal>
<receiver>BatchFindReplaceClass</receiver>
<slot>on_clearMark()</slot>
<hints>
<hint type="sourcelabel">
<x>577</x>
<y>693</y>
</hint>
<hint type="destinationlabel">
<x>570</x>
<y>746</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>on_freshBtClick()</slot>
<slot>on_findBtClick()</slot>
<slot>on_replaceBtClick()</slot>
<slot>on_swapFindReplace()</slot>
<slot>on_import()</slot>
<slot>on_export()</slot>
<slot>on_mark()</slot>
<slot>on_clearMark()</slot>
</slots>
</ui>
================================================
FILE: src/bigfilemessage.cpp
================================================
#include "bigfilemessage.h"
#include "nddsetting.h"
BigFileMessage::BigFileMessage(QWidget *parent)
: QDialog(parent), m_result(-1)
{
ui.setupUi(this);
}
BigFileMessage::~BigFileMessage()
{}
void BigFileMessage::setDefOpenMode(NddDocType defMode)
{
switch (defMode)
{
case TXT_TYPE:
ui.textMode->setChecked(true);
break;
case BIG_TEXT_RO_TYPE:
ui.bigTextMode->setChecked(true);
break;
case BIG_EDIT_RW_TYPE:
break;
case SUPER_BIG_TEXT_RO_TYPE:
ui.superBigTextMode->setChecked(true);
break;
case HEX_TYPE:
ui.hexMode->setChecked(true);
break;
default:
break;
}
}
void BigFileMessage::setTip(QString msg)
{
ui.label->setText(msg);
}
void BigFileMessage::slot_okBt()
{
if (ui.textMode->isChecked())
{
m_result = TXT_TYPE;//ͨı
}
else if(ui.bigTextMode->isChecked())
{
m_result = BIG_TEXT_RO_TYPE; //С8GĴı
}
else if (ui.superBigTextMode->isChecked())
{
m_result = SUPER_BIG_TEXT_RO_TYPE;//8GϵĴı
}
else if (ui.hexMode->isChecked())
{
m_result = HEX_TYPE;//
}
done(m_result);
}
void BigFileMessage::slot_cancelBt()
{
m_result = -1;
done(m_result);
}
================================================
FILE: src/bigfilemessage.h
================================================
#pragma once
#include "ccnotepad.h"
#include <QWidget>
#include <QDialog>
#include "ui_bigfilemessage.h"
class BigFileMessage : public QDialog
{
Q_OBJECT
public:
BigFileMessage(QWidget *parent = nullptr);
~BigFileMessage();
void setTip(QString msg);
void setDefOpenMode(NddDocType defMode);
private slots:
void slot_okBt();
void slot_cancelBt();
private:
Ui::BigFileMessageClass ui;
int m_result;
};
================================================
FILE: src/bigfilemessage.ui
================================================
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>BigFileMessageClass</class>
<widget class="QDialog" name="BigFileMessageClass">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>661</width>
<height>211</height>
</rect>
</property>
<property name="windowTitle">
<string>BigFileMessage</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>3</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>3</number>
</property>
<property name="bottomMargin">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Open Mode</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="2">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Binary Open,load in blocks, and turn pages manually.</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="bigTextMode">
<property name="text">
<string>Big Text</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Open directly in text mode.May be slow, Need wait.</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QRadioButton" name="textMode">
<property name="text">
<string>Text Mode</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QRadioButton" name="hexMode">
<property name="text">
<string>Hex Bin</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Big Text File(< 8G) Read only open, load in blocks, and turn pages manually.</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Super big Text File(> 8G bits) Read only open, load in blocks, and turn pages manually.</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QRadioButton" name="superBigTextMode">
<property name="text">
<string>Super Big Text</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okBt">
<property name="text">
<string>Ok</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelBt">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections>
<connection>
<sender>okBt</sender>
<signal>clicked()</signal>
<receiver>BigFileMessageClass</receiver>
<slot>slot_okBt()</slot>
<hints>
<hint type="sourcelabel">
<x>359</x>
<y>168</y>
</hint>
<hint type="destinationlabel">
<x>284</x>
<y>193</y>
</hint>
</hints>
</connection>
<connection>
<sender>cancelBt</sender>
<signal>clicked()</signal>
<receiver>BigFileMessageClass</receiver>
<slot>slot_cancelBt()</slot>
<hints>
<hint type="sourcelabel">
<x>448</x>
<y>176</y>
</hint>
<hint type="destinationlabel">
<x>446</x>
<y>196</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>slot_okBt()</slot>
<slot>slot_cancelBt()</slot>
</slots>
</ui>
================================================
FILE: src/cceditor/ccnotepad.cpp
================================================
#include <memory>
#include "ccnotepad.h"
#include "filemanager.h"
#include "Encode.h"
#include "findwin.h"
#include "nddsetting.h"
#include "findresultwin.h"
#include "scintillaeditview.h"
#include "scintillahexeditview.h"
#include "encodeconvert.h"
#include "optionsview.h"
#include "donate.h"
#include "renamewin.h"
#include "doctypelistview.h"
#include "hexfilegoto.h"
#include "qscilexertext.h"
#include "styleset.h"
#include "qtlangset.h"
#include "columnedit.h"
#include "langstyledefine.h"
#include "extlexermanager.h"
#include "aboutndd.h"
#include "filelistview.h"
#include "bigfilemessage.h"
#include "batchfindreplace.h"
#include "langextset.h"
#include "shortcutkeymgr.h"
#include "md5hash.h"
#include "CmpareMode.h"
#ifdef NO_PLUGIN
#include "pluginmgr.h"
#include "plugin.h"
#include "pluginGl.h"
#endif
#ifdef Q_OS_WIN
#include "dectfilechanges.h"
#endif
#include <QFileDialog>
#include <QDebug>
#include <QTabBar>
#include <QVariant>
#include <QTextCodec>
#include <QMessageBox>
#include <QToolButton>
#include <qsciscintilla.h>
#include <QDockWidget>
#include <QInputDialog>
#include <QPair>
#include <QMenu>
#include <QProcess>
#include <QSettings>
#include <QSharedMemory>
#include <QMimeDatabase>
#include <QDateTime>
#include <QShortcut>
#ifdef Q_OS_WIN
#include <QXmlQuery>
#include <QXmlFormatter>
#endif
#include <QBuffer>
#include <QXmlStreamReader>
#include <QJsonObject>
#include <QJsonDocument>
#include <QWidgetAction>
#include <QListWidgetItem>
#include <QLibrary>
#include "Sorters.h"
#ifdef Q_OS_WIN
#include <qt_windows.h>
#include <Windows.h>
#endif
#include <memory>
#ifdef Q_OS_WIN
extern bool s_isAdminAuth;
inline std::wstring StringToWString(const std::string& str)
{
#if 0
int len = MultiByteToWideChar(CP_UTF8, 0, str.c_str(), -1, NULL, 0);
wchar_t* wide = new wchar_t[len + 1];
memset(wide, '\0', sizeof(wchar_t) * (len + 1));
MultiByteToWideChar(CP_UTF8, 0, str.c_str(), -1, wide, len);
std::wstring w_str(wide);
delete[] wide;
return w_str;
#endif
QString temp = QString::fromStdString(str);
return temp.toStdWString();
}
#endif
int CCNotePad::s_padTimes = 0;
int CCNotePad::s_zoomValue = 0;
QString CCNotePad::s_lastOpenDirPath = "";
QList<CCNotePad*> *CCNotePad::s_padInstances = nullptr;
//文件保存的路径,qstring
static const char* Edit_View_FilePath = "filePath";
//int 新文件的id序号。非新建文件为-1
static const char* Edit_File_New = "newfile";
//是否修改 true false
static const char* Edit_Text_Change = "change";
//line行尾符号
static const char* Edit_Text_End = "lineend";
//外部修改
static const char* Modify_Outside = "modify";
//文档类型 1:text 2 hex
static const char* Doc_Type = "type";
//tail状态 0 关闭 1开启
static const char* Tail_Status = "tail";
static const int MSG_EXIST_TIME = 8000;
void setFileOpenAttrProperty(QWidget* pwidget, OpenAttr attr)
{
QVariant v(attr);
pwidget->setProperty(Open_Attr, v);
}
const QString OpenAttrToString(OpenAttr openType)
{
QString ret;
switch (openType)
{
case Text:
ret = QObject::tr("Text Mode");
break;
case HexReadOnly:
ret = QObject::tr("Hex ReadOnly Mode");
break;
case BigTextReadOnly:
ret = QObject::tr("Big Text ReadOnly Mode");
break;
case BigTextReadWrite:
ret = QObject::tr("Big Text ReadWrite Mode");
break;
case SuperBigTextReadOnly:
ret = QObject::tr("Super Big Text ReadOnly Mode");
break;
case TextReadOnly:
ret = QObject::tr("Text ReadOnly Mode");
break;
default:
ret = QObject::tr("File Mode");
break;
}
return ret;
}
QString getFileOpenAttrProperty(QWidget* pwidget)
{
OpenAttr openType = (OpenAttr)pwidget->property(Open_Attr).toInt();
return OpenAttrToString(openType);
}
void setFilePathProperty(QWidget* pwidget, QString filePath)
{
QVariant v(filePath);
pwidget->setProperty(Edit_View_FilePath, v);
}
QString getFilePathProperty(QWidget* pwidget)
{
return pwidget->property(Edit_View_FilePath).toString();
}
void setFileNewIndexProperty(QWidget* pwidget, int index)
{
QVariant v(index);
pwidget->setProperty(Edit_File_New, v);
}
//新文件的id,非新文件为-1
int getFileNewIndexProperty(QWidget* pwidget)
{
return pwidget->property(Edit_File_New).toInt();
}
gitextract_p2dfp083/ ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── README_EN.md ├── THIRDPARTY.md ├── changelog.txt ├── cmake/ │ ├── deb_package_config.cmake │ └── nsis_package_config.cmake ├── src/ │ ├── .qmake.stash │ ├── CmpareMode.cpp │ ├── CmpareMode.h │ ├── Encode.cpp │ ├── Encode.h │ ├── LICENSE │ ├── MediatorDisplay.cpp │ ├── MediatorDisplay.h │ ├── MediatorFileTree.cpp │ ├── MediatorFileTree.h │ ├── QTreeWidgetSortItem.cpp │ ├── QTreeWidgetSortItem.h │ ├── RcTreeWidget.cpp │ ├── RcTreeWidget.h │ ├── RealCompare.pri │ ├── RealCompare.pro │ ├── RealCompare.qrc │ ├── RealCompare.rc │ ├── RealCompareToMinGw.rc │ ├── Resources/ │ │ └── macicon.icns │ ├── Sorters.h │ ├── StrategyCompare.h │ ├── aboutndd.cpp │ ├── aboutndd.h │ ├── aboutndd.ui │ ├── batchfindreplace.cpp │ ├── batchfindreplace.h │ ├── batchfindreplace.ui │ ├── bigfilemessage.cpp │ ├── bigfilemessage.h │ ├── bigfilemessage.ui │ ├── cceditor/ │ │ ├── ccnotepad.cpp │ │ ├── ccnotepad.h │ │ ├── ccnotepad.ui │ │ ├── filemanager.cpp │ │ └── filemanager.h │ ├── closeDlg.cpp │ ├── closeDlg.h │ ├── closeDlg.ui │ ├── columnedit.cpp │ ├── columnedit.h │ ├── columnedit.ui │ ├── command.cpp │ ├── command.h │ ├── common.cpp │ ├── common.h │ ├── ctipwin.cpp │ ├── ctipwin.h │ ├── ctipwin.ui │ ├── dectfilechanges.cpp │ ├── dectfilechanges.h │ ├── diff.h │ ├── dirfindfile.cpp │ ├── dirfindfile.h │ ├── dirfindfile.ui │ ├── doctypelistview.cpp │ ├── doctypelistview.h │ ├── doctypelistview.ui │ ├── donate.cpp │ ├── donate.h │ ├── donate.ui │ ├── draglineedit.cpp │ ├── draglineedit.h │ ├── encodeconvert.cpp │ ├── encodeconvert.h │ ├── encodeconvert.ui │ ├── extLexermanager.cpp │ ├── extlexermanager.h │ ├── filecmprulewin.cpp │ ├── filecmprulewin.h │ ├── filecmprulewin.ui │ ├── filelistview.cpp │ ├── filelistview.h │ ├── filelistview.ui │ ├── findcmpwin.cpp │ ├── findcmpwin.h │ ├── findcmpwin.ui │ ├── findresultview.cpp │ ├── findresultview.h │ ├── findresultwin.cpp │ ├── findresultwin.h │ ├── findresultwin.ui │ ├── findwin.cpp │ ├── findwin.h │ ├── findwin.ui │ ├── gotolinewin.cpp │ ├── gotolinewin.h │ ├── gotolinewin.ui │ ├── hexcmprangewin.cpp │ ├── hexcmprangewin.h │ ├── hexcmprangewin.ui │ ├── hexfilegoto.cpp │ ├── hexfilegoto.h │ ├── hexfilegoto.ui │ ├── hexrulewin.cpp │ ├── hexrulewin.h │ ├── hexrulewin.ui │ ├── include/ │ │ └── pluginGl.h │ ├── installer/ │ │ ├── NsisMultiUser/ │ │ │ └── Include/ │ │ │ ├── NsisMultiUser.nsh │ │ │ ├── NsisMultiUserLang.nsh │ │ │ ├── StdUtils.nsh │ │ │ └── UAC.nsh │ │ ├── installer.nsi │ │ ├── newinstall.iss │ │ ├── newinstall_dync.iss │ │ └── utils.nsh │ ├── langextset.cpp │ ├── langextset.h │ ├── langextset.ui │ ├── langstyledefine.cpp │ ├── langstyledefine.h │ ├── langstyledefine.ui │ ├── linux/ │ │ └── usr/ │ │ └── share/ │ │ ├── applications/ │ │ │ └── NotePad--.desktop │ │ ├── licenses/ │ │ │ └── notepad--/ │ │ │ └── LICENSE │ │ └── metainfo/ │ │ └── io.gitee.cxasm.notepad--.metainfo.xml │ ├── mac.icns │ ├── macicon/ │ │ └── mac.icns │ ├── macpro/ │ │ └── RealCompare.pro │ ├── main.cpp │ ├── markdownview.cpp │ ├── markdownview.h │ ├── markdownview.ui │ ├── md5hash.cpp │ ├── md5hash.h │ ├── md5hash.ui │ ├── mystyle.qss │ ├── mytreeview.cpp │ ├── mytreeview.h │ ├── nddpluginapi.cpp │ ├── nddpluginapi.h │ ├── nddsetting.cpp │ ├── nddsetting.h │ ├── ndstyleditemdelegate.cpp │ ├── ndstyleditemdelegate.h │ ├── optionsview.cpp │ ├── optionsview.h │ ├── optionsview.ui │ ├── plugin/ │ │ ├── helloworld/ │ │ │ ├── CMakeLists.txt │ │ │ ├── helloworld.pro │ │ │ ├── helloworldexport.cpp │ │ │ ├── qttestclass.cpp │ │ │ ├── qttestclass.h │ │ │ └── qttestclass.ui │ │ └── test/ │ │ ├── test.cpp │ │ └── test.pro │ ├── plugin.cpp │ ├── plugin.h │ ├── pluginGl.h │ ├── pluginmgr.cpp │ ├── pluginmgr.h │ ├── pluginmgr.ui │ ├── progresswin.cpp │ ├── progresswin.h │ ├── progresswin.ui │ ├── qscidisplaywindow.cpp │ ├── qscidisplaywindow.h │ ├── qscint/ │ │ ├── CMakeLists.txt │ │ ├── ChangeLog │ │ ├── LICENSE │ │ ├── NEWS │ │ ├── Python/ │ │ │ ├── README │ │ │ ├── config-tests/ │ │ │ │ └── cfgtest_Qsci.cpp │ │ │ ├── project.py │ │ │ ├── pyproject-qt5.toml │ │ │ ├── pyproject-qt6.toml │ │ │ └── sip/ │ │ │ ├── qsciabstractapis.sip │ │ │ ├── qsciapis.sip │ │ │ ├── qscicommand.sip │ │ │ ├── qscicommandset.sip │ │ │ ├── qscidocument.sip │ │ │ ├── qscilexer.sip │ │ │ ├── qscilexeravs.sip │ │ │ ├── qscilexerbash.sip │ │ │ ├── qscilexerbatch.sip │ │ │ ├── qscilexercmake.sip │ │ │ ├── qscilexercoffeescript.sip │ │ │ ├── qscilexercpp.sip │ │ │ ├── qscilexercsharp.sip │ │ │ ├── qscilexercss.sip │ │ │ ├── qscilexercustom.sip │ │ │ ├── qscilexerd.sip │ │ │ ├── qscilexerdiff.sip │ │ │ ├── qscilexeredifact.sip │ │ │ ├── qscilexerfortran.sip │ │ │ ├── qscilexerfortran77.sip │ │ │ ├── qscilexerhtml.sip │ │ │ ├── qscilexeridl.sip │ │ │ ├── qscilexerjava.sip │ │ │ ├── qscilexerjavascript.sip │ │ │ ├── qscilexerjson.sip │ │ │ ├── qscilexerlua.sip │ │ │ ├── qscilexermakefile.sip │ │ │ ├── qscilexermarkdown.sip │ │ │ ├── qscilexermatlab.sip │ │ │ ├── qscilexeroctave.sip │ │ │ ├── qscilexerpascal.sip │ │ │ ├── qscilexerperl.sip │ │ │ ├── qscilexerpo.sip │ │ │ ├── qscilexerpostscript.sip │ │ │ ├── qscilexerpov.sip │ │ │ ├── qscilexerproperties.sip │ │ │ ├── qscilexerpython.sip │ │ │ ├── qscilexerruby.sip │ │ │ ├── qscilexerspice.sip │ │ │ ├── qscilexersql.sip │ │ │ ├── qscilexertcl.sip │ │ │ ├── qscilexertex.sip │ │ │ ├── qscilexerverilog.sip │ │ │ ├── qscilexervhdl.sip │ │ │ ├── qscilexerxml.sip │ │ │ ├── qscilexeryaml.sip │ │ │ ├── qscimacro.sip │ │ │ ├── qscimod5.sip │ │ │ ├── qscimod6.sip │ │ │ ├── qscimodcommon.sip │ │ │ ├── qsciprinter.sip │ │ │ ├── qsciscintilla.sip │ │ │ ├── qsciscintillabase.sip │ │ │ ├── qscistyle.sip │ │ │ └── qscistyledtext.sip │ │ ├── doc/ │ │ │ ├── README.doc │ │ │ ├── Scintilla/ │ │ │ │ ├── Design.html │ │ │ │ ├── Icons.html │ │ │ │ ├── LPegLexer.html │ │ │ │ ├── Lexer.txt │ │ │ │ ├── Privacy.html │ │ │ │ ├── SciCoding.html │ │ │ │ ├── ScintillaDoc.html │ │ │ │ ├── ScintillaDownload.html │ │ │ │ ├── ScintillaHistory.html │ │ │ │ ├── ScintillaRelated.html │ │ │ │ ├── ScintillaToDo.html │ │ │ │ ├── ScintillaUsage.html │ │ │ │ ├── Steps.html │ │ │ │ ├── StyleMetadata.html │ │ │ │ └── index.html │ │ │ ├── html/ │ │ │ │ ├── annotated.html │ │ │ │ ├── classQsciAPIs-members.html │ │ │ │ ├── classQsciAPIs.html │ │ │ │ ├── classQsciAbstractAPIs-members.html │ │ │ │ ├── classQsciAbstractAPIs.html │ │ │ │ ├── classQsciCommand-members.html │ │ │ │ ├── classQsciCommand.html │ │ │ │ ├── classQsciCommandSet-members.html │ │ │ │ ├── classQsciCommandSet.html │ │ │ │ ├── classQsciDocument-members.html │ │ │ │ ├── classQsciDocument.html │ │ │ │ ├── classQsciLexer-members.html │ │ │ │ ├── classQsciLexer.html │ │ │ │ ├── classQsciLexerAVS-members.html │ │ │ │ ├── classQsciLexerAVS.html │ │ │ │ ├── classQsciLexerBash-members.html │ │ │ │ ├── classQsciLexerBash.html │ │ │ │ ├── classQsciLexerBatch-members.html │ │ │ │ ├── classQsciLexerBatch.html │ │ │ │ ├── classQsciLexerCMake-members.html │ │ │ │ ├── classQsciLexerCMake.html │ │ │ │ ├── classQsciLexerCPP-members.html │ │ │ │ ├── classQsciLexerCPP.html │ │ │ │ ├── classQsciLexerCSS-members.html │ │ │ │ ├── classQsciLexerCSS.html │ │ │ │ ├── classQsciLexerCSharp-members.html │ │ │ │ ├── classQsciLexerCSharp.html │ │ │ │ ├── classQsciLexerCoffeeScript-members.html │ │ │ │ ├── classQsciLexerCoffeeScript.html │ │ │ │ ├── classQsciLexerCustom-members.html │ │ │ │ ├── classQsciLexerCustom.html │ │ │ │ ├── classQsciLexerD-members.html │ │ │ │ ├── classQsciLexerD.html │ │ │ │ ├── classQsciLexerDiff-members.html │ │ │ │ ├── classQsciLexerDiff.html │ │ │ │ ├── classQsciLexerEDIFACT-members.html │ │ │ │ ├── classQsciLexerEDIFACT.html │ │ │ │ ├── classQsciLexerFortran-members.html │ │ │ │ ├── classQsciLexerFortran.html │ │ │ │ ├── classQsciLexerFortran77-members.html │ │ │ │ ├── classQsciLexerFortran77.html │ │ │ │ ├── classQsciLexerHTML-members.html │ │ │ │ ├── classQsciLexerHTML.html │ │ │ │ ├── classQsciLexerIDL-members.html │ │ │ │ ├── classQsciLexerIDL.html │ │ │ │ ├── classQsciLexerJSON-members.html │ │ │ │ ├── classQsciLexerJSON.html │ │ │ │ ├── classQsciLexerJava-members.html │ │ │ │ ├── classQsciLexerJava.html │ │ │ │ ├── classQsciLexerJavaScript-members.html │ │ │ │ ├── classQsciLexerJavaScript.html │ │ │ │ ├── classQsciLexerLua-members.html │ │ │ │ ├── classQsciLexerLua.html │ │ │ │ ├── classQsciLexerMakefile-members.html │ │ │ │ ├── classQsciLexerMakefile.html │ │ │ │ ├── classQsciLexerMarkdown-members.html │ │ │ │ ├── classQsciLexerMarkdown.html │ │ │ │ ├── classQsciLexerMatlab-members.html │ │ │ │ ├── classQsciLexerMatlab.html │ │ │ │ ├── classQsciLexerOctave-members.html │ │ │ │ ├── classQsciLexerOctave.html │ │ │ │ ├── classQsciLexerPO-members.html │ │ │ │ ├── classQsciLexerPO.html │ │ │ │ ├── classQsciLexerPOV-members.html │ │ │ │ ├── classQsciLexerPOV.html │ │ │ │ ├── classQsciLexerPascal-members.html │ │ │ │ ├── classQsciLexerPascal.html │ │ │ │ ├── classQsciLexerPerl-members.html │ │ │ │ ├── classQsciLexerPerl.html │ │ │ │ ├── classQsciLexerPostScript-members.html │ │ │ │ ├── classQsciLexerPostScript.html │ │ │ │ ├── classQsciLexerProperties-members.html │ │ │ │ ├── classQsciLexerProperties.html │ │ │ │ ├── classQsciLexerPython-members.html │ │ │ │ ├── classQsciLexerPython.html │ │ │ │ ├── classQsciLexerRuby-members.html │ │ │ │ ├── classQsciLexerRuby.html │ │ │ │ ├── classQsciLexerSQL-members.html │ │ │ │ ├── classQsciLexerSQL.html │ │ │ │ ├── classQsciLexerSpice-members.html │ │ │ │ ├── classQsciLexerSpice.html │ │ │ │ ├── classQsciLexerTCL-members.html │ │ │ │ ├── classQsciLexerTCL.html │ │ │ │ ├── classQsciLexerTeX-members.html │ │ │ │ ├── classQsciLexerTeX.html │ │ │ │ ├── classQsciLexerVHDL-members.html │ │ │ │ ├── classQsciLexerVHDL.html │ │ │ │ ├── classQsciLexerVerilog-members.html │ │ │ │ ├── classQsciLexerVerilog.html │ │ │ │ ├── classQsciLexerXML-members.html │ │ │ │ ├── classQsciLexerXML.html │ │ │ │ ├── classQsciLexerYAML-members.html │ │ │ │ ├── classQsciLexerYAML.html │ │ │ │ ├── classQsciMacro-members.html │ │ │ │ ├── classQsciMacro.html │ │ │ │ ├── classQsciPrinter-members.html │ │ │ │ ├── classQsciPrinter.html │ │ │ │ ├── classQsciScintilla-members.html │ │ │ │ ├── classQsciScintilla.html │ │ │ │ ├── classQsciScintillaBase-members.html │ │ │ │ ├── classQsciScintillaBase.html │ │ │ │ ├── classQsciStyle-members.html │ │ │ │ ├── classQsciStyle.html │ │ │ │ ├── classQsciStyledText-members.html │ │ │ │ ├── classQsciStyledText.html │ │ │ │ ├── classes.html │ │ │ │ ├── dir_68267d1309a1af8e8297ef4c3efbcdba.html │ │ │ │ ├── dir_e7e7b0b6fe362def31d601fa026bbeed.html │ │ │ │ ├── doxygen.css │ │ │ │ ├── dynsections.js │ │ │ │ ├── functions.html │ │ │ │ ├── functions_b.html │ │ │ │ ├── functions_c.html │ │ │ │ ├── functions_d.html │ │ │ │ ├── functions_e.html │ │ │ │ ├── functions_enum.html │ │ │ │ ├── functions_eval.html │ │ │ │ ├── functions_eval_b.html │ │ │ │ ├── functions_eval_c.html │ │ │ │ ├── functions_eval_d.html │ │ │ │ ├── functions_eval_e.html │ │ │ │ ├── functions_eval_f.html │ │ │ │ ├── functions_eval_g.html │ │ │ │ ├── functions_eval_h.html │ │ │ │ ├── functions_eval_i.html │ │ │ │ ├── functions_eval_j.html │ │ │ │ ├── functions_eval_k.html │ │ │ │ ├── functions_eval_l.html │ │ │ │ ├── functions_eval_m.html │ │ │ │ ├── functions_eval_n.html │ │ │ │ ├── functions_eval_o.html │ │ │ │ ├── functions_eval_p.html │ │ │ │ ├── functions_eval_q.html │ │ │ │ ├── functions_eval_r.html │ │ │ │ ├── functions_eval_s.html │ │ │ │ ├── functions_eval_t.html │ │ │ │ ├── functions_eval_u.html │ │ │ │ ├── functions_eval_v.html │ │ │ │ ├── functions_eval_w.html │ │ │ │ ├── functions_eval_x.html │ │ │ │ ├── functions_eval_z.html │ │ │ │ ├── functions_f.html │ │ │ │ ├── functions_func.html │ │ │ │ ├── functions_func_b.html │ │ │ │ ├── functions_func_c.html │ │ │ │ ├── functions_func_d.html │ │ │ │ ├── functions_func_e.html │ │ │ │ ├── functions_func_f.html │ │ │ │ ├── functions_func_g.html │ │ │ │ ├── functions_func_h.html │ │ │ │ ├── functions_func_i.html │ │ │ │ ├── functions_func_k.html │ │ │ │ ├── functions_func_l.html │ │ │ │ ├── functions_func_m.html │ │ │ │ ├── functions_func_o.html │ │ │ │ ├── functions_func_p.html │ │ │ │ ├── functions_func_q.html │ │ │ │ ├── functions_func_r.html │ │ │ │ ├── functions_func_s.html │ │ │ │ ├── functions_func_t.html │ │ │ │ ├── functions_func_u.html │ │ │ │ ├── functions_func_v.html │ │ │ │ ├── functions_func_w.html │ │ │ │ ├── functions_func_z.html │ │ │ │ ├── functions_func_~.html │ │ │ │ ├── functions_g.html │ │ │ │ ├── functions_h.html │ │ │ │ ├── functions_i.html │ │ │ │ ├── functions_j.html │ │ │ │ ├── functions_k.html │ │ │ │ ├── functions_l.html │ │ │ │ ├── functions_m.html │ │ │ │ ├── functions_n.html │ │ │ │ ├── functions_o.html │ │ │ │ ├── functions_p.html │ │ │ │ ├── functions_q.html │ │ │ │ ├── functions_r.html │ │ │ │ ├── functions_s.html │ │ │ │ ├── functions_t.html │ │ │ │ ├── functions_u.html │ │ │ │ ├── functions_v.html │ │ │ │ ├── functions_w.html │ │ │ │ ├── functions_x.html │ │ │ │ ├── functions_z.html │ │ │ │ ├── functions_~.html │ │ │ │ ├── hierarchy.html │ │ │ │ ├── index.html │ │ │ │ ├── jquery.js │ │ │ │ ├── menu.js │ │ │ │ ├── menudata.js │ │ │ │ └── tabs.css │ │ │ └── qscintilla.dxy │ │ ├── qsci/ │ │ │ └── api/ │ │ │ └── python/ │ │ │ ├── Python-2.4.api │ │ │ ├── Python-2.5.api │ │ │ ├── Python-2.6.api │ │ │ ├── Python-2.7.api │ │ │ ├── Python-3.1.api │ │ │ ├── Python-3.2.api │ │ │ ├── Python-3.3.api │ │ │ ├── Python-3.4.api │ │ │ ├── Python-3.5.api │ │ │ ├── Python-3.6.api │ │ │ ├── Python-3.7.api │ │ │ ├── Python-3.8.api │ │ │ └── Python-3.9.api │ │ ├── scintilla/ │ │ │ ├── boostregex/ │ │ │ │ ├── AnsiDocumentIterator.h │ │ │ │ ├── BoostRegExSearch.cpp │ │ │ │ ├── UTF8DocumentIterator.cpp │ │ │ │ ├── UTF8DocumentIterator.h │ │ │ │ └── boost/ │ │ │ │ ├── assert/ │ │ │ │ │ └── source_location.hpp │ │ │ │ ├── config/ │ │ │ │ │ ├── abi/ │ │ │ │ │ │ ├── borland_prefix.hpp │ │ │ │ │ │ ├── borland_suffix.hpp │ │ │ │ │ │ ├── msvc_prefix.hpp │ │ │ │ │ │ └── msvc_suffix.hpp │ │ │ │ │ ├── abi_prefix.hpp │ │ │ │ │ ├── abi_suffix.hpp │ │ │ │ │ ├── assert_cxx03.hpp │ │ │ │ │ ├── assert_cxx11.hpp │ │ │ │ │ ├── assert_cxx14.hpp │ │ │ │ │ ├── assert_cxx17.hpp │ │ │ │ │ ├── assert_cxx20.hpp │ │ │ │ │ ├── assert_cxx98.hpp │ │ │ │ │ ├── auto_link.hpp │ │ │ │ │ ├── compiler/ │ │ │ │ │ │ ├── borland.hpp │ │ │ │ │ │ ├── clang.hpp │ │ │ │ │ │ ├── clang_version.hpp │ │ │ │ │ │ ├── codegear.hpp │ │ │ │ │ │ ├── comeau.hpp │ │ │ │ │ │ ├── common_edg.hpp │ │ │ │ │ │ ├── compaq_cxx.hpp │ │ │ │ │ │ ├── cray.hpp │ │ │ │ │ │ ├── diab.hpp │ │ │ │ │ │ ├── digitalmars.hpp │ │ │ │ │ │ ├── gcc.hpp │ │ │ │ │ │ ├── gcc_xml.hpp │ │ │ │ │ │ ├── greenhills.hpp │ │ │ │ │ │ ├── hp_acc.hpp │ │ │ │ │ │ ├── intel.hpp │ │ │ │ │ │ ├── kai.hpp │ │ │ │ │ │ ├── metrowerks.hpp │ │ │ │ │ │ ├── mpw.hpp │ │ │ │ │ │ ├── nvcc.hpp │ │ │ │ │ │ ├── pathscale.hpp │ │ │ │ │ │ ├── pgi.hpp │ │ │ │ │ │ ├── sgi_mipspro.hpp │ │ │ │ │ │ ├── sunpro_cc.hpp │ │ │ │ │ │ ├── vacpp.hpp │ │ │ │ │ │ ├── visualc.hpp │ │ │ │ │ │ ├── xlcpp.hpp │ │ │ │ │ │ └── xlcpp_zos.hpp │ │ │ │ │ ├── detail/ │ │ │ │ │ │ ├── cxx_composite.hpp │ │ │ │ │ │ ├── posix_features.hpp │ │ │ │ │ │ ├── select_compiler_config.hpp │ │ │ │ │ │ ├── select_platform_config.hpp │ │ │ │ │ │ ├── select_stdlib_config.hpp │ │ │ │ │ │ └── suffix.hpp │ │ │ │ │ ├── header_deprecated.hpp │ │ │ │ │ ├── helper_macros.hpp │ │ │ │ │ ├── no_tr1/ │ │ │ │ │ │ ├── cmath.hpp │ │ │ │ │ │ ├── complex.hpp │ │ │ │ │ │ ├── functional.hpp │ │ │ │ │ │ ├── memory.hpp │ │ │ │ │ │ └── utility.hpp │ │ │ │ │ ├── platform/ │ │ │ │ │ │ ├── aix.hpp │ │ │ │ │ │ ├── amigaos.hpp │ │ │ │ │ │ ├── beos.hpp │ │ │ │ │ │ ├── bsd.hpp │ │ │ │ │ │ ├── cloudabi.hpp │ │ │ │ │ │ ├── cray.hpp │ │ │ │ │ │ ├── cygwin.hpp │ │ │ │ │ │ ├── haiku.hpp │ │ │ │ │ │ ├── hpux.hpp │ │ │ │ │ │ ├── irix.hpp │ │ │ │ │ │ ├── linux.hpp │ │ │ │ │ │ ├── macos.hpp │ │ │ │ │ │ ├── qnxnto.hpp │ │ │ │ │ │ ├── solaris.hpp │ │ │ │ │ │ ├── symbian.hpp │ │ │ │ │ │ ├── vms.hpp │ │ │ │ │ │ ├── vxworks.hpp │ │ │ │ │ │ ├── wasm.hpp │ │ │ │ │ │ ├── win32.hpp │ │ │ │ │ │ └── zos.hpp │ │ │ │ │ ├── pragma_message.hpp │ │ │ │ │ ├── requires_threads.hpp │ │ │ │ │ ├── stdlib/ │ │ │ │ │ │ ├── dinkumware.hpp │ │ │ │ │ │ ├── libcomo.hpp │ │ │ │ │ │ ├── libcpp.hpp │ │ │ │ │ │ ├── libstdcpp3.hpp │ │ │ │ │ │ ├── modena.hpp │ │ │ │ │ │ ├── msl.hpp │ │ │ │ │ │ ├── roguewave.hpp │ │ │ │ │ │ ├── sgi.hpp │ │ │ │ │ │ ├── stlport.hpp │ │ │ │ │ │ ├── vacpp.hpp │ │ │ │ │ │ └── xlcpp_zos.hpp │ │ │ │ │ ├── user.hpp │ │ │ │ │ ├── warning_disable.hpp │ │ │ │ │ └── workaround.hpp │ │ │ │ ├── config.hpp │ │ │ │ ├── cstdint.hpp │ │ │ │ ├── current_function.hpp │ │ │ │ ├── exception/ │ │ │ │ │ ├── all.hpp │ │ │ │ │ ├── current_exception_cast.hpp │ │ │ │ │ ├── detail/ │ │ │ │ │ │ ├── clone_current_exception.hpp │ │ │ │ │ │ ├── error_info_impl.hpp │ │ │ │ │ │ ├── exception_ptr.hpp │ │ │ │ │ │ ├── is_output_streamable.hpp │ │ │ │ │ │ ├── object_hex_dump.hpp │ │ │ │ │ │ ├── shared_ptr.hpp │ │ │ │ │ │ └── type_info.hpp │ │ │ │ │ ├── diagnostic_information.hpp │ │ │ │ │ ├── enable_current_exception.hpp │ │ │ │ │ ├── enable_error_info.hpp │ │ │ │ │ ├── errinfo_api_function.hpp │ │ │ │ │ ├── errinfo_at_line.hpp │ │ │ │ │ ├── errinfo_errno.hpp │ │ │ │ │ ├── errinfo_file_handle.hpp │ │ │ │ │ ├── errinfo_file_name.hpp │ │ │ │ │ ├── errinfo_file_open_mode.hpp │ │ │ │ │ ├── errinfo_nested_exception.hpp │ │ │ │ │ ├── errinfo_type_info_name.hpp │ │ │ │ │ ├── error_info.hpp │ │ │ │ │ ├── exception.hpp │ │ │ │ │ ├── get_error_info.hpp │ │ │ │ │ ├── info.hpp │ │ │ │ │ ├── info_tuple.hpp │ │ │ │ │ ├── to_string.hpp │ │ │ │ │ └── to_string_stub.hpp │ │ │ │ ├── regex/ │ │ │ │ │ ├── concepts.hpp │ │ │ │ │ ├── config/ │ │ │ │ │ │ ├── borland.hpp │ │ │ │ │ │ └── cwchar.hpp │ │ │ │ │ ├── config.hpp │ │ │ │ │ ├── icu.hpp │ │ │ │ │ ├── mfc.hpp │ │ │ │ │ ├── pattern_except.hpp │ │ │ │ │ ├── pending/ │ │ │ │ │ │ ├── object_cache.hpp │ │ │ │ │ │ ├── static_mutex.hpp │ │ │ │ │ │ └── unicode_iterator.hpp │ │ │ │ │ ├── regex_traits.hpp │ │ │ │ │ ├── user.hpp │ │ │ │ │ └── v5/ │ │ │ │ │ ├── basic_regex.hpp │ │ │ │ │ ├── basic_regex_creator.hpp │ │ │ │ │ ├── basic_regex_parser.hpp │ │ │ │ │ ├── c_regex_traits.hpp │ │ │ │ │ ├── char_regex_traits.hpp │ │ │ │ │ ├── cpp_regex_traits.hpp │ │ │ │ │ ├── cregex.hpp │ │ │ │ │ ├── error_type.hpp │ │ │ │ │ ├── icu.hpp │ │ │ │ │ ├── iterator_category.hpp │ │ │ │ │ ├── iterator_traits.hpp │ │ │ │ │ ├── match_flags.hpp │ │ │ │ │ ├── match_results.hpp │ │ │ │ │ ├── mem_block_cache.hpp │ │ │ │ │ ├── object_cache.hpp │ │ │ │ │ ├── pattern_except.hpp │ │ │ │ │ ├── perl_matcher.hpp │ │ │ │ │ ├── perl_matcher_common.hpp │ │ │ │ │ ├── perl_matcher_non_recursive.hpp │ │ │ │ │ ├── primary_transform.hpp │ │ │ │ │ ├── regbase.hpp │ │ │ │ │ ├── regex.hpp │ │ │ │ │ ├── regex_format.hpp │ │ │ │ │ ├── regex_fwd.hpp │ │ │ │ │ ├── regex_grep.hpp │ │ │ │ │ ├── regex_iterator.hpp │ │ │ │ │ ├── regex_match.hpp │ │ │ │ │ ├── regex_merge.hpp │ │ │ │ │ ├── regex_raw_buffer.hpp │ │ │ │ │ ├── regex_replace.hpp │ │ │ │ │ ├── regex_search.hpp │ │ │ │ │ ├── regex_split.hpp │ │ │ │ │ ├── regex_token_iterator.hpp │ │ │ │ │ ├── regex_traits.hpp │ │ │ │ │ ├── regex_traits_defaults.hpp │ │ │ │ │ ├── regex_workaround.hpp │ │ │ │ │ ├── states.hpp │ │ │ │ │ ├── sub_match.hpp │ │ │ │ │ ├── syntax_type.hpp │ │ │ │ │ ├── u32regex_iterator.hpp │ │ │ │ │ ├── u32regex_token_iterator.hpp │ │ │ │ │ ├── unicode_iterator.hpp │ │ │ │ │ └── w32_regex_traits.hpp │ │ │ │ ├── regex.hpp │ │ │ │ ├── regex_fwd.hpp │ │ │ │ └── throw_exception.hpp │ │ │ ├── include/ │ │ │ │ ├── BoostRegexSearch.h │ │ │ │ ├── ILexer.h │ │ │ │ ├── ILoader.h │ │ │ │ ├── License.txt │ │ │ │ ├── Platform.h │ │ │ │ ├── SciLexer.h │ │ │ │ ├── Sci_Position.h │ │ │ │ ├── Scintilla.h │ │ │ │ ├── Scintilla.iface │ │ │ │ └── ScintillaWidget.h │ │ │ ├── lexers/ │ │ │ │ ├── LexA68k.cpp │ │ │ │ ├── LexAPDL.cpp │ │ │ │ ├── LexASY.cpp │ │ │ │ ├── LexAU3.cpp │ │ │ │ ├── LexAVE.cpp │ │ │ │ ├── LexAVS.cpp │ │ │ │ ├── LexAbaqus.cpp │ │ │ │ ├── LexAda.cpp │ │ │ │ ├── LexAsm.cpp │ │ │ │ ├── LexAsn1.cpp │ │ │ │ ├── LexBaan.cpp │ │ │ │ ├── LexBash.cpp │ │ │ │ ├── LexBasic.cpp │ │ │ │ ├── LexBatch.cpp │ │ │ │ ├── LexBibTeX.cpp │ │ │ │ ├── LexBullant.cpp │ │ │ │ ├── LexCLW.cpp │ │ │ │ ├── LexCOBOL.cpp │ │ │ │ ├── LexCPP.cpp │ │ │ │ ├── LexCSS.cpp │ │ │ │ ├── LexCaml.cpp │ │ │ │ ├── LexCmake.cpp │ │ │ │ ├── LexCoffeeScript.cpp │ │ │ │ ├── LexConf.cpp │ │ │ │ ├── LexCrontab.cpp │ │ │ │ ├── LexCsound.cpp │ │ │ │ ├── LexD.cpp │ │ │ │ ├── LexDMAP.cpp │ │ │ │ ├── LexDMIS.cpp │ │ │ │ ├── LexDiff.cpp │ │ │ │ ├── LexECL.cpp │ │ │ │ ├── LexEDIFACT.cpp │ │ │ │ ├── LexEScript.cpp │ │ │ │ ├── LexEiffel.cpp │ │ │ │ ├── LexErlang.cpp │ │ │ │ ├── LexErrorList.cpp │ │ │ │ ├── LexFlagship.cpp │ │ │ │ ├── LexForth.cpp │ │ │ │ ├── LexFortran.cpp │ │ │ │ ├── LexGAP.cpp │ │ │ │ ├── LexGui4Cli.cpp │ │ │ │ ├── LexHTML.cpp │ │ │ │ ├── LexHaskell.cpp │ │ │ │ ├── LexHex.cpp │ │ │ │ ├── LexIndent.cpp │ │ │ │ ├── LexInno.cpp │ │ │ │ ├── LexJSON.cpp │ │ │ │ ├── LexKVIrc.cpp │ │ │ │ ├── LexKix.cpp │ │ │ │ ├── LexLPeg.cpp │ │ │ │ ├── LexLaTeX.cpp │ │ │ │ ├── LexLisp.cpp │ │ │ │ ├── LexLout.cpp │ │ │ │ ├── LexLua.cpp │ │ │ │ ├── LexMMIXAL.cpp │ │ │ │ ├── LexMPT.cpp │ │ │ │ ├── LexMSSQL.cpp │ │ │ │ ├── LexMagik.cpp │ │ │ │ ├── LexMake.cpp │ │ │ │ ├── LexMarkdown.cpp │ │ │ │ ├── LexMatlab.cpp │ │ │ │ ├── LexMaxima.cpp │ │ │ │ ├── LexMetapost.cpp │ │ │ │ ├── LexModula.cpp │ │ │ │ ├── LexMySQL.cpp │ │ │ │ ├── LexNimrod.cpp │ │ │ │ ├── LexNsis.cpp │ │ │ │ ├── LexNull.cpp │ │ │ │ ├── LexOScript.cpp │ │ │ │ ├── LexOpal.cpp │ │ │ │ ├── LexPB.cpp │ │ │ │ ├── LexPLM.cpp │ │ │ │ ├── LexPO.cpp │ │ │ │ ├── LexPOV.cpp │ │ │ │ ├── LexPS.cpp │ │ │ │ ├── LexPascal.cpp │ │ │ │ ├── LexPerl.cpp │ │ │ │ ├── LexPowerPro.cpp │ │ │ │ ├── LexPowerShell.cpp │ │ │ │ ├── LexProgress.cpp │ │ │ │ ├── LexProps.cpp │ │ │ │ ├── LexPython.cpp │ │ │ │ ├── LexR.cpp │ │ │ │ ├── LexRebol.cpp │ │ │ │ ├── LexRegistry.cpp │ │ │ │ ├── LexRuby.cpp │ │ │ │ ├── LexRust.cpp │ │ │ │ ├── LexSAS.cpp │ │ │ │ ├── LexSML.cpp │ │ │ │ ├── LexSQL.cpp │ │ │ │ ├── LexSTTXT.cpp │ │ │ │ ├── LexScriptol.cpp │ │ │ │ ├── LexSmalltalk.cpp │ │ │ │ ├── LexSorcus.cpp │ │ │ │ ├── LexSpecman.cpp │ │ │ │ ├── LexSpice.cpp │ │ │ │ ├── LexStata.cpp │ │ │ │ ├── LexTACL.cpp │ │ │ │ ├── LexTADS3.cpp │ │ │ │ ├── LexTAL.cpp │ │ │ │ ├── LexTCL.cpp │ │ │ │ ├── LexTCMD.cpp │ │ │ │ ├── LexTXT.cpp │ │ │ │ ├── LexTeX.cpp │ │ │ │ ├── LexTxt2tags.cpp │ │ │ │ ├── LexVB.cpp │ │ │ │ ├── LexVHDL.cpp │ │ │ │ ├── LexVerilog.cpp │ │ │ │ ├── LexVisualProlog.cpp │ │ │ │ ├── LexYAML.cpp │ │ │ │ └── License.txt │ │ │ ├── lexlib/ │ │ │ │ ├── Accessor.cpp │ │ │ │ ├── Accessor.h │ │ │ │ ├── CharacterCategory.cpp │ │ │ │ ├── CharacterCategory.h │ │ │ │ ├── CharacterSet.cpp │ │ │ │ ├── CharacterSet.h │ │ │ │ ├── DefaultLexer.cpp │ │ │ │ ├── DefaultLexer.h │ │ │ │ ├── LexAccessor.h │ │ │ │ ├── LexerBase.cpp │ │ │ │ ├── LexerBase.h │ │ │ │ ├── LexerModule.cpp │ │ │ │ ├── LexerModule.h │ │ │ │ ├── LexerNoExceptions.cpp │ │ │ │ ├── LexerNoExceptions.h │ │ │ │ ├── LexerSimple.cpp │ │ │ │ ├── LexerSimple.h │ │ │ │ ├── License.txt │ │ │ │ ├── OptionSet.h │ │ │ │ ├── PropSetSimple.cpp │ │ │ │ ├── PropSetSimple.h │ │ │ │ ├── SparseState.h │ │ │ │ ├── StringCopy.h │ │ │ │ ├── StyleContext.cpp │ │ │ │ ├── StyleContext.h │ │ │ │ ├── SubStyles.h │ │ │ │ ├── WordList.cpp │ │ │ │ └── WordList.h │ │ │ └── src/ │ │ │ ├── AutoComplete.cpp │ │ │ ├── AutoComplete.h │ │ │ ├── CallTip.cpp │ │ │ ├── CallTip.h │ │ │ ├── CaseConvert.cpp │ │ │ ├── CaseConvert.h │ │ │ ├── CaseFolder.cpp │ │ │ ├── CaseFolder.h │ │ │ ├── Catalogue.cpp │ │ │ ├── Catalogue.h │ │ │ ├── CellBuffer.cpp │ │ │ ├── CellBuffer.h │ │ │ ├── CharClassify.cpp │ │ │ ├── CharClassify.h │ │ │ ├── ContractionState.cpp │ │ │ ├── ContractionState.h │ │ │ ├── DBCS.cpp │ │ │ ├── DBCS.h │ │ │ ├── Decoration.cpp │ │ │ ├── Decoration.h │ │ │ ├── Document.cpp │ │ │ ├── Document.h │ │ │ ├── EditModel.cpp │ │ │ ├── EditModel.h │ │ │ ├── EditView.cpp │ │ │ ├── EditView.h │ │ │ ├── Editor.cpp │ │ │ ├── Editor.h │ │ │ ├── ElapsedPeriod.h │ │ │ ├── ExternalLexer.cpp │ │ │ ├── ExternalLexer.h │ │ │ ├── FontQuality.h │ │ │ ├── Indicator.cpp │ │ │ ├── Indicator.h │ │ │ ├── IntegerRectangle.h │ │ │ ├── KeyMap.cpp │ │ │ ├── KeyMap.h │ │ │ ├── License.txt │ │ │ ├── LineMarker.cpp │ │ │ ├── LineMarker.h │ │ │ ├── MarginView.cpp │ │ │ ├── MarginView.h │ │ │ ├── Partitioning.h │ │ │ ├── PerLine.cpp │ │ │ ├── PerLine.h │ │ │ ├── Position.h │ │ │ ├── PositionCache.cpp │ │ │ ├── PositionCache.h │ │ │ ├── RESearch.cpp │ │ │ ├── RESearch.h │ │ │ ├── RunStyles.cpp │ │ │ ├── RunStyles.h │ │ │ ├── SciTE.properties │ │ │ ├── ScintillaBase.cpp │ │ │ ├── ScintillaBase.h │ │ │ ├── Selection.cpp │ │ │ ├── Selection.h │ │ │ ├── SparseVector.h │ │ │ ├── SplitVector.h │ │ │ ├── Style.cpp │ │ │ ├── Style.h │ │ │ ├── UniConversion.cpp │ │ │ ├── UniConversion.h │ │ │ ├── UniqueString.h │ │ │ ├── ViewStyle.cpp │ │ │ ├── ViewStyle.h │ │ │ ├── XPM.cpp │ │ │ └── XPM.h │ │ └── src/ │ │ ├── .qmake.stash │ │ ├── InputMethod.cpp │ │ ├── ListBoxQt.cpp │ │ ├── ListBoxQt.h │ │ ├── MacPasteboardMime.cpp │ │ ├── PlatQt.cpp │ │ ├── Qsci/ │ │ │ ├── qsciabstractapis.h │ │ │ ├── qsciapis.h │ │ │ ├── qscicommand.h │ │ │ ├── qscicommandset.h │ │ │ ├── qscidocument.h │ │ │ ├── qsciglobal.h │ │ │ ├── qscilexer.h │ │ │ ├── qscilexerasm.h │ │ │ ├── qscilexeravs.h │ │ │ ├── qscilexerbash.h │ │ │ ├── qscilexerbatch.h │ │ │ ├── qscilexercmake.h │ │ │ ├── qscilexercoffeescript.h │ │ │ ├── qscilexercpp.h │ │ │ ├── qscilexercsharp.h │ │ │ ├── qscilexercss.h │ │ │ ├── qscilexercustom.h │ │ │ ├── qscilexerd.h │ │ │ ├── qscilexerdiff.h │ │ │ ├── qscilexeredifact.h │ │ │ ├── qscilexerfortran.h │ │ │ ├── qscilexerfortran77.h │ │ │ ├── qscilexerglobal.h │ │ │ ├── qscilexergo.h │ │ │ ├── qscilexerhtml.h │ │ │ ├── qscilexeridl.h │ │ │ ├── qscilexerjava.h │ │ │ ├── qscilexerjavascript.h │ │ │ ├── qscilexerjson.h │ │ │ ├── qscilexerlua.h │ │ │ ├── qscilexermakefile.h │ │ │ ├── qscilexermarkdown.h │ │ │ ├── qscilexermatlab.h │ │ │ ├── qscilexernsis.h │ │ │ ├── qscilexeroctave.h │ │ │ ├── qscilexerpascal.h │ │ │ ├── qscilexerperl.h │ │ │ ├── qscilexerpo.h │ │ │ ├── qscilexerpostscript.h │ │ │ ├── qscilexerpov.h │ │ │ ├── qscilexerproperties.h │ │ │ ├── qscilexerpython.h │ │ │ ├── qscilexerr.h │ │ │ ├── qscilexerruby.h │ │ │ ├── qscilexerrust.h │ │ │ ├── qscilexerspice.h │ │ │ ├── qscilexersql.h │ │ │ ├── qscilexertcl.h │ │ │ ├── qscilexertex.h │ │ │ ├── qscilexertext.h │ │ │ ├── qscilexervb.h │ │ │ ├── qscilexerverilog.h │ │ │ ├── qscilexervhdl.h │ │ │ ├── qscilexerxml.h │ │ │ ├── qscilexeryaml.h │ │ │ ├── qscimacro.h │ │ │ ├── qsciprinter.h │ │ │ ├── qsciscintilla.h │ │ │ ├── qsciscintillabase.h │ │ │ ├── qscistyle.h │ │ │ └── qscistyledtext.h │ │ ├── SciAccessibility.cpp │ │ ├── SciAccessibility.h │ │ ├── SciClasses.cpp │ │ ├── SciClasses.h │ │ ├── ScintillaQt.cpp │ │ ├── ScintillaQt.h │ │ ├── features/ │ │ │ └── qscintilla2.prf │ │ ├── features_staticlib/ │ │ │ └── qscintilla2.prf │ │ ├── qsciabstractapis.cpp │ │ ├── qsciapis.cpp │ │ ├── qscicommand.cpp │ │ ├── qscicommandset.cpp │ │ ├── qscidocument.cpp │ │ ├── qscilexer.cpp │ │ ├── qscilexerasm.cpp │ │ ├── qscilexeravs.cpp │ │ ├── qscilexerbash.cpp │ │ ├── qscilexerbatch.cpp │ │ ├── qscilexercmake.cpp │ │ ├── qscilexercoffeescript.cpp │ │ ├── qscilexercpp.cpp │ │ ├── qscilexercsharp.cpp │ │ ├── qscilexercss.cpp │ │ ├── qscilexercustom.cpp │ │ ├── qscilexerd.cpp │ │ ├── qscilexerdiff.cpp │ │ ├── qscilexeredifact.cpp │ │ ├── qscilexerfortran.cpp │ │ ├── qscilexerfortran77.cpp │ │ ├── qscilexerglobal.cpp │ │ ├── qscilexergo.cpp │ │ ├── qscilexerhtml.cpp │ │ ├── qscilexeridl.cpp │ │ ├── qscilexerjava.cpp │ │ ├── qscilexerjavascript.cpp │ │ ├── qscilexerjson.cpp │ │ ├── qscilexerlua.cpp │ │ ├── qscilexermakefile.cpp │ │ ├── qscilexermarkdown.cpp │ │ ├── qscilexermatlab.cpp │ │ ├── qscilexernsis.cpp │ │ ├── qscilexeroctave.cpp │ │ ├── qscilexerpascal.cpp │ │ ├── qscilexerperl.cpp │ │ ├── qscilexerpo.cpp │ │ ├── qscilexerpostscript.cpp │ │ ├── qscilexerpov.cpp │ │ ├── qscilexerproperties.cpp │ │ ├── qscilexerpython.cpp │ │ ├── qscilexerr.cpp │ │ ├── qscilexerruby.cpp │ │ ├── qscilexerrust.cpp │ │ ├── qscilexerspice.cpp │ │ ├── qscilexersql.cpp │ │ ├── qscilexertcl.cpp │ │ ├── qscilexertex.cpp │ │ ├── qscilexertext.cpp │ │ ├── qscilexervb.cpp │ │ ├── qscilexerverilog.cpp │ │ ├── qscilexervhdl.cpp │ │ ├── qscilexerxml.cpp │ │ ├── qscilexeryaml.cpp │ │ ├── qscimacro.cpp │ │ ├── qscintilla.pro │ │ ├── qscintilla.vcxproj │ │ ├── qscintilla_ch.qm │ │ ├── qscintilla_ch.ts │ │ ├── qscintilla_cs.qm │ │ ├── qscintilla_cs.ts │ │ ├── qscintilla_de.qm │ │ ├── qscintilla_de.ts │ │ ├── qscintilla_es.qm │ │ ├── qscintilla_es.ts │ │ ├── qscintilla_fr.qm │ │ ├── qscintilla_fr.ts │ │ ├── qscintilla_pt_br.qm │ │ ├── qscintilla_pt_br.ts │ │ ├── qsciprinter.cpp │ │ ├── qsciscintilla.cpp │ │ ├── qsciscintillabase.cpp │ │ ├── qscistyle.cpp │ │ ├── qscistyledtext.cpp │ │ ├── xmlMatchedTagsHighlighter.cpp │ │ └── xmlMatchedTagsHighlighter.h │ ├── qss/ │ │ ├── black.qss │ │ ├── common.qss │ │ ├── flatgray.qss │ │ ├── lightblue.qss │ │ ├── lightbluestyle.qss │ │ ├── myblack.qss │ │ ├── mystyle.qss │ │ ├── mystyle_new.qss │ │ └── templetestyle.qss │ ├── qtlangset.cpp │ ├── qtlangset.h │ ├── qtlangset.ui │ ├── rcglobal.cpp │ ├── rcglobal.h │ ├── realcompare_zh.qm │ ├── realcompare_zh.ts │ ├── renamewin.cpp │ ├── renamewin.h │ ├── renamewin.ui │ ├── replacecommand.h │ ├── resource.h │ ├── rgba_icons.h │ ├── scintillaeditview.cpp │ ├── scintillaeditview.h │ ├── scintillahexeditview.cpp │ ├── scintillahexeditview.h │ ├── shortcutkeyeditwin.cpp │ ├── shortcutkeyeditwin.h │ ├── shortcutkeyeditwin.ui │ ├── shortcutkeymgr.cpp │ ├── shortcutkeymgr.h │ ├── shortcutkeymgr.ui │ ├── statuswidget.cpp │ ├── statuswidget.h │ ├── statuswidget.ui │ ├── styleset.cpp │ ├── styleset.h │ ├── texteditsetwin.cpp │ ├── texteditsetwin.h │ ├── texteditsetwin.ui │ ├── textfind.cpp │ ├── textfind.h │ ├── textfind.ui │ ├── themes/ │ │ ├── Bespin/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── Black board/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── Blue light/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── avs.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── coffeescript.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── flash.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── go.ini │ │ │ ├── html.ini │ │ │ ├── idl.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── jsp.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── rust.ini │ │ │ ├── spice.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── typescript.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ ├── xml.ini │ │ │ └── yaml.ini │ │ ├── Choco/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── DansLeRuSH-Dark/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── coffeescript.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ ├── xml.ini │ │ │ └── yaml.ini │ │ ├── Deep Black/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ ├── xml.ini │ │ │ └── yaml.ini │ │ ├── HotFudgeSundae/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── coffeescript.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ ├── xml.ini │ │ │ └── yaml.ini │ │ ├── Mono Industrial/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── Monokai/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── Obsidian/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ ├── xml.ini │ │ │ └── yaml.ini │ │ ├── Plastic Code Wrap/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── Ruby Blue/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── Twilight/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── Vibrant Ink/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── html.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ └── xml.ini │ │ ├── lavender/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── avs.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── coffeescript.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── flash.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── go.ini │ │ │ ├── html.ini │ │ │ ├── idl.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── jsp.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── rust.ini │ │ │ ├── spice.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── typescript.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ ├── xml.ini │ │ │ └── yaml.ini │ │ ├── misty rose/ │ │ │ ├── AllGlobal.ini │ │ │ ├── asp.ini │ │ │ ├── avs.ini │ │ │ ├── bash.ini │ │ │ ├── batch.ini │ │ │ ├── c.ini │ │ │ ├── cmake.ini │ │ │ ├── coffeescript.ini │ │ │ ├── cpp.ini │ │ │ ├── csharp.ini │ │ │ ├── css.ini │ │ │ ├── diff.ini │ │ │ ├── flash.ini │ │ │ ├── fortran.ini │ │ │ ├── fortran77.ini │ │ │ ├── go.ini │ │ │ ├── html.ini │ │ │ ├── idl.ini │ │ │ ├── ini.ini │ │ │ ├── java.ini │ │ │ ├── javascript.ini │ │ │ ├── json.ini │ │ │ ├── jsp.ini │ │ │ ├── lua.ini │ │ │ ├── makefile.ini │ │ │ ├── matlab.ini │ │ │ ├── nsis.ini │ │ │ ├── objc.ini │ │ │ ├── pascal.ini │ │ │ ├── perl.ini │ │ │ ├── php.ini │ │ │ ├── props.ini │ │ │ ├── python.ini │ │ │ ├── rc.ini │ │ │ ├── ruby.ini │ │ │ ├── rust.ini │ │ │ ├── spice.ini │ │ │ ├── sql.ini │ │ │ ├── tcl.ini │ │ │ ├── txt.ini │ │ │ ├── typescript.ini │ │ │ ├── vb.ini │ │ │ ├── verilog.ini │ │ │ ├── vhdl.ini │ │ │ ├── xml.ini │ │ │ └── yaml.ini │ │ └── yellow rice/ │ │ ├── AllGlobal.ini │ │ ├── asp.ini │ │ ├── avs.ini │ │ ├── bash.ini │ │ ├── batch.ini │ │ ├── c.ini │ │ ├── cmake.ini │ │ ├── coffeescript.ini │ │ ├── cpp.ini │ │ ├── csharp.ini │ │ ├── css.ini │ │ ├── diff.ini │ │ ├── flash.ini │ │ ├── fortran.ini │ │ ├── fortran77.ini │ │ ├── go.ini │ │ ├── html.ini │ │ ├── idl.ini │ │ ├── ini.ini │ │ ├── java.ini │ │ ├── javascript.ini │ │ ├── json.ini │ │ ├── jsp.ini │ │ ├── lua.ini │ │ ├── makefile.ini │ │ ├── matlab.ini │ │ ├── nsis.ini │ │ ├── objc.ini │ │ ├── pascal.ini │ │ ├── perl.ini │ │ ├── php.ini │ │ ├── props.ini │ │ ├── python.ini │ │ ├── rc.ini │ │ ├── ruby.ini │ │ ├── rust.ini │ │ ├── spice.ini │ │ ├── sql.ini │ │ ├── tcl.ini │ │ ├── txt.ini │ │ ├── typescript.ini │ │ ├── vb.ini │ │ ├── verilog.ini │ │ ├── vhdl.ini │ │ ├── xml.ini │ │ └── yaml.ini │ ├── userlexdef.cpp │ └── userlexdef.h ├── win.bat ├── win.mk ├── 插件编程开发说明.docx └── 编译说明.docx
Copy disabled (too large)
Download .json
Condensed preview — 1704 files, each showing path, character count, and a content snippet. Download the .json file for the full structured content (23,490K chars).
[
{
"path": ".gitignore",
"chars": 8415,
"preview": "## Ignore Visual Studio temporary files, build results, and\r\n## files generated by popular Visual Studio add-ons.\r\n##\r\n#"
},
{
"path": "CMakeLists.txt",
"chars": 2715,
"preview": "cmake_minimum_required(VERSION 3.16)\nproject(NotePad-- VERSION 1.22.0)\n\nset(CMAKE_AUTOMOC ON)\nset(CMAKE_AUTOUIC ON)\nset("
},
{
"path": "LICENSE",
"chars": 35821,
"preview": " GNU GENERAL PUBLIC LICENSE\r\n Version 3, 29 June 2007\r\n\r\n Copyright (C) 2007 Fr"
},
{
"path": "README.md",
"chars": 1713,
"preview": "# notepad--\r\n\r\n[中文 ](README.md) | [English](README_EN.md)\r\n\r\n## 项目简介\r\n\r\nNotepad--是一个轻量级文本编辑器软件,可以支持Win/Linux/Mac平台。\r\n\r\n其"
},
{
"path": "README_EN.md",
"chars": 3397,
"preview": "# Notepad--\r\n\r\n[中文 ](README.md) | [English](README_EN.md)\r\n\r\n## Project Introduction\r\n\r\nIntroducing Notepad-- a text edi"
},
{
"path": "THIRDPARTY.md",
"chars": 522,
"preview": "## 第三方依赖\r\n\r\n## 源码依赖\r\n\r\n- [[GPL v3](src/qscint/LICENSE)] [QScintilla](https://riverbankcomputing.com/software/qscintilla/"
},
{
"path": "changelog.txt",
"chars": 3689,
"preview": "Ndd V1.23 发布 20230226\r\n功能:\r\n1 希望可以支持xml按照层次折叠和展开操作\r\n2 能否增加自动刷新和滚动文本功能,以及手动重新打开文件。提供tailf方式。\r\n3 建议 查找与替换 添加ESC键响应,ESC键退出查"
},
{
"path": "cmake/deb_package_config.cmake",
"chars": 538,
"preview": "set(CPACK_GENERATOR \"DEB\")\nset(CPACK_PACKAGE_NAME \"notepad--\")\nset(CPACK_PACKAGE_DESCRIPTION_SUMMARY \"a text editor like"
},
{
"path": "cmake/nsis_package_config.cmake",
"chars": 3961,
"preview": "set(CPACK_GENERATOR NSIS)\n\nset(CPACK_PACKAGE_DESCRIPTION_SUMMARY \"${PROJECT_NAME}\")\n# 维护人员\nset(CPACK_PACKAGE_CONTACT \"Xi"
},
{
"path": "src/.qmake.stash",
"chars": 1297,
"preview": "QMAKE_CXX.QT_COMPILER_STDCXX = 199711L\r\nQMAKE_CXX.QMAKE_MSC_VER = 1929\r\nQMAKE_CXX.QMAKE_MSC_FULL_VER = 192930142\r\nQMAKE_"
},
{
"path": "src/CmpareMode.cpp",
"chars": 26051,
"preview": "#include \"CmpareMode.h\"\r\n#include \"Encode.h\"\r\n#include \"rcglobal.h\"\r\n\r\n\r\n#include <QFile>\r\n#include <QFileDevice> \r\n#in"
},
{
"path": "src/CmpareMode.h",
"chars": 2716,
"preview": "#pragma once\r\n#include <qobject.h>\r\n#include<QVector>\r\n#include<QMap>\r\n#include <QFuture>\r\n\r\n#include <functional>\r\n#in"
},
{
"path": "src/Encode.cpp",
"chars": 7530,
"preview": "#include \"Encode.h\"\r\n#include <QTextCodec>\r\n#include <QtDebug>\r\n\r\n/* 检查字符串编码的类。看了大量文献,结论如下:\r\n*如果是UTF BOM格式,或者UNICODE格式,"
},
{
"path": "src/Encode.h",
"chars": 954,
"preview": "#pragma once\r\n#include <QtGlobal>\r\n\r\n//#define GBK_\r\n#include \"rcglobal.h\"\r\n\r\n\r\nclass Encode\r\n{\r\npublic:\r\n\tEncode();\r\n\t"
},
{
"path": "src/LICENSE",
"chars": 35821,
"preview": " GNU GENERAL PUBLIC LICENSE\r\n Version 3, 29 June 2007\r\n\r\n Copyright (C) 2007 Fr"
},
{
"path": "src/MediatorDisplay.cpp",
"chars": 2215,
"preview": "#include \"MediatorDisplay.h\"\r\n\r\n\r\n//这里如果直接让左右互相同步,互相影响,可能导致混乱。需要一个中间调停者模式,作为中间人去控制同步消息\r\n//中介者模式意图:用一个中介对象来封装一系列的对象交互,中介"
},
{
"path": "src/MediatorDisplay.h",
"chars": 904,
"preview": "#pragma once\r\n#include <QObject>\r\n\r\nclass MediatorDisplay:public QObject\r\n{\r\n\tQ_OBJECT\r\npublic:\r\n\tMediatorDisplay();\r\n\t"
},
{
"path": "src/MediatorFileTree.cpp",
"chars": 1040,
"preview": "#include \"MediatorFileTree.h\"\r\n\r\n/* 文件夹对比界面的中介者,使用中介者是为了让消息经过中介对象统一调度,避免左右互相依赖导致交互混乱\r\n*/\r\n\r\nMediatorFileTree::MediatorF"
},
{
"path": "src/MediatorFileTree.h",
"chars": 638,
"preview": "#pragma once\r\n#include <qobject.h>\r\n#include \"rcglobal.h\"\r\n\r\nclass MediatorFileTree :public QObject\r\n{\r\n\tQ_OBJECT\r\npubl"
},
{
"path": "src/QTreeWidgetSortItem.cpp",
"chars": 3177,
"preview": "#include \"QTreeWidgetSortItem.h\"\r\n#include \"rcglobal.h\"\r\n\r\n/* 自己重新实现一个QTreeWidgetSortItem,主要是为了重载函数的排序功能,不适应默认的名字排序,而是使"
},
{
"path": "src/QTreeWidgetSortItem.h",
"chars": 508,
"preview": "#pragma once\r\n#include <qtreewidget.h>\r\nclass QTreeWidgetSortItem : public QTreeWidgetItem\r\n{\r\npublic:\r\n\tQTreeWidgetSor"
},
{
"path": "src/RcTreeWidget.cpp",
"chars": 3224,
"preview": "#include \"RcTreeWidget.h\"\r\n#include \"MediatorFileTree.h\"\r\n\r\n#include <QScrollBar>\r\n#include <QMenu>\r\n#include <QProcess"
},
{
"path": "src/RcTreeWidget.h",
"chars": 1012,
"preview": "#pragma once\r\n#include <qtreewidget.h>\r\n#include <QPoint>\r\n#include <functional>\r\n#include <QMenu>\r\n\r\n#include \"rcgloba"
},
{
"path": "src/RealCompare.pri",
"chars": 596,
"preview": "# ----------------------------------------------------\r\n# This file is generated by the Qt Visual Studio Tools.\r\n# -----"
},
{
"path": "src/RealCompare.pro",
"chars": 1597,
"preview": "TEMPLATE = app\r\nLANGUAGE = C++\r\n\r\nTARGET = Notepad--\r\n\r\nCONFIG\t+= qt warn_on\r\n\r\nQT += core gui widgets concurrent networ"
},
{
"path": "src/RealCompare.qrc",
"chars": 7123,
"preview": "<RCC>\n <qresource prefix=\"/\">\n <file>Resources/img/dir.png</file>\n <file>Resources/img/file.png</file>\n"
},
{
"path": "src/RealCompareToMinGw.rc",
"chars": 1227,
"preview": "#include <windows.h>\n\nIDI_ICON1\tICON\tDISCARDABLE\t\".\\\\Resources\\\\edit\\\\global\\\\ndd.ico\"\n\nLANGUAGE LANG_CHINESE, SUBLANG_C"
},
{
"path": "src/Sorters.h",
"chars": 3739,
"preview": "#pragma once\r\n#include <algorithm>\n#include <utility>\n#include <random>\n#include <QString>\n\n// Base interface for line s"
},
{
"path": "src/StrategyCompare.h",
"chars": 689,
"preview": "#pragma once\r\n#include \"CmpareMode.h\"\r\n#include \"AbstractCompare.h\"\r\n#include <QMap>\r\n\r\n\r\n\r\nclass StrategyCompare\r\n{\r\np"
},
{
"path": "src/aboutndd.cpp",
"chars": 498,
"preview": "#include \"aboutndd.h\"\r\n\r\nAboutNdd::AboutNdd(QWidget *parent)\r\n\t: QWidget(parent)\r\n{\r\n\tui.setupUi(this);\r\n\r\n\tui.label->se"
},
{
"path": "src/aboutndd.h",
"chars": 297,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_aboutndd.h\"\r\n\r\nclass AboutNdd : public QWidget\r\n{\r\n\tQ_OBJECT\r\n\r\npublic:"
},
{
"path": "src/aboutndd.ui",
"chars": 3345,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>AboutNddClass</class>\r\n <widget class=\"QWidget\" name"
},
{
"path": "src/batchfindreplace.cpp",
"chars": 8225,
"preview": "#include \"batchfindreplace.h\"\r\n#include \"scintillaeditview.h\"\r\n#include \"ccnotepad.h\"\r\n#include \"progresswin.h\"\r\n#includ"
},
{
"path": "src/batchfindreplace.h",
"chars": 1091,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include <QTabWidget>\r\n#include <QCloseEvent>\r\n#include \"ui_batchfindreplace.h\"\r"
},
{
"path": "src/batchfindreplace.ui",
"chars": 8095,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>BatchFindReplaceClass</class>\r\n <widget class=\"QMain"
},
{
"path": "src/bigfilemessage.cpp",
"chars": 1168,
"preview": "#include \"bigfilemessage.h\"\r\n#include \"nddsetting.h\"\r\n\r\nBigFileMessage::BigFileMessage(QWidget *parent)\r\n\t: QDialog(pare"
},
{
"path": "src/bigfilemessage.h",
"chars": 439,
"preview": "#pragma once\r\n#include \"ccnotepad.h\"\r\n\r\n#include <QWidget>\r\n#include <QDialog>\r\n#include \"ui_bigfilemessage.h\"\r\n\r\nclass "
},
{
"path": "src/bigfilemessage.ui",
"chars": 4806,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>BigFileMessageClass</class>\r\n <widget class=\"QDialog"
},
{
"path": "src/cceditor/ccnotepad.cpp",
"chars": 257587,
"preview": "#include <memory>\r\n#include \"ccnotepad.h\"\r\n#include \"filemanager.h\"\r\n#include \"Encode.h\"\r\n#include \"findwin.h\"\r\n#includ"
},
{
"path": "src/cceditor/ccnotepad.h",
"chars": 17726,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include <QLabel>\r\n#include <QToolButton>\r\n#include <QMap>\r\n#include <QCloseEve"
},
{
"path": "src/cceditor/ccnotepad.ui",
"chars": 92325,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>CCNotePad</class>\r\n <widget class=\"QMainWindow\" name"
},
{
"path": "src/cceditor/filemanager.cpp",
"chars": 31319,
"preview": "#include \"filemanager.h\"\r\n#include \"scintillaeditview.h\"\r\n#include \"scintillahexeditview.h\"\r\n#include \"CmpareMode.h\"\r\n#"
},
{
"path": "src/cceditor/filemanager.h",
"chars": 5735,
"preview": "#pragma once\r\n\r\n#include \"common.h\"\r\n#include \"rcglobal.h\"\r\n\r\n#include <QString>\r\n#include <QObject>\r\n#include <QList>\r"
},
{
"path": "src/closeDlg.cpp",
"chars": 476,
"preview": "#include \"closeDlg.h\"\r\n\r\ncloseDlg::closeDlg(QWidget *parent): QDialog(parent)\r\n{\r\n\tui.setupUi(this);\r\n}\r\n\r\ncloseDlg::~c"
},
{
"path": "src/closeDlg.h",
"chars": 294,
"preview": "#pragma once\r\n\r\n#include <QDialog>\r\n#include \"ui_closeDlg.h\"\r\n\r\nclass closeDlg : public QDialog\r\n{\r\n\tQ_OBJECT\r\n\r\npublic"
},
{
"path": "src/closeDlg.ui",
"chars": 6409,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>closeDlg</class>\r\n <widget class=\"QWidget\" name=\"clo"
},
{
"path": "src/columnedit.cpp",
"chars": 5704,
"preview": "#include \"columnedit.h\"\r\n#include \"scintillaeditview.h\"\r\n\r\nColumnEdit::ColumnEdit(QWidget *parent)\r\n\t: QWidget(parent), "
},
{
"path": "src/columnedit.h",
"chars": 595,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include <QTabWidget>\r\n#include \"ui_columnedit.h\"\r\n\r\nclass ColumnEdit : public QWidg"
},
{
"path": "src/columnedit.ui",
"chars": 11417,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>ColumnEdit</class>\r\n <widget class=\"QWidget\" name=\"C"
},
{
"path": "src/command.cpp",
"chars": 23,
"preview": "#include \"command.h\"\r\n"
},
{
"path": "src/command.h",
"chars": 502,
"preview": "#pragma once\r\n#include <QString>\r\n\r\nenum ChangeDire {\r\n\tNONE_CHANGE=-1,\r\n\tLEFT_CHANGE=0,\r\n\tRIGHT_CHANGE,\r\n\tBOTH_CHANGE,"
},
{
"path": "src/common.cpp",
"chars": 526,
"preview": "#include \"common.h\"\r\n\r\n\r\nint nbDigitsFromNbLines(size_t nbLines)\r\n{\r\n\tint nbDigits = 0; // minimum number of digit shoul"
},
{
"path": "src/common.h",
"chars": 1799,
"preview": "#pragma once\r\n#include <QAction>\r\n#include <qscilexer.h>\r\n\r\nconst int ResultItemPos = Qt::UserRole + 1;//每一条查找结果,section"
},
{
"path": "src/ctipwin.cpp",
"chars": 1052,
"preview": "#include \"ctipwin.h\"\r\n\r\n#include <QTimer>\r\n\r\nCTipWin::CTipWin(QWidget *parent)\r\n\t: QWidget(parent)\r\n{\r\n\tui.setupUi(this)"
},
{
"path": "src/ctipwin.h",
"chars": 406,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_ctipwin.h\"\r\n\r\nclass CTipWin : public QWidget\r\n{\r\n\tQ_OBJECT\r\n\r\npublic:\r\n"
},
{
"path": "src/ctipwin.ui",
"chars": 1583,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>CTipWin</class>\r\n <widget class=\"QWidget\" name=\"CTip"
},
{
"path": "src/dectfilechanges.cpp",
"chars": 1588,
"preview": "#include \"dectfilechanges.h\"\n\n#ifdef WIN32\n\nDectFileChanges::DectFileChanges():m_lastFileSize(0), m_curFileSize(0)\n{\n\t_s"
},
{
"path": "src/dectfilechanges.h",
"chars": 654,
"preview": "#pragma once\n\n#ifdef WIN32\n\n#include <stdio.h>\n\n#ifndef VC_EXTRALEAN\n#define VC_EXTRALEAN\n#endif\n\n//NOMINMAX֤std::minظ\n#"
},
{
"path": "src/diff.h",
"chars": 177,
"preview": "\n#ifndef DIFF_H_\n#define DIFF_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n \nextern __declspec (dllimport) int work (int "
},
{
"path": "src/dirfindfile.cpp",
"chars": 860,
"preview": "#include \"dirfindfile.h\"\r\n\r\nDirFindFile::DirFindFile(int dire, QWidget *parent): QWidget(parent)\r\n{\r\n\tui.setupUi(this);"
},
{
"path": "src/dirfindfile.h",
"chars": 410,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_dirfindfile.h\"\r\n\r\nclass DirFindFile : public QWidget\r\n{\r\n\tQ_OBJECT\r\n\r\n"
},
{
"path": "src/dirfindfile.ui",
"chars": 4514,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>DirFindFile</class>\r\n <widget class=\"QWidget\" name=\""
},
{
"path": "src/doctypelistview.cpp",
"chars": 9925,
"preview": "#include \"doctypelistview.h\"\r\n\r\n#include <QInputDialog>\r\n#include <QLineEdit>\r\n#include <QtDebug>\r\n#include <QThread>\r\n"
},
{
"path": "src/doctypelistview.h",
"chars": 998,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include <QMap>\r\n#include <QString>\r\n#include <QMenu>\r\n\r\n#include \"ui_doctypelistvie"
},
{
"path": "src/doctypelistview.ui",
"chars": 4496,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>DocTypeListView</class>\r\n <widget class=\"QWidget\" na"
},
{
"path": "src/donate.cpp",
"chars": 129,
"preview": "#include \"donate.h\"\r\n\r\nDonate::Donate(QWidget *parent): QWidget(parent)\r\n{\r\n\tui.setupUi(this);\r\n}\r\n\r\nDonate::~Donate()\r"
},
{
"path": "src/donate.h",
"chars": 245,
"preview": "#ifndef DONATE_H\r\n#define DONATE_H\r\n\r\n#include <QWidget>\r\n#include \"ui_donate.h\"\r\n\r\nclass Donate : public QWidget\r\n{\r\n\t"
},
{
"path": "src/donate.ui",
"chars": 4478,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>DonateClass</class>\r\n <widget class=\"QWidget\" name=\""
},
{
"path": "src/draglineedit.cpp",
"chars": 780,
"preview": "#include \"draglineedit.h\"\r\n\r\nDragLineEdit::DragLineEdit(QWidget *parent)\r\n\t: QLineEdit(parent)\r\n{\r\n\tsetAcceptDrops(true)"
},
{
"path": "src/draglineedit.h",
"chars": 470,
"preview": "#pragma once\r\n\r\n#include <QLineEdit>\r\n#include <QLineEdit>\r\n#include <QDropEvent>\r\n#include <QMimeData>\r\n#include <QDrag"
},
{
"path": "src/encodeconvert.cpp",
"chars": 16830,
"preview": "#include \"encodeconvert.h\"\r\n#include \"rcglobal.h\"\r\n#include \"CmpareMode.h\"\r\n#include \"doctypelistview.h\"\r\n\r\n#include <Q"
},
{
"path": "src/encodeconvert.h",
"chars": 1888,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include <QFuture>\r\n#include <functional>\r\n#include <QMap>\r\n\r\n#include \"ui_encodeco"
},
{
"path": "src/encodeconvert.ui",
"chars": 8299,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>EncodeConvert</class>\r\n <widget class=\"QWidget\" name"
},
{
"path": "src/extLexermanager.cpp",
"chars": 1966,
"preview": "#include \"extlexermanager.h\"\r\n\r\n//רûԶExt ʷLexerࡣ\r\n//һļextٸ֪ʹʲôlexer\r\n\r\nExtLexerManager* ExtLexerManager::s_instance ="
},
{
"path": "src/extlexermanager.h",
"chars": 2093,
"preview": "#pragma once\r\n#include <QMap>\r\n#include <qscilexer.h>\r\n\r\n#if 0\r\nenum LangType {\n\tL_UNKNOWN = -1, L_PHP = 0, L_C, L_CPP, "
},
{
"path": "src/filecmprulewin.cpp",
"chars": 1270,
"preview": "#include \"filecmprulewin.h\"\r\n\r\nFileCmpRuleWin::FileCmpRuleWin(int mode, bool blankMath, int equalRato,QWidget *parent)\r\n"
},
{
"path": "src/filecmprulewin.h",
"chars": 410,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_filecmprulewin.h\"\r\n\r\nclass FileCmpRuleWin : public QWidget\r\n{\r\n\tQ_OBJEC"
},
{
"path": "src/filecmprulewin.ui",
"chars": 5591,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>FileCmpRuleWin</class>\r\n <widget class=\"QWidget\" nam"
},
{
"path": "src/filelistview.cpp",
"chars": 2576,
"preview": "#include \"filelistview.h\"\r\n#include \"rcglobal.h\"\r\n#include \"ccnotepad.h\"\r\n#include <QListWidgetItem>\r\n#include <QMenu>\r\n"
},
{
"path": "src/filelistview.h",
"chars": 928,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include <QListWidgetItem>\r\n\r\n#include \"ui_filelistview.h\"\r\n\r\nstruct FileListItemDat"
},
{
"path": "src/filelistview.ui",
"chars": 1083,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>FileListViewClass</class>\r\n <widget class=\"QWidget\" "
},
{
"path": "src/findcmpwin.cpp",
"chars": 5132,
"preview": "#include \"findcmpwin.h\"\r\n#include \"qscidisplaywindow.h\"\r\n#include <QRadioButton>\r\n#include <QMessageBox>\r\n\r\nFindCmpWin::"
},
{
"path": "src/findcmpwin.h",
"chars": 1881,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include <QTabWidget>\r\n#include <QVector>\r\n\r\n#include \"ui_findcmpwin.h\"\r\n#includ"
},
{
"path": "src/findcmpwin.ui",
"chars": 8479,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>FindCmpWin</class>\r\n <widget class=\"QMainWindow\" nam"
},
{
"path": "src/findresultview.cpp",
"chars": 8550,
"preview": "#include \"findresultview.h\"\r\n#include \"styleset.h\"\r\n#include \"findresultwin.h\"\r\n#include \"ctipwin.h\"\r\n#include \"Scintill"
},
{
"path": "src/findresultview.h",
"chars": 1186,
"preview": "#pragma once\r\n#include <QWidget>\r\n#include <qsciscintilla.h>\r\n#include <QMouseEvent>\r\n#include <QMenu>\r\n\r\nextern const i"
},
{
"path": "src/findresultwin.cpp",
"chars": 13500,
"preview": "#include \"findresultwin.h\"\r\n#include \"findwin.h\"\r\n#include \"common.h\"\r\n#include \"styleset.h\"\r\n#include \"nddsetting.h\"\r\n#"
},
{
"path": "src/findresultwin.h",
"chars": 1442,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include <QContextMenuEvent>\r\n#include <QMenu>\r\n#include \"ui_findresultwin.h\"\r\n\r\ncla"
},
{
"path": "src/findresultwin.ui",
"chars": 1618,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>FindResultWin</class>\r\n <widget class=\"QWidget\" name"
},
{
"path": "src/findwin.cpp",
"chars": 72564,
"preview": "#include \"findwin.h\"\r\n#include \"scintillaeditview.h\"\r\n#include \"ccnotepad.h\"\r\n#include \"progresswin.h\"\r\n#include \"doctyp"
},
{
"path": "src/findwin.h",
"chars": 5497,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include <QTabWidget>\r\n#include <QVector>\r\n\r\n\r\n#include \"ui_findwin.h\"\r\n#ifndef "
},
{
"path": "src/findwin.ui",
"chars": 58660,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>FindWin</class>\r\n <widget class=\"QMainWindow\" name=\""
},
{
"path": "src/gotolinewin.cpp",
"chars": 393,
"preview": "#include \"gotolinewin.h\"\r\n\r\nGoToLineWin::GoToLineWin(QWidget *parent)\r\n\t: QWidget(parent)\r\n{\r\n\tui.setupUi(this);\r\n}\r\n\r\nG"
},
{
"path": "src/gotolinewin.h",
"chars": 321,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_gotolinewin.h\"\r\n\r\nclass GoToLineWin : public QWidget\r\n{\r\n\tQ_OBJECT\r\n\r\np"
},
{
"path": "src/gotolinewin.ui",
"chars": 4726,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>GoToLineWin</class>\r\n <widget class=\"QWidget\" name=\""
},
{
"path": "src/hexcmprangewin.cpp",
"chars": 1694,
"preview": "#include \"hexcmprangewin.h\"\r\n\r\n#include <QLineEdit>\r\n#include <QMessageBox>\r\n\r\nHexCmpRangeWin::HexCmpRangeWin(QWidget *p"
},
{
"path": "src/hexcmprangewin.h",
"chars": 516,
"preview": "#pragma once\r\n\r\n#include <QDialog>\r\n#include \"ui_hexcmprangewin.h\"\r\n\r\nclass HexCmpRangeWin : public QDialog\r\n{\r\n\tQ_OBJEC"
},
{
"path": "src/hexcmprangewin.ui",
"chars": 6073,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>HexCmpRangeWin</class>\r\n <widget class=\"QWidget\" nam"
},
{
"path": "src/hexfilegoto.cpp",
"chars": 1570,
"preview": "#include \"hexfilegoto.h\"\r\n\r\nHexFileGoto::HexFileGoto(QWidget *parent)\r\n\t: QWidget(parent)\r\n{\r\n\tui.setupUi(this);\r\n\r\n\tcon"
},
{
"path": "src/hexfilegoto.h",
"chars": 427,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_hexfilegoto.h\"\r\n\r\nclass HexFileGoto : public QWidget\r\n{\r\n\tQ_OBJECT\r\n\r\np"
},
{
"path": "src/hexfilegoto.ui",
"chars": 5441,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>HexFileGoto</class>\r\n <widget class=\"QWidget\" name=\""
},
{
"path": "src/hexrulewin.cpp",
"chars": 760,
"preview": "#include \"hexrulewin.h\"\r\n\r\nHexRuleWin::HexRuleWin(int mode, int highlight, QWidget *parent): QWidget(parent), m_mode(mod"
},
{
"path": "src/hexrulewin.h",
"chars": 394,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_hexrulewin.h\"\r\n\r\nclass HexRuleWin : public QWidget\r\n{\r\n\tQ_OBJECT\r\n\r\npub"
},
{
"path": "src/hexrulewin.ui",
"chars": 3976,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>HexRuleWin</class>\r\n <widget class=\"QWidget\" name=\"H"
},
{
"path": "src/include/pluginGl.h",
"chars": 840,
"preview": "#pragma once\r\n#include <QString>\r\n#include <QMenu>\r\n\r\n#define NDD_EXPORTDLL\r\n\r\n#if defined(Q_OS_WIN)\r\n\t#if defined(NDD_E"
},
{
"path": "src/installer/NsisMultiUser/Include/NsisMultiUser.nsh",
"chars": 50329,
"preview": "/*\n\nNsisMultiUser.nsh - NSIS plugin that allows \"per-user\" (no admin required) and \"per-machine\" (asks elevation *only w"
},
{
"path": "src/installer/NsisMultiUser/Include/NsisMultiUserLang.nsh",
"chars": 207833,
"preview": "!ifdef LANG_ENGLISH\n\tLangString MULTIUSER_PAGE_TITLE ${LANG_ENGLISH} \"Choose Users\"\n\tLangString MULTIUSER_INSTALL_PAGE_S"
},
{
"path": "src/installer/NsisMultiUser/Include/StdUtils.nsh",
"chars": 16552,
"preview": "#################################################################################\n# StdUtils plug-in for NSIS\n# Copyrigh"
},
{
"path": "src/installer/NsisMultiUser/Include/UAC.nsh",
"chars": 8743,
"preview": "/*** UAC Plug-in ***\n\nInteractive User (MediumIL) Admin user (HighIL)\n***[Setup.exe]************* ***[Setup."
},
{
"path": "src/installer/installer.nsi",
"chars": 8708,
"preview": "!addplugindir /x86-unicode \".\\NsisMultiUser\\Plugins\\x86-unicode\\\"\n!addincludedir \".\\NsisMultiUser\\Include\\\"\n\n\nSetCompres"
},
{
"path": "src/installer/newinstall.iss",
"chars": 3448,
"preview": "; Script generated by the Inno Setup Script Wizard.\r\n; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT F"
},
{
"path": "src/installer/newinstall_dync.iss",
"chars": 6570,
"preview": "; Script generated by the Inno Setup Script Wizard.\r\n; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT F"
},
{
"path": "src/installer/utils.nsh",
"chars": 2621,
"preview": "# Stolen from https://github.com/Drizin/NsisMultiUser/blob/f6a4865a6045ca1334c099359b23e2b7342fa7de/Demos/Common/Utils.n"
},
{
"path": "src/langextset.cpp",
"chars": 5743,
"preview": "#include \"langextset.h\"\r\n#include \"scintillaeditview.h\"\r\n#include \"extlexermanager.h\"\r\n#include \"ccnotepad.h\"\r\n\r\n#includ"
},
{
"path": "src/langextset.h",
"chars": 656,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include \"ui_langextset.h\"\r\n\r\nclass LangExtSet : public QMainWindow\r\n{\r\n\tQ_OBJEC"
},
{
"path": "src/langextset.ui",
"chars": 3725,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>LangExtSetClass</class>\r\n <widget class=\"QMainWindow"
},
{
"path": "src/langstyledefine.cpp",
"chars": 6491,
"preview": "#include \"langstyledefine.h\"\r\n#include \"userlexdef.h\"\r\n#include \"extlexermanager.h\"\r\n\r\n#include <QInputDialog>\r\n#include"
},
{
"path": "src/langstyledefine.h",
"chars": 545,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include \"ui_langstyledefine.h\"\r\n#include \"rcglobal.h\"\r\n\r\n\r\nclass LangStyleDefin"
},
{
"path": "src/langstyledefine.ui",
"chars": 8000,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>LangStyleDefineClass</class>\r\n <widget class=\"QMainW"
},
{
"path": "src/linux/usr/share/applications/NotePad--.desktop",
"chars": 862,
"preview": "[Desktop Entry]\nVersion=1.0\nName=NotePad--\nName[zh_CN]=NotePad--\nComment=NotePad-- 是一个国产跨平台、简单的文本编辑器。\nType=Application\nE"
},
{
"path": "src/linux/usr/share/licenses/notepad--/LICENSE",
"chars": 35821,
"preview": " GNU GENERAL PUBLIC LICENSE\r\n Version 3, 29 June 2007\r\n\r\n Copyright (C) 2007 Fr"
},
{
"path": "src/linux/usr/share/metainfo/io.gitee.cxasm.notepad--.metainfo.xml",
"chars": 499,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<component type=\"desktop-application\">\n <id>io.gitee.cxasm.notepad--</id>\n\n <na"
},
{
"path": "src/macpro/RealCompare.pro",
"chars": 1969,
"preview": "TEMPLATE = app\r\nLANGUAGE = C++\r\n\r\nTARGET = Notepad--\r\n\r\nCONFIG\t+= qt warn_on Release\r\n\r\nQT += core gui widgets concurren"
},
{
"path": "src/main.cpp",
"chars": 11624,
"preview": "#include \"ccnotepad.h\"\r\n#include \"nddsetting.h\"\r\n#include \"styleset.h\"\r\n\r\n\r\n#include <QtWidgets/QApplication>\r\n#include"
},
{
"path": "src/markdownview.cpp",
"chars": 255,
"preview": "#include \"markdownview.h\"\r\n\r\nMarkdownView::MarkdownView(QWidget *parent)\r\n\t: QMainWindow(parent)\r\n{\r\n\tui.setupUi(this);\r"
},
{
"path": "src/markdownview.h",
"chars": 280,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include \"ui_markdownview.h\"\r\n\r\nclass MarkdownView : public QMainWindow\r\n{\r\n\tQ_O"
},
{
"path": "src/markdownview.ui",
"chars": 1636,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>MarkdownViewClass</class>\r\n <widget class=\"QMainWind"
},
{
"path": "src/md5hash.cpp",
"chars": 3282,
"preview": "#include \"md5hash.h\"\r\n#include \"ccnotepad.h\"\r\n#include \"ctipwin.h\"\r\n\r\n#include <QCryptographicHash>\r\n#include <QFile>\r\n#"
},
{
"path": "src/md5hash.h",
"chars": 424,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include <QButtonGroup>\r\n#include \"ui_md5hash.h\"\r\n\r\nclass Md5hash : public QWidget\r\n"
},
{
"path": "src/md5hash.ui",
"chars": 5196,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>Md5hashClass</class>\r\n <widget class=\"QWidget\" name="
},
{
"path": "src/mystyle.qss",
"chars": 2578,
"preview": "\r\n/*设置垂直滚动条基本样式*/\r\nQScrollBar:vertical {\r\n width: 10px;\r\n background: rgba(0,0,0,0%);\r\n margin: 0px,0px,0px,0px"
},
{
"path": "src/mytreeview.cpp",
"chars": 242,
"preview": "#include \"mytreeview.h\"\r\n\r\nMyTreeView::MyTreeView(QWidget *parent)\r\n\t: QTreeView(parent)\r\n{}\r\n\r\nMyTreeView::~MyTreeView("
},
{
"path": "src/mytreeview.h",
"chars": 226,
"preview": "#pragma once\r\n\r\n#include <QTreeView>\r\n#include <QModelIndexList>\r\n\r\nclass MyTreeView : public QTreeView\r\n{\r\npublic:\r\n\tM"
},
{
"path": "src/nddpluginapi.cpp",
"chars": 490,
"preview": "#include \"nddpluginapi.h\"\r\n#include \"ccnotepad.h\"\r\n\r\nNddPluginApi::NddPluginApi(QObject *parent)\r\n\t: QObject(parent)\r\n{}"
},
{
"path": "src/nddpluginapi.h",
"chars": 552,
"preview": "#pragma once\r\n\r\n#include <QObject>\r\n#include <QMap>\r\n#include <QVariant>\r\n\r\n//еãҪ֤ABIԡ\r\n//ζţɾеĺͳԱ;ᵼ²ݡ\r\n//ʹó麯֮κ麯\r\n//һӦһ"
},
{
"path": "src/nddsetting.cpp",
"chars": 7932,
"preview": "#include \"nddsetting.h\"\r\n#include <QObject>\r\n#include <QtDebug>\r\n#include <QCoreApplication>\r\n#include <QDate>\r\n#includ"
},
{
"path": "src/nddsetting.h",
"chars": 2833,
"preview": "#pragma once\r\n#include <QSettings>\r\n#include <QVariant>\r\n\r\nstatic QString SKIN_KEY = \"skinid\";\r\nstatic QString LANGS_KE"
},
{
"path": "src/ndstyleditemdelegate.cpp",
"chars": 1570,
"preview": "#include \"ndstyleditemdelegate.h\"\r\n#include <QTextDocument>\r\n#include <QApplication>\r\n#include <QAbstractTextDocumentLay"
},
{
"path": "src/ndstyleditemdelegate.h",
"chars": 403,
"preview": "#pragma once\r\n\r\n#include <QStyledItemDelegate>\r\n\r\nclass NdStyledItemDelegate : public QStyledItemDelegate\r\n{\r\n\tQ_OBJECT\r"
},
{
"path": "src/optionsview.cpp",
"chars": 1263,
"preview": "#include \"optionsview.h\"\r\n#include \"doctypelistview.h\"\r\n#include \"texteditsetwin.h\"\r\n#include \"ccnotepad.h\"\r\n\r\nOptionsV"
},
{
"path": "src/optionsview.h",
"chars": 487,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_optionsview.h\"\r\n\r\nclass OptionsView : public QWidget\r\n{\r\n\tQ_OBJECT\r\n\r\n"
},
{
"path": "src/optionsview.ui",
"chars": 2778,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>OptionsView</class>\r\n <widget class=\"QWidget\" name=\""
},
{
"path": "src/plugin/helloworld/CMakeLists.txt",
"chars": 1570,
"preview": "cmake_minimum_required(VERSION 3.16)\nproject(helloworld)\n\nset(CMAKE_AUTOMOC ON)\nset(CMAKE_AUTOUIC ON)\nset(CMAKE_AUTORCC "
},
{
"path": "src/plugin/helloworld/helloworld.pro",
"chars": 627,
"preview": "TEMPLATE\t= lib\r\nLANGUAGE\t= C++\r\n\r\nCONFIG\t+= qt warn_on Release\r\nQT += core gui widgets\r\n\r\nHEADERS\t+= *.h\r\nSOURCES\t+= *.c"
},
{
"path": "src/plugin/helloworld/helloworldexport.cpp",
"chars": 2824,
"preview": "#include <qobject.h>\r\n#include <qstring.h>\r\n#include <pluginGl.h>\r\n#include <functional>\r\n#include <qsciscintilla.h>\r\n#"
},
{
"path": "src/plugin/helloworld/qttestclass.cpp",
"chars": 473,
"preview": "#include \"qttestclass.h\"\r\n#include <qsciscintilla.h>\r\n\r\nQtTestClass::QtTestClass(QWidget *parent, QsciScintilla* pEdit)\r"
},
{
"path": "src/plugin/helloworld/qttestclass.h",
"chars": 345,
"preview": "#pragma once\r\n\r\n#include <QWidget>\r\n#include \"ui_qttestclass.h\"\r\n\r\nclass QsciScintilla;\r\nclass QtTestClass : public QWid"
},
{
"path": "src/plugin/helloworld/qttestclass.ui",
"chars": 2504,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>QtTestClassClass</class>\r\n <widget class=\"QWidget\" n"
},
{
"path": "src/plugin/test/test.cpp",
"chars": 2404,
"preview": "#include <qobject.h>\r\n#include <qstring.h>\r\n#include <pluginGl.h>\r\n#include <functional>\r\n#include <qsciscintilla.h>\r\n#"
},
{
"path": "src/plugin/test/test.pro",
"chars": 619,
"preview": "TEMPLATE\t= lib\r\nLANGUAGE\t= C++\r\n\r\nCONFIG\t+= qt warn_on\r\nQT += core gui widgets\r\n\r\nHEADERS\t+= *.h\r\nSOURCES\t+= *.cpp\r\nFORM"
},
{
"path": "src/plugin.cpp",
"chars": 1311,
"preview": "#include \"plugin.h\"\r\n#include <QLibrary>\r\n#include <QDir>\r\n#include <QMenu>\r\n#include <QAction>\r\n\r\n\r\nbool loadApplicatio"
},
{
"path": "src/plugin.h",
"chars": 419,
"preview": "#pragma once\r\n#include \"pluginGl.h\"\r\n#include <functional>\r\nclass QMenu;\r\nclass QsciScintilla;\r\nclass QWidget;\r\n\r\ntyped"
},
{
"path": "src/pluginGl.h",
"chars": 631,
"preview": "#pragma once\r\n#include <QString>\r\n#include <QMenu>\r\n\r\nstruct ndd_proc_data\r\n{\r\n\tQString m_strPlugName; // ѡд\r\n\tQString m"
},
{
"path": "src/pluginmgr.cpp",
"chars": 1362,
"preview": "#include \"pluginmgr.h\"\r\n#include \"rcglobal.h\"\r\n\r\n\r\nPluginMgr::PluginMgr(QWidget *parent, QList<NDD_PROC_DATA>& pluginLi"
},
{
"path": "src/pluginmgr.h",
"chars": 382,
"preview": "#pragma once\r\n\r\n#include <QMainWindow>\r\n#include \"ui_pluginmgr.h\"\r\n#include \"pluginGl.h\"\r\n\r\nclass PluginMgr : public QMa"
},
{
"path": "src/pluginmgr.ui",
"chars": 3947,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>PluginMgrClass</class>\r\n <widget class=\"QMainWindow\""
},
{
"path": "src/progresswin.cpp",
"chars": 1296,
"preview": "#include \"progresswin.h\"\r\n#include <QCoreApplication>\r\n#include <QMessageBox>\r\n\r\nProgressWin::ProgressWin(QWidget *pare"
},
{
"path": "src/progresswin.h",
"chars": 622,
"preview": "#pragma once\r\n\r\n#include <QDialog>\r\n#include <QCloseEvent>\r\n#include \"ui_progresswin.h\"\r\n\r\nclass ProgressWin : public Q"
},
{
"path": "src/progresswin.ui",
"chars": 3317,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>ProgressWin</class>\r\n <widget class=\"QWidget\" name=\""
},
{
"path": "src/qscidisplaywindow.cpp",
"chars": 13800,
"preview": "#include \"qscidisplaywindow.h\"\r\n#include \"MediatorDisplay.h\"\r\n#include \"textfind.h\"\r\n#include \"common.h\"\r\n#include \"sty"
},
{
"path": "src/qscidisplaywindow.h",
"chars": 2122,
"preview": "#pragma once\r\n\r\n#include <qsciscintilla.h>\r\n#include <Scintilla.h>\r\n#include <functional>\r\n#include <QMenu>\r\n#include <"
},
{
"path": "src/qscint/CMakeLists.txt",
"chars": 1963,
"preview": "cmake_minimum_required(VERSION 3.16)\nproject(qscint CXX)\n\nset(CMAKE_AUTOMOC ON)\nset(CMAKE_AUTOUIC ON)\nset(CMAKE_AUTORCC "
},
{
"path": "src/qscint/ChangeLog",
"chars": 236857,
"preview": "2021-03-04 Phil Thompson <phil@riverbankcomputing.com>\n\n\t* NEWS:\n\tReleased as v2.12.1.\n\t[c1e9b5f091d6] [2.12.1] <2.12-"
},
{
"path": "src/qscint/LICENSE",
"chars": 35147,
"preview": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
},
{
"path": "src/qscint/NEWS",
"chars": 27342,
"preview": "v2.12.1 4th March 2021\n - Packaging bug fixes.\n\nv2.12.0 23rd February 2021\n - Added support for Qt6.\n - Removed suppo"
},
{
"path": "src/qscint/Python/README",
"chars": 1564,
"preview": "QScintilla - Python Bindings for the QScintilla Programmers Editor Widget\n=============================================="
},
{
"path": "src/qscint/Python/config-tests/cfgtest_Qsci.cpp",
"chars": 423,
"preview": "#include <QCoreApplication>\n#include <QFile>\n#include <QTextStream>\n\n#include <Qsci/qsciglobal.h>\n\n\nint main(int argc, c"
},
{
"path": "src/qscint/Python/project.py",
"chars": 7328,
"preview": "# This is the build script for the QScintilla Python bindings.\n#\n# Copyright (c) 2021 Riverbank Computing Limited <info@"
},
{
"path": "src/qscint/Python/pyproject-qt5.toml",
"chars": 548,
"preview": "# Specify the build system.\n[build-system]\nrequires = [\"sip >=6.0.2, <7\", \"PyQt-builder >=1.6, <2\"]\nbuild-backend = \"sip"
},
{
"path": "src/qscint/Python/pyproject-qt6.toml",
"chars": 553,
"preview": "# Specify the build system.\n[build-system]\nrequires = [\"sip >=6.0.2, <7\", \"PyQt-builder >=1.6, <2\"]\nbuild-backend = \"sip"
},
{
"path": "src/qscint/Python/sip/qsciabstractapis.sip",
"chars": 1525,
"preview": "// This is the SIP interface definition for QsciAbstractAPIs.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info"
},
{
"path": "src/qscint/Python/sip/qsciapis.sip",
"chars": 2048,
"preview": "// This is the SIP interface definition for QsciAPIs.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riverba"
},
{
"path": "src/qscint/Python/sip/qscicommand.sip",
"chars": 3643,
"preview": "// This is the SIP interface definition for QsciCommand.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@rive"
},
{
"path": "src/qscint/Python/sip/qscicommandset.sip",
"chars": 1463,
"preview": "// This is the SIP interface definition for the QsciCommandSet.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <in"
},
{
"path": "src/qscint/Python/sip/qscidocument.sip",
"chars": 1085,
"preview": "// This is the SIP interface definition for QsciDocument.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riv"
},
{
"path": "src/qscint/Python/sip/qscilexer.sip",
"chars": 3663,
"preview": "// This is the SIP interface definition for QsciLexer.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riverb"
},
{
"path": "src/qscint/Python/sip/qscilexeravs.sip",
"chars": 2089,
"preview": "// This is the SIP interface definition for QsciLexerAVS.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riv"
},
{
"path": "src/qscint/Python/sip/qscilexerbash.sip",
"chars": 2194,
"preview": "// This is the SIP interface definition for QsciLexerBash.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@ri"
},
{
"path": "src/qscint/Python/sip/qscilexerbatch.sip",
"chars": 1712,
"preview": "// This is the SIP interface definition for QsciLexerBatch.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@r"
},
{
"path": "src/qscint/Python/sip/qscilexercmake.sip",
"chars": 2000,
"preview": "// This is the SIP interface definition for QsciLexerCMake.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@r"
},
{
"path": "src/qscint/Python/sip/qscilexercoffeescript.sip",
"chars": 2854,
"preview": "// This is the SIP interface definition for QsciLexerCoffeeScript.\n//\n// Copyright (c) 2021 Riverbank Computing Limited "
},
{
"path": "src/qscint/Python/sip/qscilexercpp.sip",
"chars": 4497,
"preview": "// This is the SIP interface definition for QsciLexerCPP.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riv"
},
{
"path": "src/qscint/Python/sip/qscilexercsharp.sip",
"chars": 1448,
"preview": "// This is the SIP interface definition for QsciLexerCSharp.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@"
},
{
"path": "src/qscint/Python/sip/qscilexercss.sip",
"chars": 2568,
"preview": "// This is the SIP interface definition for QsciLexerCSS.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riv"
},
{
"path": "src/qscint/Python/sip/qscilexercustom.sip",
"chars": 1460,
"preview": "// This is the SIP interface definition for QsciLexerCustom.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@"
},
{
"path": "src/qscint/Python/sip/qscilexerd.sip",
"chars": 2660,
"preview": "// This is the SIP interface definition for QsciLexerD.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@river"
},
{
"path": "src/qscint/Python/sip/qscilexerdiff.sip",
"chars": 1614,
"preview": "// This is the SIP interface definition for QsciLexerDiff.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@ri"
},
{
"path": "src/qscint/Python/sip/qscilexeredifact.sip",
"chars": 1547,
"preview": "// This is the SIP interface definition for QsciLexerEDIFACT.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info"
},
{
"path": "src/qscint/Python/sip/qscilexerfortran.sip",
"chars": 1251,
"preview": "// This is the SIP interface definition for QsciLexerFortran.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info"
},
{
"path": "src/qscint/Python/sip/qscilexerfortran77.sip",
"chars": 2096,
"preview": "// This is the SIP interface definition for QsciLexerFortran77.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <in"
},
{
"path": "src/qscint/Python/sip/qscilexerhtml.sip",
"chars": 5292,
"preview": "// This is the SIP interface definition for QsciLexerHTML.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@ri"
},
{
"path": "src/qscint/Python/sip/qscilexeridl.sip",
"chars": 1303,
"preview": "// This is the SIP interface definition for QsciLexerIDL.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riv"
},
{
"path": "src/qscint/Python/sip/qscilexerjava.sip",
"chars": 1226,
"preview": "// This is the SIP interface definition for QsciLexerJava.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@ri"
},
{
"path": "src/qscint/Python/sip/qscilexerjavascript.sip",
"chars": 1476,
"preview": "// This is the SIP interface definition for QsciLexerJavaScript.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <i"
},
{
"path": "src/qscint/Python/sip/qscilexerjson.sip",
"chars": 2161,
"preview": "// This is the SIP interface definition for QsciLexerJSON.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@ri"
},
{
"path": "src/qscint/Python/sip/qscilexerlua.sip",
"chars": 2316,
"preview": "// This is the SIP interface definition for QsciLexerLua.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@riv"
},
{
"path": "src/qscint/Python/sip/qscilexermakefile.sip",
"chars": 1630,
"preview": "// This is the SIP interface definition for QsciLexerMakefile.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <inf"
},
{
"path": "src/qscint/Python/sip/qscilexermarkdown.sip",
"chars": 1903,
"preview": "// This is the SIP interface definition for QsciLexerMarkdown.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <inf"
},
{
"path": "src/qscint/Python/sip/qscilexermatlab.sip",
"chars": 1588,
"preview": "// This is the SIP interface definition for QsciLexerMatlab.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@"
},
{
"path": "src/qscint/Python/sip/qscilexeroctave.sip",
"chars": 1274,
"preview": "// This is the SIP interface definition for QsciLexerOctave.\n//\n// Copyright (c) 2021 Riverbank Computing Limited <info@"
}
]
// ... and 1504 more files (download for full content)
About this extraction
This page contains the full source code of the cxasm/notepad-- GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 1704 files (20.9 MB), approximately 5.6M tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.