-
-
Notifications
You must be signed in to change notification settings - Fork 18
Minor documentation touch-up #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
9097579
Minor documentation touch-up by transfering useful snippets from the …
aanastasiou a4fd979
Minor typos flagged in the notes of the PR and addition of the biblio…
aanastasiou 3a3924a
Correction of the quickstart.scrbl lost indentation of codeblocks
aanastasiou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,8 +11,8 @@ | |
| @title{@tt{gui-easy}: Declarative GUIs} | ||
| @author[(author+email "Bogdan Popa" "[email protected]")] | ||
|
|
||
| This library provides a declarative API on top of | ||
| @racketmodname[racket/gui]. | ||
| The goal of GUI Easy is to simplify user interface construction in Racket | ||
| by wrapping the existing imperative API (@racketmodname[racket/gui]) in a functional shell. | ||
|
|
||
| @(define-runtime-path youtubestub.tex "youtubestub.tex") | ||
| @(define embed-style | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,17 @@ | |
| racket/gui/easy/operator | ||
| (prefix-in gui: racket/gui))) | ||
|
|
||
| ; Example links cited within this section | ||
| @(define example-link-tabs | ||
| (link "https://github.com/Bogdanp/racket-gui-easy/blob/master/examples/tabs.rkt" | ||
| @filepath{examples/tabs.rkt})) | ||
| @(define example-link-list | ||
| (link "https://github.com/Bogdanp/racket-gui-easy/blob/master/examples/list.rkt" | ||
| @filepath{examples/list.rkt})) | ||
|
|
||
|
|
||
|
|
||
|
|
||
| @title{Reference} | ||
| @defmodule[racket/gui/easy] | ||
|
|
||
|
|
@@ -64,6 +75,19 @@ | |
|
|
||
| @section{Views} | ||
|
|
||
| @deftech{View}s are functions that return a @racket[view<%>] instance. | ||
|
|
||
| Views might wrap a specific GUI widget, like a text message or button, or | ||
| they might construct a tree of smaller views, forming a larger component. | ||
|
|
||
| Views are typically @tech{Observable}-aware in ways that make sense for each individual view. | ||
| For instance the text view takes as input an observable string and the rendered text label updates | ||
| with changes to that observable. | ||
|
|
||
| Many @racketmodname[racket/gui] widgets are already wrapped by GUI Easy, but programmers can | ||
| implement the @racket[view<%>] interface themselves in order to integrate arbitrary widgets, such as | ||
| those from 3rd-party packages in the Racket ecosystem, into their projects. | ||
|
|
||
| @subsection[#:tag "windows&dialogs"]{Windows & Dialogs} | ||
|
|
||
| @defproc[(window [#:title title (maybe-obs/c string?) "Untitled"] | ||
|
|
@@ -285,7 +309,7 @@ | |
| selection changes to an adjacent tab). When tabs are reordered, the | ||
| choices provided to the action represent the new tab order. | ||
|
|
||
| See @filepath{examples/tabs.rkt} for an example. | ||
| See @|example-link-tabs| for an example. | ||
|
|
||
| @history[ | ||
| #:changed "0.3" @elem{Added the @racket[#:choice=?] argument.} | ||
|
|
@@ -354,7 +378,7 @@ | |
| procedure must return a unique value for each entry in the list, as | ||
| compared using @racket[equal?]. | ||
|
|
||
| See @filepath{examples/list.rkt} for an example. | ||
| See @|example-link-list| for an example. | ||
| } | ||
|
|
||
| @defproc[(observable-view [data (obs/c any/c)] | ||
|
|
@@ -818,7 +842,7 @@ | |
|
|
||
| @section{Observables} | ||
|
|
||
| @deftech{Observables} are containers for values that may change over | ||
| @deftech{Observable}s are containers for values that may change over | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I missed this this morning, but |
||
| time. Their changes may be observed by arbitrary functions. | ||
|
|
||
| @; Require the private module to avoid requiring racket/gui/base. | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these codeblock reindents were probably not intended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No :/ DrRacket's Ctrl - I is addictively useful but does not do good all the time.