mirror of
https://github.com/unclebob/more-speech.git
synced 2024-09-30 10:30:56 +00:00
Added tabbed panel for different article trees based upon search criteria.
This commit is contained in:
parent
3d47f54b10
commit
7878c578ce
@ -34,10 +34,13 @@
|
||||
process-name-event)
|
||||
|
||||
(defn make-event-agent [event-agent-map]
|
||||
(agent (merge event-agent-map
|
||||
{:chronological-text-events []
|
||||
(agent (merge {:chronological-text-events []
|
||||
:text-event-map {}
|
||||
})))
|
||||
:nicknames {}
|
||||
:keys {}
|
||||
:read-event-ids #{}
|
||||
}
|
||||
event-agent-map)))
|
||||
|
||||
(defn add-read-event [event-state id]
|
||||
(update event-state :read-event-ids conj id))
|
||||
|
@ -27,9 +27,11 @@
|
||||
(let [main-frame (frame :title "More Speech" :size [1000 :by 1000])
|
||||
article-area (article-panel/make-article-area)
|
||||
header-tree (article-tree/make-article-tree event-agent main-frame)
|
||||
header-tab-panel (tabbed-panel :tabs [{:title "All"
|
||||
:content (scrollable header-tree)}])
|
||||
relay-panel (relay-panel/make-relay-panel)
|
||||
header-panel (left-right-split (scrollable relay-panel)
|
||||
(scrollable header-tree))
|
||||
header-tab-panel)
|
||||
article-panel (border-panel :north (article-panel/make-article-info-panel)
|
||||
:center (scrollable article-area)
|
||||
:south (article-panel/make-control-panel event-agent header-tree))
|
||||
|
Loading…
Reference in New Issue
Block a user