├── .readthedocs.yaml ├── CNAME ├── LICENSE.txt ├── MANIFEST.in ├── README.md ├── _config.yml ├── data ├── Countries-of-the-World.trt ├── Dual-MindMap.empty.trt ├── Simple-Task-List.trt ├── Single-MindMap.empty.trt ├── Tutorial.trt ├── Work-Plan.trt ├── treetime-logo.png └── treetime.desktop ├── docs ├── 404.html ├── CNAME ├── Gemfile ├── _config.yml ├── abcde01.png ├── abcde02.png ├── about.md ├── assets │ └── css │ │ └── style.scss ├── conf.py ├── data-fields.rst ├── data-format.rst ├── index.md ├── index.rst ├── introduction.rst ├── linked-trees.dia ├── linked-trees.png ├── releases.rst ├── screenshot01.png ├── screenshot02.png ├── screenshot03.png ├── screenshot04.png └── tree-fields.rst ├── main.py ├── requirements.txt ├── setup.cfg ├── setup.py └── treetime ├── __init__.py ├── __main__.py ├── compile-ui.py ├── item.py ├── mainwindow.py ├── mainwindow.ui ├── test.py ├── themes ├── dark_branch_full.svg ├── dark_branch_top.svg ├── dark_triangle_down.svg ├── dark_triangle_down_hover.svg ├── dark_triangle_right.svg ├── dark_triangle_right_hover.svg ├── dark_twig_empty.svg ├── light_branch_full.svg ├── light_branch_top.svg ├── light_triangle_down.svg ├── light_triangle_down_hover.svg ├── light_triangle_right.svg ├── light_triangle_right_hover.svg └── light_twig_empty.svg ├── tree.py ├── treetime └── treetime.py /.readthedocs.yaml: -------------------------------------------------------------------------------- 1 | # Required 2 | version: 2 3 | 4 | # Set the OS, Python version and other tools you might need 5 | build: 6 | os: ubuntu-22.04 7 | tools: 8 | python: "3.12" 9 | # You can also specify other tool versions: 10 | # nodejs: "20" 11 | # rust: "1.70" 12 | # golang: "1.20" 13 | 14 | 15 | # Build documentation in the "docs/" directory with Sphinx 16 | sphinx: 17 | configuration: docs/conf.py 18 | # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs 19 | # builder: "dirhtml" 20 | # Fail on all warnings to avoid broken references 21 | # fail_on_warning: true 22 | 23 | # Optionally build your docs in additional formats such as PDF and ePub 24 | formats: 25 | - pdf 26 | # - epub 27 | 28 | # Optional but recommended, declare the Python requirements required 29 | # to build your documentation 30 | # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html 31 | # python: 32 | # install: 33 | # - requirements: docs/requirements.txt 34 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | tree-time.info -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include ./data *.png *.trt 2 | recursive-include ./docs * 3 | 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # logo       TreeTime 2 | 3 | 4 | Note: If your looking for the phylogenetics software of the same name, you can find it here: [github.com/neherlab/treetime](https://github.com/neherlab/treetime). 5 | 6 | _TreeTime_ is a general data organisation, management and analysis tool using linked trees instead of flat lists of tables. 7 | A tree is a hierarchical structure that arranges your data into units and sub-units. 8 | Mathematical functions (sum, difference, mean, ratio) can be calculated recursively. 9 | Linked trees are distinct trees that share data between them. 10 | In _TreeTime_, a data object is part of several trees at the same time. 11 | _TreeTime_ is a time planner, a to-do list manager, a test report tool, a project planner, a family ancestry editor, a mind-mapping tool, and similar. 12 | 13 |
14 | 15 | ### Table of Contents ### 16 | 17 | - [Concept](#id-concept) 18 | - [Basic Use](#id-usage) 19 | - [Data Files](#id-file-syntax) 20 | - [Installation](#id-installation) 21 | - [Road-Map](#id-roadmap) 22 | - [Dependencies](#id-dependencies) 23 | 24 | 25 |
26 | 27 | ## Concept ## 28 | [Table of Contents](#id-contents) 29 | 30 | ### What is a Tree? ### 31 | 32 | A "tree" is a data structure, much like a table or a list. 33 | A tree sorts information hierarchically into boxes and sub-boxes and sub-sub-boxes. 34 | 35 | If you want to organise your work tasks you could sort them into work packages, that are part of projects, that are part of products. 36 | If you plan a larger project, you can sort all tasks by responsible persons, who are part of teams, that are part of departments, that are part of branches. 37 | You can also make a time plan, where a year consists of quarters, that consist of weeks, that contain a number of tasks. 38 | You can have an address book where you have a hierarchy of friends / colleagues / aquaintances, or you can sort knowledge about animals into kingdom / class / family / species. 39 | 40 | The nice thing about trees is that you can define mathematical functions on them. 41 | Planned hours can be summed up per work package and project, or per person and team, or per week and month. 42 | A mean priority can be shown per work package and project. 43 | 44 | The concept of hierarchical categorisation can be applied to all sorts of data and will feel a lot more natural and easier to use than organising the same data in spread sheets. 45 | 46 | ### What are linked Trees? ### 47 | 48 | The core concept of _TreeTime_ are linked trees. 49 | Linked trees are separate trees that share the same data. 50 | One piece of information (a _node_) can be in several trees at the same time, but in different place of the tree. 51 | As a single tree is a way of sorting information, different linked trees sort the same data in different ways. 52 | ![Tree 1](https://raw.githubusercontent.com/jkanev/treetime/master/docs/linked-trees.png) 53 | In _Tree 1_, Node _E_ is right at the bottom, as a child of _B_ and a grandchild of _A_. In _Tree 2_ it is a child of _D_. 54 | 55 | In _TreeTime_, a _node_ or _item_ can hold different information like text, numbers, dates, internet links. 56 | These are saved in the _item's_ _fields_. 57 | 58 | Here we have a field we call "value". Each node in all trees has a value field that can hold a number (like a cell in a spread sheet). 59 | The node A has the value=1, B=2, etc. 60 | In addition we have a field we call "Sum". 61 | Its content is calculated automatically, summing up the item's own value plus the values of all children. 62 | In _TreeTime_, looking at item _E_ and _Tree 1_ this looks like this: 63 | ![Tree 2](https://raw.githubusercontent.com/jkanev/treetime/master/docs/abcde01.png) 64 | Clicking on the other tab shows the second tree while the same items stays selected: 65 | ![Tree 3](https://raw.githubusercontent.com/jkanev/treetime/master/docs/abcde02.png) 66 | Note how the values are summed up the branches. 67 | Apart from sums, _TreeTime_ also offers means, ratios, or differences, using different combinations of parent, child, or sibling fields. 68 | 69 | Linked trees are a natural and powerful way to structure data. 70 | If you, for instance, organise information about animals, you might want to see the animal's taxonomy (kingdom/class/family/species), but also their habitat (continent/country/area), and switch between both views. 71 | If you organise tasks, you could switch between a year/quarter/week/day breakdown, a company/department/team/person tree, and a product/project/package/task overview. 72 | 73 | In _TreeTime_, the structure of your data (whether you store priority, hours, and a description for a task, or expected life span, habitat and number of legs for an animal), the trees themselves, and the calculated values within the trees are completely user defined. Data is stored in text files, changes are saved on the fly, and when opening _TreeTime_, the software is automatically connected to the last used file. 74 | 75 |
76 | 77 | ## Basic Use ## 78 | [Table of Contents](#id-contents) 79 | 80 | Start the software (see 'Execute' from the section [Installation](#id-installation)). In the main dialog, go to "File" / "New from Template", select "Simple-Task-List.trt" and in the next dialog give a file name for the new file. An example file with a simple project task list structure will open. 81 | 82 | The GUI consists of three parts: 83 | - A button box on the left. Execute tree structure operations from here. 84 | - An editing grid in the middle, showing the contents of the selected data item. Edit single data items here. 85 | - A tab view with tress spanning the center-right. View and analyse your data here. 86 | 87 | ![Screenshot 1](https://raw.githubusercontent.com/jkanev/treetime/master/docs/screenshot01.png) 88 | Access each single tree by clicking a tab on the main tree-view widget (the picture above shows the tree _Time Plan_, the picture below the tree _Projects_). 89 | ![Screenshot 2](https://raw.githubusercontent.com/jkanev/treetime/master/docs/screenshot02.png) 90 | Branches and children can be sorted, branches can be folded and unfolded. Data content is shown via analytic fields that are defined per tree. In the example project you will see a sum, a percentage, and text display. 91 | 92 | Add, move and remove single nodes and complete branches by using the buttons on the left. Change the name of a node by selecting the node and editing the name in the top of the edit grid in the middle. Change all other values (numbers or text) by clicking into the field and start typing. 93 | 94 | The parents of an item are listed underneath the item name. Each tree has a separate line. Change the position of a node within a tree by clicking on any of the parent buttons. 95 | ![Screenshot 3](https://raw.githubusercontent.com/jkanev/treetime/master/docs/screenshot03.png) 96 | In this example a new node in the tree _Time Plan_ has just been created, and is now added to the tree _Projects_. 97 | 98 | _TreeTime_ lets you select different themes and will try to use the default colours that are defined with your operating system. 99 | 100 | ![Screenshot 4](https://raw.githubusercontent.com/jkanev/treetime/master/docs/screenshot04.png) 101 | 102 | 103 | 104 | ## Data Files ## 105 | 106 | _TreeTime_'s data is stored in ._trt_ files. These are plain editable text files. Please have a look at the file _Simple-Task-List.trt_ to understand the syntax. A detailed description will follow later. (Sorry...) 107 | 108 |
109 | 110 | ## Installation ## 111 | [Table of Contents](#id-installation) 112 | 113 | ### Using pre-compiled Binaries ### 114 | 115 | - Windows, Linux: Go to [github.com/jkanev/treetime/releases/tag/2025.1](https://github.com/jkanev/treetime/releases/tag/2025.1) and download a zipped package for Windows 10, 64 bit, or for Linux 64 bit from there. Unzip it into your program directory and run _TreeTime_ or _TreeTime.exe_ from the new folder. Unzip the data package too. Add the program folder to your path. 116 | 117 | Executable bundles have been created with pyinstaller ([www.pyinstaller.org](http://www.pyinstaller.org)). 118 | 119 | - Mac: Mac users please use the Python code (see below). There is no executable for Mac. 120 | (If anybody can help building an executable for other platforms I'd be delighted.) 121 | 122 | ### Using a PyPi package in Python ### 123 | 124 | 1. If you don't have it yet, install python3 125 | 2. Install PyQt6 -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: 126 | `pip install PyQt6` 127 | 3. Install _TreeTime_ -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: 128 | `pip install treetime` 129 | 130 | ### Using script code with Python ### 131 | 132 | 1. If you don't have it yet, install python3 133 | 2. Install PyQt6 -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: `pip install PyQt6` 134 | 3. Download this project from GitHub as a zip file (https://github.com/jkanev/treetime/archive/master.zip) and unzip 135 | 4. Install _TreeTime_: in the command line, cd into the main directory, then type: 136 | - Linux: 137 | `python3 setup.py build` 138 | `python3 setup.py install --user` 139 | - Windows: 140 | `py setup.py build` 141 | `py setup.py install` 142 | 143 | ### Execute ### 144 | 145 | - Windows: Hit the Windows key and type "TreeTime", then click the "run command treetime" that comes up. 146 | - Linux, Mac: On the command line, type "TreeTime". You can also start this any other way your operating system supports. Plus, there's a .desktop file (for KDE and Gnome) in the data directory to create desktop or menu link. 147 | 148 | 149 |
150 | 151 | ## Road-Map ## 152 | [Table of Contents](#id-contents) 153 | 154 | I deliberately didn't give any time estimates for this. I'm using the software myself to organise my own data, so I'm interested in keeping this going. Nevertheless I cannot promise any specific release dates. If you have any suggestions or would like me to implement some feature sooner than I suggested here, please just drop me an email. 155 | 156 | Past 157 | - Done February 2016: Implemented selection (the same item gets selected in all trees, changing a tab shows the same item) 158 | - Done March 2016: Implemented remaining local functionality (Copy Branch as Sibling, Copy Children to Siblings, Remove from this Tree, Delete Item) 159 | - Done August 2016: Created installable python package 160 | - Done May 2017: Implemented new field type _text_ 161 | - Done June 2017: Create deployable packages for Linux and Windows 162 | - Done June 2017: Made pre-release v0.0 available 163 | - Done October 2017: Implemented new field type _node-path_, re-wrote the way nodes move to new parents 164 | - Done November 2017: Uploaded package to pypi.python.org, _TreeTime_ can now be installed using pip 165 | - Done October 2018: Re-implemented the parent selection mechanism. The old cascaded menus have been replaced with single drop down lists. 166 | - Done October 2018: Re-furbished the GUI and removed a couple of bugs. Slighty changed the data file format. Implemented theme selection. Tested pyqtdeploy for deployment instead of pyinstaller. Updated the description. 167 | - Done November 2018: Released version 2018-10 168 | - Done January 2019: Implemented new field type "URL" 169 | - Done June 2020: Fixed problem with protected cells (typing into a cell without data could cause a crash), and fixed file selection dialog (now only offers *.trt files). 170 | - Done July 2020: Implemented text export - single branches or complete trees can now be exported to txt files. 171 | - Done August 2020: Implemented time counters - nodes can record the time using a special field of type "timer" (experimental). GUI buttons can start and stop the stopwatch function. 172 | - Done September 2020: Added move-to-top-level option for first level nodes 173 | - Done October 2020: Added a dark and a light palette for GUI colours, selectable in addition to the theme selection. 174 | - Done November 2020: Fixed too slow editing in text fields when tree files are big (>1.5 MB). 175 | - Done January 2021: Released version 2021.01. 176 | - Done January 2021: Bugfixing (timer crash) 177 | - Done February 2021: Released version 2021.2. 178 | - Done March 2021: New functions "Delete node" and "Remove node from tree" now move descendants one level up. 179 | "Remove branch" removes the respective branch in all trees. "Delete branch" completely deletes a 180 | branch, plus all child branches and inter-connections in all trees. 181 | - Done March 2021: If a file with running timers is saved, those timers will be running when the file is loaded. 182 | - Done March 2021: Added tooltips for main buttons 183 | - Done March 2021: Implemented HTML export of branches and complete trees 184 | - Done March 2021: Added auto-delete for orphans 185 | - Done March 2021: Released version 2021.3 186 | - Done April 2021: Added file option 187 | - Done April 2021: Added four-column export for html and rainbow colours 188 | - Done April 2021: Released version 2021.4 189 | - Done May 2021: Improved HTML layout 190 | - Done May 2021: Implemented customisable level export for html and text export 191 | - Done May 2021: Released version 2021.5 192 | - Done July 2021: Fixed broken application logo 193 | - Done July 2021: Implemented CSV export 194 | - Done August 2021: Released version 2021.8 195 | - Done September 2021: Added new export option "Text to Clipboard" 196 | - Done November 2021: Added new export option "Html (List) to File" 197 | - Done December 2021: Added two primitive template files (a text-only single tree and dual tree mindmap) 198 | - Done December 2021: Released version 2021.9 199 | - Done March 2022: Fixed crash bug on non-export 200 | - Done March 2022: Improved sorting and grouping in html export, changed to five columns. 201 | - Done June 2022: Added a tutorial file. 202 | - Done June 2022: Added first-use dialog when no file is loaded, instead of the file-open dialog. 203 | - Done June 2022: Release 2022.1 204 | - Done February 2023: Added new tree field types "concatenation" and "set". 205 | - Done February 2023: Implemented adjustable width for the data item and the tree table main view. 206 | - Done February 2023: Release 2023.1 207 | * Done April 2023: Removed deprecated tree field ("concatenation"), fixed missing logo. 208 | * Done May 2023: Ported to PyQt 6.0 209 | * Done May 2023: Implemented auto-adjusting name column 210 | * Done June 2023: Created new default theme "Organic", a mix between Fusion and Breeze 211 | * Done June 2023: Implemented display of tree field definitions and of data field definitions 212 | * Done July 2023: Release **version 2023.2** 213 | * Done October 2023: Bugfix: crash when exporting text to clipboard. 214 | * Done January 2024: Changed node symbol to small circle in text eport (after asking users on social media). 215 | * Done February 2024: Implemented min, max, min-string, max-string fields. 216 | * Done March 2024: Implemented longtext data field. 217 | * Done April 2024: Extended documentation on readthedocs.io. Release **version 2024.1** 218 | * Done April 2024: Restructured export area, added name-only export. Made all export options (full tree / branch / node with contect) (all fields / names only) available for all file formats and for both file and clipboard export. 219 | * Done April 2024: Release **version 2024.2** 220 | * Done March 2024: Implemented changeable font size (zoom) of data display 221 | * Done May 2024: Implemented continuous text and html export 222 | * Done July 2024: Release **version 2024.3** 223 | * Done January 2025: Changed colours on html export to a seven-colour rainbow palette. 224 | * Done February 2025: Implemented PNG export 225 | * Done March 2025: Implemented SVG export 226 | * Done March 2025: Implemented HTML/Document export 227 | * Done April 2025: Improvements to image export. 228 | * Done April 2025: Release **version 2025.1** 229 | 230 | Present 231 | - Running: Bugfixing 232 | - Running: Extend documentation on readthedocs.io 233 | - Running: 234 | - Running: Add more examples and more template data files 235 | - Running: Structure editing/viewing in extra tab (editing the structure, number and definitions and trees and tree fields and data fields) 236 | 237 | 238 | Future 239 | - Near Future: Implement search function 240 | - Mid Future: Implement global functions (Linearise Tree, Level-Swap, Merge identical Siblings, Merge Identical Parents/Children, Remove all Orphans, Insert all Orphans as Children) 241 | - Far Future: Implement safe usage by multiple simultaneous users 242 | - Far Future: Implement a database backend instead of text file storage 243 | - Far Future: Implement a web server 244 | - Far Future: A whole lot of other fancy things that will probably never get done 245 | 246 |
247 | 248 | ## Dependencies ## 249 | [Table of Contents](#id-contents) 250 | 251 | _TreeTime_ depends on [`Python 3`](https://www.python.org/downloads/), [`Qt6`](http://www.qt.io/download/), and [`PyQt6`](https://pypi.python.org/pypi/PyQt6). 252 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-slate -------------------------------------------------------------------------------- /data/Dual-MindMap.empty.trt: -------------------------------------------------------------------------------- 1 | --trees-- 2 | 3 | tree "Tree 1" 4 | field "Text" 5 | field-type "text" 6 | own-fields ["text"] 7 | child-fields [] 8 | sibling-fields [] 9 | parent-fields [] 10 | 11 | tree "Tree 2" 12 | field "Text" 13 | field-type "text" 14 | own-fields ["text"] 15 | child-fields [] 16 | sibling-fields [] 17 | parent-fields [] 18 | 19 | --item-types-- 20 | 21 | item New 22 | fields {"text": {"content": "", "type": "text"}} 23 | trees [[], []] 24 | 25 | --item-pool-- 26 | 27 | item New 28 | fields {"text": {"content": "", "type": "text"}} 29 | trees [[], [0]] 30 | 31 | item New 32 | fields {"text": {"content": "", "type": "text"}} 33 | trees [[], [0, 0, 0]] 34 | 35 | item New 36 | fields {"text": {"content": "", "type": "text"}} 37 | trees [[], [0, 0, 0, 0]] 38 | 39 | item New 40 | fields {"text": {"content": "", "type": "text"}} 41 | trees [[], [0, 0, 0, 0, 0]] 42 | 43 | item New 44 | fields {"text": {"content": "", "type": "text"}} 45 | trees [[], [0, 0, 0, 0, 1]] 46 | 47 | item New 48 | fields {"text": {"content": "", "type": "text"}} 49 | trees [[], [0, 0, 0, 0, 2]] 50 | 51 | item New 52 | fields {"text": {"content": "", "type": "text"}} 53 | trees [[], [0, 0, 0, 0, 2, 0]] 54 | 55 | item New 56 | fields {"text": {"content": "", "type": "text"}} 57 | trees [[], [0, 0, 0, 0, 2, 0, 0]] 58 | 59 | item New 60 | fields {"text": {"content": "", "type": "text"}} 61 | trees [[0], [0, 0]] 62 | 63 | item New 64 | fields {"text": {"content": "", "type": "text"}} 65 | trees [[0, 0], []] 66 | 67 | item New 68 | fields {"text": {"content": "", "type": "text"}} 69 | trees [[0, 0, 0], []] 70 | 71 | -------------------------------------------------------------------------------- /data/Simple-Task-List.trt: -------------------------------------------------------------------------------- 1 | --trees-- 2 | 3 | tree "Time Plan" 4 | field "Project" 5 | field-type "node-path" 6 | own-fields [] 7 | child-fields [] 8 | sibling-fields [] 9 | parent-fields [1] 10 | field "Priority" 11 | field-type "mean" 12 | own-fields ["2. priority (0-9)"] 13 | child-fields ["Priority"] 14 | sibling-fields [] 15 | parent-fields [] 16 | field "Status" 17 | field-type "node-name" 18 | own-fields [] 19 | child-fields [] 20 | sibling-fields [] 21 | parent-fields [2] 22 | field "Planned hours" 23 | field-type "sum" 24 | own-fields ["1. planned hours"] 25 | child-fields ["Planned hours"] 26 | sibling-fields [] 27 | parent-fields [] 28 | field "Actual hours" 29 | field-type "sum" 30 | own-fields ["3. actual hours"] 31 | child-fields ["Actual hours"] 32 | sibling-fields [] 33 | parent-fields [] 34 | 35 | tree "Projects" 36 | field "Planning" 37 | field-type "node-name" 38 | own-fields [] 39 | child-fields [] 40 | sibling-fields [] 41 | parent-fields [0] 42 | field "Planned hours" 43 | field-type "sum" 44 | own-fields ["1. planned hours"] 45 | child-fields ["Planned hours"] 46 | sibling-fields [] 47 | parent-fields [] 48 | field "Actual hours" 49 | field-type "sum" 50 | own-fields ["3. actual hours"] 51 | child-fields ["Actual hours"] 52 | sibling-fields [] 53 | parent-fields [] 54 | field "Priority" 55 | field-type "mean" 56 | own-fields ["2. priority (0-9)"] 57 | child-fields ["Priority"] 58 | sibling-fields [] 59 | parent-fields [] 60 | field "Progress" 61 | field-type "ratio-percent" 62 | own-fields ["Actual hours", "Planned hours"] 63 | child-fields [] 64 | sibling-fields [] 65 | parent-fields [] 66 | 67 | tree "Status" 68 | field "Actual hours" 69 | field-type "sum" 70 | own-fields ["3. actual hours"] 71 | child-fields ["Actual hours"] 72 | sibling-fields [] 73 | parent-fields [] 74 | field "Planned hours" 75 | field-type "sum" 76 | own-fields ["1. planned hours"] 77 | child-fields ["1. planned hours"] 78 | sibling-fields [] 79 | parent-fields [] 80 | field "Priority" 81 | field-type "mean" 82 | own-fields ["2. priority (0-9)"] 83 | child-fields ["Priority"] 84 | sibling-fields [] 85 | parent-fields [] 86 | field "Progress" 87 | field-type "ratio-percent" 88 | own-fields ["Actual hours", "Planned hours"] 89 | child-fields [] 90 | sibling-fields [] 91 | parent-fields [] 92 | 93 | --item-types-- 94 | 95 | item New Task 96 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 5, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 97 | trees [[], [], []] 98 | 99 | --item-pool-- 100 | 101 | item 2018 Quarter 4 102 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 5, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 103 | trees [[1], [], []] 104 | 105 | item 2018 Week 45 106 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 5, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 107 | trees [[1, 0], [], []] 108 | 109 | item 2018 Week 46 110 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": null, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 111 | trees [[1, 1], [], []] 112 | 113 | item Build Robot 114 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 5, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 115 | trees [[], [0], []] 116 | 117 | item Learn 118 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 5, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 119 | trees [[], [0, 0], []] 120 | 121 | item Make 122 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 12, "type": "integer"}, "2. priority (0-9)": {"content": 0, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 123 | trees [[], [0, 1], []] 124 | 125 | item To Do 126 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 0, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 127 | trees [[], [], [0]] 128 | 129 | item Running 130 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 0, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 131 | trees [[], [], [1]] 132 | 133 | item Unplanned 134 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 0, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 135 | trees [[], [], [2]] 136 | 137 | item Finished 138 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 0, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 139 | trees [[], [], [3]] 140 | 141 | item Cancelled 142 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 0, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 143 | trees [[], [], [4]] 144 | 145 | item To be planned 146 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 5, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 147 | trees [[0], [], []] 148 | 149 | item Article on Bees 150 | fields {"3. actual hours": {"content": null, "type": "integer"}, "1. planned hours": {"content": null, "type": "integer"}, "2. priority (0-9)": {"content": null, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 151 | trees [[], [1], []] 152 | 153 | item Write 154 | fields {"3. actual hours": {"content": null, "type": "integer"}, "1. planned hours": {"content": null, "type": "integer"}, "2. priority (0-9)": {"content": null, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 155 | trees [[], [1, 0], []] 156 | 157 | item Do research on bees 158 | fields {"3. actual hours": {"content": 5, "type": "integer"}, "1. planned hours": {"content": 8, "type": "integer"}, "2. priority (0-9)": {"content": 8, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 159 | trees [[1, 1, 1], [1, 0, 0], [1, 0]] 160 | 161 | item Write up findings on bees 162 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 9, "type": "integer"}, "2. priority (0-9)": {"content": 6, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 163 | trees [[1, 1, 2], [1, 0, 1], [0, 1]] 164 | 165 | item Publish 166 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": null, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 167 | trees [[], [1, 1], []] 168 | 169 | item Negotiate with publisher 170 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 6, "type": "integer"}, "2. priority (0-9)": {"content": 3, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 171 | trees [[1, 1, 3], [1, 1, 0], [0, 0]] 172 | 173 | item Finalise article and send to publisher 174 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 2, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 175 | trees [[0, 0], [1, 1, 1], [2, 0]] 176 | 177 | item Design robot and discuss with others 178 | fields {"3. actual hours": {"content": 2, "type": "integer"}, "1. planned hours": {"content": 5, "type": "integer"}, "2. priority (0-9)": {"content": 2, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 179 | trees [[1, 0, 2], [0, 1, 0], [1, 1]] 180 | 181 | item Buy parts and assembly robot 182 | fields {"3. actual hours": {"content": 8, "type": "integer"}, "1. planned hours": {"content": 8, "type": "integer"}, "2. priority (0-9)": {"content": 7, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 183 | trees [[1, 1, 0], [0, 1, 1], [3, 0]] 184 | 185 | item Find articles about robots 186 | fields {"3. actual hours": {"content": 5, "type": "integer"}, "1. planned hours": {"content": 5, "type": "integer"}, "2. priority (0-9)": {"content": 1, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 187 | trees [[1, 0, 0], [0, 0, 0], [3, 2]] 188 | 189 | item Talk to others about robots 190 | fields {"3. actual hours": {"content": 3, "type": "integer"}, "1. planned hours": {"content": 3, "type": "integer"}, "2. priority (0-9)": {"content": 6, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 191 | trees [[1, 0, 1], [0, 0, 1], [3, 1]] 192 | 193 | item _README_ 194 | fields {"3. actual hours": {"content": null, "type": "integer"}, "1. planned hours": {"content": null, "type": "integer"}, "2. priority (0-9)": {"content": null, "type": "integer"}, "3. task description": {"content": "This is a small task list template.\n\n\u25b6 Add projects, workpackages and tasks in the [Projects] tab, using the [New Child], [New Sibling] or [New Parent] buttons.\n\n\u25b6 Add years, quarters, weeks in the [Time Plan] tab.\n\n\u25b6 Add existing tasks to the time plan by selecting a task in the [Projects] tab, then in the item view select a [Time Plan] entry.", "type": "text"}, "5. what was done": {"content": "\u25b6 Change the status of a task in the same way.\n\n\u25b6 Planned hours and actual hours will be summed up the tree. Priority mean will be shown for all branches. Project status is calculated from actual vs. planned hours.", "type": "text"}} 195 | trees [[2], [2], [5]] 196 | 197 | item New Task 198 | fields {"3. actual hours": {"content": 0, "type": "integer"}, "1. planned hours": {"content": 0, "type": "integer"}, "2. priority (0-9)": {"content": 5, "type": "integer"}, "3. task description": {"content": "", "type": "text"}, "5. what was done": {"content": "", "type": "text"}} 199 | trees [[1, 1, 4], [], []] 200 | 201 | -------------------------------------------------------------------------------- /data/Single-MindMap.empty.trt: -------------------------------------------------------------------------------- 1 | --trees-- 2 | 3 | tree "Tree" 4 | field "Text" 5 | field-type "text" 6 | own-fields ["text"] 7 | child-fields [] 8 | sibling-fields [] 9 | parent-fields [] 10 | 11 | --item-types-- 12 | 13 | item New 14 | fields {"text": {"content": "", "type": "text"}} 15 | trees [[]] 16 | 17 | --item-pool-- 18 | 19 | item New 20 | fields {"text": {"content": "", "type": "text"}} 21 | trees [[0]] 22 | 23 | -------------------------------------------------------------------------------- /data/Tutorial.trt: -------------------------------------------------------------------------------- 1 | --trees-- 2 | 3 | tree "Task" 4 | field "Area" 5 | field-type "node-path" 6 | own-fields [] 7 | child-fields [] 8 | sibling-fields [] 9 | parent-fields [1] 10 | field "Progress" 11 | field-type "node-path" 12 | own-fields [] 13 | child-fields [] 14 | sibling-fields [] 15 | parent-fields [2] 16 | field "Summary" 17 | field-type "text" 18 | own-fields ["1. summary"] 19 | child-fields [] 20 | sibling-fields [] 21 | parent-fields [] 22 | 23 | tree "Area" 24 | 25 | tree "Progress" 26 | 27 | tree "Sandbox" 28 | field "Amount" 29 | field-type "sum" 30 | own-fields ["5. amount"] 31 | child-fields [] 32 | sibling-fields [] 33 | parent-fields [] 34 | field "Sum" 35 | field-type "sum" 36 | own-fields ["5. amount"] 37 | child-fields ["Sum"] 38 | sibling-fields [] 39 | parent-fields [] 40 | field "Diff" 41 | field-type "difference" 42 | own-fields ["5. amount"] 43 | child-fields ["Sum"] 44 | sibling-fields [] 45 | parent-fields [] 46 | field "Mean" 47 | field-type "mean" 48 | own-fields [] 49 | child-fields [] 50 | sibling-fields ["5. amount"] 51 | parent-fields [] 52 | field "Ratio" 53 | field-type "ratio" 54 | own-fields ["5. amount"] 55 | child-fields [] 56 | sibling-fields ["5. amount"] 57 | parent-fields [] 58 | field "Mean %" 59 | field-type "mean-percent" 60 | own-fields [] 61 | child-fields [] 62 | sibling-fields ["5. amount"] 63 | parent-fields [] 64 | field "Ratio %" 65 | field-type "ratio-percent" 66 | own-fields ["5. amount"] 67 | child-fields [] 68 | sibling-fields ["5. amount"] 69 | parent-fields [] 70 | field "Stop Watch" 71 | field-type "sum" 72 | own-fields ["6. stop watch"] 73 | child-fields [] 74 | sibling-fields [] 75 | parent-fields [] 76 | field "Sum Time" 77 | field-type "sum-time" 78 | own-fields ["6. stop watch"] 79 | child-fields ["Sum Time"] 80 | sibling-fields [] 81 | parent-fields [] 82 | field "Diff Time" 83 | field-type "difference-time" 84 | own-fields ["6. stop watch"] 85 | child-fields ["Sum Time"] 86 | sibling-fields [] 87 | parent-fields [] 88 | 89 | --item-types-- 90 | 91 | item New Item 92 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 93 | trees [[], [], [], []] 94 | 95 | --item-pool-- 96 | 97 | item A 98 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "Amount \u2014 the \"amount\" field of the item.\nSum \u2014 Node's \"amount\" field plus sum of all children's \"Sum\" fields.\nDiff \u2014 Node's \"amount\" field minus sum of all children's \"Diff\" fields.\nMean \u2014 Mean of all sibling's \"amount\" fields.\nRatio \u2014 Own \"amount\" field divided by sum of sibling's \"amount\" fields.\n", "type": "text"}, "3. then try": {"content": "Mean % \u2014 The same, times 100, and with a % sign.\nRatio % \u2014 The same, times 100, and with a % sign.\nStop Watch \u2014 Node's \"stop watch\" field.\nSum Time \u2014 Node's \"stop watch\" field plus sum of all children's \"Sum Time\" fields.\nDiff Time \u2014 Node's \"stop watch\" field minus sum of all children's \"Diff Time\" fields.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": null, "type": "integer"}, "6. stop watch": {"content": 0.0, "running_since": false, "type": "timer"}} 99 | trees [[], [], [], [0]] 100 | 101 | item To do 102 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 103 | trees [[], [], [0], []] 104 | 105 | item Running 106 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 107 | trees [[], [], [1], []] 108 | 109 | item Done 110 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 111 | trees [[], [], [2], []] 112 | 113 | item Trees 114 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 115 | trees [[], [0], [], []] 116 | 117 | item Items 118 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 119 | trees [[], [1], [], []] 120 | 121 | item User Interface 122 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 123 | trees [[], [2], [], []] 124 | 125 | item File Storage 126 | fields {"1. summary": {"content": "", "type": "string"}, "2. read first": {"content": "", "type": "text"}, "3. then try": {"content": "", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 127 | trees [[], [3], [], []] 128 | 129 | item 02. Data Items 130 | fields {"1. summary": {"content": "Get familiar with data", "type": "string"}, "2. read first": {"content": "Your data consists of two levels: Data items and tree nodes.\n\nData items are the objects we're looking at.\nEach item can have several fields. \nFields are like properties of an object.\n\nItem fields are shown in the centre-left part of TreeTime.", "type": "text"}, "3. then try": {"content": "Look at this item: \n\n\u2022 At the top theres a heading, \"02. Data Items\".\n\u2022 Underneath are four buttons that indicate the node position in each of the four trees.\n\u2022 Below are data fields ([1. summary], [2. read first], [3. then try], ...).\n\nGo to step 03.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 131 | trees [[0], [], [], []] 132 | 133 | item 04. Tree Nodes 134 | fields {"1. summary": {"content": "Get familiar with trees", "type": "string"}, "2. read first": {"content": "You store your objects and their properties using items, but you use trees to organise them.\n\nItems tell you \"what\" something is, tree nodes \"where\" something is.\n\nEach item can be organised as a node in several trees. A tree is a hierarchy. At this point (step 04) the trees are still flat. This will change in step 06.", "type": "text"}, "3. then try": {"content": "Look at the tree area on the right and:\n\n\u2022 Hover with the mouse between [^] and [Summary] and change the width of the column.\n\u2022 Click the first list heading to change the sort order.\n\u2022 Click the summary to change the sorting.\n\u2022 Restore the original sorting.\n\nDo the same with the [Area] and [Progress] tree, then go to step 05.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 135 | trees [[1], [], [], []] 136 | 137 | item 03. Edit Item Fields 138 | fields {"1. summary": {"content": "Edit data yourself", "type": "string"}, "2. read first": {"content": "There are five different possible field types:\n\u2022 String \u2014 a small text. Example: \"1. summary\".\n\u2022 Text \u2014 a larger text. Examples: \"2. read first\"\n\u2022 URL \u2014 an internet or file address. Can be edited or opened.\n\u2022 Value \u2014 a number. Example: \"5. amount\".\n\u2022 Stop Watch \u2014 counts seconds and lists them as hours in the item field and as time in the tree field (0.5 vs. \"00:30:00\").", "type": "text"}, "3. then try": {"content": "\u2022 Double click the title \"03. Edit Item Fields\" and change the text.\n\u2022 Double click each item field \"Edit data yourself\", then make a small change to the text.\n\u2022 Make a small change to the text above (next to \"read first\").\n\u2022 In this field, click and scroll down.\n\u2022 Click [Open] in the URL field. Then edit the address, and click [Open] again.\n\u2022 Double click next to \"5. amount\" and enter a value.\n\u2022 Hit the [Start] button. Switch to the [Progress] tree and back. Hit [Stop].\n\nAfter this, go to step 04.", "type": "text"}, "4. url": {"content": "www.tree-time.info", "type": "url"}, "5. amount": {"content": null, "type": "integer"}, "6. stop watch": {"content": 0.0, "running_since": false, "type": "timer"}} 139 | trees [[2], [], [], []] 140 | 141 | item 05. Create Items 142 | fields {"1. summary": {"content": "Learn how to create new nodes", "type": "string"}, "2. read first": {"content": "New items are alway created in the tree that is currently active (in this case, [Task]). \n\nIf an item is created using one of the [New...] buttons, the item will appear as a node only in the current tree.\n\nIf an item is created by one of the [Copy...] actions then existing parent-child relations in other threes are copied too.", "type": "text"}, "3. then try": {"content": "Create four new items by hitting the button [New Sibling], and give them the following names (not including the quotes):\n\n\"1. First Steps\"\n\"2. Intermediate Measures\"\n\"3. Advanced Moves\"\n\"4. Expert Knowledge\"", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 143 | trees [[3], [], [], []] 144 | 145 | item 07. Move Nodes and Branches 146 | fields {"1. summary": {"content": "Moving larger parts of a tree", "type": "string"}, "2. read first": {"content": "Nodes that have child nodes are called \"branches\". When moving a branch to a different position in the tree, all its children are moved as well.\nThey stay children of the original node.", "type": "text"}, "3. then try": {"content": "In the [Area] tree, create two new items:\n\n\"Data Model\", and \"Tool Use\". \nMove the nodes \"Items\" and \"Trees\" underneath \"Data Model\". Move the nodes \"File Storage\" and \"User Interface\" underneath \"Tool Use\".\n\nGo back to the [Task] tree and look at the \"Area\" and \"Progress\" tree fields. Then proceed to 08.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 147 | trees [[4], [], [], []] 148 | 149 | item 08. Remove Nodes and Branches 150 | fields {"1. summary": {"content": "Removing larger parts of a tree", "type": "string"}, "2. read first": {"content": "When removing a node using [Remove Node], the node is removed from the tree, and all its children are assigned to the node's parent.\n\nWhen removing a branch ([Remove Branch]), children are removed too.\n\nBoth operations only affect the current tree. Nodes are not removed from other trees.", "type": "text"}, "3. then try": {"content": "In the [Area] tree, remove the node \"Data Model\" using the [Remove Node (this Tree)] button.\n\nRemove the branch \"Tool Use\" by using the [Remove Branch (this Tree)] button.\n\nSwitch back to the [Task] tree and investigate the results, then proceed to 09.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 151 | trees [[5], [], [], []] 152 | 153 | item 09. Delete Items 154 | fields {"1. summary": {"content": "The difference between removal and deletion", "type": "string"}, "2. read first": {"content": "There are two cases when items get actually deleted:\n\n\u2022 One of the [Delete...] buttons is chosen\n\u2022 During a remove, an item is removed from all trees.\n\nItems can be deleted single ([Delete item]), or a whole branch. \nDeleting an entire branch can be dangerous, that's why an additional dialog asks whether you're sure.", "type": "text"}, "3. then try": {"content": "\u2022 Hit the button [Copy Node as Child] four times, creating four cascaded children in this tree, and siblings in the [Area] and [Progress] trees. Rename them \"A\", \"B\", \"C\", \"D\".\n\n\u2022 Select \"A\" and hit [Delete Item].\n\u2192 A is deleted from all trees, B-C-D is now a child branch of this node.\n\n\u2022 Select \"B\" and hit [Delete Branch].\n\u2192 B, C and D are entirely deleted.\n\nProceed to 10.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 155 | trees [[6], [], [], []] 156 | 157 | item 11. Data Analysis 158 | fields {"1. summary": {"content": "Mathematical operations on trees", "type": "string"}, "2. read first": {"content": "The fields you see in the tree area are calculated from the item fields. Possible operations are sums, differences, ratios, or string concatenations.\n\nEach operation can include a node's own fields, it's parent's fields, it's sibling's fields, and it's children's fields. Results can be displayed as numbers, text, percentage, or time.\n\nThis tree [Task] has the fields\n\u2022 \"Area\" (parents of the node in the [Area] tree),\n\u2022 \"Progress\" (parents in the [Progress] tree,\n\u2022 and \"Summary\" (the \"summary\" item field).\nThe trees \"Area\" and \"Progress\" have no tree fields.", "type": "text"}, "3. then try": {"content": "Go to the [Sandbox] tree. There is a node \"Fields\" describing the analysis fields.\n\n\u2022 Create child nodes \"B\", \"C\", then \"D\" and \"E\" as children of \"B\", and \"F\", \"G\" as schildren of \"C\". \n\u2022 Play with the \"amount\" and \"stop watch\" fields.\n\u2022 Remember that you can change column width and sorting.\n\nAfter this, proceed to step 12.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 159 | trees [[7], [], [], []] 160 | 161 | item 13. View Options 162 | fields {"1. summary": {"content": "Changing the look and feel of your software", "type": "string"}, "2. read first": {"content": "TreeTime can be used with three different colour schemes (dark, light, system) and two to four different window styles (depending on your operating system).\n\nThe settings can be changed in the [Settings] section of the button area and are remembered when TreeTime is restarted.", "type": "text"}, "3. then try": {"content": "Click [Settings] in the button area and try all colour and style combinations.\n\nThis is the end of this tutorial.\nThe next point (\"File Format\") is purely optional, and only manageable if you have some programming experience.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 163 | trees [[8], [], [], []] 164 | 165 | item 12. Data Export 166 | fields {"1. summary": {"content": "How to create text, csv, and html files", "type": "string"}, "2. read first": {"content": "Data can be exported as text with graphical tree decorations, as CSV to be imported into spreadsheet software, or as html to store or distribute information to others. There are two types of html export \u2014 list and tiles.\n\nIn addtion a [Copy to Clipboard] button copies the text to the clipboard.\n\nOperations can be executed on the entire current tree, or a selected branch. The level down to which children are included can be specified.", "type": "text"}, "3. then try": {"content": "In the button area, select [File]. \n\n\u2022 Export each of the different file types and look at them using external software (web browser, text editor, spread sheet software).\n\u2022 Try different values of the level parameter.\n\u2022 Click the [Text to Clipboard] button, open a text editor, and paste using [Ctrl]+[V].\n\nProceed to 13.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 167 | trees [[9], [], [], []] 168 | 169 | item 10. Data Files 170 | fields {"1. summary": {"content": "How data is stored and how changes are saved", "type": "string"}, "2. read first": {"content": "Once TreeTime has been opened with a data file, all changes you make are stored on the fly. There is no extra file saving necessary.\n\nWhen starting TreeTime, the last file is automatically opened.\n\nAny running stop watches keep running while TreeTime is closed.", "type": "text"}, "3. then try": {"content": "\n\u2022 Start the stop watch below, then close this window.\n\u2022 Wait some time, then start TreeTime again.\n\u2192 All last changes are saved and visible. The stop watch is still running.\n\nProceed to step 11.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 171 | trees [[10], [], [], []] 172 | 173 | item 14. File Format 174 | fields {"1. summary": {"content": "Optional: Only if you want to create your own .trt files.", "type": "string"}, "2. read first": {"content": "TreeTime stores its data in plain text files. A .trt file consists of three sections:\n\u2022 The tree definition. All trees are listed with their field definitions.\n\u2022 The default item. This is what a newly created item will look like. The item itself is in json format.\n\u2022 The pool of items. Each item is listed with its content (json), and an array of arrays, showing the tree paths for each tree for that item.", "type": "text"}, "3. then try": {"content": "Copy the Tutorial.trt file to a new file and open that in a text editor. Make changes, then try to load the result in TreeTime. The indent matters, and so do the newlines. Unfortunately atm there is no good error handling in case the syntax is wrong. In particular, see whether you can:\n\n\u2022 Create new tree fields in the other two trees.\n\u2022 Delete all data entries except one (TreeTime will not start with no entries. This is a bug).\n\u2022 Create a new tree. Remember to adjust all the arrays for each item.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 175 | trees [[11], [], [], []] 176 | 177 | item 01. The User Interface 178 | fields {"1. summary": {"content": "Welcome to TreeTime", "type": "string"}, "2. read first": {"content": "The TreeTime Window consists of\n\u2022 a button area (on the very left),\n\u2022 an item area (you're reading here now), and\n\u2022 a tree area (to the right of this text).\n\nThe button area has three main sections: [File], [Edit], [View], and [Settings].\nThe Item area has several fields.\nThe tree area has several tabs, each with a tree list.", "type": "text"}, "3. then try": {"content": "Maximise the TreeTime window.\n\n\u2022 In the button area, click [File], then [Edit], then [Settings]. Hover over each button and read the tool tip.\n\u2022 In the tree area, click [Area], then [Progress], then click [Task]. You see different trees.\n\nIn the tree area, select the next step, \"02. Data Items\".", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 179 | trees [[12], [], [], []] 180 | 181 | item 06. Move Nodes in Trees 182 | fields {"1. summary": {"content": "Re-arrange data inside the tree, add and remove", "type": "string"}, "2. read first": {"content": "In the item area, the buttons underneath the item's heading are the tree location buttons.\nThey display the path for each tree, respectively. Possible values of those buttons are:\n\n[ ] \u2014 the item is not a node in the tree.\n[>] \u2014 the item is a node at top level.\n[grandparent] [parent] [>] \u2014 the item is the child of node \"parent\", who is the child of node \"grandparent\" in the tree.\n\nClicking each button will open a menu with siblings of the current value, plus the two special entries \"move to top\" and \"remove\".\n\n", "type": "text"}, "3. then try": {"content": "Click on each of the items in this tree, and:\n\n\u2022 Click the button [>] next to the label \"Task\" and select one of the four new entries.\n\u2022 Click on the [ ] next to \"Area\" and select an area.\n\u2022 In the same way, select a progress.\n\nAfter this, look at the other trees,\nthen find and select step 07.", "type": "text"}, "4. url": {"content": "", "type": "url"}, "5. amount": {"content": 0, "type": "integer"}, "6. stop watch": {"content": 0, "running_since": false, "type": "timer"}} 183 | trees [[13], [], [], []] 184 | 185 | -------------------------------------------------------------------------------- /data/Work-Plan.trt: -------------------------------------------------------------------------------- 1 | --trees-- 2 | 3 | tree "Running Tasks" 4 | field "Priority" 5 | field-type "min-string" 6 | own-fields ["Status"] 7 | child-fields ["Status"] 8 | sibling-fields [] 9 | parent-fields [] 10 | field "Project" 11 | field-type "node-name" 12 | own-fields [] 13 | child-fields [] 14 | sibling-fields [] 15 | parent-fields [2] 16 | field "Planned Hours" 17 | field-type "sum-time" 18 | own-fields ["hours planned"] 19 | child-fields ["Planned Hours"] 20 | sibling-fields [] 21 | parent-fields [] 22 | field "Spent Hours" 23 | field-type "sum-time" 24 | own-fields ["hours spent"] 25 | child-fields ["Spent Hours"] 26 | sibling-fields [] 27 | parent-fields [] 28 | field "Progress" 29 | field-type "ratio-percent" 30 | own-fields ["Spent Hours", "Planned Hours"] 31 | child-fields [] 32 | sibling-fields [] 33 | parent-fields [] 34 | field "Planning" 35 | field-type "node-name" 36 | own-fields [] 37 | child-fields [] 38 | sibling-fields [] 39 | parent-fields [1] 40 | field "Status" 41 | field-type "node-name" 42 | own-fields [] 43 | child-fields [] 44 | sibling-fields [] 45 | parent-fields [3] 46 | 47 | tree "Time" 48 | field "Spent Hours" 49 | field-type "sum-time" 50 | own-fields ["hours spent"] 51 | child-fields ["Spent Hours"] 52 | sibling-fields [] 53 | parent-fields [] 54 | field "Planned Hours" 55 | field-type "sum-time" 56 | own-fields ["hours planned"] 57 | child-fields ["Planned Hours"] 58 | sibling-fields [] 59 | parent-fields [] 60 | field "Total Difference" 61 | field-type "difference-time" 62 | own-fields ["Spent Hours", "Planned Hours"] 63 | child-fields [] 64 | sibling-fields [] 65 | parent-fields [] 66 | field "Relative Difference" 67 | field-type "ratio-percent" 68 | own-fields ["Total Difference", "Planned Hours"] 69 | child-fields [] 70 | sibling-fields [] 71 | parent-fields [] 72 | field "Status" 73 | field-type "node-name" 74 | own-fields [] 75 | child-fields [] 76 | sibling-fields [] 77 | parent-fields [3] 78 | field "Project" 79 | field-type "node-path" 80 | own-fields [] 81 | child-fields [] 82 | sibling-fields [] 83 | parent-fields [2] 84 | 85 | tree "Projects" 86 | field "Start" 87 | field-type "min-string" 88 | own-fields ["Planning"] 89 | child-fields ["Start"] 90 | sibling-fields [] 91 | parent-fields [] 92 | field "End" 93 | field-type "max-string" 94 | own-fields ["Planning"] 95 | child-fields ["End"] 96 | sibling-fields [] 97 | parent-fields [] 98 | field "Spent Hours" 99 | field-type "sum-time" 100 | own-fields ["hours spent"] 101 | child-fields ["Spent Hours"] 102 | sibling-fields [] 103 | parent-fields [] 104 | field "Team" 105 | field-type "set" 106 | own-fields ["Person"] 107 | child-fields ["Team"] 108 | sibling-fields [] 109 | parent-fields [] 110 | field "Planned Hours" 111 | field-type "sum-time" 112 | own-fields ["hours planned"] 113 | child-fields ["Planned Hours"] 114 | sibling-fields [] 115 | parent-fields [] 116 | field "Total Difference" 117 | field-type "difference-time" 118 | own-fields ["Spent Hours", "Planned Hours"] 119 | child-fields [] 120 | sibling-fields [] 121 | parent-fields [] 122 | field "Relative Difference" 123 | field-type "ratio-percent" 124 | own-fields ["Total Difference", "Planned Hours"] 125 | child-fields [] 126 | sibling-fields [] 127 | parent-fields [] 128 | field "Planning" 129 | field-type "node-path" 130 | own-fields [] 131 | child-fields [] 132 | sibling-fields [] 133 | parent-fields [1] 134 | field "Person" 135 | field-type "node-name" 136 | own-fields [] 137 | child-fields [] 138 | sibling-fields [] 139 | parent-fields [4] 140 | 141 | tree "Status" 142 | field "Planning" 143 | field-type "node-path" 144 | own-fields [] 145 | child-fields [] 146 | sibling-fields [] 147 | parent-fields [1] 148 | field "Project" 149 | field-type "node-path" 150 | own-fields [] 151 | child-fields [] 152 | sibling-fields [] 153 | parent-fields [2] 154 | field "Person" 155 | field-type "node-path" 156 | own-fields [] 157 | child-fields [] 158 | sibling-fields [] 159 | parent-fields [4] 160 | field "Communication" 161 | field-type "node-path" 162 | own-fields [] 163 | child-fields [] 164 | sibling-fields [] 165 | parent-fields [5] 166 | field "Spent Hours" 167 | field-type "sum-time" 168 | own-fields ["hours spent"] 169 | child-fields ["Spent Hours"] 170 | sibling-fields [] 171 | parent-fields [] 172 | 173 | tree "Persons" 174 | field "Project" 175 | field-type "node-name" 176 | own-fields [] 177 | child-fields [] 178 | sibling-fields [] 179 | parent-fields [2] 180 | field "Planning" 181 | field-type "node-path" 182 | own-fields [] 183 | child-fields [] 184 | sibling-fields [] 185 | parent-fields [1] 186 | field "Status" 187 | field-type "node-name" 188 | own-fields [] 189 | child-fields [] 190 | sibling-fields [] 191 | parent-fields [3] 192 | field "Spent Hours" 193 | field-type "sum-time" 194 | own-fields ["hours spent"] 195 | child-fields ["Spent Hours"] 196 | sibling-fields [] 197 | parent-fields [] 198 | 199 | tree "Communication" 200 | field "Project" 201 | field-type "node-path" 202 | own-fields [] 203 | child-fields [] 204 | sibling-fields [] 205 | parent-fields [2] 206 | field "Details" 207 | field-type "text" 208 | own-fields ["details"] 209 | child-fields [] 210 | sibling-fields [] 211 | parent-fields [] 212 | field "Planning" 213 | field-type "node-name" 214 | own-fields [] 215 | child-fields [] 216 | sibling-fields [] 217 | parent-fields [1] 218 | field "Person" 219 | field-type "node-name" 220 | own-fields [] 221 | child-fields [] 222 | sibling-fields [] 223 | parent-fields [4] 224 | field "Status" 225 | field-type "node-name" 226 | own-fields [] 227 | child-fields [] 228 | sibling-fields [] 229 | parent-fields [3] 230 | field "Link" 231 | field-type "url" 232 | own-fields ["external link"] 233 | child-fields [] 234 | sibling-fields [] 235 | parent-fields [] 236 | 237 | tree "Reference" 238 | field "Details" 239 | field-type "text" 240 | own-fields ["details"] 241 | child-fields [] 242 | sibling-fields [] 243 | parent-fields [] 244 | 245 | --item-types-- 246 | 247 | item Entry 248 | fields {"external link": {"content": "", "type": "url"}, "details": {"content": "", "type": "text"}, "hours planned": {"content": 0, "type": "integer"}, "hours spent": {"content": 0, "running_since": false, "type": "timer"}} 249 | trees [[], [], [], [], [], [], []] 250 | 251 | --item-pool-- 252 | 253 | item Entry 254 | fields {"external link": {"content": "", "type": "url"}, "details": {"content": "", "type": "text"}, "hours planned": {"content": 0, "type": "integer"}, "hours spent": {"content": 0, "running_since": false, "type": "timer"}} 255 | trees [[], [], [], [0], [], [], []] 256 | 257 | -------------------------------------------------------------------------------- /data/treetime-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/data/treetime-logo.png -------------------------------------------------------------------------------- /data/treetime.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=TreeTime 3 | GenericName=Graphical Tree Manager 4 | Comment=TreeTime is a graphical tool to analyse data using trees 5 | Exec=python3 -m treetime 6 | Type=Application 7 | Icon=/home/jacob/software/treetime/data/treetime-logo.png 8 | Categories=Office;Education;Qt; 9 | -------------------------------------------------------------------------------- /docs/404.html: -------------------------------------------------------------------------------- 1 | --- 2 | layout: default 3 | --- 4 | 5 | 18 | 19 |
20 |

