Skip to content

Commit

Permalink
Move more GT-specific classes [feenkcom/gtoolkit#4322]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Feb 26, 2025
1 parent a6aa376 commit 612b2cf
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #BrGlamorousVectorIcons }

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
BrGlamorousVectorIcons class >> largeOpenAi [
<script: 'self openAi inspect'>
^ [ BlElement new
Expand All @@ -11,7 +11,7 @@ BrGlamorousVectorIcons class >> largeOpenAi [
background: Color black ] asStencil
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
BrGlamorousVectorIcons class >> openAi [
^ [ self largeOpenAi asElement asScalableElement size: 16 @ 16 ] asStencil
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #GtHome }

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtHome >> gt4llmSection [
"<gtHomeSection>"
Gt4LlmHomeSection shouldShowSection ifFalse: [ ^ GtHomeEmptySection new ].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'tutorClass'
],
#category : #Gt4Llm
#category : #'Gt4Llm-GToolkit'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Class {
'newName',
'tutorClass'
],
#category : #Gt4Llm
#category : #'Gt4Llm-GToolkit'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #GtLlmRenameFormatComponentRefactoringExamples,
#superclass : #Object,
#category : #Gt4Llm
#category : #'Gt4Llm-GToolkit'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #GtLlmRenameTutorFormatComponentShortcut,
#superclass : #GtSourceCoderInlineRenameShortcut,
#category : #Gt4Llm
#category : #'Gt4Llm-GToolkit'
}

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #GtPharoLiteralNode }

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtPharoLiteralNode >> gtIsFormatComponentIn: aTutor [
(self isString or: [ self isSymbol ]) ifFalse: [ ^ false ].
^ (aTutor new formatNamed: self literalValue) isNotNil
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #GtPharoSourceCoder }

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtPharoSourceCoder >> addTutorFormatMenuItemsFor: anAst to: coderAddOns from: aCoderViewModel [
<gtCoderContextMenuAddOns: 5>
(aCoderViewModel behavior includesBehavior: GtLlmTutor) ifFalse: [ ^ self ].
Expand All @@ -24,23 +24,23 @@ GtPharoSourceCoder >> addTutorFormatMenuItemsFor: anAst to: coderAddOns from: aC
combinationForPlatform gtDisplayString ] ]
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtPharoSourceCoder >> addTutorFormatRenameShortcutFor: anAST into: coderAddOns [
<gtAstCoderAddOns: 10>
(self behavior includesBehavior: GtLlmTutor)
ifFalse: [ ^ self ].
coderAddOns addShortcut: GtLlmRenameTutorFormatComponentShortcut new
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtPharoSourceCoder >> renameFormatComponent: node in: aTextualViewModel for: anElement [
(GtLlmRenameFormatComponentInMethodController new
sourceCoderViewModel: aTextualViewModel;
tutorClass: aTextualViewModel behavior;
originalNode: node) executeIn: anElement
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtPharoSourceCoder >> renameFormatComponentAt: anIndex in: aCoderViewModel from: anElement [
(self nodeAt: anIndex)
ifNotNil: [ :node |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #GtWardleyMapModel }

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtWardleyMapModel >> menuItemCreateTopicSection [
<wardleyContextMenuItem: 41>
^ GtWardleyMapStencilMenuItem new
Expand Down Expand Up @@ -42,7 +42,7 @@ GtWardleyMapModel >> menuItemCreateTopicSection [
aContextMenuItem editorElement fireEvent: BrContextMenuHideWish new ])) ]
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtWardleyMapModel >> menuItemReviewMapButton [
<wardleyContextMenuItem: 45>
^ GtWardleyMapNodeButtonWithLabelMenuItem new
Expand All @@ -57,7 +57,7 @@ GtWardleyMapModel >> menuItemReviewMapButton [
aContextMenuItem editorElement fireEvent: BrContextMenuHideWish new ]
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtWardleyMapModel >> openAIWardleyMapCreator: aCreator [
^ self optionAt: #openAIWardleyMapCreator put: aCreator
]
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Extension { #name : #GtWardleyMapViewModel }

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtWardleyMapViewModel >> onActionFinished [
self wardleyMapModel
removeWardleyMapDecoratorModel: (self wardleyMapModel wardleyMapDecoratorModels
detect: [ :aDecorator | aDecorator isKindOf: GtLlmWardleyMapInProgressDecorator ]
ifNone: [ nil ])
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtWardleyMapViewModel >> onActionStarted [
self wardleyMapModel
addWardleyMapDecoratorModel: GtLlmWardleyMapInProgressDecorator new
]

{ #category : #'*Gt4Llm' }
{ #category : #'*Gt4Llm-GToolkit' }
GtWardleyMapViewModel >> onSpawnRequest: anAnnouncement [
self announce: (GtWardleyMapSpawnRequest new object: anAnnouncement object)
]

0 comments on commit 612b2cf

Please sign in to comment.