this.scrollpos = null;
this.lastNickHash = {};
this.lastSelected = null;
+ this.subWindow = null;
this.closed = false;
},
updateNickList: function(nicks) {
this.parentObject.__closed(this);
this.fireEvent("close", this);
},
+ subEvent: function(event) {
+ if($defined(this.subWindow))
+ this.subWindow.fireEvent(event);
+ },
+ setSubWindow: function(window) {
+ this.subWindow = window;
+ },
select: function() {
this.active = true;
this.parentObject.__setActiveWindow(this);
if(this.hilighted)
this.setHilighted(qwebirc.ui.HILIGHT_NONE);
-
+
+ this.subEvent("select");
this.resetScrollPos();
this.lastSelected = new Date();
},
deselect: function() {
+ this.subEvent("deselect");
+
this.setScrollPos();
if($defined(this.scrolltimer)) {
$clear(this.scrolltimer);
if(type.match(/(NOTICE|ACTION|MSG)$/)) {
if(this.type == qwebirc.ui.WINDOW_QUERY || this.type == qwebirc.ui.WINDOW_MESSAGES) {
- if(type.match(/^OUR/)) {
+ if(type.match(/^OUR/) || type.match(/NOTICE$/)) {
hilight = qwebirc.ui.HILIGHT_ACTIVITY;
} else {
hilight = qwebirc.ui.HILIGHT_US;
+ this.parentObject.beep();
}
}
if(!type.match(/^OUR/) && this.client.hilightController.match(line["m"])) {
lhilight = true;
hilight = qwebirc.ui.HILIGHT_US;
+ this.parentObject.beep();
} else if(hilight != qwebirc.ui.HILIGHT_US) {
hilight = qwebirc.ui.HILIGHT_SPEECH;
}
this.scrollAdd(element);
},
errorMessage: function(message) {
- this.addLine("", message, "red");
+ this.addLine("", message, "warncolour");
+ },
+ infoMessage: function(message) {
+ this.addLine("", message, "infocolour");
},
setHilighted: function(state) {
if(state == qwebirc.ui.HILIGHT_NONE || state >= this.hilighted)
return scrollparent;
},
scrollToBottom: function() {
+ if(this.type == qwebirc.ui.WINDOW_CUSTOM || this.type == qwebirc.ui.WINDOW_CONNECT)
+ return;
+
var parent = this.lines;
var scrollparent = this.getScrollParent();
historyExec: function(line) {
this.commandhistory.addLine(line);
this.client.exec(line);
- }
+ }
});