o0netquik0o
5 years agoNew Rookie
Movable Mail Message Window - New Script for Testing
HI all.
People told me that an old script that use to tweak the gui to make the Mail Message Composing Window movable doesn't work anymore.
I looked at the code and the problem is that
webfrontend.gui.mail.MailMessageWindow() was removed as a constructor
i'm not a qooxdoo expert so i didn't find a way to fix the script.
the actual tweak code was this:
anyone can help fix it?
thanks
People told me that an old script that use to tweak the gui to make the Mail Message Composing Window movable doesn't work anymore.
I looked at the code and the problem is that
webfrontend.gui.mail.MailMessageWindow() was removed as a constructor
i'm not a qooxdoo expert so i didn't find a way to fix the script.
the actual tweak code was this:
qx.Class.define('Tweaks.Feature.MovableMessageComposingWindow', {
extend: qx.core.Object,
implement: ,
defer: function(statics, members) {
Tweaks.getInstance().registerFeature(members.constructor, {
category: Tweaks.Category.Useful,
name: 'Movable message composing window',
description: 'Replaces the message composing overlay with its window equivalent. Also enables shrinking if that option is activated.',
configKey: 'MovableMessageComposingWindow'
});
},
construct: function() {
var source = webfrontend.gui.mail.MailOverlay.prototype.onNewMessage.toString();
this.mailOverlayMessageMemberName = source.match(/this\.(+)\.open/);
},
members: {
mailOverlayMessageMemberName: null,
onRender: function(checkbox, label, config) {},
onReset: function(config) {},
onSaveConfig: function(config) {},
/** @inheritDoc */
activate: function(wasActive) {
if (wasActive) {
return;
}
var mailMessageWindow = new webfrontend.gui.mail.MailMessageWindow();
mailMessageWindow.open = function(returnWidget, writeType) {
webfrontend.gui.mail.MailMessageWindow.prototype.open.call(this, null, writeType);
};
// Use methods from MailMessageOverlay to fix reply and forward
mailMessageWindow.setSubject = webfrontend.gui.mail.MailMessageOverlay.prototype.setSubject;
mailMessageWindow.setHistoryEntries = webfrontend.gui.mail.MailMessageOverlay.prototype.setHistoryEntries;
webfrontend.gui.mail.MailOverlay.getInstance() = mailMessageWindow;
},
/** @inheritDoc */
deactivate: function(wasActive) {
if (!wasActive) {
return;
}
webfrontend.gui.mail.MailOverlay.getInstance() = new webfrontend.gui.mail.MailMessageOverlay();
}
}
});
anyone can help fix it?
thanks