Commit ab7b1f60383994b98db68b9cc5393e65ea247a47
0 parents
first commit
Showing
15 changed files
with
1899 additions
and
0 deletions
EasyQJson.h
0 → 100644
| 1 | +++ a/EasyQJson.h | |
| 1 | +#ifndef EASYQJSON_H | |
| 2 | +#define EASYQJSON_H | |
| 3 | +#include<QFile> | |
| 4 | +#include<QJsonArray> | |
| 5 | +#include<QJsonObject> | |
| 6 | +#include<QJsonDocument> | |
| 7 | +#include<QJsonValue> | |
| 8 | + | |
| 9 | +namespace DJY{ | |
| 10 | + class EasyQJson | |
| 11 | + { | |
| 12 | + public: | |
| 13 | + //读取json文件并且返回Json对象 | |
| 14 | + QJsonObject readJsonFileReturnObject(QString filepath) | |
| 15 | + { | |
| 16 | + QJsonObject rootObj = {}; | |
| 17 | + QFile file(filepath); | |
| 18 | + if(!file.open(QIODevice::ReadWrite))//打开文件 | |
| 19 | + { | |
| 20 | + return rootObj; | |
| 21 | + } | |
| 22 | + //throw std::logical_error(); | |
| 23 | + | |
| 24 | + QByteArray all = file.readAll(); | |
| 25 | + file.close(); | |
| 26 | + QJsonParseError json_error; | |
| 27 | + QJsonDocument jsonDoc(QJsonDocument::fromJson(all,&json_error)); //读取json | |
| 28 | + rootObj = jsonDoc.object(); | |
| 29 | + return rootObj; | |
| 30 | + } | |
| 31 | + | |
| 32 | + //读取QJsonObject返回QString | |
| 33 | + QString readObjectReturnQString(QJsonObject object) | |
| 34 | + { | |
| 35 | + QString result = QString(QJsonDocument(object).toJson()); | |
| 36 | + return result; | |
| 37 | + } | |
| 38 | + | |
| 39 | + | |
| 40 | + //提供JsonObject和键值,返回Json数组 | |
| 41 | + QJsonArray readJsonObjectReturnArray(QJsonObject object, QString jsonkey) | |
| 42 | + { | |
| 43 | + QJsonValue value = object.value(jsonkey); | |
| 44 | + QJsonArray array = value.toArray(); | |
| 45 | + return array; | |
| 46 | + } | |
| 47 | + | |
| 48 | + //判断Json数组有没有对应的键 | |
| 49 | + bool JsonArrayContain(QJsonArray array, QString jsonObject, QString target) | |
| 50 | + { | |
| 51 | + //传入了array ,jsonobject为要找到的json对象键名,target为这个对象的值 | |
| 52 | + for(int i = 0;i<array.size();i++) | |
| 53 | + { | |
| 54 | + QJsonValue arrayValue = array.at(i); | |
| 55 | + QString projectname = arrayValue[jsonObject].toString(); | |
| 56 | + | |
| 57 | + if(projectname == target) | |
| 58 | + { | |
| 59 | + | |
| 60 | + return true; | |
| 61 | + } | |
| 62 | + } | |
| 63 | + return false; | |
| 64 | + } | |
| 65 | + | |
| 66 | + | |
| 67 | + //传入键,从Json数组读取其中的Json数组 (格式是一个Json数组,其中包含Json对象和另一个Json数组) | |
| 68 | + //target是要找的键,key是数组中的键 | |
| 69 | + QJsonArray readArrayReturnArray(QJsonArray array,QString target,QString key,QString arrayKey) | |
| 70 | + { | |
| 71 | + QJsonValue value; | |
| 72 | + QJsonArray thisArray = {}; | |
| 73 | + for(int i=0;i<array.size();i++) | |
| 74 | + { | |
| 75 | + value = array.at(i); | |
| 76 | + if(value[target].toString() == key) | |
| 77 | + { | |
| 78 | + thisArray = value[arrayKey].toArray(); | |
| 79 | + } | |
| 80 | + } | |
| 81 | + return thisArray; | |
| 82 | + } | |
| 83 | + | |
| 84 | + | |
| 85 | + //传入键,从Json数组读取其中的Json对象 (格式是一个Json数组,其中包含Json对象和另一个Json数组) | |
| 86 | + //target是要找的键,key是数组中的键 | |
| 87 | + QJsonObject readArrayReturnObject(QJsonArray array,QString target,QString key,QString arrayKey) | |
| 88 | + { | |
| 89 | + QJsonValue value; | |
| 90 | + QJsonObject thisObject = {}; | |
| 91 | + for(int i=0;i<array.size();i++) | |
| 92 | + { | |
| 93 | + value = array.at(i); | |
| 94 | + if(value[target].toString() == key) | |
| 95 | + { | |
| 96 | + thisObject = value[arrayKey].toObject(); | |
| 97 | + } | |
| 98 | + } | |
| 99 | + return thisObject; | |
| 100 | + } | |
| 101 | + | |
| 102 | + bool writeObject2JsonFile(QJsonObject object,QString filepath) | |
| 103 | + { | |
| 104 | + QFile file(filepath); | |
| 105 | + if(!file.open(QIODevice::WriteOnly)) | |
| 106 | + { | |
| 107 | + return false; | |
| 108 | + } | |
| 109 | + QJsonDocument jsondocu(object); | |
| 110 | + file.write(jsondocu.toJson()); | |
| 111 | + file.close(); | |
| 112 | + return true; | |
| 113 | + } | |
| 114 | + | |
| 115 | + }; | |
| 116 | + | |
| 117 | + | |
| 118 | +} | |
| 119 | + | |
| 120 | + | |
| 121 | +#endif // EASYQJSON_H | ... | ... |
LICENSE
0 → 100644
| 1 | +++ a/LICENSE | |
| 1 | + GNU GENERAL PUBLIC LICENSE | |
| 2 | + Version 2, June 1991 | |
| 3 | + | |
| 4 | + Copyright (C) 1989, 1991 Free Software Foundation, Inc., | |
| 5 | + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| 6 | + Everyone is permitted to copy and distribute verbatim copies | |
| 7 | + of this license document, but changing it is not allowed. | |
| 8 | + | |
| 9 | + Preamble | |
| 10 | + | |
| 11 | + The licenses for most software are designed to take away your | |
| 12 | +freedom to share and change it. By contrast, the GNU General Public | |
| 13 | +License is intended to guarantee your freedom to share and change free | |
| 14 | +software--to make sure the software is free for all its users. This | |
| 15 | +General Public License applies to most of the Free Software | |
| 16 | +Foundation's software and to any other program whose authors commit to | |
| 17 | +using it. (Some other Free Software Foundation software is covered by | |
| 18 | +the GNU Lesser General Public License instead.) You can apply it to | |
| 19 | +your programs, too. | |
| 20 | + | |
| 21 | + When we speak of free software, we are referring to freedom, not | |
| 22 | +price. Our General Public Licenses are designed to make sure that you | |
| 23 | +have the freedom to distribute copies of free software (and charge for | |
| 24 | +this service if you wish), that you receive source code or can get it | |
| 25 | +if you want it, that you can change the software or use pieces of it | |
| 26 | +in new free programs; and that you know you can do these things. | |
| 27 | + | |
| 28 | + To protect your rights, we need to make restrictions that forbid | |
| 29 | +anyone to deny you these rights or to ask you to surrender the rights. | |
| 30 | +These restrictions translate to certain responsibilities for you if you | |
| 31 | +distribute copies of the software, or if you modify it. | |
| 32 | + | |
| 33 | + For example, if you distribute copies of such a program, whether | |
| 34 | +gratis or for a fee, you must give the recipients all the rights that | |
| 35 | +you have. You must make sure that they, too, receive or can get the | |
| 36 | +source code. And you must show them these terms so they know their | |
| 37 | +rights. | |
| 38 | + | |
| 39 | + We protect your rights with two steps: (1) copyright the software, and | |
| 40 | +(2) offer you this license which gives you legal permission to copy, | |
| 41 | +distribute and/or modify the software. | |
| 42 | + | |
| 43 | + Also, for each author's protection and ours, we want to make certain | |
| 44 | +that everyone understands that there is no warranty for this free | |
| 45 | +software. If the software is modified by someone else and passed on, we | |
| 46 | +want its recipients to know that what they have is not the original, so | |
| 47 | +that any problems introduced by others will not reflect on the original | |
| 48 | +authors' reputations. | |
| 49 | + | |
| 50 | + Finally, any free program is threatened constantly by software | |
| 51 | +patents. We wish to avoid the danger that redistributors of a free | |
| 52 | +program will individually obtain patent licenses, in effect making the | |
| 53 | +program proprietary. To prevent this, we have made it clear that any | |
| 54 | +patent must be licensed for everyone's free use or not licensed at all. | |
| 55 | + | |
| 56 | + The precise terms and conditions for copying, distribution and | |
| 57 | +modification follow. | |
| 58 | + | |
| 59 | + GNU GENERAL PUBLIC LICENSE | |
| 60 | + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
| 61 | + | |
| 62 | + 0. This License applies to any program or other work which contains | |
| 63 | +a notice placed by the copyright holder saying it may be distributed | |
| 64 | +under the terms of this General Public License. The "Program", below, | |
| 65 | +refers to any such program or work, and a "work based on the Program" | |
| 66 | +means either the Program or any derivative work under copyright law: | |
| 67 | +that is to say, a work containing the Program or a portion of it, | |
| 68 | +either verbatim or with modifications and/or translated into another | |
| 69 | +language. (Hereinafter, translation is included without limitation in | |
| 70 | +the term "modification".) Each licensee is addressed as "you". | |
| 71 | + | |
| 72 | +Activities other than copying, distribution and modification are not | |
| 73 | +covered by this License; they are outside its scope. The act of | |
| 74 | +running the Program is not restricted, and the output from the Program | |
| 75 | +is covered only if its contents constitute a work based on the | |
| 76 | +Program (independent of having been made by running the Program). | |
| 77 | +Whether that is true depends on what the Program does. | |
| 78 | + | |
| 79 | + 1. You may copy and distribute verbatim copies of the Program's | |
| 80 | +source code as you receive it, in any medium, provided that you | |
| 81 | +conspicuously and appropriately publish on each copy an appropriate | |
| 82 | +copyright notice and disclaimer of warranty; keep intact all the | |
| 83 | +notices that refer to this License and to the absence of any warranty; | |
| 84 | +and give any other recipients of the Program a copy of this License | |
| 85 | +along with the Program. | |
| 86 | + | |
| 87 | +You may charge a fee for the physical act of transferring a copy, and | |
| 88 | +you may at your option offer warranty protection in exchange for a fee. | |
| 89 | + | |
| 90 | + 2. You may modify your copy or copies of the Program or any portion | |
| 91 | +of it, thus forming a work based on the Program, and copy and | |
| 92 | +distribute such modifications or work under the terms of Section 1 | |
| 93 | +above, provided that you also meet all of these conditions: | |
| 94 | + | |
| 95 | + a) You must cause the modified files to carry prominent notices | |
| 96 | + stating that you changed the files and the date of any change. | |
| 97 | + | |
| 98 | + b) You must cause any work that you distribute or publish, that in | |
| 99 | + whole or in part contains or is derived from the Program or any | |
| 100 | + part thereof, to be licensed as a whole at no charge to all third | |
| 101 | + parties under the terms of this License. | |
| 102 | + | |
| 103 | + c) If the modified program normally reads commands interactively | |
| 104 | + when run, you must cause it, when started running for such | |
| 105 | + interactive use in the most ordinary way, to print or display an | |
| 106 | + announcement including an appropriate copyright notice and a | |
| 107 | + notice that there is no warranty (or else, saying that you provide | |
| 108 | + a warranty) and that users may redistribute the program under | |
| 109 | + these conditions, and telling the user how to view a copy of this | |
| 110 | + License. (Exception: if the Program itself is interactive but | |
| 111 | + does not normally print such an announcement, your work based on | |
| 112 | + the Program is not required to print an announcement.) | |
| 113 | + | |
| 114 | +These requirements apply to the modified work as a whole. If | |
| 115 | +identifiable sections of that work are not derived from the Program, | |
| 116 | +and can be reasonably considered independent and separate works in | |
| 117 | +themselves, then this License, and its terms, do not apply to those | |
| 118 | +sections when you distribute them as separate works. But when you | |
| 119 | +distribute the same sections as part of a whole which is a work based | |
| 120 | +on the Program, the distribution of the whole must be on the terms of | |
| 121 | +this License, whose permissions for other licensees extend to the | |
| 122 | +entire whole, and thus to each and every part regardless of who wrote it. | |
| 123 | + | |
| 124 | +Thus, it is not the intent of this section to claim rights or contest | |
| 125 | +your rights to work written entirely by you; rather, the intent is to | |
| 126 | +exercise the right to control the distribution of derivative or | |
| 127 | +collective works based on the Program. | |
| 128 | + | |
| 129 | +In addition, mere aggregation of another work not based on the Program | |
| 130 | +with the Program (or with a work based on the Program) on a volume of | |
| 131 | +a storage or distribution medium does not bring the other work under | |
| 132 | +the scope of this License. | |
| 133 | + | |
| 134 | + 3. You may copy and distribute the Program (or a work based on it, | |
| 135 | +under Section 2) in object code or executable form under the terms of | |
| 136 | +Sections 1 and 2 above provided that you also do one of the following: | |
| 137 | + | |
| 138 | + a) Accompany it with the complete corresponding machine-readable | |
| 139 | + source code, which must be distributed under the terms of Sections | |
| 140 | + 1 and 2 above on a medium customarily used for software interchange; or, | |
| 141 | + | |
| 142 | + b) Accompany it with a written offer, valid for at least three | |
| 143 | + years, to give any third party, for a charge no more than your | |
| 144 | + cost of physically performing source distribution, a complete | |
| 145 | + machine-readable copy of the corresponding source code, to be | |
| 146 | + distributed under the terms of Sections 1 and 2 above on a medium | |
| 147 | + customarily used for software interchange; or, | |
| 148 | + | |
| 149 | + c) Accompany it with the information you received as to the offer | |
| 150 | + to distribute corresponding source code. (This alternative is | |
| 151 | + allowed only for noncommercial distribution and only if you | |
| 152 | + received the program in object code or executable form with such | |
| 153 | + an offer, in accord with Subsection b above.) | |
| 154 | + | |
| 155 | +The source code for a work means the preferred form of the work for | |
| 156 | +making modifications to it. For an executable work, complete source | |
| 157 | +code means all the source code for all modules it contains, plus any | |
| 158 | +associated interface definition files, plus the scripts used to | |
| 159 | +control compilation and installation of the executable. However, as a | |
| 160 | +special exception, the source code distributed need not include | |
| 161 | +anything that is normally distributed (in either source or binary | |
| 162 | +form) with the major components (compiler, kernel, and so on) of the | |
| 163 | +operating system on which the executable runs, unless that component | |
| 164 | +itself accompanies the executable. | |
| 165 | + | |
| 166 | +If distribution of executable or object code is made by offering | |
| 167 | +access to copy from a designated place, then offering equivalent | |
| 168 | +access to copy the source code from the same place counts as | |
| 169 | +distribution of the source code, even though third parties are not | |
| 170 | +compelled to copy the source along with the object code. | |
| 171 | + | |
| 172 | + 4. You may not copy, modify, sublicense, or distribute the Program | |
| 173 | +except as expressly provided under this License. Any attempt | |
| 174 | +otherwise to copy, modify, sublicense or distribute the Program is | |
| 175 | +void, and will automatically terminate your rights under this License. | |
| 176 | +However, parties who have received copies, or rights, from you under | |
| 177 | +this License will not have their licenses terminated so long as such | |
| 178 | +parties remain in full compliance. | |
| 179 | + | |
| 180 | + 5. You are not required to accept this License, since you have not | |
| 181 | +signed it. However, nothing else grants you permission to modify or | |
| 182 | +distribute the Program or its derivative works. These actions are | |
| 183 | +prohibited by law if you do not accept this License. Therefore, by | |
| 184 | +modifying or distributing the Program (or any work based on the | |
| 185 | +Program), you indicate your acceptance of this License to do so, and | |
| 186 | +all its terms and conditions for copying, distributing or modifying | |
| 187 | +the Program or works based on it. | |
| 188 | + | |
| 189 | + 6. Each time you redistribute the Program (or any work based on the | |
| 190 | +Program), the recipient automatically receives a license from the | |
| 191 | +original licensor to copy, distribute or modify the Program subject to | |
| 192 | +these terms and conditions. You may not impose any further | |
| 193 | +restrictions on the recipients' exercise of the rights granted herein. | |
| 194 | +You are not responsible for enforcing compliance by third parties to | |
| 195 | +this License. | |
| 196 | + | |
| 197 | + 7. If, as a consequence of a court judgment or allegation of patent | |
| 198 | +infringement or for any other reason (not limited to patent issues), | |
| 199 | +conditions are imposed on you (whether by court order, agreement or | |
| 200 | +otherwise) that contradict the conditions of this License, they do not | |
| 201 | +excuse you from the conditions of this License. If you cannot | |
| 202 | +distribute so as to satisfy simultaneously your obligations under this | |
| 203 | +License and any other pertinent obligations, then as a consequence you | |
| 204 | +may not distribute the Program at all. For example, if a patent | |
| 205 | +license would not permit royalty-free redistribution of the Program by | |
| 206 | +all those who receive copies directly or indirectly through you, then | |
| 207 | +the only way you could satisfy both it and this License would be to | |
| 208 | +refrain entirely from distribution of the Program. | |
| 209 | + | |
| 210 | +If any portion of this section is held invalid or unenforceable under | |
| 211 | +any particular circumstance, the balance of the section is intended to | |
| 212 | +apply and the section as a whole is intended to apply in other | |
| 213 | +circumstances. | |
| 214 | + | |
| 215 | +It is not the purpose of this section to induce you to infringe any | |
| 216 | +patents or other property right claims or to contest validity of any | |
| 217 | +such claims; this section has the sole purpose of protecting the | |
| 218 | +integrity of the free software distribution system, which is | |
| 219 | +implemented by public license practices. Many people have made | |
| 220 | +generous contributions to the wide range of software distributed | |
| 221 | +through that system in reliance on consistent application of that | |
| 222 | +system; it is up to the author/donor to decide if he or she is willing | |
| 223 | +to distribute software through any other system and a licensee cannot | |
| 224 | +impose that choice. | |
| 225 | + | |
| 226 | +This section is intended to make thoroughly clear what is believed to | |
| 227 | +be a consequence of the rest of this License. | |
| 228 | + | |
| 229 | + 8. If the distribution and/or use of the Program is restricted in | |
| 230 | +certain countries either by patents or by copyrighted interfaces, the | |
| 231 | +original copyright holder who places the Program under this License | |
| 232 | +may add an explicit geographical distribution limitation excluding | |
| 233 | +those countries, so that distribution is permitted only in or among | |
| 234 | +countries not thus excluded. In such case, this License incorporates | |
| 235 | +the limitation as if written in the body of this License. | |
| 236 | + | |
| 237 | + 9. The Free Software Foundation may publish revised and/or new versions | |
| 238 | +of the General Public License from time to time. Such new versions will | |
| 239 | +be similar in spirit to the present version, but may differ in detail to | |
| 240 | +address new problems or concerns. | |
| 241 | + | |
| 242 | +Each version is given a distinguishing version number. If the Program | |
| 243 | +specifies a version number of this License which applies to it and "any | |
| 244 | +later version", you have the option of following the terms and conditions | |
| 245 | +either of that version or of any later version published by the Free | |
| 246 | +Software Foundation. If the Program does not specify a version number of | |
| 247 | +this License, you may choose any version ever published by the Free Software | |
| 248 | +Foundation. | |
| 249 | + | |
| 250 | + 10. If you wish to incorporate parts of the Program into other free | |
| 251 | +programs whose distribution conditions are different, write to the author | |
| 252 | +to ask for permission. For software which is copyrighted by the Free | |
| 253 | +Software Foundation, write to the Free Software Foundation; we sometimes | |
| 254 | +make exceptions for this. Our decision will be guided by the two goals | |
| 255 | +of preserving the free status of all derivatives of our free software and | |
| 256 | +of promoting the sharing and reuse of software generally. | |
| 257 | + | |
| 258 | + NO WARRANTY | |
| 259 | + | |
| 260 | + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | |
| 261 | +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | |
| 262 | +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | |
| 263 | +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | |
| 264 | +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
| 265 | +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | |
| 266 | +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | |
| 267 | +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | |
| 268 | +REPAIR OR CORRECTION. | |
| 269 | + | |
| 270 | + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
| 271 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | |
| 272 | +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | |
| 273 | +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | |
| 274 | +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | |
| 275 | +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | |
| 276 | +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
| 277 | +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | |
| 278 | +POSSIBILITY OF SUCH DAMAGES. | |
| 279 | + | |
| 280 | + END OF TERMS AND CONDITIONS | |
| 281 | + | |
| 282 | + How to Apply These Terms to Your New Programs | |
| 283 | + | |
| 284 | + If you develop a new program, and you want it to be of the greatest | |
| 285 | +possible use to the public, the best way to achieve this is to make it | |
| 286 | +free software which everyone can redistribute and change under these terms. | |
| 287 | + | |
| 288 | + To do so, attach the following notices to the program. It is safest | |
| 289 | +to attach them to the start of each source file to most effectively | |
| 290 | +convey the exclusion of warranty; and each file should have at least | |
| 291 | +the "copyright" line and a pointer to where the full notice is found. | |
| 292 | + | |
| 293 | + <one line to give the program's name and a brief idea of what it does.> | |
| 294 | + Copyright (C) <year> <name of author> | |
| 295 | + | |
| 296 | + This program is free software; you can redistribute it and/or modify | |
| 297 | + it under the terms of the GNU General Public License as published by | |
| 298 | + the Free Software Foundation; either version 2 of the License, or | |
| 299 | + (at your option) any later version. | |
| 300 | + | |
| 301 | + This program is distributed in the hope that it will be useful, | |
| 302 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 303 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 304 | + GNU General Public License for more details. | |
| 305 | + | |
| 306 | + You should have received a copy of the GNU General Public License along | |
| 307 | + with this program; if not, write to the Free Software Foundation, Inc., | |
| 308 | + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
| 309 | + | |
| 310 | +Also add information on how to contact you by electronic and paper mail. | |
| 311 | + | |
| 312 | +If the program is interactive, make it output a short notice like this | |
| 313 | +when it starts in an interactive mode: | |
| 314 | + | |
| 315 | + Gnomovision version 69, Copyright (C) year name of author | |
| 316 | + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
| 317 | + This is free software, and you are welcome to redistribute it | |
| 318 | + under certain conditions; type `show c' for details. | |
| 319 | + | |
| 320 | +The hypothetical commands `show w' and `show c' should show the appropriate | |
| 321 | +parts of the General Public License. Of course, the commands you use may | |
| 322 | +be called something other than `show w' and `show c'; they could even be | |
| 323 | +mouse-clicks or menu items--whatever suits your program. | |
| 324 | + | |
| 325 | +You should also get your employer (if you work as a programmer) or your | |
| 326 | +school, if any, to sign a "copyright disclaimer" for the program, if | |
| 327 | +necessary. Here is a sample; alter the names: | |
| 328 | + | |
| 329 | + Yoyodyne, Inc., hereby disclaims all copyright interest in the program | |
| 330 | + `Gnomovision' (which makes passes at compilers) written by James Hacker. | |
| 331 | + | |
| 332 | + <signature of Ty Coon>, 1 April 1989 | |
| 333 | + Ty Coon, President of Vice | |
| 334 | + | |
| 335 | +This General Public License does not permit incorporating your program into | |
| 336 | +proprietary programs. If your program is a subroutine library, you may | |
| 337 | +consider it more useful to permit linking proprietary applications with the | |
| 338 | +library. If this is what you want to do, use the GNU Lesser General | |
| 339 | +Public License instead of this License. | ... | ... |
Myre.pro
0 → 100644
| 1 | +++ a/Myre.pro | |
| 1 | +QT += core gui | |
| 2 | + | |
| 3 | +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | |
| 4 | + | |
| 5 | +CONFIG += c++11 | |
| 6 | + | |
| 7 | +# The following define makes your compiler emit warnings if you use | |
| 8 | +# any Qt feature that has been marked deprecated (the exact warnings | |
| 9 | +# depend on your compiler). Please consult the documentation of the | |
| 10 | +# deprecated API in order to know how to port your code away from it. | |
| 11 | +DEFINES += QT_DEPRECATED_WARNINGS | |
| 12 | + | |
| 13 | +# You can also make your code fail to compile if it uses deprecated APIs. | |
| 14 | +# In order to do so, uncomment the following line. | |
| 15 | +# You can also select to disable deprecated APIs only up to a certain version of Qt. | |
| 16 | +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 | |
| 17 | + | |
| 18 | +SOURCES += \ | |
| 19 | + main.cpp \ | |
| 20 | + myre.cpp | |
| 21 | + | |
| 22 | +HEADERS += \ | |
| 23 | + EasyQJson.h \ | |
| 24 | + common.h \ | |
| 25 | + myre.h | |
| 26 | + | |
| 27 | +FORMS += \ | |
| 28 | + myre.ui | |
| 29 | + | |
| 30 | +# Default rules for deployment. | |
| 31 | +qnx: target.path = /tmp/$${TARGET}/bin | |
| 32 | +else: unix:!android: target.path = /opt/$${TARGET}/bin | |
| 33 | +!isEmpty(target.path): INSTALLS += target | |
| 34 | + | |
| 35 | +DISTFILES += \ | |
| 36 | + RegExp.json | ... | ... |
Myre.pro.user
0 → 100644
| 1 | +++ a/Myre.pro.user | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE QtCreatorProject> | |
| 3 | +<!-- Written by QtCreator 4.12.2, 2021-04-14T10:35:28. --> | |
| 4 | +<qtcreator> | |
| 5 | + <data> | |
| 6 | + <variable>EnvironmentId</variable> | |
| 7 | + <value type="QByteArray">{54cdc97b-c652-44e0-9a5c-0bf57b73d600}</value> | |
| 8 | + </data> | |
| 9 | + <data> | |
| 10 | + <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
| 11 | + <value type="int">0</value> | |
| 12 | + </data> | |
| 13 | + <data> | |
| 14 | + <variable>ProjectExplorer.Project.EditorSettings</variable> | |
| 15 | + <valuemap type="QVariantMap"> | |
| 16 | + <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
| 17 | + <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
| 18 | + <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
| 19 | + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
| 20 | + <value type="QString" key="language">Cpp</value> | |
| 21 | + <valuemap type="QVariantMap" key="value"> | |
| 22 | + <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> | |
| 23 | + </valuemap> | |
| 24 | + </valuemap> | |
| 25 | + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
| 26 | + <value type="QString" key="language">QmlJS</value> | |
| 27 | + <valuemap type="QVariantMap" key="value"> | |
| 28 | + <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> | |
| 29 | + </valuemap> | |
| 30 | + </valuemap> | |
| 31 | + <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
| 32 | + <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> | |
| 33 | + <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
| 34 | + <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
| 35 | + <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
| 36 | + <value type="int" key="EditorConfiguration.MarginColumn">80</value> | |
| 37 | + <value type="bool" key="EditorConfiguration.MouseHiding">true</value> | |
| 38 | + <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
| 39 | + <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
| 40 | + <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
| 41 | + <value type="bool" key="EditorConfiguration.ShowMargin">false</value> | |
| 42 | + <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
| 43 | + <value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value> | |
| 44 | + <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
| 45 | + <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
| 46 | + <value type="int" key="EditorConfiguration.TabSize">8</value> | |
| 47 | + <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
| 48 | + <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
| 49 | + <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
| 50 | + <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
| 51 | + <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
| 52 | + <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
| 53 | + </valuemap> | |
| 54 | + </data> | |
| 55 | + <data> | |
| 56 | + <variable>ProjectExplorer.Project.PluginSettings</variable> | |
| 57 | + <valuemap type="QVariantMap"> | |
| 58 | + <valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey"> | |
| 59 | + <value type="QString">-fno-delayed-template-parsing</value> | |
| 60 | + </valuelist> | |
| 61 | + <value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value> | |
| 62 | + <value type="QString" key="ClangCodeModel.WarningConfigId">Builtin.Questionable</value> | |
| 63 | + <valuemap type="QVariantMap" key="ClangTools"> | |
| 64 | + <value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value> | |
| 65 | + <value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value> | |
| 66 | + <value type="int" key="ClangTools.ParallelJobs">2</value> | |
| 67 | + <valuelist type="QVariantList" key="ClangTools.SelectedDirs"/> | |
| 68 | + <valuelist type="QVariantList" key="ClangTools.SelectedFiles"/> | |
| 69 | + <valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/> | |
| 70 | + <value type="bool" key="ClangTools.UseGlobalSettings">true</value> | |
| 71 | + </valuemap> | |
| 72 | + </valuemap> | |
| 73 | + </data> | |
| 74 | + <data> | |
| 75 | + <variable>ProjectExplorer.Project.Target.0</variable> | |
| 76 | + <valuemap type="QVariantMap"> | |
| 77 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.12.9 MinGW 64-bit</value> | |
| 78 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.12.9 MinGW 64-bit</value> | |
| 79 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5129.win64_mingw73_kit</value> | |
| 80 | + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
| 81 | + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
| 82 | + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
| 83 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
| 84 | + <value type="bool">true</value> | |
| 85 | + <value type="int" key="EnableQmlDebugging">0</value> | |
| 86 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\xiesh\Desktop\study\QT\zhengze\build-Myre-Desktop_Qt_5_12_9_MinGW_64_bit-Debug</value> | |
| 87 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/xiesh/Desktop/study/QT/zhengze/build-Myre-Desktop_Qt_5_12_9_MinGW_64_bit-Debug</value> | |
| 88 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 89 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 90 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 91 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
| 92 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
| 93 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
| 94 | + <valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/> | |
| 95 | + </valuemap> | |
| 96 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
| 97 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 98 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 99 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 100 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
| 101 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
| 102 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 103 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 104 | + </valuemap> | |
| 105 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
| 106 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
| 107 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | |
| 108 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
| 109 | + </valuemap> | |
| 110 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
| 111 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 112 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 113 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 114 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 115 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
| 116 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
| 117 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 118 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 119 | + </valuemap> | |
| 120 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
| 121 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
| 122 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | |
| 123 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
| 124 | + </valuemap> | |
| 125 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
| 126 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
| 127 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
| 128 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value> | |
| 129 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
| 130 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
| 131 | + <value type="int" key="QtQuickCompiler">2</value> | |
| 132 | + <value type="int" key="SeparateDebugInfo">2</value> | |
| 133 | + </valuemap> | |
| 134 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
| 135 | + <value type="bool">true</value> | |
| 136 | + <value type="int" key="EnableQmlDebugging">2</value> | |
| 137 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\xiesh\Desktop\study\QT\zhengze\build-Myre-Desktop_Qt_5_12_9_MinGW_64_bit-Release</value> | |
| 138 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/xiesh/Desktop/study/QT/zhengze/build-Myre-Desktop_Qt_5_12_9_MinGW_64_bit-Release</value> | |
| 139 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 140 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 141 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 142 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
| 143 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
| 144 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
| 145 | + <valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/> | |
| 146 | + </valuemap> | |
| 147 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
| 148 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 149 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 150 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 151 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
| 152 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
| 153 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 154 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 155 | + </valuemap> | |
| 156 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
| 157 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
| 158 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | |
| 159 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
| 160 | + </valuemap> | |
| 161 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
| 162 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 163 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 164 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 165 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 166 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
| 167 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
| 168 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 169 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 170 | + </valuemap> | |
| 171 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
| 172 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
| 173 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | |
| 174 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
| 175 | + </valuemap> | |
| 176 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
| 177 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
| 178 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
| 179 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value> | |
| 180 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
| 181 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
| 182 | + <value type="int" key="QtQuickCompiler">0</value> | |
| 183 | + <value type="int" key="SeparateDebugInfo">2</value> | |
| 184 | + </valuemap> | |
| 185 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> | |
| 186 | + <value type="bool">true</value> | |
| 187 | + <value type="int" key="EnableQmlDebugging">0</value> | |
| 188 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\xiesh\Desktop\study\QT\zhengze\build-Myre-Desktop_Qt_5_12_9_MinGW_64_bit-Profile</value> | |
| 189 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/xiesh/Desktop/study/QT/zhengze/build-Myre-Desktop_Qt_5_12_9_MinGW_64_bit-Profile</value> | |
| 190 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 191 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 192 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 193 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
| 194 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
| 195 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
| 196 | + <valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/> | |
| 197 | + </valuemap> | |
| 198 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
| 199 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 200 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 201 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 202 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
| 203 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
| 204 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 205 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 206 | + </valuemap> | |
| 207 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
| 208 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
| 209 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | |
| 210 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
| 211 | + </valuemap> | |
| 212 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
| 213 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 214 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 215 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 216 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 217 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
| 218 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
| 219 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 220 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 221 | + </valuemap> | |
| 222 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
| 223 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
| 224 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | |
| 225 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
| 226 | + </valuemap> | |
| 227 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
| 228 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
| 229 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
| 230 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value> | |
| 231 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
| 232 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
| 233 | + <value type="int" key="QtQuickCompiler">0</value> | |
| 234 | + <value type="int" key="SeparateDebugInfo">0</value> | |
| 235 | + </valuemap> | |
| 236 | + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> | |
| 237 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
| 238 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 239 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
| 240 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
| 241 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value> | |
| 242 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
| 243 | + </valuemap> | |
| 244 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
| 245 | + <valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/> | |
| 246 | + <value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value> | |
| 247 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
| 248 | + </valuemap> | |
| 249 | + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
| 250 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | |
| 251 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
| 252 | + <value type="QString" key="Analyzer.Perf.CallgraphMode">dwarf</value> | |
| 253 | + <valuelist type="QVariantList" key="Analyzer.Perf.Events"> | |
| 254 | + <value type="QString">cpu-cycles</value> | |
| 255 | + </valuelist> | |
| 256 | + <valuelist type="QVariantList" key="Analyzer.Perf.ExtraArguments"/> | |
| 257 | + <value type="int" key="Analyzer.Perf.Frequency">250</value> | |
| 258 | + <valuelist type="QVariantList" key="Analyzer.Perf.RecordArguments"> | |
| 259 | + <value type="QString">-e</value> | |
| 260 | + <value type="QString">cpu-cycles</value> | |
| 261 | + <value type="QString">--call-graph</value> | |
| 262 | + <value type="QString">dwarf,4096</value> | |
| 263 | + <value type="QString">-F</value> | |
| 264 | + <value type="QString">250</value> | |
| 265 | + </valuelist> | |
| 266 | + <value type="QString" key="Analyzer.Perf.SampleMode">-F</value> | |
| 267 | + <value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value> | |
| 268 | + <value type="int" key="Analyzer.Perf.StackSize">4096</value> | |
| 269 | + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> | |
| 270 | + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> | |
| 271 | + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> | |
| 272 | + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> | |
| 273 | + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> | |
| 274 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
| 275 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
| 276 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
| 277 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
| 278 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
| 279 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
| 280 | + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
| 281 | + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
| 282 | + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
| 283 | + <value type="QString" key="Analyzer.Valgrind.KCachegrindExecutable">kcachegrind</value> | |
| 284 | + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> | |
| 285 | + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
| 286 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
| 287 | + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> | |
| 288 | + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | |
| 289 | + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> | |
| 290 | + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
| 291 | + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
| 292 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
| 293 | + <value type="int">0</value> | |
| 294 | + <value type="int">1</value> | |
| 295 | + <value type="int">2</value> | |
| 296 | + <value type="int">3</value> | |
| 297 | + <value type="int">4</value> | |
| 298 | + <value type="int">5</value> | |
| 299 | + <value type="int">6</value> | |
| 300 | + <value type="int">7</value> | |
| 301 | + <value type="int">8</value> | |
| 302 | + <value type="int">9</value> | |
| 303 | + <value type="int">10</value> | |
| 304 | + <value type="int">11</value> | |
| 305 | + <value type="int">12</value> | |
| 306 | + <value type="int">13</value> | |
| 307 | + <value type="int">14</value> | |
| 308 | + </valuelist> | |
| 309 | + <value type="int" key="PE.EnvironmentAspect.Base">2</value> | |
| 310 | + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
| 311 | + <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> | |
| 312 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
| 313 | + <value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey"></value> | |
| 314 | + <value type="QString" key="RunConfiguration.Arguments"></value> | |
| 315 | + <value type="bool" key="RunConfiguration.Arguments.multi">false</value> | |
| 316 | + <value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value> | |
| 317 | + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> | |
| 318 | + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> | |
| 319 | + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
| 320 | + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
| 321 | + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | |
| 322 | + <value type="QString" key="RunConfiguration.WorkingDirectory"></value> | |
| 323 | + <value type="QString" key="RunConfiguration.WorkingDirectory.default"></value> | |
| 324 | + </valuemap> | |
| 325 | + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
| 326 | + </valuemap> | |
| 327 | + </data> | |
| 328 | + <data> | |
| 329 | + <variable>ProjectExplorer.Project.TargetCount</variable> | |
| 330 | + <value type="int">1</value> | |
| 331 | + </data> | |
| 332 | + <data> | |
| 333 | + <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
| 334 | + <value type="int">22</value> | |
| 335 | + </data> | |
| 336 | + <data> | |
| 337 | + <variable>Version</variable> | |
| 338 | + <value type="int">22</value> | |
| 339 | + </data> | |
| 340 | +</qtcreator> | ... | ... |
Myre.pro.user.e6e3513
0 → 100644
| 1 | +++ a/Myre.pro.user.e6e3513 | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE QtCreatorProject> | |
| 3 | +<!-- Written by QtCreator 4.11.1, 2020-05-20T09:19:36. --> | |
| 4 | +<qtcreator> | |
| 5 | + <data> | |
| 6 | + <variable>EnvironmentId</variable> | |
| 7 | + <value type="QByteArray">{e6e3513a-8a4d-42b2-830e-25f027c55e9a}</value> | |
| 8 | + </data> | |
| 9 | + <data> | |
| 10 | + <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
| 11 | + <value type="int">0</value> | |
| 12 | + </data> | |
| 13 | + <data> | |
| 14 | + <variable>ProjectExplorer.Project.EditorSettings</variable> | |
| 15 | + <valuemap type="QVariantMap"> | |
| 16 | + <value type="bool" key="EditorConfiguration.AutoIndent">true</value> | |
| 17 | + <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> | |
| 18 | + <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value> | |
| 19 | + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
| 20 | + <value type="QString" key="language">Cpp</value> | |
| 21 | + <valuemap type="QVariantMap" key="value"> | |
| 22 | + <value type="QByteArray" key="CurrentPreferences">CppGlobal</value> | |
| 23 | + </valuemap> | |
| 24 | + </valuemap> | |
| 25 | + <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
| 26 | + <value type="QString" key="language">QmlJS</value> | |
| 27 | + <valuemap type="QVariantMap" key="value"> | |
| 28 | + <value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value> | |
| 29 | + </valuemap> | |
| 30 | + </valuemap> | |
| 31 | + <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
| 32 | + <value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value> | |
| 33 | + <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
| 34 | + <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
| 35 | + <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value> | |
| 36 | + <value type="int" key="EditorConfiguration.MarginColumn">80</value> | |
| 37 | + <value type="bool" key="EditorConfiguration.MouseHiding">true</value> | |
| 38 | + <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
| 39 | + <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
| 40 | + <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
| 41 | + <value type="bool" key="EditorConfiguration.ShowMargin">false</value> | |
| 42 | + <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
| 43 | + <value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value> | |
| 44 | + <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
| 45 | + <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
| 46 | + <value type="int" key="EditorConfiguration.TabSize">8</value> | |
| 47 | + <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
| 48 | + <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
| 49 | + <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
| 50 | + <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
| 51 | + <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
| 52 | + <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
| 53 | + </valuemap> | |
| 54 | + </data> | |
| 55 | + <data> | |
| 56 | + <variable>ProjectExplorer.Project.PluginSettings</variable> | |
| 57 | + <valuemap type="QVariantMap"> | |
| 58 | + <valuelist type="QVariantList" key="ClangCodeModel.CustomCommandLineKey"> | |
| 59 | + <value type="QString">-fno-delayed-template-parsing</value> | |
| 60 | + </valuelist> | |
| 61 | + <value type="bool" key="ClangCodeModel.UseGlobalConfig">true</value> | |
| 62 | + </valuemap> | |
| 63 | + </data> | |
| 64 | + <data> | |
| 65 | + <variable>ProjectExplorer.Project.Target.0</variable> | |
| 66 | + <valuemap type="QVariantMap"> | |
| 67 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.14.2 MinGW 64-bit</value> | |
| 68 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.14.2 MinGW 64-bit</value> | |
| 69 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5142.win64_mingw73_kit</value> | |
| 70 | + <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value> | |
| 71 | + <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
| 72 | + <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
| 73 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
| 74 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:/build-Myre-Desktop_Qt_5_14_2_MinGW_64_bit-Debug</value> | |
| 75 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 76 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 77 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 78 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
| 79 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> | |
| 80 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
| 81 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
| 82 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> | |
| 83 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> | |
| 84 | + </valuemap> | |
| 85 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
| 86 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 87 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 88 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 89 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
| 90 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
| 91 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 92 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 93 | + </valuemap> | |
| 94 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
| 95 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
| 96 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | |
| 97 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
| 98 | + </valuemap> | |
| 99 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
| 100 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 101 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 102 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 103 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 104 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
| 105 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
| 106 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 107 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 108 | + </valuemap> | |
| 109 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
| 110 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
| 111 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | |
| 112 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
| 113 | + </valuemap> | |
| 114 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
| 115 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
| 116 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
| 117 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value> | |
| 118 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
| 119 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
| 120 | + </valuemap> | |
| 121 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
| 122 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:/build-Myre-Desktop_Qt_5_14_2_MinGW_64_bit-Release</value> | |
| 123 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 124 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 125 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 126 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
| 127 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
| 128 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
| 129 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
| 130 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> | |
| 131 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">true</value> | |
| 132 | + </valuemap> | |
| 133 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
| 134 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 135 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 136 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 137 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
| 138 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
| 139 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 140 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 141 | + </valuemap> | |
| 142 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
| 143 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
| 144 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | |
| 145 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
| 146 | + </valuemap> | |
| 147 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
| 148 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 149 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 150 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 151 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 152 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
| 153 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
| 154 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 155 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 156 | + </valuemap> | |
| 157 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
| 158 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
| 159 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | |
| 160 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
| 161 | + </valuemap> | |
| 162 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
| 163 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
| 164 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
| 165 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value> | |
| 166 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
| 167 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
| 168 | + </valuemap> | |
| 169 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2"> | |
| 170 | + <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:/build-Myre-Desktop_Qt_5_14_2_MinGW_64_bit-Profile</value> | |
| 171 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 172 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 173 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 174 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
| 175 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> | |
| 176 | + <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
| 177 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
| 178 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value> | |
| 179 | + <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">true</value> | |
| 180 | + </valuemap> | |
| 181 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
| 182 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 183 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 184 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 185 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
| 186 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
| 187 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 188 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 189 | + </valuemap> | |
| 190 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
| 191 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
| 192 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Build</value> | |
| 193 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
| 194 | + </valuemap> | |
| 195 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
| 196 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
| 197 | + <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value> | |
| 198 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
| 199 | + <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.BuildTargets"/> | |
| 200 | + <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
| 201 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
| 202 | + <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
| 203 | + <value type="bool" key="Qt4ProjectManager.MakeStep.OverrideMakeflags">false</value> | |
| 204 | + </valuemap> | |
| 205 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
| 206 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
| 207 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Clean</value> | |
| 208 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
| 209 | + </valuemap> | |
| 210 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
| 211 | + <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
| 212 | + <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
| 213 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value> | |
| 214 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
| 215 | + <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
| 216 | + </valuemap> | |
| 217 | + <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value> | |
| 218 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
| 219 | + <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
| 220 | + <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
| 221 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
| 222 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value> | |
| 223 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
| 224 | + </valuemap> | |
| 225 | + <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
| 226 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
| 227 | + </valuemap> | |
| 228 | + <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
| 229 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | |
| 230 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
| 231 | + <value type="QString" key="Analyzer.Perf.CallgraphMode">dwarf</value> | |
| 232 | + <valuelist type="QVariantList" key="Analyzer.Perf.Events"> | |
| 233 | + <value type="QString">cpu-cycles</value> | |
| 234 | + </valuelist> | |
| 235 | + <valuelist type="QVariantList" key="Analyzer.Perf.ExtraArguments"/> | |
| 236 | + <value type="int" key="Analyzer.Perf.Frequency">250</value> | |
| 237 | + <valuelist type="QVariantList" key="Analyzer.Perf.RecordArguments"> | |
| 238 | + <value type="QString">-e</value> | |
| 239 | + <value type="QString">cpu-cycles</value> | |
| 240 | + <value type="QString">--call-graph</value> | |
| 241 | + <value type="QString">dwarf,4096</value> | |
| 242 | + <value type="QString">-F</value> | |
| 243 | + <value type="QString">250</value> | |
| 244 | + </valuelist> | |
| 245 | + <value type="QString" key="Analyzer.Perf.SampleMode">-F</value> | |
| 246 | + <value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value> | |
| 247 | + <value type="int" key="Analyzer.Perf.StackSize">4096</value> | |
| 248 | + <value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value> | |
| 249 | + <value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value> | |
| 250 | + <value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value> | |
| 251 | + <value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value> | |
| 252 | + <value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value> | |
| 253 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
| 254 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
| 255 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
| 256 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
| 257 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
| 258 | + <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
| 259 | + <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
| 260 | + <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
| 261 | + <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
| 262 | + <value type="QString" key="Analyzer.Valgrind.KCachegrindExecutable">kcachegrind</value> | |
| 263 | + <value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value> | |
| 264 | + <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
| 265 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
| 266 | + <value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value> | |
| 267 | + <value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value> | |
| 268 | + <value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value> | |
| 269 | + <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
| 270 | + <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
| 271 | + <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
| 272 | + <value type="int">0</value> | |
| 273 | + <value type="int">1</value> | |
| 274 | + <value type="int">2</value> | |
| 275 | + <value type="int">3</value> | |
| 276 | + <value type="int">4</value> | |
| 277 | + <value type="int">5</value> | |
| 278 | + <value type="int">6</value> | |
| 279 | + <value type="int">7</value> | |
| 280 | + <value type="int">8</value> | |
| 281 | + <value type="int">9</value> | |
| 282 | + <value type="int">10</value> | |
| 283 | + <value type="int">11</value> | |
| 284 | + <value type="int">12</value> | |
| 285 | + <value type="int">13</value> | |
| 286 | + <value type="int">14</value> | |
| 287 | + </valuelist> | |
| 288 | + <value type="int" key="PE.EnvironmentAspect.Base">2</value> | |
| 289 | + <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/> | |
| 290 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:E:/Myre/Myre.pro</value> | |
| 291 | + <value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">E:/Myre/Myre.pro</value> | |
| 292 | + <value type="QString" key="RunConfiguration.Arguments"></value> | |
| 293 | + <value type="bool" key="RunConfiguration.Arguments.multi">false</value> | |
| 294 | + <value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value> | |
| 295 | + <value type="bool" key="RunConfiguration.UseCppDebugger">false</value> | |
| 296 | + <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> | |
| 297 | + <value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value> | |
| 298 | + <value type="bool" key="RunConfiguration.UseMultiProcess">false</value> | |
| 299 | + <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
| 300 | + <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | |
| 301 | + <value type="QString" key="RunConfiguration.WorkingDirectory"></value> | |
| 302 | + <value type="QString" key="RunConfiguration.WorkingDirectory.default">E:/build-Myre-Desktop_Qt_5_14_2_MinGW_64_bit-Release</value> | |
| 303 | + </valuemap> | |
| 304 | + <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
| 305 | + </valuemap> | |
| 306 | + </data> | |
| 307 | + <data> | |
| 308 | + <variable>ProjectExplorer.Project.TargetCount</variable> | |
| 309 | + <value type="int">1</value> | |
| 310 | + </data> | |
| 311 | + <data> | |
| 312 | + <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
| 313 | + <value type="int">22</value> | |
| 314 | + </data> | |
| 315 | + <data> | |
| 316 | + <variable>Version</variable> | |
| 317 | + <value type="int">22</value> | |
| 318 | + </data> | |
| 319 | +</qtcreator> | ... | ... |
README.en.md
0 → 100644
| 1 | +++ a/README.en.md | |
| 1 | +# Myre | |
| 2 | + | |
| 3 | +#### Description | |
| 4 | +可视化的正则表达式工具 | |
| 5 | + | |
| 6 | +#### Software Architecture | |
| 7 | +Software architecture description | |
| 8 | + | |
| 9 | +#### Installation | |
| 10 | + | |
| 11 | +1. xxxx | |
| 12 | +2. xxxx | |
| 13 | +3. xxxx | |
| 14 | + | |
| 15 | +#### Instructions | |
| 16 | + | |
| 17 | +1. xxxx | |
| 18 | +2. xxxx | |
| 19 | +3. xxxx | |
| 20 | + | |
| 21 | +#### Contribution | |
| 22 | + | |
| 23 | +1. Fork the repository | |
| 24 | +2. Create Feat_xxx branch | |
| 25 | +3. Commit your code | |
| 26 | +4. Create Pull Request | |
| 27 | + | |
| 28 | + | |
| 29 | +#### Gitee Feature | |
| 30 | + | |
| 31 | +1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md | |
| 32 | +2. Gitee blog [blog.gitee.com](https://blog.gitee.com) | |
| 33 | +3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) | |
| 34 | +4. The most valuable open source project [GVP](https://gitee.com/gvp) | |
| 35 | +5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) | |
| 36 | +6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) | ... | ... |
README.md
0 → 100644
| 1 | +++ a/README.md | |
| 1 | +# Myre | |
| 2 | + | |
| 3 | +#### 介绍 | |
| 4 | +可视化的正则表达式工具 | |
| 5 | + | |
| 6 | +#### 软件架构 | |
| 7 | +软件架构说明 | |
| 8 | + | |
| 9 | + | |
| 10 | +#### 安装教程 | |
| 11 | + | |
| 12 | +1. xxxx | |
| 13 | +2. xxxx | |
| 14 | +3. xxxx | |
| 15 | + | |
| 16 | +#### 使用说明 | |
| 17 | + | |
| 18 | +1. xxxx | |
| 19 | +2. xxxx | |
| 20 | +3. xxxx | |
| 21 | + | |
| 22 | +#### 参与贡献 | |
| 23 | + | |
| 24 | +1. Fork 本仓库 | |
| 25 | +2. 新建 Feat_xxx 分支 | |
| 26 | +3. 提交代码 | |
| 27 | +4. 新建 Pull Request | |
| 28 | + | |
| 29 | + | |
| 30 | +#### 码云特技 | |
| 31 | + | |
| 32 | +1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md | |
| 33 | +2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) | |
| 34 | +3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 | |
| 35 | +4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 | |
| 36 | +5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) | |
| 37 | +6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) | ... | ... |
RegExp.json
0 → 100644
| 1 | +++ a/RegExp.json | |
| 1 | +{ | |
| 2 | + "Array" : [ | |
| 3 | + { | |
| 4 | + "name" : "字符串匹配", | |
| 5 | + "value" : "\\b填写字符串\\b" | |
| 6 | + }, | |
| 7 | + { | |
| 8 | + "name" : "匹配QQ号", | |
| 9 | + "value":"[1-9][0-9]{4,}" | |
| 10 | + }, | |
| 11 | + { | |
| 12 | + "name" : "匹配整数", | |
| 13 | + "value": "^-?[1-9]\\d*$" | |
| 14 | + }, | |
| 15 | + { | |
| 16 | + "name" : "匹配邮箱地址", | |
| 17 | + "value": "[\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.[\\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[\\w](?:[\\w-]*[\\w])?" | |
| 18 | + }, | |
| 19 | + { | |
| 20 | + "name" : "匹配国内电话号码", | |
| 21 | + "value": "\\d{3}-\\d{8}|\\d{4}-\\{7,8}" | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + "name" : "匹配中文字符", | |
| 25 | + "value": "[\\u4e00-\\u9fa5]" | |
| 26 | + }, | |
| 27 | + { | |
| 28 | + "name" : "m-n位的数字", | |
| 29 | + "value": "^\\d{m,n}$" | |
| 30 | + }, | |
| 31 | + { | |
| 32 | + "name" : "正数、负数、和小数", | |
| 33 | + "value": "^(\\-|\\+)?\\d+(\\.\\d+)?$" | |
| 34 | + }, | |
| 35 | + { | |
| 36 | + "name" : "汉字", | |
| 37 | + "value": "^[\\u4e00-\\u9fa5]{0,}$" | |
| 38 | + } | |
| 39 | + ] | |
| 40 | +} | ... | ... |
common.h
0 → 100644
| 1 | +++ a/common.h | |
| 1 | +#ifndef COMMON_H | |
| 2 | +#define COMMON_H | |
| 3 | +#include<QtDebug> | |
| 4 | + | |
| 5 | +#include<QMessageBox> | |
| 6 | +#include<QTreeView> | |
| 7 | +#include<QTextEdit> | |
| 8 | +#include<QStringList> | |
| 9 | +#include"EasyQJson.h" | |
| 10 | +#include<QStandardItemModel> | |
| 11 | +#ifdef QT_NO_DEBUG | |
| 12 | +const QString myfilename = "./RegExp.json"; | |
| 13 | +#else | |
| 14 | +//const QString myfilename = "/Users/hideyoshi/Desktop/codes/Myre/RegExp.json"; | |
| 15 | +const QString myfilename = "E:\\Myre\\RegExp.json"; | |
| 16 | + | |
| 17 | +#endif | |
| 18 | +#endif // COMMON_H | ... | ... |
main.cpp
0 → 100644
myre.cpp
0 → 100644
| 1 | +++ a/myre.cpp | |
| 1 | +#include "myre.h" | |
| 2 | +#include "ui_myre.h" | |
| 3 | +Myre::Myre(QWidget *parent) | |
| 4 | + : QMainWindow(parent) | |
| 5 | + , ui(new Ui::Myre) | |
| 6 | +{ | |
| 7 | + ui->setupUi(this); | |
| 8 | + setFixedSize(800,600); | |
| 9 | + init_myre(); | |
| 10 | +} | |
| 11 | + | |
| 12 | +Myre::~Myre() | |
| 13 | +{ | |
| 14 | + delete ui; | |
| 15 | +} | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | +void Myre::on_pushButton_exit_clicked() | |
| 20 | +{ | |
| 21 | + close(); | |
| 22 | +} | |
| 23 | + | |
| 24 | +void Myre::init_myre() | |
| 25 | +{ | |
| 26 | + rootObject = myjson.readJsonFileReturnObject(myfilename); | |
| 27 | + rootArray = myjson.readJsonObjectReturnArray(rootObject,"Array"); | |
| 28 | + | |
| 29 | + QStandardItemModel *model = new QStandardItemModel; | |
| 30 | + for(int i=0;i<rootArray.size();i++) | |
| 31 | + { | |
| 32 | + QJsonValue value = rootArray.at(i); | |
| 33 | + | |
| 34 | + QStandardItem *item = new QStandardItem(value["name"].toString()); | |
| 35 | + Regs<<value["name"].toString(); | |
| 36 | + RegValue<<value["value"].toString(); | |
| 37 | + model->appendRow(item); | |
| 38 | + } | |
| 39 | + ui->listView->setModel(model); | |
| 40 | + ui->listView->repaint(); | |
| 41 | + ui->listView->setEditTriggers(nullptr); | |
| 42 | +} | |
| 43 | + | |
| 44 | +void Myre::on_pushButton_excute_clicked() | |
| 45 | +{ | |
| 46 | + ui->textEdit_result->clear(); | |
| 47 | + QString src = ui->textEdit_text->toPlainText(); | |
| 48 | + QString target = ui->lineEdit->text(); | |
| 49 | + qDebug()<<target; | |
| 50 | + if(src.length()==0) | |
| 51 | + { | |
| 52 | + ui->textEdit_result->setText("未找到匹配"); | |
| 53 | + ui->textEdit_result->repaint(); | |
| 54 | + return; | |
| 55 | + } | |
| 56 | + ui->textEdit_result->clear(); | |
| 57 | + ui->textEdit_result->repaint(); | |
| 58 | + QRegExp rx(target); | |
| 59 | + Qt::CaseSensitivity cs = Qt::CaseInsensitive; | |
| 60 | + if (ui->checkBox_sensetivity->isChecked()) | |
| 61 | + cs = Qt::CaseSensitive; | |
| 62 | + rx.setCaseSensitivity(cs); | |
| 63 | + rx.setMinimal(ui->checkBox_min->isChecked()); | |
| 64 | + QString synax = ui->comboBox_pattern->currentText(); | |
| 65 | + | |
| 66 | + if(synax == "Regular expression V1") | |
| 67 | + { | |
| 68 | + rx.setPatternSyntax(QRegExp::RegExp); | |
| 69 | + } | |
| 70 | + else if(synax == "Regular expression V2") | |
| 71 | + { | |
| 72 | + rx.setPatternSyntax(QRegExp::RegExp2); | |
| 73 | + } | |
| 74 | + else if(synax == "WildCard") | |
| 75 | + { | |
| 76 | + rx.setPatternSyntax(QRegExp::Wildcard); | |
| 77 | + } | |
| 78 | + else if(synax == "Fixed string") | |
| 79 | + { | |
| 80 | + rx.setPatternSyntax(QRegExp::FixedString); | |
| 81 | + } | |
| 82 | + else if(synax == "W3C Xml Schema 1.1") | |
| 83 | + { | |
| 84 | + rx.setPatternSyntax(QRegExp::W3CXmlSchema11); | |
| 85 | + } | |
| 86 | + if(rx.isValid()==false) | |
| 87 | + { | |
| 88 | + ui->textEdit_result->setTextColor(Qt::red); | |
| 89 | + ui->textEdit_result->setText("不合法的正则表达式"); | |
| 90 | + ui->textEdit_result->repaint(); | |
| 91 | + return; | |
| 92 | + } | |
| 93 | + | |
| 94 | + | |
| 95 | + int count = 0; | |
| 96 | + int pos = 0; | |
| 97 | + while ((pos = rx.indexIn(src, pos)) != -1) | |
| 98 | + { | |
| 99 | + ++count; | |
| 100 | + qDebug()<<rx.cap(0); | |
| 101 | + pos = rx.matchedLength(); | |
| 102 | + qDebug()<<"pos = "<<pos; | |
| 103 | + | |
| 104 | + ui->textEdit_result->append(rx.cap(0)); | |
| 105 | + QString temp = src; | |
| 106 | +// src = temp.mid(pos); | |
| 107 | + src = temp.remove(rx.cap(0)); | |
| 108 | + qDebug()<<"src == "<<src; | |
| 109 | + pos = 0; | |
| 110 | + | |
| 111 | + } | |
| 112 | + if(count == 0) | |
| 113 | + { | |
| 114 | + ui->textEdit_result->setText("未找到匹配"); | |
| 115 | + } | |
| 116 | + | |
| 117 | + ui->textEdit_result->repaint(); | |
| 118 | + | |
| 119 | + | |
| 120 | +} | |
| 121 | + | |
| 122 | + | |
| 123 | +void Myre::on_listView_clicked(const QModelIndex &index) | |
| 124 | +{ | |
| 125 | + QString text = index.data().toString(); | |
| 126 | + int row = index.row(); | |
| 127 | + QString RegVal = RegValue[row]; | |
| 128 | + ui->lineEdit->setText(RegVal); | |
| 129 | + ui->lineEdit->repaint(); | |
| 130 | +} | ... | ... |
myre.cpp.autosave
0 → 100644
| 1 | +++ a/myre.cpp.autosave | |
| 1 | +#include "myre.h" | |
| 2 | +#include "ui_myre.h" | |
| 3 | +Myre::Myre(QWidget *parent) | |
| 4 | + : QMainWindow(parent) | |
| 5 | + , ui(new Ui::Myre) | |
| 6 | +{ | |
| 7 | + ui->setupUi(this); | |
| 8 | + setFixedSize(800,600); | |
| 9 | + init_myre(); | |
| 10 | +} | |
| 11 | + | |
| 12 | +Myre::~Myre() | |
| 13 | +{ | |
| 14 | + delete ui; | |
| 15 | +} | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | +void Myre::on_pushButton_exit_clicked() | |
| 20 | +{ | |
| 21 | + close(); | |
| 22 | +} | |
| 23 | + | |
| 24 | +void Myre::init_myre() | |
| 25 | +{ | |
| 26 | + rootObject = myjson.readJsonFileReturnObject(myfilename); | |
| 27 | + rootArray = myjson.readJsonObjectReturnArray(rootObject,"Array"); | |
| 28 | + | |
| 29 | + QStandardItemModel *model = new QStandardItemModel; | |
| 30 | + for(int i=0;i<rootArray.size();i++) | |
| 31 | + { | |
| 32 | + QJsonValue value = rootArray.at(i); | |
| 33 | + | |
| 34 | + QStandardItem *item = new QStandardItem(value["name"].toString()); | |
| 35 | + Regs<<value["name"].toString(); | |
| 36 | + RegValue<<value["value"].toString(); | |
| 37 | + model->appendRow(item); | |
| 38 | + } | |
| 39 | + ui->listView->setModel(model); | |
| 40 | + ui->listView->repaint(); | |
| 41 | + ui->listView->setEditTriggers(nullptr); | |
| 42 | +} | |
| 43 | + | |
| 44 | +void Myre::on_pushButton_excute_clicked() | |
| 45 | +{ | |
| 46 | + ui->textEdit_result->clear(); | |
| 47 | + QString src = ui->textEdit_text->toPlainText(); | |
| 48 | + QString target = ui->lineEdit->text(); | |
| 49 | + qDebug()<<target; | |
| 50 | + if(src.length()==0) | |
| 51 | + { | |
| 52 | + ui->textEdit_result->setText("未找到匹配"); | |
| 53 | + ui->textEdit_result->repaint(); | |
| 54 | + return; | |
| 55 | + } | |
| 56 | + ui->textEdit_result->clear(); | |
| 57 | + ui->textEdit_result->repaint(); | |
| 58 | + QRegExp rx(target); | |
| 59 | + Qt::CaseSensitivity cs = Qt::CaseInsensitive; | |
| 60 | + if (ui->checkBox_sensetivity->isChecked()) | |
| 61 | + cs = Qt::CaseSensitive; | |
| 62 | + rx.setCaseSensitivity(cs); | |
| 63 | + rx.setMinimal(ui->checkBox_min->isChecked()); | |
| 64 | + QString synax = ui->comboBox_pattern->currentText(); | |
| 65 | + | |
| 66 | + if(synax == "Regular expression V1") | |
| 67 | + { | |
| 68 | + rx.setPatternSyntax(QRegExp::RegExp); | |
| 69 | + } | |
| 70 | + else if(synax == "Regular expression V2") | |
| 71 | + { | |
| 72 | + rx.setPatternSyntax(QRegExp::RegExp2); | |
| 73 | + } | |
| 74 | + else if(synax == "WildCard") | |
| 75 | + { | |
| 76 | + rx.setPatternSyntax(QRegExp::Wildcard); | |
| 77 | + } | |
| 78 | + else if(synax == "Fixed string") | |
| 79 | + { | |
| 80 | + rx.setPatternSyntax(QRegExp::FixedString); | |
| 81 | + } | |
| 82 | + else if(synax == "W3C Xml Schema 1.1") | |
| 83 | + { | |
| 84 | + rx.setPatternSyntax(QRegExp::W3CXmlSchema11); | |
| 85 | + } | |
| 86 | + if(rx.isValid()==false) | |
| 87 | + { | |
| 88 | + ui->textEdit_result->setTextColor(Qt::red); | |
| 89 | + ui->textEdit_result->setText("不合法的正则表达式"); | |
| 90 | + ui->textEdit_result->repaint(); | |
| 91 | + return; | |
| 92 | + } | |
| 93 | + | |
| 94 | + | |
| 95 | + int count = 0; | |
| 96 | + int pos = 0; | |
| 97 | + while ((pos = rx.indexIn(src, pos)) != -1) | |
| 98 | + { | |
| 99 | + ++count; | |
| 100 | + qDebug()<<rx.cap(0); | |
| 101 | + pos = rx.matchedLength(); | |
| 102 | + qDebug()<<"pos = "<<pos; | |
| 103 | + | |
| 104 | + ui->textEdit_result->append(rx.cap(0)); | |
| 105 | + QString temp = src; | |
| 106 | +// src = temp.mid(pos); | |
| 107 | + src = temp.remove(rx.cap(0)); | |
| 108 | + qDebug()<<"src == "<<src; | |
| 109 | + pos = 0; | |
| 110 | + | |
| 111 | + } | |
| 112 | + if(count == 0) | |
| 113 | + { | |
| 114 | + ui->textEdit_result->setText("未找到匹配"); | |
| 115 | + } | |
| 116 | + | |
| 117 | + ui->textEdit_result->repaint(); | |
| 118 | + | |
| 119 | + | |
| 120 | +} | |
| 121 | + | |
| 122 | + | |
| 123 | +void Myre::on_listView_clicked(const QModelIndex &index) | |
| 124 | +{ | |
| 125 | + QString text = index.data().toString(); | |
| 126 | + int row = index.row(); | |
| 127 | + QString RegVal = RegValue[row]; | |
| 128 | + ui->lineEdit->setText(RegVal); | |
| 129 | + ui->lineEdit->repaint(); | |
| 130 | +} | |
| 131 | + | |
| 132 | +void Myre::on_pushButton_openfile_clicked() | |
| 133 | +{ | |
| 134 | + | |
| 135 | +} | ... | ... |
myre.h
0 → 100644
| 1 | +++ a/myre.h | |
| 1 | +#ifndef MYRE_H | |
| 2 | +#define MYRE_H | |
| 3 | + | |
| 4 | +#include <QMainWindow> | |
| 5 | +#include"common.h" | |
| 6 | +QT_BEGIN_NAMESPACE | |
| 7 | +namespace Ui { class Myre; } | |
| 8 | + | |
| 9 | +QT_END_NAMESPACE | |
| 10 | + | |
| 11 | +using namespace DJY; | |
| 12 | + | |
| 13 | +class Myre : public QMainWindow | |
| 14 | +{ | |
| 15 | + Q_OBJECT | |
| 16 | + | |
| 17 | +public: | |
| 18 | + Myre(QWidget *parent = nullptr); | |
| 19 | + ~Myre(); | |
| 20 | + | |
| 21 | + QSet<QString> getAllMatchResults(const QString text,const QString regexp) | |
| 22 | + { | |
| 23 | + QSet<QString>resultSet; | |
| 24 | + QRegExp rx(regexp); | |
| 25 | + int pos=0; | |
| 26 | + while((pos=rx.indexIn(text,pos))!=-1) | |
| 27 | + { | |
| 28 | + pos += rx.matchedLength(); | |
| 29 | + QString result=rx.cap(0); | |
| 30 | + resultSet<<result; | |
| 31 | + } | |
| 32 | + return resultSet; | |
| 33 | + } | |
| 34 | + | |
| 35 | +private slots: | |
| 36 | + void on_pushButton_exit_clicked(); | |
| 37 | + | |
| 38 | + void on_pushButton_excute_clicked(); | |
| 39 | + | |
| 40 | + void init_myre(); | |
| 41 | + | |
| 42 | + void on_listView_clicked(const QModelIndex &index); | |
| 43 | + | |
| 44 | +private: | |
| 45 | + Ui::Myre *ui; | |
| 46 | + | |
| 47 | + QStringList Regs; //支持的正则表达式类型 | |
| 48 | + | |
| 49 | + QStringList RegValue; //对应的正则表达式内容 | |
| 50 | + | |
| 51 | + EasyQJson myjson; | |
| 52 | + | |
| 53 | + QJsonObject rootObject; | |
| 54 | + QJsonArray rootArray; | |
| 55 | + | |
| 56 | +}; | |
| 57 | +#endif // MYRE_H | ... | ... |
myre.h.autosave
0 → 100644
| 1 | +++ a/myre.h.autosave | |
| 1 | +#ifndef MYRE_H | |
| 2 | +#define MYRE_H | |
| 3 | + | |
| 4 | +#include <QMainWindow> | |
| 5 | +#include"common.h" | |
| 6 | +QT_BEGIN_NAMESPACE | |
| 7 | +namespace Ui { class Myre; } | |
| 8 | + | |
| 9 | +QT_END_NAMESPACE | |
| 10 | + | |
| 11 | +using namespace DJY; | |
| 12 | + | |
| 13 | +class Myre : public QMainWindow | |
| 14 | +{ | |
| 15 | + Q_OBJECT | |
| 16 | + | |
| 17 | +public: | |
| 18 | + Myre(QWidget *parent = nullptr); | |
| 19 | + ~Myre(); | |
| 20 | + | |
| 21 | + QSet<QString> getAllMatchResults(const QString text,const QString regexp) | |
| 22 | + { | |
| 23 | + QSet<QString>resultSet; | |
| 24 | + QRegExp rx(regexp); | |
| 25 | + int pos=0; | |
| 26 | + while((pos=rx.indexIn(text,pos))!=-1) | |
| 27 | + { | |
| 28 | + pos += rx.matchedLength(); | |
| 29 | + QString result=rx.cap(0); | |
| 30 | + resultSet<<result; | |
| 31 | + } | |
| 32 | + return resultSet; | |
| 33 | + } | |
| 34 | + | |
| 35 | +private slots: | |
| 36 | + void on_pushButton_exit_clicked(); | |
| 37 | + | |
| 38 | + void on_pushButton_excute_clicked(); | |
| 39 | + | |
| 40 | + void init_myre(); | |
| 41 | + | |
| 42 | + void on_listView_clicked(const QModelIndex &index); | |
| 43 | + | |
| 44 | + void on_pushButton_openfile_clicked(); | |
| 45 | + | |
| 46 | +private: | |
| 47 | + Ui::Myre *ui; | |
| 48 | + | |
| 49 | + QStringList Regs; //支持的正则表达式类型 | |
| 50 | + | |
| 51 | + QStringList RegValue; //对应的正则表达式内容 | |
| 52 | + | |
| 53 | + EasyQJson myjson; | |
| 54 | + | |
| 55 | + QJsonObject rootObject; | |
| 56 | + QJsonArray rootArray; | |
| 57 | + | |
| 58 | +}; | |
| 59 | +#endif // MYRE_H | ... | ... |
myre.ui
0 → 100644
| 1 | +++ a/myre.ui | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<ui version="4.0"> | |
| 3 | + <class>Myre</class> | |
| 4 | + <widget class="QMainWindow" name="Myre"> | |
| 5 | + <property name="geometry"> | |
| 6 | + <rect> | |
| 7 | + <x>0</x> | |
| 8 | + <y>0</y> | |
| 9 | + <width>800</width> | |
| 10 | + <height>600</height> | |
| 11 | + </rect> | |
| 12 | + </property> | |
| 13 | + <property name="windowTitle"> | |
| 14 | + <string>Myre</string> | |
| 15 | + </property> | |
| 16 | + <widget class="QWidget" name="centralwidget"> | |
| 17 | + <widget class="QPushButton" name="pushButton_exit"> | |
| 18 | + <property name="geometry"> | |
| 19 | + <rect> | |
| 20 | + <x>670</x> | |
| 21 | + <y>550</y> | |
| 22 | + <width>112</width> | |
| 23 | + <height>32</height> | |
| 24 | + </rect> | |
| 25 | + </property> | |
| 26 | + <property name="text"> | |
| 27 | + <string>退出</string> | |
| 28 | + </property> | |
| 29 | + </widget> | |
| 30 | + <widget class="QListView" name="listView"> | |
| 31 | + <property name="geometry"> | |
| 32 | + <rect> | |
| 33 | + <x>10</x> | |
| 34 | + <y>0</y> | |
| 35 | + <width>121</width> | |
| 36 | + <height>551</height> | |
| 37 | + </rect> | |
| 38 | + </property> | |
| 39 | + </widget> | |
| 40 | + <widget class="QWidget" name=""> | |
| 41 | + <property name="geometry"> | |
| 42 | + <rect> | |
| 43 | + <x>140</x> | |
| 44 | + <y>10</y> | |
| 45 | + <width>226</width> | |
| 46 | + <height>34</height> | |
| 47 | + </rect> | |
| 48 | + </property> | |
| 49 | + <layout class="QHBoxLayout" name="horizontalLayout_2"> | |
| 50 | + <item> | |
| 51 | + <widget class="QPushButton" name="pushButton_excute"> | |
| 52 | + <property name="text"> | |
| 53 | + <string>匹配</string> | |
| 54 | + </property> | |
| 55 | + </widget> | |
| 56 | + </item> | |
| 57 | + <item> | |
| 58 | + <widget class="QPushButton" name="pushButton_openfile"> | |
| 59 | + <property name="text"> | |
| 60 | + <string>打开文件</string> | |
| 61 | + </property> | |
| 62 | + </widget> | |
| 63 | + </item> | |
| 64 | + </layout> | |
| 65 | + </widget> | |
| 66 | + <widget class="QWidget" name=""> | |
| 67 | + <property name="geometry"> | |
| 68 | + <rect> | |
| 69 | + <x>140</x> | |
| 70 | + <y>50</y> | |
| 71 | + <width>641</width> | |
| 72 | + <height>23</height> | |
| 73 | + </rect> | |
| 74 | + </property> | |
| 75 | + <layout class="QHBoxLayout" name="horizontalLayout"> | |
| 76 | + <item> | |
| 77 | + <widget class="QLabel" name="label_3"> | |
| 78 | + <property name="text"> | |
| 79 | + <string>正则表达式</string> | |
| 80 | + </property> | |
| 81 | + </widget> | |
| 82 | + </item> | |
| 83 | + <item> | |
| 84 | + <widget class="QLineEdit" name="lineEdit"/> | |
| 85 | + </item> | |
| 86 | + </layout> | |
| 87 | + </widget> | |
| 88 | + <widget class="QWidget" name=""> | |
| 89 | + <property name="geometry"> | |
| 90 | + <rect> | |
| 91 | + <x>140</x> | |
| 92 | + <y>70</y> | |
| 93 | + <width>641</width> | |
| 94 | + <height>481</height> | |
| 95 | + </rect> | |
| 96 | + </property> | |
| 97 | + <layout class="QVBoxLayout" name="verticalLayout"> | |
| 98 | + <item> | |
| 99 | + <widget class="QLabel" name="label"> | |
| 100 | + <property name="text"> | |
| 101 | + <string>文本</string> | |
| 102 | + </property> | |
| 103 | + </widget> | |
| 104 | + </item> | |
| 105 | + <item> | |
| 106 | + <widget class="QTextEdit" name="textEdit_text"> | |
| 107 | + <property name="minimumSize"> | |
| 108 | + <size> | |
| 109 | + <width>0</width> | |
| 110 | + <height>250</height> | |
| 111 | + </size> | |
| 112 | + </property> | |
| 113 | + </widget> | |
| 114 | + </item> | |
| 115 | + <item> | |
| 116 | + <widget class="QLabel" name="label_2"> | |
| 117 | + <property name="text"> | |
| 118 | + <string>结果</string> | |
| 119 | + </property> | |
| 120 | + </widget> | |
| 121 | + </item> | |
| 122 | + <item> | |
| 123 | + <widget class="QTextEdit" name="textEdit_result"/> | |
| 124 | + </item> | |
| 125 | + </layout> | |
| 126 | + </widget> | |
| 127 | + <widget class="QWidget" name=""> | |
| 128 | + <property name="geometry"> | |
| 129 | + <rect> | |
| 130 | + <x>391</x> | |
| 131 | + <y>10</y> | |
| 132 | + <width>231</width> | |
| 133 | + <height>32</height> | |
| 134 | + </rect> | |
| 135 | + </property> | |
| 136 | + <layout class="QHBoxLayout" name="horizontalLayout_3"> | |
| 137 | + <item> | |
| 138 | + <widget class="QLabel" name="label_4"> | |
| 139 | + <property name="maximumSize"> | |
| 140 | + <size> | |
| 141 | + <width>50</width> | |
| 142 | + <height>16777215</height> | |
| 143 | + </size> | |
| 144 | + </property> | |
| 145 | + <property name="text"> | |
| 146 | + <string>模式语法</string> | |
| 147 | + </property> | |
| 148 | + </widget> | |
| 149 | + </item> | |
| 150 | + <item> | |
| 151 | + <widget class="QComboBox" name="comboBox_pattern"> | |
| 152 | + <item> | |
| 153 | + <property name="text"> | |
| 154 | + <string>Regular expression V1</string> | |
| 155 | + </property> | |
| 156 | + </item> | |
| 157 | + <item> | |
| 158 | + <property name="text"> | |
| 159 | + <string>Regular expression V2</string> | |
| 160 | + </property> | |
| 161 | + </item> | |
| 162 | + <item> | |
| 163 | + <property name="text"> | |
| 164 | + <string>WildCard</string> | |
| 165 | + </property> | |
| 166 | + </item> | |
| 167 | + <item> | |
| 168 | + <property name="text"> | |
| 169 | + <string>Fixed String</string> | |
| 170 | + </property> | |
| 171 | + </item> | |
| 172 | + <item> | |
| 173 | + <property name="text"> | |
| 174 | + <string>W3C Xml Schema 1.1</string> | |
| 175 | + </property> | |
| 176 | + </item> | |
| 177 | + </widget> | |
| 178 | + </item> | |
| 179 | + </layout> | |
| 180 | + </widget> | |
| 181 | + <widget class="QWidget" name=""> | |
| 182 | + <property name="geometry"> | |
| 183 | + <rect> | |
| 184 | + <x>630</x> | |
| 185 | + <y>0</y> | |
| 186 | + <width>138</width> | |
| 187 | + <height>45</height> | |
| 188 | + </rect> | |
| 189 | + </property> | |
| 190 | + <layout class="QVBoxLayout" name="verticalLayout_2"> | |
| 191 | + <item> | |
| 192 | + <widget class="QCheckBox" name="checkBox_sensetivity"> | |
| 193 | + <property name="text"> | |
| 194 | + <string>敏感模式</string> | |
| 195 | + </property> | |
| 196 | + </widget> | |
| 197 | + </item> | |
| 198 | + <item> | |
| 199 | + <widget class="QCheckBox" name="checkBox_min"> | |
| 200 | + <property name="text"> | |
| 201 | + <string>最小匹配</string> | |
| 202 | + </property> | |
| 203 | + </widget> | |
| 204 | + </item> | |
| 205 | + </layout> | |
| 206 | + </widget> | |
| 207 | + </widget> | |
| 208 | + <widget class="QMenuBar" name="menubar"> | |
| 209 | + <property name="geometry"> | |
| 210 | + <rect> | |
| 211 | + <x>0</x> | |
| 212 | + <y>0</y> | |
| 213 | + <width>800</width> | |
| 214 | + <height>22</height> | |
| 215 | + </rect> | |
| 216 | + </property> | |
| 217 | + </widget> | |
| 218 | + </widget> | |
| 219 | + <resources/> | |
| 220 | + <connections/> | |
| 221 | +</ui> | ... | ... |