-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add filter text widget [feenkcom/gtoolkit#3983]
- Loading branch information
1 parent
4009594
commit fa1adbd
Showing
16 changed files
with
221 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Class { | ||
#name : #GtFilterItemsElement, | ||
#superclass : #BlElement, | ||
#traits : 'TBrLayoutResizable', | ||
#classTraits : 'TBrLayoutResizable classTrait', | ||
#category : #'GToolkit-Coder-UI-Filters - Widgets' | ||
} | ||
|
||
{ #category : #initialization } | ||
GtFilterItemsElement >> defaultLayout [ | ||
^ BlFlowLayout horizontal | ||
] | ||
|
||
{ #category : #initialization } | ||
GtFilterItemsElement >> initialize [ | ||
super initialize. | ||
self hFitContentLimited. | ||
self vFitContent | ||
] |
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,33 @@ | ||
Class { | ||
#name : #GtFilterItemsModel, | ||
#superclass : #GtFiltersModel, | ||
#instVars : [ | ||
'items' | ||
], | ||
#category : #'GToolkit-Coder-UI-Filters - Models' | ||
} | ||
|
||
{ #category : #initialization } | ||
GtFilterItemsModel >> initialize [ | ||
super initialize. | ||
items := Array empty | ||
] | ||
|
||
{ #category : #accessing } | ||
GtFilterItemsModel >> items [ | ||
<return: #Collection of: #GtFilterModel> | ||
^ items | ||
] | ||
|
||
{ #category : #accessing } | ||
GtFilterItemsModel >> items: aCollection [ | ||
self items = aCollection ifTrue: [ ^ self ]. | ||
|
||
items := aCollection. | ||
self notifyItemsChanged. | ||
] | ||
|
||
{ #category : #'private - notifying' } | ||
GtFilterItemsModel >> notifyItemsChanged [ | ||
self announce: (GtFiltersModelItemsChanged new model: self) | ||
] |
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,10 @@ | ||
Class { | ||
#name : #GtFilterSettingsId, | ||
#superclass : #BlElementUniqueId, | ||
#category : #'GToolkit-Coder-UI-Filters - Widgets' | ||
} | ||
|
||
{ #category : #converting } | ||
GtFilterSettingsId >> asSymbol [ | ||
^ #'filter--settings' | ||
] |
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
18 changes: 18 additions & 0 deletions
18
src/GToolkit-Coder-UI/GtFilterTextModelInputFilterChanged.class.st
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,18 @@ | ||
Class { | ||
#name : #GtFilterTextModelInputFilterChanged, | ||
#superclass : #GtFilterModelAnnouncement, | ||
#instVars : [ | ||
'inputFilter' | ||
], | ||
#category : #'GToolkit-Coder-UI-Filters - Events' | ||
} | ||
|
||
{ #category : #accessing } | ||
GtFilterTextModelInputFilterChanged >> inputFilter [ | ||
^ inputFilter | ||
] | ||
|
||
{ #category : #accessing } | ||
GtFilterTextModelInputFilterChanged >> inputFilter: anObject [ | ||
inputFilter := anObject | ||
] |
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
18 changes: 18 additions & 0 deletions
18
src/GToolkit-Coder-UI/GtFilterTextViewModelInputFilterChanged.class.st
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,18 @@ | ||
Class { | ||
#name : #GtFilterTextViewModelInputFilterChanged, | ||
#superclass : #GtFilterViewModelAnnouncement, | ||
#instVars : [ | ||
'inputFilter' | ||
], | ||
#category : #'GToolkit-Coder-UI-Filters - Events' | ||
} | ||
|
||
{ #category : #accessing } | ||
GtFilterTextViewModelInputFilterChanged >> inputFilter [ | ||
^ inputFilter | ||
] | ||
|
||
{ #category : #accessing } | ||
GtFilterTextViewModelInputFilterChanged >> inputFilter: anObject [ | ||
inputFilter := anObject | ||
] |
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,18 @@ | ||
Class { | ||
#name : #GtFiltersAnnouncement, | ||
#superclass : #Announcement, | ||
#instVars : [ | ||
'model' | ||
], | ||
#category : #'GToolkit-Coder-UI-Filters - Events' | ||
} | ||
|
||
{ #category : #accessing } | ||
GtFiltersAnnouncement >> model [ | ||
^ model | ||
] | ||
|
||
{ #category : #accessing } | ||
GtFiltersAnnouncement >> model: anObject [ | ||
model := anObject | ||
] |
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,7 @@ | ||
Class { | ||
#name : #GtFiltersModel, | ||
#superclass : #Object, | ||
#traits : 'TGtAnnouncer', | ||
#classTraits : 'TGtAnnouncer classTrait', | ||
#category : #'GToolkit-Coder-UI-Filters - Models' | ||
} |
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,5 @@ | ||
Class { | ||
#name : #GtFiltersModelItemsChanged, | ||
#superclass : #GtFiltersAnnouncement, | ||
#category : #'GToolkit-Coder-UI-Filters - Events' | ||
} |