Resolves issues 0013, 0022, and 0019.
0013: Hide a new issue after a delay if does not match the viewing criteria. 0022: New 'Bugs' created are not correctly categorized. 0019: Add the ability to change the Issue text size.
This commit is contained in:
@ -117,13 +117,13 @@ frame = application(title:'Personal Issue Tracker',
|
||||
def newSize = JOptionPane.showInputDialog(frame,
|
||||
'New text size: ', 'Change Issue Detail Text Size...',
|
||||
JOptionPane.QUESTION_MESSAGE)
|
||||
if (!newSize.isInteger())
|
||||
if (newSize == null || !newSize.isFloat())
|
||||
JOptionPane.showMessageDialog(frame,
|
||||
"$newSize is not a valid size.",
|
||||
'Change Issue Detail Text Size...',
|
||||
JOptionPane.ERROR_MESSAGE)
|
||||
model.issueDetailFont = model.issueDetailFont.deriveFont(
|
||||
newSize.toInteger())
|
||||
else model.issueDetailFont = model.issueDetailFont
|
||||
.deriveFont(newSize.toFloat())
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -83,8 +83,7 @@ issuePopupMenu = popupMenu() {
|
||||
enabled: bind { model.popupIssue != null },
|
||||
actionPerformed: {
|
||||
model.popupIssue.category = category
|
||||
issueList.invalidate()
|
||||
issueList.repaint()
|
||||
controller.refreshIssues()
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -96,8 +95,7 @@ issuePopupMenu = popupMenu() {
|
||||
enabled: bind { model.popupIssue != null },
|
||||
actionPerformed: {
|
||||
model.popupIssue.status = status
|
||||
issueList.invalidate()
|
||||
issueList.repaint()
|
||||
controller.refreshIssues()
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -115,8 +113,7 @@ issuePopupMenu = popupMenu() {
|
||||
'Change Priority...', JOptionPane.ERROR_MESSAGE)
|
||||
return
|
||||
}
|
||||
issueList.invalidate()
|
||||
issueList.repaint()
|
||||
controller.refreshIssues()
|
||||
})
|
||||
}
|
||||
|
||||
@ -217,7 +214,6 @@ panel = splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
||||
|
||||
}
|
||||
|
||||
println model.mainMVC?.model?.issueDetailFont
|
||||
scrollPane(constraints: "bottom") {
|
||||
issueTextArea = textArea(
|
||||
wrapStyleWord: true,
|
||||
@ -225,8 +221,7 @@ panel = splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
||||
sourceProperty: 'selected'),
|
||||
editable: bind( source: issueList, sourceEvent: 'valueChanged',
|
||||
sourceValue: { issueList.selectedValue != null }),
|
||||
font: bind(source: model.mainMVC.model,
|
||||
property: 'issueDetailFont'),
|
||||
font: model.mainMVC.model.issueDetailFont,
|
||||
focusGained: {},
|
||||
focusLost: {
|
||||
if (!issueList?.selectedValue) return
|
||||
|
Reference in New Issue
Block a user