404

21 | 22 |

Page not found :(

23 |

The requested page could not be found.

24 |
25 | -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | tree-time.info -------------------------------------------------------------------------------- /docs/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | # Hello! This is where you manage which Jekyll version is used to run. 4 | # When you want to use a different version, change it below, save the 5 | # file and run `bundle install`. Run Jekyll with `bundle exec`, like so: 6 | # 7 | # bundle exec jekyll serve 8 | # 9 | # This will help ensure the proper Jekyll version is running. 10 | # Happy Jekylling! 11 | # gem "jekyll", "~> 3.9.0" 12 | 13 | # This is the default theme for new Jekyll sites. You may change this to anything you like. 14 | gem "minima", "~> 2.0" 15 | 16 | # If you want to use GitHub Pages, remove the "gem "jekyll"" above and 17 | # uncomment the line below. To upgrade, run `bundle update github-pages`. 18 | gem "github-pages", group: :jekyll_plugins 19 | 20 | # If you have any plugins, put them here! 21 | group :jekyll_plugins do 22 | gem "jekyll-feed", "~> 0.6" 23 | end 24 | 25 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem 26 | # and associated library. 27 | platforms :mingw, :x64_mingw, :mswin, :jruby do 28 | gem "tzinfo", "~> 1.2" 29 | gem "tzinfo-data" 30 | end 31 | 32 | # Performance-booster for watching directories on Windows 33 | gem "wdm", "~> 0.1.0", :platforms => [:mingw, :x64_mingw, :mswin] 34 | 35 | # kramdown v2 ships without the gfm parser by default. If you're using 36 | # kramdown v1, comment out this line. 37 | gem "kramdown-parser-gfm" 38 | 39 | -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | # Welcome to Jekyll! 2 | # 3 | # This config file is meant for settings that affect your whole blog, values 4 | # which you are expected to set up once and rarely edit after that. If you find 5 | # yourself editing this file very often, consider using Jekyll's data files 6 | # feature for the data you need to update frequently. 7 | # 8 | # For technical reasons, this file is *NOT* reloaded automatically when you use 9 | # 'bundle exec jekyll serve'. If you change this file, please restart the server process. 10 | 11 | # Site settings 12 | # These are used to personalize your new site. If you look in the HTML files, 13 | # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. 14 | # You can create any custom variable you would like, and they will be accessible 15 | # in the templates via {{ site.myvariable }}. 16 | title: TreeTime 17 | email: jkanev@zoho.com 18 | description: >- # this means to ignore newlines until "baseurl:" 19 | Take notes. Track tasks. Plan projects. Organize knowledge. Using trees:
20 | baseurl: "" # the subpath of your site, e.g. /blog 21 | url: "http://tree-time.info" # the base hostname & protocol for your site, e.g. http://example.com 22 | github_username: jkanev 23 | logo: https://raw.githubusercontent.com/jkanev/treetime/master/data/treetime-logo.png 24 | 25 | # Build settings 26 | markdown: kramdown 27 | theme: jekyll-theme-slate 28 | plugins: 29 | - jekyll-feed 30 | 31 | # Exclude from processing. 32 | # The following items will not be processed, by default. Create a custom list 33 | # to override the default setting. 34 | # exclude: 35 | # - Gemfile 36 | # - Gemfile.lock 37 | # - node_modules 38 | # - vendor/bundle/ 39 | # - vendor/cache/ 40 | # - vendor/gems/ 41 | # - vendor/ruby/ 42 | -------------------------------------------------------------------------------- /docs/abcde01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/abcde01.png -------------------------------------------------------------------------------- /docs/abcde02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/abcde02.png -------------------------------------------------------------------------------- /docs/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | title: About 4 | permalink: /about/ 5 | --- 6 | 7 | This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/) 8 | 9 | You can find the source code for Minima at GitHub: 10 | [jekyll][jekyll-organization] / 11 | [minima](https://github.com/jekyll/minima) 12 | 13 | You can find the source code for Jekyll at GitHub: 14 | [jekyll][jekyll-organization] / 15 | [jekyll](https://github.com/jekyll/jekyll) 16 | 17 | 18 | [jekyll-organization]: https://github.com/jekyll 19 | -------------------------------------------------------------------------------- /docs/assets/css/style.scss: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | 4 | @import "{{ site.theme }}"; 5 | 6 | .inner { 7 | max-width: 80%; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- 1 | # Configuration file for the Sphinx documentation builder. 2 | # 3 | # This file only contains a selection of the most common options. For a full 4 | # list see the documentation: 5 | # https://www.sphinx-doc.org/en/master/usage/configuration.html 6 | 7 | # -- Path setup -------------------------------------------------------------- 8 | 9 | # If extensions (or modules to document with autodoc) are in another directory, 10 | # add these directories to sys.path here. If the directory is relative to the 11 | # documentation root, use os.path.abspath to make it absolute, like shown here. 12 | # 13 | # import os 14 | # import sys 15 | # sys.path.insert(0, os.path.abspath('.')) 16 | 17 | 18 | # -- Project information ----------------------------------------------------- 19 | 20 | project = 'TreeTime User Manual' 21 | copyright = 'CC BY-SA 4.0, Jacob Kanev' 22 | author = 'Jacob Kanev' 23 | 24 | # The full version, including alpha/beta/rc tags 25 | release = '2025.1' 26 | 27 | 28 | # -- General configuration --------------------------------------------------- 29 | 30 | # Add any Sphinx extension module names here, as strings. They can be 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 32 | # ones. 33 | extensions = [ 34 | ] 35 | 36 | # Add any paths that contain templates here, relative to this directory. 37 | templates_path = ['_templates'] 38 | 39 | # List of patterns, relative to source directory, that match files and 40 | # directories to ignore when looking for source files. 41 | # This pattern also affects html_static_path and html_extra_path. 42 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] 43 | 44 | 45 | # -- Options for HTML output ------------------------------------------------- 46 | 47 | # The theme to use for HTML and HTML Help pages. See the documentation for 48 | # a list of builtin themes. 49 | # 50 | html_theme = 'alabaster' 51 | 52 | # Add any paths that contain custom static files (such as style sheets) here, 53 | # relative to this directory. They are copied after the builtin static files, 54 | # so a file named "default.css" will overwrite the builtin "default.css". 55 | html_static_path = ['_static'] 56 | -------------------------------------------------------------------------------- /docs/data-fields.rst: -------------------------------------------------------------------------------- 1 | 2 | Data Fields 3 | =========== 4 | 5 | Data fields are defined by a dictionary ``{...}`` where the field names are the dictionary keys ``{"name1": ..., "name2": ..., "name3": ...}``, and their type as well as their default value are the dictionary valuues ``{"name1": {"content": "", "type": "longtext"}, "name2": {"content": "", "type": "url"}, "name3": ...}``. 6 | The possible types are "string", "text", "longtext", "url", "integer", and "timer". 7 | 8 | string 9 | ------ 10 | 11 | One line of text.:: 12 | 13 | "Name": {"content": "Maria Sibylla Merian", "type": "string"} 14 | 15 | The field contains strings (small texts). In the GUI, the field will span one line. Text can be entered. 16 | 17 | text 18 | ---- 19 | 20 | Longer text.:: 21 | 22 | "details": {"content": "Please do the following: ", "type": "text"} 23 | 24 | The field can contain longer text. In the GUI, there are 10 lines and there's a scrollbar for entering longer texts. 25 | 26 | longtext 27 | -------- 28 | 29 | Quite long text.:: 30 | 31 | "details": {"content": "We discussed the following...", "type": "longtext"} 32 | 33 | Identical to the text field, but in the GUI there are 25 lines and a scrollbar. 34 | 35 | url 36 | --- 37 | 38 | A URl of any type (file, http, ...).:: 39 | 40 | "external link": {"content": "https://tree-time.info", "type": "url"} 41 | 42 | In the GUI there's a text field and a button saying "Open". Clicking the button will use the the content of the text field and call the open method defined in the operating system (e.g. a content of "https://tree-time.info" or "file:///home/myself/downloads/pass-word.info.html" would be opened with your default web browser). 43 | 44 | integer 45 | ------- 46 | 47 | A number.:: 48 | 49 | "hours planned": {"content": 4, "type": "integer"} 50 | 51 | A simple number, can be a floating point number such as -1.23456. 52 | 53 | timer 54 | ----- 55 | 56 | A stop watch counting hours/minutes/seconds.:: 57 | 58 | "hours spent": {"content": 0, "running_since": false, "type": "timer"} 59 | 60 | In the GUI there will be a "Start" button and the field will contain a number. 61 | 62 | Hitting the "Start" button will change the text in the field to "stop watch running", and the text on the button changes to "Stop". The stored item in the fiel changes to: ``"hours spent": {"content": 1.2000021166666666, "running_since": "2024-04-17 10:25:03", "type": "timer"}``. The actual tree field values will get updated once a second, including all branches and parents, updating all values like ratios and sums. It makes sense to use tree fields like *ratio-time* and *sum-time* to see the value in hh:mm:ss format instead of floating point numbers. The stop watch keeps running even when the file is closed or the computer is shut down. 63 | 64 | Hitting the "Stop" button will display the currently summed up value in the field, and the text on the button changes to "Start" again. In the file, the "running" flag is removed: ``"hours spent": {"content": 1.3, "running_since": false, "type": "timer"}`` 65 | 66 | Subsequent start/stops on the button will add to the total value. 67 | -------------------------------------------------------------------------------- /docs/data-format.rst: -------------------------------------------------------------------------------- 1 | 2 | Data Format 3 | =========== 4 | 5 | Global Structure 6 | ^^^^^^^^^^^^^^^^ 7 | 8 | TreeTime data files are plain text (Unicode/UTF8) and can be edited with any text editor. The global structure consists of three parts: The tree definition, the item definition, and the item pool. 9 | 10 | - The tree definition is preceded with the marker ``--trees--`` followed by a newline. This defines the number and data structure of the trees in the file. 11 | - The data item definition is preceded by the marker ``--item-types--`` followed by a newline. This defines the data fields of each data item. 12 | - The item pool is preceded by the marker ``--item-pool--`` followed by a newline. This section contains the actual data. 13 | 14 | The file content of the simple example file in the Introduction chapter looks like this:: 15 | 16 | --trees-- 17 | 18 | tree "Tree 1" 19 | field "Value" 20 | field-type "sum" 21 | own-fields ["value"] 22 | child-fields [] 23 | sibling-fields [] 24 | parent-fields [] 25 | field "Sum" 26 | field-type "sum" 27 | own-fields ["value"] 28 | child-fields ["Sum"] 29 | sibling-fields [] 30 | parent-fields [] 31 | 32 | tree "Tree 2" 33 | field "Value" 34 | field-type "sum" 35 | own-fields ["value"] 36 | child-fields [] 37 | sibling-fields [] 38 | parent-fields [] 39 | field "Sum" 40 | field-type "sum" 41 | own-fields ["value"] 42 | child-fields ["Sum"] 43 | sibling-fields [] 44 | parent-fields [] 45 | 46 | --item-types-- 47 | 48 | item Node 49 | fields {"value": {"content": 0, "type": "integer"}} 50 | trees [[], []] 51 | 52 | --item-pool-- 53 | 54 | item A 55 | fields {"value": {"content": 1, "type": "integer"}} 56 | trees [[0], [0, 0, 0]] 57 | 58 | item B 59 | fields {"value": {"content": 2, "type": "integer"}} 60 | trees [[0, 0], [0, 0]] 61 | 62 | item C 63 | fields {"value": {"content": 3, "type": "integer"}} 64 | trees [[0, 1], [0, 0, 1]] 65 | 66 | item D 67 | fields {"value": {"content": 4, "type": "integer"}} 68 | trees [[0, 0, 0], [0]] 69 | 70 | item E 71 | fields {"value": {"content": 5, "type": "integer"}} 72 | trees [[0, 0, 1], [0, 1]] 73 | 74 | 75 | Tree Definition 76 | ^^^^^^^^^^^^^^^ 77 | 78 | A single tree is defined by the name of the tree and a list of tree fields. A node's tree field values are calculated from data fields or tree fields of the node itself, its siblings, parent and children. Each of these are mentioned in the field definition. There are various different field types, some use values in the current tree, some use values from other trees. You can for example display the name of a node's parent in a different tree. Trees are numbered starting with 0. Look at the first tree in the example:: 79 | 80 | tree "Tree 1" 81 | field "Value" 82 | field-type "sum" 83 | own-fields ["value"] 84 | child-fields [] 85 | sibling-fields [] 86 | parent-fields [] 87 | field "Sum" 88 | field-type "sum" 89 | own-fields ["value"] 90 | child-fields ["Sum"] 91 | sibling-fields [] 92 | parent-fields [] 93 | 94 | The tree itself is called "Tree 1". It has two tree fields, "Value" and "Sum". The tree field "Value" is of type "sum", and it displays anything that is found in the data item field "value". The tree field "Sum" is also of type "Sum" and for each node it adds everything in the node's item field "value", plus all values in the tree field "Sum" of its children. 95 | 96 | More about how to define tree fields in the next chapter. 97 | 98 | Data Item Definition 99 | ^^^^^^^^^^^^^^^^^^^^ 100 | 101 | Each node in a tree is stored as a "data item". In the data file a "data item" is stored like this:: 102 | 103 | item A 104 | fields {"value": {"content": 1, "type": "integer"}} 105 | trees [[], []] 106 | 107 | After four spaces indent, there's the keyword "item" and the name (in this case "A"). This is the name that's displayed in the heading of the data item pane in the GUI, and as the node name in the tree pane of the GUI. 108 | The next line, after an indent of 8 spaces, has the keyword "fields" followed by a json dictionary:: 109 | 110 | "field name 1": {"content": 1, "type": "integer"}, "field name 2": ... 111 | 112 | In this dictionary, each data field has a sub-dictionary listing its default content, the field type, and possibly some other values (timers have a running/stopped flag and a last-started flag). When a new item/node is created, this default content will be in all data fields. In the example above, a new node will contain one single field called "value" with the content "1". 113 | 114 | For a description of all possible data field types, see the Data Fields chapter. 115 | 116 | The last line, "trees ...", must contain an array of *N* empty arrays, where *N* is the number of trees in your file. If you have four trees in your tree fiel, that line must read:: 117 | 118 | trees [[], [], [], []] 119 | 120 | This makes your field definition available in all trees (and creates an error otherwise). 121 | 122 | The Data Pool 123 | ^^^^^^^^^^^^^ 124 | 125 | The Data Pool is the last of the three sections of the tree file, and in most cases the largest. This is where the actual data is stored. 126 | It consists of a list of items in the tree, with a syntax like in the data item definition section:: 127 | 128 | item D 129 | fields {"value": {"content": 4, "type": "integer"}} 130 | trees [[0, 0, 0], [0]] 131 | 132 | item E 133 | fields {"value": {"content": 5, "type": "integer"}} 134 | trees [[0, 0, 1], [0, 1]] 135 | 136 | The content here is the actual content in the field. The tree structure is stored in the last line: :: 137 | 138 | trees [[0, 0, 1], [0, 1]] 139 | 140 | This is an array of arrays, each of which is a path in the tree. In the example above the node can be found following the path 0-0-1 in the first tree starting at the root node, and 0-1 in the second tree. Children are numbered using fixed indexes, starting at 0. A path of 0-0-1 means: My node is the second child (-1) of the first child (-0-1) of the first child (0-0-1) of the root node in the (first) tree. And in the second tree, the path 0-1 says the node is the second child of the first child of the root. 141 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | 2 | logo 3 | 4 | #### _TreeTime_ is a time planner, to-do list manager, mind-map editor, test report tool, project planner, family ancestry editor, and more. #### 5 | 6 | _TreeTime_ is like a spreadsheet editor using linked trees instead of tables. 7 | 8 | A tree arranges data into units and sub-units instead of using flat lists. Mathematical functions like sums, differences, or ratios can be calculated recursively. 9 | 10 | Linked trees are distinct trees that share data between them. In _TreeTime_, any data object may be part of several trees at the same time. 11 | 12 | 13 | 14 | 15 | 16 | ## What is a Tree? ## 17 | 18 | A "tree" is a data structure, much like a table or a list. 19 | A tree sorts information hierarchically into boxes and sub-boxes and sub-sub-boxes. 20 | You could make a time plan that divides a year into quarters, that consist of weeks, each containing a number of activities. 21 | You can have an address book where you have a hierarchy of friends / colleagues / aquaintances, or you can sort knowledge about animals into kingdom / class / family / species. 22 | 23 | The core concept of _TreeTime_ are *linked* trees. 24 | Linked trees are different trees sharing the same data. 25 | One piece of information (a task, note, person, week, generally a _node_) can be in several trees at the same time, but in different place of the tree. 26 | 27 | If you want to organise your work tasks you could sort them into weekly activities, that are part of work packages, that are part of projects. 28 | At the same time you can organise those tasks by responsible persons, who are part of teams, that are part of departments, that are part of branches. In _TreeTime_ you can easily switch between the two. Selecting a node selects and highlights it in all trees. 29 | 30 | The nice thing about trees is that you can define mathematical functions on them. 31 | Planned hours can be summed up per work package and project, or per person and team, or per week and month. 32 | A mean priority can be shown per work package and project. 33 | 34 | ## Features ## 35 | 36 | 37 | 38 | 39 | 40 | * Files and Saving: Start new files from templates / Load files / Save files / Text export / CSV export / Html export / Export single branches or entire trees 41 | 42 | * Editing trees: Create parents, siblings, children / Edit text, dates, values in nodes / Copy nodes to siblings, children, parents / Copy branches to siblings down to a pre-defined level / Remove nodes from single trees / Remove nodes from all trees / Remove branches from single trees / Remove branches recursively from all trees 43 | 44 | * Data analyis: Measure time using node timers in nodes / Add total time up branches / Calculate sums, differences, ratios and percentages between branches, siblings or children / Concatenate text of children or siblings / Auto-update of all functions up the tree on node change 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | ## Documentation ## 55 | 56 | [TreeTime Documentation](https://treetime-data-manager.readthedocs.io/en/latest) on readthedocs.io is constantly being kept up to date. 57 | 58 | ## Get TreeTime ## 59 | 60 | #### Unpack-and-run Zip Files #### 61 | 62 | - Windows, Linux: Go to [github.com/jkanev/treetime/releases/tag/2025.1](https://github.com/jkanev/treetime/releases/tag/2025.1) and download a zipped package for Windows 10, 64 bit, or for Linux 64 bit from there. Unzip it into your program directory and run _TreeTime_ or _TreeTime.exe_ from the new folder. Unzip the data package too. Add the program folder to your path. 63 | 64 | Executable bundles have been created with pyinstaller ([www.pyinstaller.org](http://www.pyinstaller.org)). 65 | 66 | - Mac: Mac users please use the Python code (see below). There is no executable for Mac. 67 | (If anybody can help building an executable for other platforms I'd be delighted.) 68 | 69 | #### Python / PyPi #### 70 | 71 | 1. Install python3 72 | 2. Install PyQt6 -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: 73 | `pip install PyQt6` 74 | 3. Install _TreeTime_ -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: 75 | `pip install treetime` 76 | 77 | #### Python / Source Code #### 78 | 79 | 1. Install python3 80 | 2. Install PyQt6 -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: `pip install PyQt6` 81 | 3. Download this project from GitHub as a zip file (https://github.com/jkanev/treetime/archive/master.zip) and unzip 82 | 4. Install _TreeTime_: in the command line, cd into the main directory, then type: 83 | - Linux: 84 | `python3 setup.py build` 85 | `sudo python3 setup.py install` 86 | - Windows: 87 | `py setup.py build` 88 | `py setup.py install` 89 | 90 | #### Run TreeTime #### 91 | 92 | - Windows: Hit the Windows key and type "TreeTime", then click the "run command treetime" that comes up. 93 | - Linux, Mac: On the command line, type "TreeTime". You can also start this any other way your operating system supports. Plus, there's a .desktop file (for KDE and Gnome) in the data directory to create desktop or menu link. 94 | 95 | ## Bugs and Problems ## 96 | 97 | A list of bugs can be found [here](https://github.com/jkanev/treetime/issues). 98 | 99 | ## Licensing and Payment ## 100 | 101 | _TreeTime_ is free, both in the _beer_ and in the _freedom_ sense. The source code is published under a GPL 3.0 license. If you want to contribute code or join the project, you're highly welcome. 102 | 103 | -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- 1 | 2 | .. image:: ../../treetime/data/treetime-logo.png 3 | :align: left 4 | :scale: 50% 5 | 6 | *TreeTime* is a general data organisation, management and analysis tool using linked trees instead of flat lists of tables. 7 | A tree is a hierarchical structure that arranges your data into units and sub-units. 8 | Mathematical functions (sum, difference, mean, ratio) can be calculated recursively. 9 | Linked trees are distinct trees that share data between them. 10 | In *TreeTime*, a data object is part of several trees at the same time. 11 | *TreeTime* is a time planner, a to-do list manager, a test report tool, a project planner, a family ancestry editor, a mind-mapping tool, and similar. 12 | 13 | Content 14 | ------- 15 | 16 | .. toctree:: 17 | :maxdepth: 2 18 | 19 | introduction 20 | data-format 21 | data-fields 22 | tree-fields 23 | releases 24 | 25 | * :ref:`genindex` 26 | * :ref:`modindex` 27 | * :ref:`search` 28 | -------------------------------------------------------------------------------- /docs/introduction.rst: -------------------------------------------------------------------------------- 1 | 2 | Introduction 3 | ============ 4 | 5 | Concept 6 | ------- 7 | 8 | What is a Tree? 9 | ^^^^^^^^^^^^^^^ 10 | 11 | A "tree" is a data structure, much like a table or a list. 12 | A tree sorts information hierarchically into boxes and sub-boxes and sub-sub-boxes. 13 | 14 | If you want to organise your work tasks you could sort them into work packages, that are part of projects, that are part of products. 15 | If you plan a larger project, you can sort all tasks by responsible persons, who are part of teams, that are part of departments, that are part of branches. 16 | You can also make a time plan, where a year consists of quarters, that consist of weeks, that contain a number of tasks. 17 | You can have an address book where you have a hierarchy of friends / colleagues / aquaintances, or you can sort knowledge about animals into kingdom / class / family / species. 18 | 19 | The nice thing about trees is that you can define mathematical functions on them. 20 | Planned hours can be summed up per work package and project, or per person and team, or per week and month. 21 | A mean priority can be shown per work package and project. 22 | 23 | The concept of hierarchical categorisation can be applied to all sorts of data and will feel a lot more natural and easier to use than organising the same data in spread sheets. 24 | 25 | What are linked Trees? 26 | ^^^^^^^^^^^^^^^^^^^^^^ 27 | 28 | The core concept of *TreeTime* are linked trees. 29 | Linked trees are separate trees that share the same data. 30 | One piece of information (a *node*) can be in several trees at the same time, but in different place of the tree. 31 | As a single tree is a way of sorting information, different linked trees sort the same data in different ways. 32 | 33 | .. image:: linked-trees.png 34 | :align: center 35 | 36 | In *Tree 1*, Node *E* is right at the bottom, as a child of *B* and a grandchild of *A*. In *Tree 2* it is a child of *D*. 37 | 38 | In *TreeTime*, a *node* or *item* can hold different information like text, numbers, dates, internet links. 39 | These are saved in the *item's* *fields*. 40 | 41 | Here we have a field we call "value". Each node in all trees has a value field that can hold a number (like a cell in a spread sheet). 42 | The node A has the value=1, B=2, etc. 43 | In addition we have a field we call "Sum". 44 | Its content is calculated automatically, summing up the item's own value plus the values of all children. 45 | In *TreeTime*, looking at item *E* and *Tree 1* this looks like this: 46 | 47 | .. image:: abcde01.png 48 | :align: center 49 | 50 | Clicking on the other tab shows the second tree while the same items stays selected: 51 | 52 | .. image:: abcde02.png 53 | :align: center 54 | 55 | Note how the values are summed up the branches. 56 | Apart from sums, *TreeTime* also offers means, ratios, or differences, using different combinations of parent, child, or sibling fields. 57 | 58 | Linked trees are a natural and powerful way to structure data. 59 | If you, for instance, organise information about animals, you might want to see the animal's taxonomy (kingdom/class/family/species), but also their habitat (continent/country/area), and switch between both views. 60 | If you organise tasks, you could switch between a year/quarter/week/day breakdown, a company/department/team/person tree, and a product/project/package/task overview. 61 | 62 | In *TreeTime*, the structure of your data (whether you store priority, hours, and a description for a task, or expected life span, habitat and number of legs for an animal), the trees themselves, and the calculated values within the trees are completely user defined. Data is stored in text files, changes are saved on the fly, and when opening *TreeTime*, the software is automatically connected to the last used file. 63 | 64 | Basic Use 65 | --------- 66 | 67 | Start the software (see 'Execute' from the section [Installation](#id-installation)). In the main dialog, go to "File" / "New from Template", select "Simple-Task-List.trt" and in the next dialog give a file name for the new file. An example file with a simple project task list structure will open. 68 | 69 | The GUI consists of three parts: 70 | - A button box on the left. Execute tree structure operations from here. 71 | - An editing grid in the middle, showing the contents of the selected data item. Edit single data items here. 72 | - A tab view with tress spanning the center-right. View and analyse your data here. 73 | 74 | .. image:: screenshot01.png 75 | :align: center 76 | 77 | Access each single tree by clicking a tab on the main tree-view widget (the picture above shows the tree *Time Plan*, the picture below the tree *Projects*). 78 | 79 | .. image:: screenshot02.png 80 | :align: center 81 | 82 | Branches and children can be sorted, branches can be folded and unfolded. Data content is shown via analytic fields that are defined per tree. In the example project you will see a sum, a percentage, and text display. 83 | 84 | Add, move and remove single nodes and complete branches by using the buttons on the left. Change the name of a node by selecting the node and editing the name in the top of the edit grid in the middle. Change all other values (numbers or text) by clicking into the field and start typing. 85 | 86 | The parents of an item are listed underneath the item name. Each tree has a separate line. Change the position of a node within a tree by clicking on any of the parent buttons. 87 | 88 | .. image:: screenshot03.png 89 | :align: center 90 | 91 | In this example a new node in the tree *Time Plan* has just been created, and is now added to the tree *Projects*. 92 | 93 | *TreeTime* lets you select different themes and will try to use the default colours that are defined with your operating system. 94 | 95 | .. image:: screenshot04.png 96 | :align: center 97 | 98 | Data Files 99 | ---------- 100 | 101 | The data in TreeTime is stored in a plain text file, marked with a 'trt' file ending ('trt' for 'TreeTime'). 102 | 103 | The button 'Load File' will open an existing 'trt' file. After this, all changes are written to that file. There is no 'Save' button, changes are written to the file immediately. 104 | 105 | The button 'New From Template' opens an existing data file, creates a copy, and saves this copy. A data file can be created by copying the currently open file. All write operations will be performed on that copy. This is to create a new file from a basically empty 'trt' file that has a pre-defined data structure. 106 | 107 | A data file can be created by saving the currently open file to a copy. The button 'Save As' saves the current state. All write operations will be on the new file. 108 | 109 | Installation 110 | ------------ 111 | 112 | Using pre-compiled Binaries 113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 114 | 115 | - Windows, Linux: Go to [github.com/jkanev/treetime/releases/tag/2025.1](https://github.com/jkanev/treetime/releases/tag/2025.1) and download a zipped package for Windows 10, 64 bit, or for Linux 64 bit from there. Unzip it into your program directory and run *TreeTime* or *TreeTime.exe* from the new folder. Unzip the data package too. Add the program folder to your path. 116 | 117 | Executable bundles have been created with pyinstaller ([www.pyinstaller.org](http://www.pyinstaller.org)). 118 | 119 | - Mac: Mac users please use the Python code (see below). There is no executable for Mac. 120 | (If anybody can help building an executable for other platforms I'd be delighted.) 121 | 122 | Using a PyPi package in Python 123 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 124 | 125 | 1. If you don't have it yet, install python3 126 | 2. Install PyQt6 -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: 127 | `pip install PyQt6` 128 | 3. Install *TreeTime* -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: 129 | `pip install treetime` 130 | 131 | Using script code with Python 132 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 133 | 134 | 1. If you don't have it yet, install python3 135 | 2. Install PyQt6 -- on an elevated command prompt (Windows), or on the standard command line (Mac, Linux), type: `pip install PyQt6` 136 | 3. Download this project from GitHub as a zip file (https://github.com/jkanev/treetime/archive/master.zip) and unzip 137 | 4. Install *TreeTime*: in the command line, cd into the main directory, then type: 138 | - Linux: 139 | - `python3 setup.py build` 140 | - `sudo python3 setup.py install` 141 | - Windows: 142 | - `py setup.py build` 143 | - `py setup.py install` 144 | 145 | 146 | Execute 147 | ^^^^^^^ 148 | 149 | - Windows: Hit the Windows key and type "TreeTime", then click the "run command treetime" that comes up. 150 | - Linux, Mac: On the command line, type "TreeTime". You can also start this any other way your operating system supports. Plus, there's a .desktop file (for KDE and Gnome) in the data directory to create desktop or menu link. 151 | 152 | 153 | -------------------------------------------------------------------------------- /docs/linked-trees.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/linked-trees.dia -------------------------------------------------------------------------------- /docs/linked-trees.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/linked-trees.png -------------------------------------------------------------------------------- /docs/releases.rst: -------------------------------------------------------------------------------- 1 | History and Road Map 2 | ==================== 3 | 4 | Past 5 | ---- 6 | 7 | 2015 8 | ^^^^ 9 | 10 | * November: First implementation, simple data types, simple GUI 11 | 12 | 2016 13 | ^^^^ 14 | 15 | * February: Implemented selection (the same item gets selected in all trees, changing a tab shows the same item) 16 | * March: Implemented remaining local functionality (Copy Branch as Sibling, Copy Children to Siblings, Remove from this Tree, Delete Item) 17 | * August: Created installable python package 18 | 19 | 2017 20 | ^^^^ 21 | 22 | * May: Implemented new field type *text* 23 | * June: Create deployable packages for Linux and Windows 24 | * June: Made **pre-release v0.0** available 25 | * October: Implemented new field type *node-path*, re-wrote the way nodes move to new parents 26 | * November: Uploaded package to pypi.python.org, *TreeTime* can now be installed using pip 27 | 28 | 2018 29 | ^^^^ 30 | 31 | * October: Re-implemented the parent selection mechanism. The old cascaded menus have been replaced with single drop down lists. 32 | * October: Re-furbished the GUI and removed a couple of bugs. Slighty changed the data file format. Implemented theme selection. Tested pyqtdeploy for deployment instead of pyinstaller. Updated the description. 33 | * November: Released **version 2018-10** 34 | 35 | 2019 36 | ^^^^ 37 | 38 | * January: Implemented new field type "URL" 39 | 40 | 2020 41 | ^^^^ 42 | 43 | * June: Fixed problem with protected cells (typing into a cell without data could cause a crash), and fixed file selection dialog (now only offers .trt files). 44 | * July: Implemented text export - single branches or complete trees can now be exported to txt files. 45 | * August: Implemented time counters - nodes can record the time using a special field of type "timer" (experimental). GUI buttons can start and stop the stopwatch function. 46 | * September: Added move-to-top-level option for first level nodes 47 | * October: Added a dark and a light palette for GUI colours, selectable in addition to the theme selection. 48 | * November: Fixed too slow editing in text fields when tree files are big (>1.5 MB). 49 | 50 | 2021 51 | ^^^^ 52 | 53 | * January: Released **version 2021.01**. 54 | * January: Bugfixing (timer crash) 55 | * February: Released **version 2021.2**. 56 | * March: New functions "Delete node" and "Remove node from tree" now move descendants one level up. 57 | "Remove branch" removes the respective branch in all trees, "Delete branch" deletes a 58 | branch, all child branches and inter-connections in all trees. 59 | * March: If a file with running timers is saved, those timers will be running when the file is loaded. 60 | * March: Added tooltips for main buttons 61 | * March: Implemented HTML export of branches and complete trees 62 | * March: Added auto-delete for orphans 63 | * March: Released **version 2021.3** 64 | * April: Added file option 65 | * April: Implemented four-column layout and rainbow colours for html export 66 | * April: Released **version 2021.4** 67 | * May: Improvement to html and txt export (changed colours, headings have no different sizes) 68 | * May: On export of both html and txt, user can now decide how many tree levels (depth) should be exported. 69 | * May: Released **version 2021.5** 70 | * July: Fixed broken application logo 71 | * July: Implemented CSV export 72 | * August: Released **version 2021.8** 73 | * September: Added new export option "Text to Clipboard" 74 | * November: Added new export option "Html (List) to File" 75 | * December: Added two primitive template files (a text-only single tree and dual tree mindmap) 76 | * December: Released **version 2021.9** 77 | 78 | 2022 79 | ^^^^ 80 | 81 | * March: Fixed crash bug on non-export 82 | * March 2022: Improved sorting and grouping in html export, changed to five columns 83 | * June 2022: Added a tutorial file 84 | * June 2022: Added first-use dialog when no file is loaded, instead of the file-open dialog 85 | * June 2022: Released **version 2022.1** 86 | 87 | 2023 88 | ^^^^ 89 | 90 | * February 2023: Added new tree field types "concatenation" and "set". 91 | * February 2023: Implemented adjustable width for the data item and the tree table main view. 92 | * February 2023: Release **version 2023.1** 93 | * April 2023: Removed deprecated tree field ("concatenation"), fixed missing logo. 94 | * May 2023: Ported to PyQt 6.0 95 | * May 2023: Implemented auto-adjusting name column 96 | * June 2023: Created new default theme "Organic", a mix between Fusion and Breeze 97 | * June 2023: Implemented display of tree field definitions and of data field definitions 98 | * July 2023: Release **version 2023.2** 99 | * October 2023: Fixed crash when exporting text to clipboard. 100 | 101 | 2024 102 | ^^^^ 103 | 104 | * January 2024: Changed node symbol to small circle in text eport (after asking users on social media). 105 | * February 2024: Implemented min, max, min-string, max-string fields. 106 | * March 2024: Implemented longtext data field. 107 | * April 2024: Extended documentation on readthedocs.io. Release **version 2024.1** 108 | * April 2024: Restructured export area, added name-only export. Made all export options (full tree / branch / node with contect) (all fields / names only) available for all file formats and for both file and clipboard export. 109 | * April 2024: Release **version 2024.2** 110 | * Done March 2024: Implemented changeable font size (zoom) of data display 111 | * Done May 2024: Implemented continuous text and html export 112 | * July 2024: Release **version 2024.3** 113 | * October 2024: Fixed crash bug and improved html output 114 | * November 2024: Improved colours in html output, implemented continuous change to export for textfields even if the focus stays in, fixed broken layout of html export 115 | * December 2024: Changed colours in html output (again?), increased font size 116 | * December 2024: Release **version 2024.4** 117 | 118 | 2025 119 | ^^^^ 120 | 121 | * January 2025: Changed colours on html export to a seven-colour rainbow palette. 122 | * February 2025: Implemented PNG export 123 | * March 2025: Implemented SVG export 124 | * March 2025: Implemented HTML/Document export 125 | * April 2025: Improvements to image export. 126 | * April 2025: Release **version 2025.1** 127 | 128 | Present 129 | ------- 130 | 131 | * Bugfixing 132 | * Extend documentation on readthedocs.io 133 | * Add more fields 134 | * Add more examples and more template data files 135 | * Structure editing/viewing in extra tab (editing the structure, number and definitions and trees and tree fields and data fields) 136 | 137 | Future 138 | ------ 139 | 140 | Near Future 141 | ^^^^^^^^^^^ 142 | 143 | * Implement search function 144 | 145 | Mid Future 146 | ^^^^^^^^^^ 147 | 148 | * Implement global functions (Linearise Tree, Level-Swap, Merge identical Siblings, Merge Identical Parents/Children) 149 | 150 | Far Future 151 | ^^^^^^^^^^ 152 | 153 | * Implement safe usage by multiple simultaneous users 154 | * Implement a database backend instead of text file storage 155 | * A whole lot of other fancy things that will probably never get done 156 | 157 | -------------------------------------------------------------------------------- /docs/screenshot01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/screenshot01.png -------------------------------------------------------------------------------- /docs/screenshot02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/screenshot02.png -------------------------------------------------------------------------------- /docs/screenshot03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/screenshot03.png -------------------------------------------------------------------------------- /docs/screenshot04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkanev/treetime/6ef56b733b4e85947eb8754ba36344f441b2b5d1/docs/screenshot04.png -------------------------------------------------------------------------------- /docs/tree-fields.rst: -------------------------------------------------------------------------------- 1 | 2 | Tree Fields 3 | =========== 4 | 5 | General Syntax 6 | -------------- 7 | 8 | Each tree field is a function with a list of input fields. These fields can be either tree fields or data fields. To avoid ambiguities it is good practice to name tree fields starting with a capital letter and data fields with a lower case letter. A tree field is always defined as part of a tree (see previous chapter). The definition states the name, the field type, and the input parameters:: 9 | 10 | field "Name" 11 | field-type "type" 12 | own-fields [...] 13 | child-fields [...] 14 | sibling-fields [...] 15 | parent-fields [...] 16 | 17 | The field is started by the line ``field "Name"`` where "Name" is the name of the field. This will appear as the column heading in the tree list. 18 | After this, indented with four spaces, is the field type: ``field-type "type"``, where "type" is the type (see next for an overview). 19 | After this, the lines ``own-fields [...]``, ``child-fields [...]``, ``sibling-fields [...]``, and ``parent-fields [...]`` each define a list of field names. These are the input parameters for the function. They are evaluated in the order they are mentioned. A real-world example:: 20 | 21 | field "Progress" 22 | field-type "ratio-percent" 23 | own-fields ["Spent Hours", "Planned Hours"] 24 | child-fields [] 25 | sibling-fields [] 26 | parent-fields [] 27 | 28 | The tree field "Progress" is a ratio, defined as parameter1 / (parameter2 + parameter3 + ...). In the tree view it will be displayed as a percentage. It shows the ratio of the tree fields "Spent Hours" / "Planned Hours". 29 | 30 | string 31 | ------ 32 | 33 | The simple display of the content of one or multiple data fields or tree fields. 34 | Syntax:: 35 | 36 | field "Name" 37 | field-type "string" 38 | own-fields ["field1"] 39 | child-fields [] 40 | sibling-fields [] 41 | parent-fields [] 42 | 43 | Result: The values or strings found in the fields *field1, field2, field3, ...*, put together, in the order they are mentioned. 44 | 45 | url 46 | --- 47 | 48 | Same as "string", but in an html export the field is formated as url link (clickable). 49 | 50 | text 51 | ---- 52 | 53 | Same as "string", but the exported field has a larger width and can span several lines. 54 | 55 | sum 56 | --- 57 | 58 | The sum of all input fields. 59 | Syntax:: 60 | 61 | field "Name" 62 | field-type "sum" 63 | own-fields ["field1", "field2", ...] 64 | child-fields ["field3", ...] 65 | sibling-fields [...] 66 | parent-fields [...] 67 | 68 | were "field1", "field2", "field3", ..., are the names of data or tree fields. Fields must be integer fields, the result for string fields is not defined. 69 | 70 | Result: The value *field1 + field2 + field3 + ...*. 71 | 72 | set 73 | --- 74 | 75 | A list of unique occurrences of values of all input fields. 76 | Syntax:: 77 | 78 | field "Name" 79 | field-type "set" 80 | own-fields ["field1", "field2", ...] 81 | child-fields ["field3", ...] 82 | sibling-fields [...] 83 | parent-fields [...] 84 | 85 | were "field1", "field2", "field3", ..., are the names of data or tree fields. 86 | 87 | Result: A list like *value1, value2, value3, value4*, where each value is the value of at least on input field and each value is listed only once, sorted alphabetically. 88 | 89 | sum-time 90 | -------- 91 | 92 | Same as "sum", but will show the result as hour format, e.g. the value *1.5* will be displayed and exported as *1:30:00*. 93 | 94 | difference 95 | ---------- 96 | 97 | Difference of numbers. 98 | Syntax:: 99 | 100 | field "Name" 101 | field-type "difference" 102 | own-fields ["field1", "field2", ...] 103 | child-fields ["field3", ...] 104 | sibling-fields [...] 105 | parent-fields [...] 106 | 107 | were "field1", "field2", "field3", ..., are the names of data or tree fields. 108 | 109 | Result: The value *field1 - (field2 + field3 + ...)*, in the order they are mentioned. 110 | 111 | difference-time 112 | --------------- 113 | 114 | Same as "difference", but will show the result as hour format, e.g. the value *1.5* will be displayed and exported as *1:30:00*. 115 | 116 | mean 117 | ---- 118 | 119 | The statistical mean of all input fields. 120 | Syntax:: 121 | 122 | field "Name" 123 | field-type "mean" 124 | own-fields ["field1", "field2", ...] 125 | child-fields ["field3", ...] 126 | sibling-fields [...] 127 | parent-fields [...] 128 | 129 | were "field1", "field2", "field3", ..., are the names of data or tree fields. 130 | 131 | Result: The value *(field1 + field2 + field3 + ...) / N*, where *N* is the number of fields. 132 | 133 | mean-percent 134 | ------------ 135 | 136 | Same as "mean", but will show the result as a percentage, e.g. the value *0.75* will show as *75 %*. 137 | 138 | min 139 | --- 140 | 141 | The minimum. 142 | Syntax:: 143 | 144 | field "Name" 145 | field-type "min" 146 | own-fields ["field1", "field2", ...] 147 | child-fields ["field3", ...] 148 | sibling-fields [...] 149 | parent-fields [...] 150 | 151 | were "field1", "field2", "field3", ..., are the names of data or tree fields. 152 | 153 | Result: The minimum value *min(field1, field2, field3, ...)*. This can only be for numbers. If you want to find the minimum of texts, use *min-string*. 154 | 155 | max 156 | --- 157 | 158 | The Maximum. 159 | Same as *min*, but displays the maximum. 160 | 161 | min-string 162 | ---------- 163 | 164 | The smallest of a list of strings. 165 | Same as min, but can be used for text, e.g., names of branches collected by a *node-name* field (see below). Comparison is alphabetically, "aaaab" is smaller than "bc". 166 | 167 | max-string 168 | ---------- 169 | 170 | The largest of a list of strings. 171 | Same as *min-string*, but shows the maximum. 172 | 173 | ratio 174 | ----- 175 | 176 | The ratio between the first and the sum of all following input fields. 177 | Syntax:: 178 | 179 | field "Name" 180 | field-type "ratio" 181 | own-fields ["field1", "field2", ...] 182 | child-fields ["field3", ...] 183 | sibling-fields [...] 184 | parent-fields [...] 185 | 186 | were "field1", "field2", "field3", ..., are the names of data or tree fields. 187 | 188 | Result: The value *field1 / (field2 + field3 + ...)*, where *N* is the number of fields. 189 | 190 | ratio-percent 191 | ------------- 192 | 193 | Same as "ratio", but displayed as percentage (e.g., 0.75 is displayed as 75 %). 194 | 195 | node-name 196 | --------- 197 | 198 | The name of the node's parent in another tree. 199 | Syntax:: 200 | 201 | field "Name" 202 | field-type "node-name" 203 | own-fields [] 204 | child-fields [] 205 | sibling-fields [] 206 | parent-fields [N] 207 | 208 | were *N* is an integer number. 209 | 210 | Result: Displays the name of the node's parent in tree *N*. Trees are counted starting with 0. 211 | 212 | Example: This field is called "Project" and is defined in a tree "Time", which is the first tree (i.e. Tree 0). There is another tree called "Projects", which is the third tree (i.e. Tree 2):: 213 | 214 | tree "Time" 215 | field "Project" 216 | field-type "node-name" 217 | own-fields [] 218 | child-fields [] 219 | sibling-fields [] 220 | parent-fields [2] 221 | 222 | tree "Tasks" 223 | ... 224 | 225 | tree "Projects" 226 | ... 227 | 228 | This would create the column "Project" in the tree view of the "Time" tree. The line ``parent-fields[2]`` means each entry shows the respective node's parent in the "Project" tree (e.g. "TreeTime"). 229 | 230 | node-path 231 | --------- 232 | 233 | Same as "node-name", but instead of the paren't name, the entire path is shown, using "\|" as delimiter (e.g. "Coding \| Open Source \| TreeTime"). 234 | 235 | 236 | 237 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | import sys 4 | 5 | # main starting file for use with or with pyinstaller for creating executable binaries. 6 | # For normal running please execute the software as a module (python3 -m treetime); 7 | # this will started the treeview/__main__.py file. 8 | #import faulthandler 9 | from treetime.treetime import TreeTime 10 | 11 | #faulthandler.enable() 12 | if len(sys.argv)==2: 13 | TreeTime(filename=sys.argv[1]) 14 | else: 15 | TreeTime() 16 | 17 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | PyQt6>=5.15 2 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | description_file = README.md 3 | 4 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | 2 | #!/usr/bin/env python 3 | 4 | from setuptools import setup 5 | 6 | # read the contents of your README file 7 | from os import path 8 | this_directory = path.abspath(path.dirname(__file__)) 9 | with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: 10 | long_description = f.read() 11 | 12 | setup( 13 | name='TreeTime', 14 | version='2025.1', 15 | description='TreeTime is a to-do list manager, test report tool, project manager, family ancestry editor,' 16 | 'mind-mapping tool, etc. Using TreeTime you can categorise and organise any data in tree structures.' 17 | 'You can define several trees, each with a different structure, on the same data. You can use functions' 18 | '(sums, ratios and means) recursively up the branches of a tree.', 19 | long_description=long_description, 20 | long_description_content_type='text/markdown', 21 | author='Jacob Kanev', 22 | author_email='jkanev@zoho.com', 23 | url='https://github.com/jkanev/treetime', 24 | packages=['treetime'], 25 | package_dir={'treetime': 'treetime'}, 26 | include_package_data=True, 27 | entry_points={'gui_scripts': ['treetime = treetime.__main__:main']}, 28 | package_data={'treetime': ['../data/Simple-Task-List.trt', 29 | '../data/Dual-MindMap.empty.trt', 30 | '../data/Simple-Task-List.empty.trt', 31 | '../data/Single-MindMap.empty.trt', 32 | '../data/Tutorial.trt', 33 | '../docs/*.png', 34 | 'themes/*.svg']}, 35 | exclude_package_data={'treetime': ['treetime/compile-ui.py']}, 36 | # according to some people on the web install_requiring PyQt6 should work, but as my system gives me an error for 37 | # this, I'll comment it out. Please install it separately (pip3 PyQt6 apparently works) 38 | # install_requires=['PyQt6'], 39 | ) 40 | -------------------------------------------------------------------------------- /treetime/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | __all__ = ['item', 'tree', 'treetime', 'mainwindow'] 3 | 4 | from treetime import item, tree, treetime 5 | -------------------------------------------------------------------------------- /treetime/__main__.py: -------------------------------------------------------------------------------- 1 | from .treetime import * 2 | import sys 3 | 4 | 5 | def main(args=None): 6 | """The main routine.""" 7 | if args is None: 8 | args = sys.argv[1:] 9 | if not len(args): 10 | TreeTime() 11 | else: 12 | TreeTime(filename=args[0]) 13 | 14 | 15 | if __name__ == "__main__": 16 | main() 17 | -------------------------------------------------------------------------------- /treetime/compile-ui.py: -------------------------------------------------------------------------------- 1 | 2 | import os.path 3 | from PyQt6 import uic 4 | 5 | # compile ui file if necessary 6 | if os.path.getmtime("mainwindow.py") < os.path.getmtime("mainwindow.ui"): 7 | with open("mainwindow.py", "w") as file: 8 | print("compiling ui") 9 | uic.compileUi("mainwindow.ui", file) 10 | 11 | -------------------------------------------------------------------------------- /treetime/item.py: -------------------------------------------------------------------------------- 1 | # 2 | # Tis file is part of TreeTime, a tree editor and data analyser 3 | # 4 | # Copyright (C) GPLv3, 2015, Jacob Kanev 5 | # 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 3 of the License, or 9 | # (at your option) any later version. 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software Foundation, 16 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | 18 | # -*- coding:utf-8 -*- 19 | 20 | import copy 21 | import json 22 | from threading import Timer 23 | 24 | class Item: 25 | """ 26 | The list/forest item containing the actual data 27 | """ 28 | 29 | def __init__(self, name, fieldstring='{}', treestring='[]'): 30 | self.name = name 31 | self.parentNames = [] 32 | self.fields = json.loads(fieldstring) 33 | self.trees = json.loads(treestring) 34 | self.viewNodes = [] 35 | self.nameChangeCallbacks = [] 36 | self.fieldChangeCallbacks = [] 37 | self.deletionCallbacks = [] 38 | self.moveCallbacks = [] 39 | self.selectionCallbacks = [] 40 | self.clearCallbacks() 41 | 42 | def __deepcopy__(self, memo): 43 | ''' Overload of the deepcopy function, to avoid copying the node recursively.''' 44 | 45 | if memo is None: 46 | memo = {} 47 | 48 | itemType = self.__class__ 49 | newItem = itemType.__new__(itemType) 50 | 51 | # fields and trees are complex 52 | newItem.fields = copy.deepcopy(self.fields) 53 | newItem.trees = copy.deepcopy(self.trees) 54 | 55 | # names are simple 56 | newItem.name = self.name 57 | newItem.parentNames = self.parentNames 58 | 59 | # everything else should be blank 60 | newItem.viewNodes = [] 61 | newItem.nameChangeCallbacks = [] 62 | newItem.fieldChangeCallbacks = [] 63 | newItem.deletionCallbacks = [] 64 | newItem.moveCallbacks = [] 65 | newItem.selectionCallbacks = [] 66 | newItem.clearCallbacks() 67 | 68 | memo[id(newItem)] = newItem 69 | return newItem 70 | 71 | def __repr__(self): 72 | string = "name: {} | fields: {} | trees: {}".format(self.name, 73 | json.dumps(self.fields), 74 | json.dumps(self.trees)) 75 | return string 76 | 77 | def clearCallbacks(self): 78 | self.viewNodes = [] 79 | self.nameChangeCallbacks = [] 80 | self.fieldChangeCallbacks = [] 81 | self.deletionCallbacks = [] 82 | self.moveCallbacks = [] 83 | self.selectionCallbacks = [] 84 | for t in self.trees: 85 | self.viewNodes += [None] 86 | self.nameChangeCallbacks += [None] 87 | self.fieldChangeCallbacks += [None] 88 | self.deletionCallbacks += [None] 89 | self.moveCallbacks += [None] 90 | self.selectionCallbacks += [None] 91 | 92 | def addField(self, name, content): 93 | self.fields[name] = content 94 | 95 | def removeField(self, name, content): 96 | del self.fields[name] 97 | 98 | def writeToString(self): 99 | string = self.name + "\n" 100 | string += " fields " + json.dumps(self.fields) + "\n" 101 | string += " trees " + json.dumps(self.trees) + "\n" 102 | return string 103 | 104 | def readFromString(self, string): 105 | s = string.split("\n fields ") 106 | self.name = s[0] 107 | s = s[1].split("\n trees ") 108 | self.fields = json.loads(s[0]) 109 | self.trees = json.loads(s[1]) 110 | self.clearCallbacks() 111 | 112 | def printitem(self): 113 | print(self.name) 114 | for key in self.fields: 115 | print(" ", key) 116 | for subkey in self.fields[key]: 117 | print(" ", subkey, ":", self.fields[key][subkey]) 118 | 119 | def registerViewNode(self, tree, node): 120 | self.viewNodes[tree] = node 121 | 122 | def registerNameChangeCallback(self, tree, callback): 123 | self.nameChangeCallbacks[tree] = callback 124 | 125 | def registerSelectionCallback(self, tree, callback): 126 | self.selectionCallbacks[tree] = callback 127 | 128 | def registerFieldChangeCallback(self, tree, callback): 129 | self.fieldChangeCallbacks[tree] = callback 130 | 131 | def registerDeletionCallback(self, tree, callback): 132 | self.deletionCallbacks[tree] = callback 133 | 134 | def registerMoveCallback(self, tree, callback): 135 | self.moveCallbacks[tree] = callback 136 | 137 | def changeName(self, newName): 138 | self.name = newName 139 | for c in self.nameChangeCallbacks: 140 | if c is not None: 141 | c(newName) 142 | 143 | def select(self, select): 144 | for c in self.selectionCallbacks: 145 | if c is not None: 146 | c(select) 147 | 148 | def changeFieldContent(self, fieldName, fieldContent): 149 | """ 150 | Edit the content of a field. The content is expected to be a string and 151 | will be converted according to the field type. 152 | """ 153 | 154 | if fieldName not in self.fields: 155 | return "A field with name " + fieldName + " does not exist in node " + self.name + "." 156 | else: 157 | # update field content 158 | field = self.fields[fieldName] 159 | type = field["type"] 160 | if fieldContent: 161 | 162 | # changing the content of a string field - read the string plainly 163 | if type in ("string", "longtext", "text", "url"): 164 | field["content"] = fieldContent 165 | 166 | # changing the content of a number - read the string into a value 167 | elif type == "integer": 168 | try: 169 | field["content"] = json.loads(fieldContent) 170 | except json.JSONDecodeError: 171 | field["content"] = None 172 | 173 | # changing the content of a timer - real change comes in a tuple, mere value update just 174 | # with a "True" flag 175 | elif type == "timer": 176 | try: 177 | # standard content change, indicated by a tuple 178 | if len(fieldContent) == 2: 179 | field["content"] = json.loads(fieldContent[0]) 180 | field["running_since"] = fieldContent[1] 181 | 182 | # just send an empty update message if a timer is running 183 | else: 184 | pass 185 | 186 | except json.JSONDecodeError: 187 | field["content"] = None 188 | field["running_since"] = None 189 | else: 190 | return "A field of type " + type + " cannot be edited." 191 | else: 192 | field["content"] = None 193 | 194 | # notify changes 195 | self.notifyFieldChange(fieldName) 196 | 197 | return True 198 | 199 | def notifyFieldChange(self, fieldName): 200 | """ 201 | notify GUI of field change 202 | """ 203 | for f in self.fieldChangeCallbacks: 204 | if f is not None: 205 | f(fieldName) 206 | 207 | def removeFromTree(self, treeIndex): 208 | """ 209 | Remove this item from the tree, and have it call all removal callbacks. 210 | There is no recursion, moving children up or removing them is the responsibility 211 | of the tree management layer 212 | """ 213 | 214 | # set tree data to None 215 | self.trees[treeIndex] = [] 216 | self.registerMoveCallback(treeIndex, None) 217 | self.registerFieldChangeCallback(treeIndex, None) 218 | self.registerNameChangeCallback(treeIndex, None) 219 | self.registerViewNode(treeIndex, None) 220 | self.registerSelectionCallback(treeIndex, None) 221 | 222 | # Notify own node and view node of deletion 223 | if self.deletionCallbacks[treeIndex] is not None: 224 | self.deletionCallbacks[treeIndex]() 225 | self.registerDeletionCallback(treeIndex, None) 226 | 227 | # Update nodes in other trees 228 | self.notifyFieldChange(False) 229 | 230 | def moveInTree(self, treeIndex, parentPath): 231 | """ 232 | Move this item to a different parent at the new path 233 | """ 234 | self.trees[treeIndex] = parentPath + [0] 235 | if self.moveCallbacks[treeIndex] is not None: 236 | self.moveCallbacks[treeIndex]() 237 | 238 | 239 | class ItemPool: 240 | """ 241 | A pool of items. Used to store all the tree nodes (items). The tree-related information is handled in the node 242 | classes. 243 | """ 244 | 245 | def __init__(self): 246 | """ 247 | Construct 248 | """ 249 | self.items = [] 250 | self.existing_paths = [] # all existing paths for each tree, used during loading to check for duplicates 251 | 252 | def writeToString(self): 253 | """ 254 | Writes the whole pool to a re-loadable string 255 | """ 256 | string = "" 257 | for it in sorted(self.items, key=lambda e: e.trees): 258 | string += "item " + it.writeToString() + "\n" 259 | return string 260 | 261 | def readFromString(self, string): 262 | """ 263 | Reads the pool from a string 264 | """ 265 | 266 | # split string and iterate over all parts 267 | string = string.split("\n\nitem ") # items are separated by empty lines and the keyword "item" 268 | for s in string: 269 | if s != "": 270 | 271 | # read single item 272 | it = Item("") 273 | try: 274 | it.readFromString(s) 275 | except json.decoder.JSONDecodeError as e: 276 | raise KeyError("Corrupt data file. " 277 | "The item defined by {} in the file could not be read. " 278 | "Problem: {} when reading {}. " 279 | "Please correct manually in a text editor and then reload the file. " 280 | "".format(s, e.msg, e.doc)) 281 | 282 | # sanity check: look for duplicated paths 283 | for i, t in enumerate(it.trees): 284 | if len(self.existing_paths) <= i: 285 | self.existing_paths.append([]) 286 | if t: 287 | 288 | # if we found a duplicated path, raise an exception 289 | if t in self.existing_paths[i]: 290 | found_item = None 291 | for f in self.items: 292 | if f.trees[i] == t: 293 | found_item = f 294 | break 295 | raise KeyError("Corrupt data file. " 296 | "The path {} in the tree {}, used by \"{}\" is already in use by \"{}\". " 297 | "Please correct manually in a text editor and then reload the file. " 298 | "".format(t, i, it.name, found_item.name)) 299 | 300 | # if all is fine, add item and proceed 301 | else: 302 | self.existing_paths[i].append(t) 303 | self.items += [it] 304 | 305 | def printpool(self): 306 | """ 307 | Prints a list of items. This is a debug function. 308 | """ 309 | for it in self.items: 310 | it.printitem() 311 | 312 | def copyItem(self, item): 313 | """ 314 | Adds a copy of an item to the list and returns a reference to it 315 | """ 316 | newitem = copy.deepcopy(item) 317 | newitem.viewNodes = [] 318 | newitem.clearCallbacks() 319 | self.items += [newitem] 320 | return newitem 321 | 322 | def deleteItem(self, item): 323 | """ 324 | Removes an item from the pool 325 | """ 326 | for i, t in enumerate(item.trees): 327 | item.removeFromTree(i) 328 | self.items.remove(item) 329 | -------------------------------------------------------------------------------- /treetime/mainwindow.py: -------------------------------------------------------------------------------- 1 | # Form implementation generated from reading ui file 'mainwindow.ui' 2 | # 3 | # Created by: PyQt6 UI code generator 6.8.1 4 | # 5 | # WARNING: Any manual changes made to this file will be lost when pyuic6 is 6 | # run again. Do not edit this file unless you know what you are doing. 7 | 8 | 9 | from PyQt6 import QtCore, QtGui, QtWidgets 10 | 11 | 12 | class Ui_MainWindow(object): 13 | def setupUi(self, MainWindow): 14 | MainWindow.setObjectName("MainWindow") 15 | MainWindow.resize(1500, 900) 16 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Preferred) 17 | sizePolicy.setHorizontalStretch(0) 18 | sizePolicy.setVerticalStretch(0) 19 | sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) 20 | MainWindow.setSizePolicy(sizePolicy) 21 | self.centralwidget = QtWidgets.QWidget(parent=MainWindow) 22 | self.centralwidget.setObjectName("centralwidget") 23 | self.formLayout_2 = QtWidgets.QFormLayout(self.centralwidget) 24 | self.formLayout_2.setObjectName("formLayout_2") 25 | self.splitter = QtWidgets.QSplitter(parent=self.centralwidget) 26 | self.splitter.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.ArrowCursor)) 27 | self.splitter.setLineWidth(0) 28 | self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal) 29 | self.splitter.setOpaqueResize(True) 30 | self.splitter.setHandleWidth(10) 31 | self.splitter.setChildrenCollapsible(False) 32 | self.splitter.setObjectName("splitter") 33 | self.tableWidget = QtWidgets.QTableWidget(parent=self.splitter) 34 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) 35 | sizePolicy.setHorizontalStretch(0) 36 | sizePolicy.setVerticalStretch(0) 37 | sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth()) 38 | self.tableWidget.setSizePolicy(sizePolicy) 39 | self.tableWidget.setMinimumSize(QtCore.QSize(300, 0)) 40 | self.tableWidget.setBaseSize(QtCore.QSize(300, 0)) 41 | self.tableWidget.setMidLineWidth(0) 42 | self.tableWidget.setShowGrid(False) 43 | self.tableWidget.setWordWrap(True) 44 | self.tableWidget.setRowCount(23) 45 | self.tableWidget.setColumnCount(5) 46 | self.tableWidget.setObjectName("tableWidget") 47 | self.tableWidget.horizontalHeader().setVisible(False) 48 | self.tableWidget.horizontalHeader().setCascadingSectionResizes(False) 49 | self.tableWidget.horizontalHeader().setDefaultSectionSize(10) 50 | self.tableWidget.horizontalHeader().setMinimumSectionSize(10) 51 | self.tableWidget.horizontalHeader().setSortIndicatorShown(True) 52 | self.tableWidget.horizontalHeader().setStretchLastSection(False) 53 | self.tableWidget.verticalHeader().setVisible(False) 54 | self.tableWidget.verticalHeader().setCascadingSectionResizes(True) 55 | self.tabWidget = QtWidgets.QTabWidget(parent=self.splitter) 56 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) 57 | sizePolicy.setHorizontalStretch(0) 58 | sizePolicy.setVerticalStretch(0) 59 | sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth()) 60 | self.tabWidget.setSizePolicy(sizePolicy) 61 | self.tabWidget.setMinimumSize(QtCore.QSize(500, 0)) 62 | self.tabWidget.setBaseSize(QtCore.QSize(500, 0)) 63 | self.tabWidget.setDocumentMode(False) 64 | self.tabWidget.setObjectName("tabWidget") 65 | self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.splitter) 66 | self.toolBox = QtWidgets.QToolBox(parent=self.centralwidget) 67 | self.toolBox.setMinimumSize(QtCore.QSize(250, 0)) 68 | self.toolBox.setMaximumSize(QtCore.QSize(16777215, 16777215)) 69 | self.toolBox.setToolTip("") 70 | self.toolBox.setObjectName("toolBox") 71 | self.pageFile = QtWidgets.QWidget() 72 | self.pageFile.setGeometry(QtCore.QRect(0, 0, 251, 760)) 73 | self.pageFile.setObjectName("pageFile") 74 | self.formLayout = QtWidgets.QFormLayout(self.pageFile) 75 | self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow) 76 | self.formLayout.setObjectName("formLayout") 77 | spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 78 | self.formLayout.setItem(0, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem) 79 | self.label_8 = QtWidgets.QLabel(parent=self.pageFile) 80 | self.label_8.setWordWrap(True) 81 | self.label_8.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.NoTextInteraction) 82 | self.label_8.setObjectName("label_8") 83 | self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_8) 84 | self.labelCurrentFile = QtWidgets.QLabel(parent=self.pageFile) 85 | self.labelCurrentFile.setEnabled(True) 86 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Ignored, QtWidgets.QSizePolicy.Policy.Fixed) 87 | sizePolicy.setHorizontalStretch(0) 88 | sizePolicy.setVerticalStretch(0) 89 | sizePolicy.setHeightForWidth(self.labelCurrentFile.sizePolicy().hasHeightForWidth()) 90 | self.labelCurrentFile.setSizePolicy(sizePolicy) 91 | font = QtGui.QFont() 92 | font.setItalic(True) 93 | self.labelCurrentFile.setFont(font) 94 | self.labelCurrentFile.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) 95 | self.labelCurrentFile.setWordWrap(True) 96 | self.labelCurrentFile.setOpenExternalLinks(True) 97 | self.labelCurrentFile.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.NoTextInteraction) 98 | self.labelCurrentFile.setObjectName("labelCurrentFile") 99 | self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.labelCurrentFile) 100 | spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 101 | self.formLayout.setItem(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem1) 102 | self.label_5 = QtWidgets.QLabel(parent=self.pageFile) 103 | font = QtGui.QFont() 104 | font.setBold(True) 105 | self.label_5.setFont(font) 106 | self.label_5.setScaledContents(False) 107 | self.label_5.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 108 | self.label_5.setObjectName("label_5") 109 | self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_5) 110 | self.pushButtonNewFromTemplate = QtWidgets.QPushButton(parent=self.pageFile) 111 | self.pushButtonNewFromTemplate.setObjectName("pushButtonNewFromTemplate") 112 | self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonNewFromTemplate) 113 | self.pushButtonLoadFile = QtWidgets.QPushButton(parent=self.pageFile) 114 | self.pushButtonLoadFile.setObjectName("pushButtonLoadFile") 115 | self.formLayout.setWidget(6, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonLoadFile) 116 | self.pushButtonSaveToFile = QtWidgets.QPushButton(parent=self.pageFile) 117 | self.pushButtonSaveToFile.setObjectName("pushButtonSaveToFile") 118 | self.formLayout.setWidget(7, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonSaveToFile) 119 | spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 120 | self.formLayout.setItem(8, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem2) 121 | self.label_11 = QtWidgets.QLabel(parent=self.pageFile) 122 | font = QtGui.QFont() 123 | font.setBold(True) 124 | self.label_11.setFont(font) 125 | self.label_11.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 126 | self.label_11.setObjectName("label_11") 127 | self.formLayout.setWidget(9, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_11) 128 | self.groupBoxExportSource = QtWidgets.QGroupBox(parent=self.pageFile) 129 | self.groupBoxExportSource.setFlat(True) 130 | self.groupBoxExportSource.setCheckable(False) 131 | self.groupBoxExportSource.setObjectName("groupBoxExportSource") 132 | self.gridLayout = QtWidgets.QGridLayout(self.groupBoxExportSource) 133 | self.gridLayout.setObjectName("gridLayout") 134 | self.radioButtonExportTree = QtWidgets.QRadioButton(parent=self.groupBoxExportSource) 135 | self.radioButtonExportTree.setMinimumSize(QtCore.QSize(0, 0)) 136 | self.radioButtonExportTree.setObjectName("radioButtonExportTree") 137 | self.gridLayout.addWidget(self.radioButtonExportTree, 0, 1, 1, 1) 138 | self.radioButtonExportBranch = QtWidgets.QRadioButton(parent=self.groupBoxExportSource) 139 | self.radioButtonExportBranch.setChecked(True) 140 | self.radioButtonExportBranch.setObjectName("radioButtonExportBranch") 141 | self.gridLayout.addWidget(self.radioButtonExportBranch, 0, 0, 1, 1) 142 | self.radioButtonThisNodeWithContext = QtWidgets.QRadioButton(parent=self.groupBoxExportSource) 143 | self.radioButtonThisNodeWithContext.setObjectName("radioButtonThisNodeWithContext") 144 | self.gridLayout.addWidget(self.radioButtonThisNodeWithContext, 1, 0, 1, 2) 145 | self.formLayout.setWidget(10, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.groupBoxExportSource) 146 | self.groupBoxExportContent = QtWidgets.QGroupBox(parent=self.pageFile) 147 | self.groupBoxExportContent.setFlat(True) 148 | self.groupBoxExportContent.setObjectName("groupBoxExportContent") 149 | self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBoxExportContent) 150 | self.gridLayout_2.setObjectName("gridLayout_2") 151 | self.radioButtonExportAllFields = QtWidgets.QRadioButton(parent=self.groupBoxExportContent) 152 | self.radioButtonExportAllFields.setChecked(True) 153 | self.radioButtonExportAllFields.setObjectName("radioButtonExportAllFields") 154 | self.gridLayout_2.addWidget(self.radioButtonExportAllFields, 0, 0, 1, 1) 155 | self.radioButtonExportNamesOnly = QtWidgets.QRadioButton(parent=self.groupBoxExportContent) 156 | self.radioButtonExportNamesOnly.setObjectName("radioButtonExportNamesOnly") 157 | self.gridLayout_2.addWidget(self.radioButtonExportNamesOnly, 0, 1, 1, 1) 158 | self.formLayout.setWidget(11, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.groupBoxExportContent) 159 | self.groupBoxExportTarget = QtWidgets.QGroupBox(parent=self.pageFile) 160 | self.groupBoxExportTarget.setFlat(True) 161 | self.groupBoxExportTarget.setObjectName("groupBoxExportTarget") 162 | self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBoxExportTarget) 163 | self.gridLayout_3.setObjectName("gridLayout_3") 164 | self.radioButtonExportToFile = QtWidgets.QRadioButton(parent=self.groupBoxExportTarget) 165 | self.radioButtonExportToFile.setChecked(True) 166 | self.radioButtonExportToFile.setObjectName("radioButtonExportToFile") 167 | self.gridLayout_3.addWidget(self.radioButtonExportToFile, 0, 0, 1, 1) 168 | self.radioButtonExportToClipboard = QtWidgets.QRadioButton(parent=self.groupBoxExportTarget) 169 | self.radioButtonExportToClipboard.setObjectName("radioButtonExportToClipboard") 170 | self.gridLayout_3.addWidget(self.radioButtonExportToClipboard, 0, 1, 1, 1) 171 | self.formLayout.setWidget(12, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.groupBoxExportTarget) 172 | self.label_6 = QtWidgets.QLabel(parent=self.pageFile) 173 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) 174 | sizePolicy.setHorizontalStretch(0) 175 | sizePolicy.setVerticalStretch(0) 176 | sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth()) 177 | self.label_6.setSizePolicy(sizePolicy) 178 | self.label_6.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) 179 | self.label_6.setObjectName("label_6") 180 | self.formLayout.setWidget(14, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_6) 181 | self.comboBoxExportDepth = QtWidgets.QComboBox(parent=self.pageFile) 182 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) 183 | sizePolicy.setHorizontalStretch(0) 184 | sizePolicy.setVerticalStretch(0) 185 | sizePolicy.setHeightForWidth(self.comboBoxExportDepth.sizePolicy().hasHeightForWidth()) 186 | self.comboBoxExportDepth.setSizePolicy(sizePolicy) 187 | self.comboBoxExportDepth.setObjectName("comboBoxExportDepth") 188 | self.comboBoxExportDepth.addItem("") 189 | self.comboBoxExportDepth.addItem("") 190 | self.comboBoxExportDepth.addItem("") 191 | self.comboBoxExportDepth.addItem("") 192 | self.comboBoxExportDepth.addItem("") 193 | self.comboBoxExportDepth.addItem("") 194 | self.comboBoxExportDepth.addItem("") 195 | self.comboBoxExportDepth.addItem("") 196 | self.comboBoxExportDepth.addItem("") 197 | self.comboBoxExportDepth.addItem("") 198 | self.comboBoxExportDepth.addItem("") 199 | self.formLayout.setWidget(14, QtWidgets.QFormLayout.ItemRole.FieldRole, self.comboBoxExportDepth) 200 | self.label_15 = QtWidgets.QLabel(parent=self.pageFile) 201 | self.label_15.setObjectName("label_15") 202 | self.formLayout.setWidget(15, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_15) 203 | self.comboBoxExportFormat = QtWidgets.QComboBox(parent=self.pageFile) 204 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) 205 | sizePolicy.setHorizontalStretch(0) 206 | sizePolicy.setVerticalStretch(0) 207 | sizePolicy.setHeightForWidth(self.comboBoxExportFormat.sizePolicy().hasHeightForWidth()) 208 | self.comboBoxExportFormat.setSizePolicy(sizePolicy) 209 | self.comboBoxExportFormat.setObjectName("comboBoxExportFormat") 210 | self.comboBoxExportFormat.addItem("") 211 | self.comboBoxExportFormat.addItem("") 212 | self.comboBoxExportFormat.addItem("") 213 | self.comboBoxExportFormat.addItem("") 214 | self.comboBoxExportFormat.addItem("") 215 | self.comboBoxExportFormat.addItem("") 216 | self.comboBoxExportFormat.addItem("") 217 | self.comboBoxExportFormat.addItem("") 218 | self.comboBoxExportFormat.addItem("") 219 | self.comboBoxExportFormat.addItem("") 220 | self.comboBoxExportFormat.addItem("") 221 | self.formLayout.setWidget(15, QtWidgets.QFormLayout.ItemRole.FieldRole, self.comboBoxExportFormat) 222 | self.groupBoxExportContinuous = QtWidgets.QGroupBox(parent=self.pageFile) 223 | self.groupBoxExportContinuous.setTitle("") 224 | self.groupBoxExportContinuous.setObjectName("groupBoxExportContinuous") 225 | self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBoxExportContinuous) 226 | self.gridLayout_4.setObjectName("gridLayout_4") 227 | self.radioButtonExportContinuously = QtWidgets.QRadioButton(parent=self.groupBoxExportContinuous) 228 | self.radioButtonExportContinuously.setObjectName("radioButtonExportContinuously") 229 | self.gridLayout_4.addWidget(self.radioButtonExportContinuously, 5, 1, 1, 1) 230 | self.radioButtonExportOnce = QtWidgets.QRadioButton(parent=self.groupBoxExportContinuous) 231 | self.radioButtonExportOnce.setChecked(True) 232 | self.radioButtonExportOnce.setObjectName("radioButtonExportOnce") 233 | self.gridLayout_4.addWidget(self.radioButtonExportOnce, 5, 0, 1, 1) 234 | self.formLayout.setWidget(17, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.groupBoxExportContinuous) 235 | self.labelExportFileDescription = QtWidgets.QLabel(parent=self.pageFile) 236 | self.labelExportFileDescription.setObjectName("labelExportFileDescription") 237 | self.formLayout.setWidget(18, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.labelExportFileDescription) 238 | self.labelCurrentExportFile = QtWidgets.QLabel(parent=self.pageFile) 239 | font = QtGui.QFont() 240 | font.setItalic(True) 241 | font.setKerning(True) 242 | self.labelCurrentExportFile.setFont(font) 243 | self.labelCurrentExportFile.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) 244 | self.labelCurrentExportFile.setWordWrap(True) 245 | self.labelCurrentExportFile.setOpenExternalLinks(True) 246 | self.labelCurrentExportFile.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.NoTextInteraction) 247 | self.labelCurrentExportFile.setObjectName("labelCurrentExportFile") 248 | self.formLayout.setWidget(19, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.labelCurrentExportFile) 249 | self.pushButtonExport = QtWidgets.QPushButton(parent=self.pageFile) 250 | self.pushButtonExport.setObjectName("pushButtonExport") 251 | self.formLayout.setWidget(20, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonExport) 252 | spacerItem3 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 253 | self.formLayout.setItem(21, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem3) 254 | self.toolBox.addItem(self.pageFile, "") 255 | self.pageEdit = QtWidgets.QWidget() 256 | self.pageEdit.setGeometry(QtCore.QRect(0, 0, 250, 760)) 257 | self.pageEdit.setMinimumSize(QtCore.QSize(200, 716)) 258 | self.pageEdit.setObjectName("pageEdit") 259 | self.formLayout1 = QtWidgets.QFormLayout(self.pageEdit) 260 | self.formLayout1.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow) 261 | self.formLayout1.setObjectName("formLayout1") 262 | spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 263 | self.formLayout1.setItem(1, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem4) 264 | self.label = QtWidgets.QLabel(parent=self.pageEdit) 265 | font = QtGui.QFont() 266 | font.setBold(True) 267 | self.label.setFont(font) 268 | self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 269 | self.label.setObjectName("label") 270 | self.formLayout1.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label) 271 | self.pushButtonNewChild = QtWidgets.QPushButton(parent=self.pageEdit) 272 | self.pushButtonNewChild.setObjectName("pushButtonNewChild") 273 | self.formLayout1.setWidget(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonNewChild) 274 | self.pushButtonNewSibling = QtWidgets.QPushButton(parent=self.pageEdit) 275 | self.pushButtonNewSibling.setObjectName("pushButtonNewSibling") 276 | self.formLayout1.setWidget(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonNewSibling) 277 | self.pushButtonNewParent = QtWidgets.QPushButton(parent=self.pageEdit) 278 | self.pushButtonNewParent.setObjectName("pushButtonNewParent") 279 | self.formLayout1.setWidget(5, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonNewParent) 280 | spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 281 | self.formLayout1.setItem(6, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem5) 282 | self.label_2 = QtWidgets.QLabel(parent=self.pageEdit) 283 | font = QtGui.QFont() 284 | font.setBold(True) 285 | self.label_2.setFont(font) 286 | self.label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 287 | self.label_2.setObjectName("label_2") 288 | self.formLayout1.setWidget(7, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_2) 289 | self.pushButtonCopyNodeChild = QtWidgets.QPushButton(parent=self.pageEdit) 290 | self.pushButtonCopyNodeChild.setObjectName("pushButtonCopyNodeChild") 291 | self.formLayout1.setWidget(8, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonCopyNodeChild) 292 | self.pushButtonCopyNodeSibling = QtWidgets.QPushButton(parent=self.pageEdit) 293 | self.pushButtonCopyNodeSibling.setObjectName("pushButtonCopyNodeSibling") 294 | self.formLayout1.setWidget(9, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonCopyNodeSibling) 295 | self.pushButtonCopyNodeParent = QtWidgets.QPushButton(parent=self.pageEdit) 296 | self.pushButtonCopyNodeParent.setObjectName("pushButtonCopyNodeParent") 297 | self.formLayout1.setWidget(10, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonCopyNodeParent) 298 | spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 299 | self.formLayout1.setItem(11, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem6) 300 | self.label_3 = QtWidgets.QLabel(parent=self.pageEdit) 301 | font = QtGui.QFont() 302 | font.setBold(True) 303 | self.label_3.setFont(font) 304 | self.label_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 305 | self.label_3.setObjectName("label_3") 306 | self.formLayout1.setWidget(12, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_3) 307 | self.label_61 = QtWidgets.QLabel(parent=self.pageEdit) 308 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) 309 | sizePolicy.setHorizontalStretch(0) 310 | sizePolicy.setVerticalStretch(0) 311 | sizePolicy.setHeightForWidth(self.label_61.sizePolicy().hasHeightForWidth()) 312 | self.label_61.setSizePolicy(sizePolicy) 313 | self.label_61.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) 314 | self.label_61.setObjectName("label_61") 315 | self.formLayout1.setWidget(13, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_61) 316 | self.comboBoxCopyDepth = QtWidgets.QComboBox(parent=self.pageEdit) 317 | sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) 318 | sizePolicy.setHorizontalStretch(0) 319 | sizePolicy.setVerticalStretch(0) 320 | sizePolicy.setHeightForWidth(self.comboBoxCopyDepth.sizePolicy().hasHeightForWidth()) 321 | self.comboBoxCopyDepth.setSizePolicy(sizePolicy) 322 | self.comboBoxCopyDepth.setObjectName("comboBoxCopyDepth") 323 | self.comboBoxCopyDepth.addItem("") 324 | self.comboBoxCopyDepth.addItem("") 325 | self.comboBoxCopyDepth.addItem("") 326 | self.comboBoxCopyDepth.addItem("") 327 | self.comboBoxCopyDepth.addItem("") 328 | self.comboBoxCopyDepth.addItem("") 329 | self.comboBoxCopyDepth.addItem("") 330 | self.comboBoxCopyDepth.addItem("") 331 | self.comboBoxCopyDepth.addItem("") 332 | self.comboBoxCopyDepth.addItem("") 333 | self.comboBoxCopyDepth.addItem("") 334 | self.formLayout1.setWidget(13, QtWidgets.QFormLayout.ItemRole.FieldRole, self.comboBoxCopyDepth) 335 | self.pushButtonCopyBranchSibling = QtWidgets.QPushButton(parent=self.pageEdit) 336 | self.pushButtonCopyBranchSibling.setToolTipDuration(-1) 337 | self.pushButtonCopyBranchSibling.setObjectName("pushButtonCopyBranchSibling") 338 | self.formLayout1.setWidget(15, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonCopyBranchSibling) 339 | self.pushButtonCopyChildrenSiblings = QtWidgets.QPushButton(parent=self.pageEdit) 340 | self.pushButtonCopyChildrenSiblings.setObjectName("pushButtonCopyChildrenSiblings") 341 | self.formLayout1.setWidget(16, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonCopyChildrenSiblings) 342 | spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 343 | self.formLayout1.setItem(17, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem7) 344 | self.label_4 = QtWidgets.QLabel(parent=self.pageEdit) 345 | font = QtGui.QFont() 346 | font.setBold(True) 347 | self.label_4.setFont(font) 348 | self.label_4.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 349 | self.label_4.setObjectName("label_4") 350 | self.formLayout1.setWidget(18, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_4) 351 | self.pushButtonRemoveNode = QtWidgets.QPushButton(parent=self.pageEdit) 352 | self.pushButtonRemoveNode.setObjectName("pushButtonRemoveNode") 353 | self.formLayout1.setWidget(19, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonRemoveNode) 354 | self.pushButtonDeleteNode = QtWidgets.QPushButton(parent=self.pageEdit) 355 | self.pushButtonDeleteNode.setObjectName("pushButtonDeleteNode") 356 | self.formLayout1.setWidget(20, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonDeleteNode) 357 | spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 358 | self.formLayout1.setItem(21, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem8) 359 | self.label_12 = QtWidgets.QLabel(parent=self.pageEdit) 360 | font = QtGui.QFont() 361 | font.setBold(True) 362 | self.label_12.setFont(font) 363 | self.label_12.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 364 | self.label_12.setObjectName("label_12") 365 | self.formLayout1.setWidget(22, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_12) 366 | self.pushButtonRemoveBranch = QtWidgets.QPushButton(parent=self.pageEdit) 367 | self.pushButtonRemoveBranch.setObjectName("pushButtonRemoveBranch") 368 | self.formLayout1.setWidget(23, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonRemoveBranch) 369 | self.pushButtonDeleteBranch = QtWidgets.QPushButton(parent=self.pageEdit) 370 | self.pushButtonDeleteBranch.setObjectName("pushButtonDeleteBranch") 371 | self.formLayout1.setWidget(24, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonDeleteBranch) 372 | spacerItem9 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 373 | self.formLayout1.setItem(26, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem9) 374 | self.toolBox.addItem(self.pageEdit, "") 375 | self.pageStructure = QtWidgets.QWidget() 376 | self.pageStructure.setGeometry(QtCore.QRect(0, 0, 250, 760)) 377 | self.pageStructure.setObjectName("pageStructure") 378 | self.formLayout2 = QtWidgets.QFormLayout(self.pageStructure) 379 | self.formLayout2.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow) 380 | self.formLayout2.setObjectName("formLayout2") 381 | self.label_13 = QtWidgets.QLabel(parent=self.pageStructure) 382 | font = QtGui.QFont() 383 | font.setBold(True) 384 | self.label_13.setFont(font) 385 | self.label_13.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 386 | self.label_13.setObjectName("label_13") 387 | self.formLayout2.setWidget(1, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_13) 388 | self.pushButtonDataFields = QtWidgets.QPushButton(parent=self.pageStructure) 389 | self.pushButtonDataFields.setObjectName("pushButtonDataFields") 390 | self.formLayout2.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonDataFields) 391 | self.label_14 = QtWidgets.QLabel(parent=self.pageStructure) 392 | font = QtGui.QFont() 393 | font.setBold(True) 394 | self.label_14.setFont(font) 395 | self.label_14.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 396 | self.label_14.setObjectName("label_14") 397 | self.formLayout2.setWidget(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_14) 398 | self.pushButtonTreeFields = QtWidgets.QPushButton(parent=self.pageStructure) 399 | self.pushButtonTreeFields.setObjectName("pushButtonTreeFields") 400 | self.formLayout2.setWidget(5, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.pushButtonTreeFields) 401 | spacerItem10 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 402 | self.formLayout2.setItem(8, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem10) 403 | spacerItem11 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 404 | self.formLayout2.setItem(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem11) 405 | spacerItem12 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 406 | self.formLayout2.setItem(0, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem12) 407 | spacerItem13 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 408 | self.formLayout2.setItem(6, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem13) 409 | spacerItem14 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 410 | self.formLayout2.setItem(7, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem14) 411 | self.toolBox.addItem(self.pageStructure, "") 412 | self.pageSettings = QtWidgets.QWidget() 413 | self.pageSettings.setGeometry(QtCore.QRect(0, 0, 250, 760)) 414 | self.pageSettings.setObjectName("pageSettings") 415 | self.formLayout3 = QtWidgets.QFormLayout(self.pageSettings) 416 | self.formLayout3.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow) 417 | self.formLayout3.setContentsMargins(-1, -1, -1, 6) 418 | self.formLayout3.setHorizontalSpacing(6) 419 | self.formLayout3.setObjectName("formLayout3") 420 | spacerItem15 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 421 | self.formLayout3.setItem(1, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem15) 422 | self.label_9 = QtWidgets.QLabel(parent=self.pageSettings) 423 | font = QtGui.QFont() 424 | font.setBold(True) 425 | self.label_9.setFont(font) 426 | self.label_9.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 427 | self.label_9.setObjectName("label_9") 428 | self.formLayout3.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_9) 429 | self.cboxTheme = QtWidgets.QComboBox(parent=self.pageSettings) 430 | self.cboxTheme.setObjectName("cboxTheme") 431 | self.formLayout3.setWidget(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.cboxTheme) 432 | self.cboxColours = QtWidgets.QComboBox(parent=self.pageSettings) 433 | self.cboxColours.setObjectName("cboxColours") 434 | self.formLayout3.setWidget(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.cboxColours) 435 | spacerItem16 = QtWidgets.QSpacerItem(20, 136, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 436 | self.formLayout3.setItem(10, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem16) 437 | self.label_10 = QtWidgets.QLabel(parent=self.pageSettings) 438 | font = QtGui.QFont() 439 | font.setBold(True) 440 | self.label_10.setFont(font) 441 | self.label_10.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) 442 | self.label_10.setObjectName("label_10") 443 | self.formLayout3.setWidget(11, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_10) 444 | self.label_7 = QtWidgets.QLabel(parent=self.pageSettings) 445 | self.label_7.setObjectName("label_7") 446 | self.formLayout3.setWidget(12, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_7) 447 | spacerItem17 = QtWidgets.QSpacerItem(20, 136, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) 448 | self.formLayout3.setItem(13, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem17) 449 | self.sliderZoom = QtWidgets.QSlider(parent=self.pageSettings) 450 | self.sliderZoom.setMinimum(-8) 451 | self.sliderZoom.setMaximum(15) 452 | self.sliderZoom.setPageStep(2) 453 | self.sliderZoom.setTracking(True) 454 | self.sliderZoom.setOrientation(QtCore.Qt.Orientation.Horizontal) 455 | self.sliderZoom.setInvertedAppearance(False) 456 | self.sliderZoom.setInvertedControls(False) 457 | self.sliderZoom.setTickPosition(QtWidgets.QSlider.TickPosition.TicksBelow) 458 | self.sliderZoom.setObjectName("sliderZoom") 459 | self.formLayout3.setWidget(5, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.sliderZoom) 460 | self.labelZoom = QtWidgets.QLabel(parent=self.pageSettings) 461 | self.labelZoom.setObjectName("labelZoom") 462 | self.formLayout3.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.labelZoom) 463 | self.toolBox.addItem(self.pageSettings, "") 464 | self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.toolBox) 465 | MainWindow.setCentralWidget(self.centralwidget) 466 | self.actionQuit = QtGui.QAction(parent=MainWindow) 467 | self.actionQuit.setObjectName("actionQuit") 468 | 469 | self.retranslateUi(MainWindow) 470 | self.tabWidget.setCurrentIndex(-1) 471 | self.toolBox.setCurrentIndex(1) 472 | self.actionQuit.triggered.connect(MainWindow.close) # type: ignore 473 | QtCore.QMetaObject.connectSlotsByName(MainWindow) 474 | 475 | def retranslateUi(self, MainWindow): 476 | _translate = QtCore.QCoreApplication.translate 477 | MainWindow.setWindowTitle(_translate("MainWindow", "Tree Time")) 478 | self.tableWidget.setSortingEnabled(False) 479 | self.label_8.setText(_translate("MainWindow", "Connected to Data File:")) 480 | self.labelCurrentFile.setToolTip(_translate("MainWindow", "The current data file. All changes made are silently written to this file.")) 481 | self.labelCurrentFile.setText(_translate("MainWindow", "[current file name]")) 482 | self.label_5.setText(_translate("MainWindow", "Load and Save")) 483 | self.pushButtonNewFromTemplate.setToolTip(_translate("MainWindow", "Create a new tree sheet from a template file

• Lets you choose a template in a file dialog, then choose a file location for your new file.
• Changes are silently written to the new file.")) 484 | self.pushButtonNewFromTemplate.setText(_translate("MainWindow", "New from Template")) 485 | self.pushButtonLoadFile.setToolTip(_translate("MainWindow", "Load an existing tree sheet

Subsequent changes will be written silently to the loaded file.")) 486 | self.pushButtonLoadFile.setText(_translate("MainWindow", "Load File")) 487 | self.pushButtonSaveToFile.setToolTip(_translate("MainWindow", "Save the current file to a new location

Subsequent changes will be written silently to the new location.")) 488 | self.pushButtonSaveToFile.setText(_translate("MainWindow", "Save As")) 489 | self.label_11.setText(_translate("MainWindow", "Export")) 490 | self.radioButtonExportTree.setToolTip(_translate("MainWindow", "

Export the entire tree

Export all branches to file or clipboard.

")) 491 | self.radioButtonExportTree.setText(_translate("MainWindow", "Whole tree")) 492 | self.radioButtonExportBranch.setToolTip(_translate("MainWindow", "

Export selected branch

The selected node and all its children will be exported to file or clipboard.

")) 493 | self.radioButtonExportBranch.setText(_translate("MainWindow", "&This branch")) 494 | self.radioButtonThisNodeWithContext.setToolTip(_translate("MainWindow", "

Export the current node

The selected node will be exported to file or clipboard, inside a collapsed tree showing only direct parents and their siblings. The collapsed tree starts at the root node, or at the level set in the depth box.

")) 495 | self.radioButtonThisNodeWithContext.setText(_translate("MainWindow", "This node with conte&xt")) 496 | self.radioButtonExportAllFields.setToolTip(_translate("MainWindow", "

Export all fields

All tree fields visible in the GUI will be exported.

")) 497 | self.radioButtonExportAllFields.setText(_translate("MainWindow", "A&ll fields")) 498 | self.radioButtonExportNamesOnly.setToolTip(_translate("MainWindow", "

Export only names

No fields, only node names, will be exported.

")) 499 | self.radioButtonExportNamesOnly.setText(_translate("MainWindow", "Names onl&y")) 500 | self.radioButtonExportToFile.setToolTip(_translate("MainWindow", "

Export to file.

The export will be saved in a file. When clicking [Export], a file dialog opens to select a target file.

")) 501 | self.radioButtonExportToFile.setText(_translate("MainWindow", "To file")) 502 | self.radioButtonExportToClipboard.setToolTip(_translate("MainWindow", "

Export to clipboard.

When the [Export] button is clicked, the exported data will be in the clipboard and can be pasted (Menu/Paste or Ctrl+V) it into any document.

")) 503 | self.radioButtonExportToClipboard.setText(_translate("MainWindow", "To clipboard")) 504 | self.label_6.setText(_translate("MainWindow", "Depth ")) 505 | self.comboBoxExportDepth.setToolTip(_translate("MainWindow", "

Select a level down to which the current branch is copied.

For the options "This branch" and "Whole tree" this will show the respective level of children.

For the option "This node with content" this will show the summary path starting at the respective level, counting from the top.

")) 506 | self.comboBoxExportDepth.setItemText(0, _translate("MainWindow", "all levels")) 507 | self.comboBoxExportDepth.setItemText(1, _translate("MainWindow", "1 level")) 508 | self.comboBoxExportDepth.setItemText(2, _translate("MainWindow", "2 levels")) 509 | self.comboBoxExportDepth.setItemText(3, _translate("MainWindow", "3 levels")) 510 | self.comboBoxExportDepth.setItemText(4, _translate("MainWindow", "4 levels")) 511 | self.comboBoxExportDepth.setItemText(5, _translate("MainWindow", "5 levels")) 512 | self.comboBoxExportDepth.setItemText(6, _translate("MainWindow", "6 levels")) 513 | self.comboBoxExportDepth.setItemText(7, _translate("MainWindow", "7 levels")) 514 | self.comboBoxExportDepth.setItemText(8, _translate("MainWindow", "8 levels")) 515 | self.comboBoxExportDepth.setItemText(9, _translate("MainWindow", "9 levels")) 516 | self.comboBoxExportDepth.setItemText(10, _translate("MainWindow", "10 levels")) 517 | self.label_15.setText(_translate("MainWindow", "Format")) 518 | self.comboBoxExportFormat.setToolTip(_translate("MainWindow", "

Select export file format

• HTML (Tiles) — html file, nodes are tiles within tiles
• HTML (List) — html file, nodes are list lines
• Text/Unicode — pure text file with text graphics
• CSV — csv file with heading, first column is the tree structure, next are name and fields

")) 519 | self.comboBoxExportFormat.setItemText(0, _translate("MainWindow", "HTML (Tiles)")) 520 | self.comboBoxExportFormat.setItemText(1, _translate("MainWindow", "HTML (List)")) 521 | self.comboBoxExportFormat.setItemText(2, _translate("MainWindow", "HTML (Document)")) 522 | self.comboBoxExportFormat.setItemText(3, _translate("MainWindow", "Text/Unicode")) 523 | self.comboBoxExportFormat.setItemText(4, _translate("MainWindow", "Image/PNG (top-down)")) 524 | self.comboBoxExportFormat.setItemText(5, _translate("MainWindow", "Image/SVG (top-down)")) 525 | self.comboBoxExportFormat.setItemText(6, _translate("MainWindow", "Image/PNG (circular)")) 526 | self.comboBoxExportFormat.setItemText(7, _translate("MainWindow", "Image/SVG (circular)")) 527 | self.comboBoxExportFormat.setItemText(8, _translate("MainWindow", "Image/PNG (spread-out)")) 528 | self.comboBoxExportFormat.setItemText(9, _translate("MainWindow", "Image/SVG (spread-out)")) 529 | self.comboBoxExportFormat.setItemText(10, _translate("MainWindow", "CSV")) 530 | self.radioButtonExportContinuously.setText(_translate("MainWindow", "Contin&uously")) 531 | self.radioButtonExportOnce.setText(_translate("MainWindow", "O&nce")) 532 | self.labelExportFileDescription.setText(_translate("MainWindow", "Last exported file:")) 533 | self.labelCurrentExportFile.setText(_translate("MainWindow", "[last exported file name]")) 534 | self.pushButtonExport.setToolTip(_translate("MainWindow", "

Export.
Starts the export to a file after showing a file selection dialog, or to the clipboard.

")) 535 | self.pushButtonExport.setText(_translate("MainWindow", "Export")) 536 | self.toolBox.setItemText(self.toolBox.indexOf(self.pageFile), _translate("MainWindow", "File")) 537 | self.label.setText(_translate("MainWindow", "Insert New Nodes")) 538 | self.pushButtonNewChild.setToolTip(_translate("MainWindow", "Create a new item and link it as a child to the selected node

Only this tree will be affected.")) 539 | self.pushButtonNewChild.setText(_translate("MainWindow", "New Child")) 540 | self.pushButtonNewSibling.setToolTip(_translate("MainWindow", "Create a new item and link it as a sibling next to the selected node

Only this tree will be affected.")) 541 | self.pushButtonNewSibling.setText(_translate("MainWindow", "New Sibling")) 542 | self.pushButtonNewParent.setToolTip(_translate("MainWindow", "Create a new item and insert it as a parent above the selected node

Only this tree will be affected.")) 543 | self.pushButtonNewParent.setText(_translate("MainWindow", "New Parent")) 544 | self.label_2.setText(_translate("MainWindow", "Copy Existing Nodes")) 545 | self.pushButtonCopyNodeChild.setToolTip(_translate("MainWindow", "Insert a new child underneath

• The child will be a copy of the current node.
• In all other trees the new item will appear as sibling.")) 546 | self.pushButtonCopyNodeChild.setText(_translate("MainWindow", "Copy Node as Child")) 547 | self.pushButtonCopyNodeSibling.setToolTip(_translate("MainWindow", "Insert a new sibling

• The sibling will be a copy of the current node.
• In all other trees the new item will appear as sibling.")) 548 | self.pushButtonCopyNodeSibling.setText(_translate("MainWindow", "Copy Node as Sibling")) 549 | self.pushButtonCopyNodeParent.setToolTip(_translate("MainWindow", "Insert a new parent above

• The parent will be a copy of the current node.
• In all other trees the new item will appear as sibling.")) 550 | self.pushButtonCopyNodeParent.setText(_translate("MainWindow", "Copy Node as Parent")) 551 | self.label_3.setText(_translate("MainWindow", "Copy Parts of the Tree")) 552 | self.label_61.setText(_translate("MainWindow", "Depth ")) 553 | self.comboBoxCopyDepth.setToolTip(_translate("MainWindow", "Select a level down to which the current branch is copied")) 554 | self.comboBoxCopyDepth.setItemText(0, _translate("MainWindow", "all levels")) 555 | self.comboBoxCopyDepth.setItemText(1, _translate("MainWindow", "1 level")) 556 | self.comboBoxCopyDepth.setItemText(2, _translate("MainWindow", "2 levels")) 557 | self.comboBoxCopyDepth.setItemText(3, _translate("MainWindow", "3 levels")) 558 | self.comboBoxCopyDepth.setItemText(4, _translate("MainWindow", "4 levels")) 559 | self.comboBoxCopyDepth.setItemText(5, _translate("MainWindow", "5 levels")) 560 | self.comboBoxCopyDepth.setItemText(6, _translate("MainWindow", "6 levels")) 561 | self.comboBoxCopyDepth.setItemText(7, _translate("MainWindow", "7 levels")) 562 | self.comboBoxCopyDepth.setItemText(8, _translate("MainWindow", "8 levels")) 563 | self.comboBoxCopyDepth.setItemText(9, _translate("MainWindow", "9 levels")) 564 | self.comboBoxCopyDepth.setItemText(10, _translate("MainWindow", "10 levels")) 565 | self.pushButtonCopyBranchSibling.setToolTip(_translate("MainWindow", "Copy the current branch

• The current node and all its children will be copied.
• The copy will be inserted as sibling.
• Other trees are not affected.")) 566 | self.pushButtonCopyBranchSibling.setText(_translate("MainWindow", "Copy Branch as Sibling")) 567 | self.pushButtonCopyChildrenSiblings.setToolTip(_translate("MainWindow", "Copy all child branches

• All children are copied underneath the siblings of the current node.
• The copy depth can be selected in the box above.
• Other trees are not affected.")) 568 | self.pushButtonCopyChildrenSiblings.setText(_translate("MainWindow", "Copy Children to Siblings")) 569 | self.label_4.setText(_translate("MainWindow", "Remove Single Node")) 570 | self.pushButtonRemoveNode.setToolTip(_translate("MainWindow", "Remove the current node

• Children of the node are moved up, to be children of the node\'s parent.
• Other trees are not affected.")) 571 | self.pushButtonRemoveNode.setText(_translate("MainWindow", "Remove Node (this Tree)")) 572 | self.pushButtonDeleteNode.setToolTip(_translate("MainWindow", "Delete the current item

• In each tree, children of the node are moved up, to be children of the node\'s parent.
• The node is removed from all trees.")) 573 | self.pushButtonDeleteNode.setText(_translate("MainWindow", "Delete Item (all Trees)")) 574 | self.label_12.setText(_translate("MainWindow", "Remove Branch")) 575 | self.pushButtonRemoveBranch.setToolTip(_translate("MainWindow", "Remove the current branch

• All descentants (children, grandchildren, ...), are removed.
• Other trees are not affected.")) 576 | self.pushButtonRemoveBranch.setText(_translate("MainWindow", "Remove Branch (this Tree)")) 577 | self.pushButtonDeleteBranch.setToolTip(_translate("MainWindow", "Delete the entire branch from all trees

• All descendants (children, grandchildren, etc) in all trees are deleted.
• Children of a node are deleted recursively across trees.
• Please make sure there are no unwanted connections before use.")) 578 | self.pushButtonDeleteBranch.setText(_translate("MainWindow", "Delete Branch (all Trees)")) 579 | self.toolBox.setItemText(self.toolBox.indexOf(self.pageEdit), _translate("MainWindow", "Edit Content")) 580 | self.label_13.setText(_translate("MainWindow", "Data Fields")) 581 | self.pushButtonDataFields.setText(_translate("MainWindow", "View Data Fields")) 582 | self.label_14.setText(_translate("MainWindow", "Tree Fields")) 583 | self.pushButtonTreeFields.setText(_translate("MainWindow", "View Tree Fields")) 584 | self.toolBox.setItemText(self.toolBox.indexOf(self.pageStructure), _translate("MainWindow", "View Form")) 585 | self.label_9.setText(_translate("MainWindow", "Look and Feel")) 586 | self.label_10.setText(_translate("MainWindow", "About")) 587 | self.label_7.setText(_translate("MainWindow", "\n" 588 | "\n" 594 | "

TreeTime 2025.1

\n" 595 | "

Official website:
tree-time.info

\n" 596 | "

Updates and source code:
github.com/jkanev/treetime

\n" 597 | "

Documentation:
treetime-data-manager.
readthedocs.io

")) 598 | self.labelZoom.setText(_translate("MainWindow", "Zoom")) 599 | self.toolBox.setItemText(self.toolBox.indexOf(self.pageSettings), _translate("MainWindow", "Settings")) 600 | self.actionQuit.setText(_translate("MainWindow", "Quit")) 601 | -------------------------------------------------------------------------------- /treetime/test.py: -------------------------------------------------------------------------------- 1 | # 2 | # Tis file is part of TreeTime, a tree editor and data analyser 3 | # 4 | # Copyright (C) GPLv3, 2015, Jacob Kanev 5 | # 6 | # This program is free software; you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation; either version 3 of the License, or 9 | # (at your option) any later version. 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software Foundation, 16 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | 18 | # -*- coding:utf-8 -*- 19 | 20 | import tree 21 | import item 22 | 23 | # create four single items and test read/write 24 | a = item.Item("a", '{"description": {"content": "Item A", "type": "string"} }','[[0],[],[0]]') 25 | 26 | b = item.Item("b", '{"description": {"content": "Item B", "type": "string"} }','[[0,0],[],[1]]') 27 | 28 | c = item.Item("c", '{}', '[[0,1],[],[]]') 29 | c.addField("description", {"type":"string", "content":"Item C"}) 30 | c.addField("amount", {"type":"integer", "content":4}) 31 | 32 | d = item.Item("d", "{}","[[0,0,0],[],[]]") 33 | d.addField("description", {"type":"string", "content":"Item D"}) 34 | d.addField("amount", {"type":"integer", "content":1}) 35 | 36 | e = item.Item("e", "{}","[[0,0,1],[],[]]") 37 | e.addField("description", {"type":"string", "content":"Item E"}) 38 | e.addField("amount", {"type":"integer", "content":2}) 39 | 40 | x = item.Item("x", '{"description": {"content": "default node", "type": "string"}, "amount": {"content": 23, "type": "integer"} }','[[],[],[]]') 41 | 42 | print("creating tree with amounts in d,e,c:") 43 | print(" a ") 44 | print(" / \ ") 45 | print(" b c(4) ") 46 | print(" / \ ") 47 | print(" d(1) e(2) ") 48 | 49 | p = item.ItemPool() 50 | p.items = [x,a,b,c,d,e] 51 | p.defaultItem = x 52 | 53 | # central tree object with no parent and no children 54 | print("creating tree:") 55 | tree_p = tree.Forest("items.data") 56 | tree_p.printForest() 57 | 58 | # add new items as child of node e 59 | tree_p.children[2].addItemAsChild( p.addNewItem() ) 60 | tree_p.children[2].addItemAsChild( p.addNewItem() ) 61 | tree_p.children[2].addItemAsChild( p.addNewItem() ) 62 | tree_p.children[2].addItemAsChild( p.addNewItem() ) 63 | 64 | print("writing pool to file and reading it back in") 65 | tree_p.writeToFile("items2.data") 66 | 67 | tree_q = tree.Forest("items2.data") 68 | # central tree object with no parent and no children 69 | print("creating tree:") 70 | tree_q.printForest() 71 | 72 | 73 | -------------------------------------------------------------------------------- /treetime/themes/dark_branch_full.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/dark_branch_top.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/dark_triangle_down.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /treetime/themes/dark_triangle_down_hover.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /treetime/themes/dark_triangle_right.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/dark_triangle_right_hover.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/dark_twig_empty.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/light_branch_full.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/light_branch_top.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/light_triangle_down.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /treetime/themes/light_triangle_down_hover.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /treetime/themes/light_triangle_right.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/light_triangle_right_hover.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/themes/light_twig_empty.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /treetime/treetime: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | python3 treetime.py --------------------------------------------------------------------------------