-*-mode: org-*-

#+TITLE: Org-Mode Test Document
#+smmx-style-key: system.gray-scale
##+smmx-style-key: system.compact-gray-scale
#+smmx-info-position: 800;-200
#+TODO: IDEA TODO ACTV TEST DONT IGNR NOTE QUES | DONE



! https://orgmode.org/manual/Initial-visibility.html

! unfold all nodes but keep properties folded:
! #+STARTUP: showall


! unfold all nodes and properties:
#+STARTUP: showeverything

! set org-export-headline-levels via #+OPTIONS: H:4

! https://orgmode.org/manual/index.html
! https://orgmode.org/manual/Property-Syntax.html#Property-Syntax
   ! "Keys are case-insensitive."
! https://orgmode.org/manual/Special-Properties.html#Special-Properties


! properties
   ! C-c C-x e   add effort property
   ! C-c C-x p   add property (prompt for name+value)
   ! C-c C-c d   delete property

! date stamps:
   C-c .   show calendar
   C-c C-d (org-deadline)
   C-c C-s (org-schedule)

! progress
   C-C C-c  update progress [30%] or [2/3]

! outline-toggle-children
   fold/unfold direct children (not recursively)

! outline-show-subtree
   unfold entire subtree (including properties)

! outline-show-all
   unfold all subtrees (including properties)

! http://taskjuggler.org/tj3/manual/index.html
   ! http://taskjuggler.org/tj3/manual/dailymax.html

! org-mode compatibility
   ! element order
      ! SCHEDULED:
      ! DEADLINE:
      ! :properties:
        > aka drawers
      ! ctl lines
         > create, modify, finish dates
      ! > callout lines
      ! ! <link>
      ! any other text lines

   ! app:org limitations
      ! no nested drawers

   ! app:org extensions
      ! arbitrary element orders
         > fixed to org-mode order when writing .org files
      ! todo.txt style trees
         ! including properties
      ! ctl lines
         ! start with "! "
         ! create, modify, finish dates
            ! "! 11Jan2020" (create)
            ! "! C:12Jan2020" (modify/change)
               ! may appear multiple times
            ! "! F:13Jan2020" (finish)
         ! link
      ! callouts
         ! text callout via "> my callout text line"
            > may appear multiple times
         ! image callout via "> images/myimage.png"
            > may only appear once
      ! info nodes before first task node
         > e.g. for research notes
      ! support for taskjuggler properties
         ! effort
         ! resource_id
         ! allocated
         ! blocker
         ! depends
         ! limits
            > workhours
         ! extensions
            ! resource_type
               > dev,group,pm, ..
            ! vacation
      ! preserves mindmap UI settings via "smmx-" properties
         ! positions, text styles, shape styles, font sizes, colors, ..



* Example Plan [5%]
  :PROPERTIES:
  :COOKIE_DATA: todo recursive
  :END:
  Example work breakdown structure and effort estimation.

  The cookie_data property is used to force a recursive progress calculation (iterate all subtrees).

** Resources

*** Devs
    :PROPERTIES:
    :resource_id: devs
    :resource_type: group
    :END:

**** Peter Parker                                                        :sw:
     :PROPERTIES:
     :resource_id: spiderman
     :resource_type: male
     :limits:   { dailymax 6.0h }
     :END:

**** Bruce Wayne                                                         :hw:
     :PROPERTIES:
     :resource_id: batman
     :resource_type: dev
     :limits:   { dailymax 8.5h }
     :workinghours: mon - fri 22:00 - 04:00, 17:00 - 19:30
     :END:

**** Diana Prince                                                        :sw:
     :PROPERTIES:
     :resource_id: wonderwoman
     :resource_type: female
     :END:

**** Bruce Banner                                                        :sw:test:
     :PROPERTIES:
     :resource_id: hulk
     :limits:   { dailymax 8.0h }
      :smmx-text-callout-position: 36.67;-51.11
     :END:
     > unspecified :resource_type:

**** Kamala Khan
     :PROPERTIES:
     :resource_id: kamala
     :resource_type: dev
     :vacation: <2020-08-05 Wed> - <2020-08-28 Fri>
     :vacation: <2020-11-02 Mon> - <2020-11-06 Fri>
     :END:

*** Management
    :PROPERTIES:
    :resource_id: mgr
    :resource_type: group
    :END:

**** Harleen Quinzel
     :PROPERTIES:
     :resource_id: harley
     :resource_type: pm
     :END:

**** Arthur Fleck
     :PROPERTIES:
     :resource_id: joker
     :resource_type: boss
     :END:



** Tasks

*** TODO Specification
    :PROPERTIES:
    :Effort:   32h
    :allocate: batman, spiderman, hulk
    :END:

*** TODO Implementation [1/10]

**** TODO Hardware [0/3]

***** TODO :hw:unit: Unit 1 
      :PROPERTIES:
      :Effort:   56h
      :allocate: hulk
      :END:

