
软件目前基本功能告一段落,v0.5,v0.49通过检测空行比例决定是否拓展搜索内容,如果20行中有一个空行,就拓展搜索结果到关键字后的空行,v0.5则将搜索结果增加扩展至前一空行,这平衡了前二版的功能。
说实话第一次qt编程,不熟悉怎么调用listview即时滚动至搜索行功能,这在GTK编程中有专门的API,在笔者的另一项目C语言的“如意”Mindway实现过,但qt上试了好久没有成功,哪位熟手知道请回复一下,方便加入此功能,更象一回事。
程序是用来单机内部文本搜索用的,可以通过点[文库]按钮,找到相关的文本文件(UTF-8编码,可以用windows自带的记事本另存一下)建立文本库,可以拖放调整次序,或[删行]删除,然后通过点[文库]按钮找到“oftenfiles.set”来生效;
项行是本程序的特殊行,当点中时,勾选可关联勾选下面各行,消勾两次可关联取消下面各行;
你可以在顶行双击输入搜索关键字,勾选中想搜索的文件,同时勾选顶行,点左下角的[搜索]按钮进行跨文件搜索,内容将显示在可停靠部件的编辑框中,v0.5重新建立fruit.txt文件同时储存结果,方便工作用途,这是本程序的最主要的功能;
顶行是计算式时,可以点[计算]来显示结果;
选中列表中下面任一行,点[v]可以将文本内容调入顶行;
在列表框内勾选行后,点[>]可以汇总到可停靠部件的编辑框中;
点中下面任一行,点[加行]时,会将顶行插入点中行后;
点中下面任一行,点[打开],会打开相应的文件内容,进行单文件搜索(目前欠缺滚动至搜中行功能);
点[退出],可以结束程序运行。
这是概貌。
下面链接可以下载Linux下的v0.50版运行包,在Linux下解压后双击其中可执行文件运行。
https://pan.baidu.com/s/1C8-7R0K0bmCyy6i8dy7a7w
也可以去github看看
https://github.com/ShiJianGang-sh/MWdock
This program is designed for PC internal search for specialized field text files by now, an small text files library is established, and you can input your keyword in the top item by doubleclick it, you get all the result by press [search] button on ow left corner, the "and" conditional key words are separated by "," , and the "or" conditional key words are separated by " "; you can calculating the input string by press [calculating] button on up right corner, you can extract the items by check them and press [>] button on the right and the contents will show in the dock text edit box, you can copy the text of below item to the top by press [v] button on the up left; you can add a new file to the library by press [library] button next to [v], you can add the top item below the item you just clicked by press [add] button on up middle and delete it by [del] button on low middle; you can open a selected file on first page and open the first by click top item and [open];you can drap-drop the items and by click [library] button to locate the exact file to take effect; you can exit bu press [exit] button on the low right. It's the general aspect。