Skip to content
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

21733 Categorize methods in FontChoosers4 #1219

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/FontChooser/AbstractFontSelectorDialogWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ AbstractFontSelectorDialogWindow class >> taskbarIconName [
^ #smallFontsIcon
]

{ #category : #'as yet unclassified' }
{ #category : #defaults }
AbstractFontSelectorDialogWindow >> defaultFontFamilies [
"Answer the set of available fonts families that are supported in the font that they represent."

self subclassResponsibility
]

{ #category : #'as yet unclassified' }
{ #category : #defaults }
AbstractFontSelectorDialogWindow >> defaultPreviewText [
"Answer the default text to use for the preview of the font."

Expand Down Expand Up @@ -105,7 +105,7 @@ AbstractFontSelectorDialogWindow >> fontSizeIndex: anObject [
self updateSelectedFont
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
AbstractFontSelectorDialogWindow >> fontSizes [
"Answer the set of available fonts sizes that are supported."

Expand Down Expand Up @@ -187,7 +187,7 @@ AbstractFontSelectorDialogWindow >> isUnderlined: anObject [
self changed: #isUnderlined
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
AbstractFontSelectorDialogWindow >> matchingFont [
"Answer the font that matches the selections."

Expand Down Expand Up @@ -360,7 +360,7 @@ AbstractFontSelectorDialogWindow >> selectedFont: anObject [
self updateFromSelectedFont
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
AbstractFontSelectorDialogWindow >> textEmphasisCode [
"Answer the current bitmask for the text emphasis."

Expand All @@ -384,46 +384,46 @@ AbstractFontSelectorDialogWindow >> textPreviewMorph: anObject [
textPreviewMorph := anObject
]

{ #category : #'as yet unclassified' }
{ #category : #actions }
AbstractFontSelectorDialogWindow >> toggleBold [
"Toggle the font bold emphasis."

self isBold: self isBold not.
self updateSelectedFont
]

{ #category : #'as yet unclassified' }
{ #category : #actions }
AbstractFontSelectorDialogWindow >> toggleItalic [
"Toggle the font italic emphasis."

self isItalic: self isItalic not.
self updateSelectedFont
]

{ #category : #'as yet unclassified' }
{ #category : #actions }
AbstractFontSelectorDialogWindow >> toggleStruckOut [
"Toggle the font struck out emphasis."

self isStruckOut: self isStruckOut not.
self updateSelectedFont
]

{ #category : #'as yet unclassified' }
{ #category : #actions }
AbstractFontSelectorDialogWindow >> toggleUnderlined [
"Toggle the font underlined emphasis."

self isUnderlined: self isUnderlined not.
self updateSelectedFont
]

{ #category : #'as yet unclassified' }
{ #category : #updating }
AbstractFontSelectorDialogWindow >> updateFromSelectedFont [
"Update our state based on the selected font."

self subclassResponsibility
]

{ #category : #'as yet unclassified' }
{ #category : #updating }
AbstractFontSelectorDialogWindow >> updateSelectedFont [
"Update the selected font to reflect the choices."

Expand Down
4 changes: 2 additions & 2 deletions src/FontChooser/FontChooserMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ FontChooserMorph >> createWindow [
fullFrame: buttonBarFrame.
]

{ #category : #actions }
{ #category : #'open/close' }
FontChooserMorph >> delete [
model := nil.
super delete
Expand Down Expand Up @@ -362,7 +362,7 @@ FontChooserMorph >> okButtonClicked [
self delete.
]

{ #category : #'interface building' }
{ #category : #'open/close' }
FontChooserMorph >> open [

^ self createWindow openAsIsIn: self currentWorld.
Expand Down
6 changes: 3 additions & 3 deletions src/FontChooser/FreeTypeFontSelectorDialogWindow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Class {
#category : #FontChooser
}

{ #category : #'as yet unclassified' }
{ #category : #defaults }
FreeTypeFontSelectorDialogWindow >> defaultFontFamilies [
"Answer the set of available fonts families that are supported in the font that they represent."

Expand All @@ -33,7 +33,7 @@ FreeTypeFontSelectorDialogWindow >> defaultFontFamilies [
addAttribute: (TextFontReference toFont: dispFont)]
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
FreeTypeFontSelectorDialogWindow >> matchingFont [
"Answer the font that matches the selections."

Expand Down Expand Up @@ -65,7 +65,7 @@ FreeTypeFontSelectorDialogWindow >> newFontStyleButtonRowMorph [
self newItalicButtonMorph}
]

{ #category : #'as yet unclassified' }
{ #category : #updating }
FreeTypeFontSelectorDialogWindow >> updateFromSelectedFont [
"Update our state based on the selected font."

Expand Down