***** TODO Unit 2 :hw:unit: 
      :PROPERTIES:
      :Effort:   96h
      :allocate: hulk
      :END:

***** TODO Tests
      :PROPERTIES:
      :Effort:   80h
      :allocate: hulk
      :END:

**** TODO Software [1/5]

***** TODO Driver [1%]

****** TODO Kernel [0/2]
       :PROPERTIES:
       :Effort:   9d
       :allocate: batman
       :smmx-collapsed: t
       :END:
       ! 10Jan2020
 - simplified tree header 1
    - todo item 1.1
    + done item 1.2
 - simplified tree header 2
    - todo item 2.1
    + done item 2.2

****** DONE Userspace
       :PROPERTIES:
       :Effort:   72h
       :BLOCKER: Kernel
       :allocate: batman
       :depends: kernel
       :END:
       ! F:07Mar2020

***** TODO :ui: User Interface
      :PROPERTIES:
      :Effort:   120h
      :allocate: spiderman
      :END:

***** TODO Tests
      :PROPERTIES:
      :Effort:   13d
      :allocate: spiderman
      :END:

*** TODO Integration Test
    :PROPERTIES:
    :Effort:   20d
    :BLOCKER:  driver, user-interface
    :allocate: batman, spiderman, hulk
    :END:

*** TODO Releases

**** TODO alpha
  SCHEDULED: <2020-05-20 Wed>

**** TODO beta
  SCHEDULED: <2020-09-14 Mon>

**** TODO rc1
  SCHEDULED: <2020-11-10 Tue>

**** TODO rc2
  SCHEDULED: <2020-12-03 Thu>

**** TODO final
  SCHEDULED: <2020-12-21 Mon>
 


* Tests

** Calendar dates

*** org mode style
    SCHEDULED: <2020-12-24 Thu>
     > src: <2020-12-24 Thu>

*** dmmmyyyy style
     SCHEDULED: 24Dec2020
     :PROPERTIES:
     :smmx-text-callout-position: 13.33;-52.22
     :END:
     > src: 24Dec2020

*** smmx style
     SCHEDULED: 24-12-2020
     > src: 24-12-2020

*** yyyymmdd style
     SCHEDULED: 20201224
     > src: 20201224


** Links

*** theuselessweb.com
     :PROPERTIES:
     :smmx-icon: ic8_48_arrow_right
     :smmx-text-callout-position: 63.33;-53.33
     :END:
     > child node link is added to this node
     ! https://theuselessweb.com/
        > link is added to parent node, this callout disappears

*** link with children (parent node)
   ! http://www.koalastothemax.com
      ! the previous link is _not_ added to the parent node
         > because it has a child node
   ! a list of rather useless links
      :PROPERTIES:
      :smmx-text-callout-position: 116.67;-51.11
      :hide:
      :END:
      > the first link is _not_ moved to the parent node here
      ! http://www.rrrgggbbb.com
      ! http://endless.horse
      ! http://ihasabucket.com
      ! https://pointerpointer.com
      ! http://chihuahuaspin.com
      ! http://www.blankwindows.com
      ! http://www.hackertyper.com
      ! http://notdayoftheweek.com
      ! http://pixelsfighting.com
      ! http://buildshruggie.com



** Custom icons

    > preserved when node has state 'none'
    . item 2
       . item 2.1
          . item 2.2.1
       . item 2.2
          . item 2.2.2
          . item 2.2.3
    . item 3
       . item 3.1


+ todo.txt style structures

   ! can be mixed with org-style ** headers
      ! * style headers may contain todo-style headers

   ! global ! notes will be added to "info" node

- groceries
   > a simple todo.txt style tree
   - bread
   - butter
   - cheese
   - eggs
   - pasta
   - rice
   - fruit
      - apples
      - clementines
         > october .. february
      - bananas
   - vegetables
      - tomatoes
      - cucumber
      - onions
      - potatoes
      - carrots
      - peas
         > frozen
      - kohlrabi
      - spinach
         > frozen
      - mushrooms
      - red peppers
   - drinks
      - water
      - tea
      - coffee
      - milk
      - juice

* IDEA create/mod/finish dates

** TODO create date
   ! 09Jan2020
   > created 09Jan2020
   ! this is a note
      ! this is a nested note

** ACTV modify/change dates
   :PROPERTIES:
   :next:
   :END:
   ! 01Jan2020
   ! C:02Jan2020
   ! C:03Jan2020
   > modified 02Jan2020, 03Jan2020
   ! this is a note
      ! this is a nested note

** DONE finish date
   ! F:04Jan2020
   > finished on 04Jan2020
   ! this is a note
      ! this is a nested note

** DONE create/modify/finish dates
    :PROPERTIES:
    :smmx-text-callout-position: 61.11;-51.11
    :END:
    ! 01Jan2020
    ! C:02Jan2020
    ! C:03Jan2020
    ! F:04Jan2020
    > modified on 2./3. and finished on 04Jan2020
    ! this is a note
       ! this is a nested note
