pit-swing 2.1.0
* Added sorting * added gutter around GUI elements
This commit is contained in:
parent
7a4b030a4d
commit
d4a6ebc412
@ -21,4 +21,4 @@ import groovy.swing.SwingBuilder
|
|||||||
import griffon.util.GriffonPlatformHelper
|
import griffon.util.GriffonPlatformHelper
|
||||||
|
|
||||||
GriffonPlatformHelper.tweakForNativePlatform(app)
|
GriffonPlatformHelper.tweakForNativePlatform(app)
|
||||||
SwingBuilder.lookAndFeel('mac', 'nimbus', 'gtk', ['metal', [boldFonts: false]])
|
SwingBuilder.lookAndFeel('gtk', 'mac', 'org.pushingpixels.substance.api.skin.SubstanceCremeCoffeeLookAndFeel', 'nimbus', ['metal', [boldFonts: false]])
|
||||||
|
@ -254,8 +254,6 @@ frame = application(title:'Personal Issue Tracker',
|
|||||||
imageIcon('/icon16x16.png').image]
|
imageIcon('/icon16x16.png').image]
|
||||||
) {
|
) {
|
||||||
|
|
||||||
borderLayout()
|
|
||||||
|
|
||||||
// main menu
|
// main menu
|
||||||
menuBar() {
|
menuBar() {
|
||||||
menu("File") {
|
menu("File") {
|
||||||
@ -311,11 +309,54 @@ frame = application(title:'Personal Issue Tracker',
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menu('Sort') {
|
||||||
|
sortMenuButtonGroup = buttonGroup()
|
||||||
|
checkBoxMenuItem('By ID',
|
||||||
|
buttonGroup: sortMenuButtonGroup,
|
||||||
|
actionPerformed: {
|
||||||
|
filter.issueSorter = { it.id }
|
||||||
|
projectListModels.clear()
|
||||||
|
displayProject(selectedProject)
|
||||||
|
})
|
||||||
|
checkBoxMenuItem('By Category',
|
||||||
|
buttonGroup: sortMenuButtonGroup,
|
||||||
|
actionPerformed: {
|
||||||
|
filter.issueSorter = { it.category }
|
||||||
|
projectListModels.clear()
|
||||||
|
displayProject(selectedProject)
|
||||||
|
})
|
||||||
|
checkBoxMenuItem('By Status',
|
||||||
|
buttonGroup: sortMenuButtonGroup,
|
||||||
|
actionPerformed: {
|
||||||
|
filter.issueSorter = { it.status }
|
||||||
|
projectListModels.clear()
|
||||||
|
displayProject(selectedProject)
|
||||||
|
})
|
||||||
|
checkBoxMenuItem('By Priority',
|
||||||
|
buttonGroup: sortMenuButtonGroup,
|
||||||
|
actionPerformed: {
|
||||||
|
filter.issueSorter = { it.priority }
|
||||||
|
projectListModels.clear()
|
||||||
|
displayProject(selectedProject)
|
||||||
|
})
|
||||||
|
checkBoxMenuItem('By Title',
|
||||||
|
buttonGroup: sortMenuButtonGroup,
|
||||||
|
actionPerformed: {
|
||||||
|
filter.issueSorter = { it.title }
|
||||||
|
projectListModels.clear()
|
||||||
|
displayProject(selectedProject)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gridBagLayout()
|
||||||
|
|
||||||
// main split view
|
// main split view
|
||||||
splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
splitPane(orientation: JSplitPane.HORIZONTAL_SPLIT,
|
||||||
dividerLocation: 280) {
|
dividerLocation: 280,
|
||||||
|
constraints: gbc(fill: GBC.BOTH, insets: [10,10,10,10],
|
||||||
|
weightx: 2, weighty: 2)) {
|
||||||
|
|
||||||
// left side (projects tree and buttons)
|
// left side (projects tree and buttons)
|
||||||
panel(constraints: "left") {
|
panel(constraints: "left") {
|
||||||
@ -422,7 +463,8 @@ frame = application(title:'Personal Issue Tracker',
|
|||||||
|
|
||||||
wordWrapCheckBox = checkBox('Word wrap',
|
wordWrapCheckBox = checkBox('Word wrap',
|
||||||
constraints: gbc(gridx: 0, gridy: 1, weightx: 2,
|
constraints: gbc(gridx: 0, gridy: 1, weightx: 2,
|
||||||
anchor: GBC.WEST), selected: true)
|
anchor: GBC.WEST),
|
||||||
|
selected: true)
|
||||||
button('New Issue',
|
button('New Issue',
|
||||||
constraints: gbc(gridx: 1, gridy: 1, anchor: GBC.EAST),
|
constraints: gbc(gridx: 1, gridy: 1, anchor: GBC.EAST),
|
||||||
icon: imageIcon("/add.png"), actionPerformed: newIssue)
|
icon: imageIcon("/add.png"), actionPerformed: newIssue)
|
||||||
|
BIN
pit-swing/lib/substance.jar
Normal file
BIN
pit-swing/lib/substance.jar
Normal file
Binary file not shown.
BIN
pit-swing/lib/trident.jar
Normal file
BIN
pit-swing/lib/trident.jar
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user