-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an application. Renamed some classes. Using the application to …
…start the presenters instead of sending new openWithSpec. Using styles.
- Loading branch information
1 parent
a76d8ed
commit 03af9be
Showing
20 changed files
with
267 additions
and
131 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
" | ||
I am an application to use in all RT tool to define costum styles. | ||
" | ||
Class { | ||
#name : #RTApplication, | ||
#superclass : #SpApplication, | ||
#classVars : [ | ||
'Current' | ||
], | ||
#category : #'RewriteRuleTools-Application' | ||
} | ||
|
||
{ #category : #accessing } | ||
RTApplication class >> current [ | ||
|
||
^ Current ifNil: [ Current := self new ] | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> start [ | ||
|
||
(self newPresenter: RTRuleEditorPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> startExpressionFinder [ | ||
|
||
^ (self newPresenter: RTExpressionFinderPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> startHelpBrowser [ | ||
|
||
^ (self newPresenter: RTHelpBrowserPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> startMatchTool [ | ||
|
||
^ (self newPresenter: MatchToolPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> startRuleBuilder [ | ||
|
||
^ (self newPresenter: RewriteRuleBuilderPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> startRuleEditor [ | ||
|
||
^ (self newPresenter: RTRuleEditorPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> startRuleLoader [ | ||
|
||
^ (self newPresenter: RTRuleLoaderPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #running } | ||
RTApplication >> startTransformer [ | ||
|
||
^ (self newPresenter: RTCodeTransformerPresenter) openWithSpec | ||
] | ||
|
||
{ #category : #styling } | ||
RTApplication >> styleSheet [ | ||
|
||
^ SpStyle defaultStyleSheet, | ||
(SpStyleVariableSTONReader fromString: | ||
'.application [ | ||
.container [ Container { #padding: 4, #borderWidth: 2 } ], | ||
.bgOpaque [ Draw { #backgroundColor: EnvironmentColor(#base) } ], | ||
.bgBlue [ Draw { #backgroundColor: #blue } ], | ||
.boldFont [ Font { #bold: true } ], | ||
.textFont [ Font { #name: EnvironmentFont(#default) } ], | ||
.bigFontSize [ Font { #size: 20 } ], | ||
.buttonStyle [ Geometry { #width: 130 } ] | ||
]') | ||
] |
This file contains 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
Oops, something went wrong.