├── .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. Page not found :( The requested page could not be found. Export the entire tree Export all branches to file or clipboard. Export selected branch The selected node and all its children will be exported to file or clipboard. 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. Export all fields All tree fields visible in the GUI will be exported. Export only names No fields, only node names, will be exported. Export to file. The export will be saved in a file. When clicking [Export], a file dialog opens to select a target file. 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 | 
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 | 
64 | Clicking on the other tab shows the second tree while the same items stays selected:
65 | 
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 | 
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 | 
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 | 
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 | 
101 |
102 |
404
21 |
22 |
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 |
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 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.
TreeTime 2025.1
\n" 595 | " Official website:
tree-time.info
Updates and source code:
github.com/jkanev/treetime
Documentation:
treetime-data-manager.
readthedocs.io