Skip to content

Commit

Permalink
listview work moved to separated package (so I can merge without incl…
Browse files Browse the repository at this point in the history
…uding, for the moment)
  • Loading branch information
estebanlm committed Nov 29, 2023
1 parent 4a05478 commit 2604fe2
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ Class {
#name : 'SpMorphicListViewAdapter',
#superclass : 'SpMorphicListAdapter',
#category : 'Spec2-Adapters-Morphic-ListView',
#package : 'Spec2-Adapters-Morphic',
#tag : 'ListView'
#package : 'Spec2-Adapters-Morphic-ListView'
}

{ #category : 'factory' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ Class {
#name : 'SpMorphicListViewDataSource',
#superclass : 'SpMorphicListDataSource',
#category : 'Spec2-Adapters-Morphic-ListView',
#package : 'Spec2-Adapters-Morphic',
#tag : 'ListView'
#package : 'Spec2-Adapters-Morphic-ListView'
}

{ #category : 'accessing' }
Expand Down
1 change: 1 addition & 0 deletions src/Spec2-Adapters-Morphic-ListView/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : 'Spec2-Adapters-Morphic-ListView' }
18 changes: 0 additions & 18 deletions src/Spec2-Core/SpTPresenterBuilder.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ SpTPresenterBuilder >> newDiff [
^ self instantiate: SpDiffPresenter
]

{ #category : 'scripting - lists' }
SpTPresenterBuilder >> newDropDown [

^ self instantiate: SpDropDownPresenter
]

{ #category : 'scripting - widgets' }
SpTPresenterBuilder >> newDropList [
^ self instantiate: SpDropListPresenter
Expand All @@ -107,12 +101,6 @@ SpTPresenterBuilder >> newDynamicPresentersListIn: accessorSymbol usingBuilder:
self build
]

{ #category : 'scripting - lists' }
SpTPresenterBuilder >> newEasyListView [
self flag: #TODO. "replace newList with this"
^ self instantiate: SpEasyListViewPresenter
]

{ #category : 'scripting - layouts' }
SpTPresenterBuilder >> newGridLayout [

Expand All @@ -134,12 +122,6 @@ SpTPresenterBuilder >> newList [
^ self instantiate: SpListPresenter
]

{ #category : 'scripting - lists' }
SpTPresenterBuilder >> newListView [

^ self instantiate: SpListViewPresenter
]

{ #category : 'scripting - widgets' }
SpTPresenterBuilder >> newMenu [
^ self instantiate: SpMenuPresenter
Expand Down
5 changes: 1 addition & 4 deletions src/Spec2-Dialogs/SpApplication.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ SpApplication >> confirm: aString [
SpApplication >> inform: aString [
"Displays an inform dialog, for more configurable version please use `self application newInform title: ....`."

^ self newInform
title: 'Alert';
label: aString;
openModal
^ self backend inform: aString
]

{ #category : '*Spec2-Dialogs' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ Class {
'display',
'selection'
],
#category : 'Spec2-Core-Widgets-ListView',
#package : 'Spec2-Core',
#tag : 'Widgets-ListView'
#category : 'Spec2-ListView',
#package : 'Spec2-ListView'
}

{ #category : 'specs' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ Class {
'iconPresenter',
'textPresenter'
],
#category : 'Spec2-Core-Widgets-ListView',
#package : 'Spec2-Core',
#tag : 'Widgets-ListView'
#category : 'Spec2-ListView',
#package : 'Spec2-ListView'
}

{ #category : 'layout' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ Class {
'#headerPanel',
'#lastSelectedRow => WeakSlot'
],
#category : 'Spec2-Core-Widgets-ListView',
#package : 'Spec2-Core',
#tag : 'Widgets-ListView'
#category : 'Spec2-ListView',
#package : 'Spec2-ListView'
}

{ #category : 'specs' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ Class {
'#bindAction',
'#headerTitle => ObservableSlot'
],
#category : 'Spec2-Core-Widgets-ListView',
#package : 'Spec2-Core',
#tag : 'Widgets-ListView'
#category : 'Spec2-ListView',
#package : 'Spec2-ListView'
}

{ #category : 'specs' }
Expand Down
19 changes: 19 additions & 0 deletions src/Spec2-ListView/SpTPresenterBuilder.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Extension { #name : 'SpTPresenterBuilder' }

{ #category : '*Spec2-ListView' }
SpTPresenterBuilder >> newDropDown [

^ self instantiate: SpDropDownPresenter
]

{ #category : '*Spec2-ListView' }
SpTPresenterBuilder >> newEasyListView [

^ self instantiate: SpEasyListViewPresenter
]

{ #category : '*Spec2-ListView' }
SpTPresenterBuilder >> newListView [

^ self instantiate: SpListViewPresenter
]
1 change: 1 addition & 0 deletions src/Spec2-ListView/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : 'Spec2-ListView' }

0 comments on commit 2604fe2

Please sign in to comment.