mirror of https://github.com/zlatinb/muwire
add Close buttons to all tools, make rule text field larger
parent
fca3478698
commit
01c9c0ee1c
|
@ -36,4 +36,10 @@ class AdvancedSharingController {
|
|||
def event = new UISyncDirectoryEvent(directory : wd.directory)
|
||||
model.core.eventBus.publish(event)
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
void close() {
|
||||
view.dialog.setVisible(false)
|
||||
mvcGroup.destroy()
|
||||
}
|
||||
}
|
|
@ -25,4 +25,10 @@ class CertificateControlController {
|
|||
params['text'] = cert.comment.name
|
||||
mvcGroup.createMVCGroup("show-comment", params)
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
void close() {
|
||||
view.dialog.setVisible(false)
|
||||
mvcGroup.destroy()
|
||||
}
|
||||
}
|
|
@ -9,5 +9,11 @@ import javax.annotation.Nonnull
|
|||
@ArtifactProviderFor(GriffonController)
|
||||
class ChatMonitorController {
|
||||
@MVCMember @Nonnull
|
||||
ChatMonitorModel model
|
||||
ChatMonitorView view
|
||||
|
||||
@ControllerAction
|
||||
void close() {
|
||||
view.window.setVisible(false)
|
||||
mvcGroup.destroy()
|
||||
}
|
||||
}
|
|
@ -99,6 +99,12 @@ class ContentPanelController {
|
|||
core.eventBus.publish(new TrustEvent(persona : m.persona, level : TrustLevel.DISTRUSTED, reason : reason))
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
void close() {
|
||||
view.dialog.setVisible(false)
|
||||
mvcGroup.destroy()
|
||||
}
|
||||
|
||||
void saveMuWireSettings() {
|
||||
core.saveMuSettings()
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ class AdvancedSharingView {
|
|||
panel (constraints : BorderLayout.SOUTH) {
|
||||
button(text : trans("CONFIGURE"), enabled : bind{model.configureActionEnabled}, configureAction)
|
||||
button(text : trans("SYNC"), enabled : bind{model.syncActionEnabled}, syncAction)
|
||||
button(text : trans("CLOSE"), closeAction)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -73,6 +73,7 @@ class CertificateControlView {
|
|||
}
|
||||
panel (constraints : BorderLayout.SOUTH) {
|
||||
button(text : trans("VIEW_COMMENT"), enabled : bind {model.showCommentActionEnabled}, showCommentAction)
|
||||
button(text : trans("CLOSE"), closeAction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,9 @@ class ChatMonitorView {
|
|||
}
|
||||
}
|
||||
}
|
||||
panel(constraints : BorderLayout.SOUTH) {
|
||||
button(text : trans("CLOSE"), closeAction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,13 +60,14 @@ class ContentPanelView {
|
|||
}
|
||||
panel (constraints : BorderLayout.SOUTH) {
|
||||
borderLayout()
|
||||
ruleTextField = textField(constraints: BorderLayout.CENTER, action: addRuleAction)
|
||||
ruleTextField = textField(constraints: BorderLayout.CENTER, columns : 20, action: addRuleAction)
|
||||
panel (constraints: BorderLayout.EAST) {
|
||||
buttonGroup(id : "ruleType")
|
||||
radioButton(text: trans("KEYWORD"), selected : true, buttonGroup: ruleType, keywordAction)
|
||||
radioButton(text: trans("REGEX"), selected : false, buttonGroup: ruleType, regexAction)
|
||||
button(text : trans("ADD_RULE"), addRuleAction)
|
||||
button(text : trans("DELETE_RULE"), enabled : bind {model.deleteButtonEnabled}, deleteRuleAction)
|
||||
button(text : trans("CLOSE"), closeAction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue