From b9f577da91705cdda168b178b0ccb146a65a5eeb Mon Sep 17 00:00:00 2001 From: David Norton Date: Wed, 26 Jul 2006 14:46:27 +0000 Subject: [PATCH] Closes #125, Separate customControls.xml into multiple files --- .../content/scholar/bindings/noteeditor.xml | 177 ++++++ .../content/scholar/bindings/relatedbox.xml | 157 ++++++ .../content/scholar/bindings/tagsbox.xml | 153 ++++++ .../scholar/bindings/timedtextarea.xml | 44 ++ .../content/scholar/customControls.xml | 515 ------------------ .../skin/default/scholar/scholar.css | 26 +- 6 files changed, 544 insertions(+), 528 deletions(-) create mode 100644 chrome/chromeFiles/content/scholar/bindings/noteeditor.xml create mode 100644 chrome/chromeFiles/content/scholar/bindings/relatedbox.xml create mode 100644 chrome/chromeFiles/content/scholar/bindings/tagsbox.xml create mode 100644 chrome/chromeFiles/content/scholar/bindings/timedtextarea.xml delete mode 100644 chrome/chromeFiles/content/scholar/customControls.xml diff --git a/chrome/chromeFiles/content/scholar/bindings/noteeditor.xml b/chrome/chromeFiles/content/scholar/bindings/noteeditor.xml new file mode 100644 index 000000000..5bbb20556 --- /dev/null +++ b/chrome/chromeFiles/content/scholar/bindings/noteeditor.xml @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0) + this.id('tagsPopup').showPopup(this.id('tagsLabel'),-1,-1,-1,'popup',0,0); + else + this.id('tags').add(); + ]]> + + + + + + + + + + 0) + this.id('seeAlsoPopup').showPopup(this.id('seeAlsoLabel'),-1,-1,'popup',0,0); + else + this.id('seeAlso').add(); + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/chrome/chromeFiles/content/scholar/bindings/relatedbox.xml b/chrome/chromeFiles/content/scholar/bindings/relatedbox.xml new file mode 100644 index 000000000..169fc3140 --- /dev/null +++ b/chrome/chromeFiles/content/scholar/bindings/relatedbox.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/chrome/chromeFiles/content/scholar/bindings/tagsbox.xml b/chrome/chromeFiles/content/scholar/bindings/tagsbox.xml new file mode 100644 index 000000000..8e2b341f1 --- /dev/null +++ b/chrome/chromeFiles/content/scholar/bindings/tagsbox.xml @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/chrome/chromeFiles/content/scholar/bindings/timedtextarea.xml b/chrome/chromeFiles/content/scholar/bindings/timedtextarea.xml new file mode 100644 index 000000000..76274675e --- /dev/null +++ b/chrome/chromeFiles/content/scholar/bindings/timedtextarea.xml @@ -0,0 +1,44 @@ + + + + + null + + + + return this.inputField.value; + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/chrome/chromeFiles/content/scholar/customControls.xml b/chrome/chromeFiles/content/scholar/customControls.xml deleted file mode 100644 index cd458e86c..000000000 --- a/chrome/chromeFiles/content/scholar/customControls.xml +++ /dev/null @@ -1,515 +0,0 @@ - - - - - null - - - - return this.inputField.value; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0) - this.id('tagsPopup').showPopup(this.id('tagsLabel'),-1,-1,-1,'popup',0,0); - else - this.id('tags').add(); - ]]> - - - - - - - - - - 0) - this.id('seeAlsoPopup').showPopup(this.id('seeAlsoLabel'),-1,-1,'popup',0,0); - else - this.id('seeAlso').add(); - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/chrome/chromeFiles/skin/default/scholar/scholar.css b/chrome/chromeFiles/skin/default/scholar/scholar.css index a4725a89f..9e7217f4b 100644 --- a/chrome/chromeFiles/skin/default/scholar/scholar.css +++ b/chrome/chromeFiles/skin/default/scholar/scholar.css @@ -1,26 +1,26 @@ textbox[multiline="true"][type="timed"] { - -moz-binding: url('chrome://scholar/content/customControls.xml#timed-textarea'); + -moz-binding: url('chrome://scholar/content/bindings/timedtextarea.xml#timed-textarea'); } noteeditor { - -moz-binding: url('chrome://scholar/content/customControls.xml#note-editor'); -} - -tagsbox -{ - -moz-binding: url('chrome://scholar/content/customControls.xml#tags-box'); -} - -seealsobox -{ - -moz-binding: url('chrome://scholar/content/customControls.xml#seealso-box'); + -moz-binding: url('chrome://scholar/content/bindings/noteeditor.xml#note-editor'); } linksbox { - -moz-binding: url('chrome://scholar/content/customControls.xml#links-box'); + -moz-binding: url('chrome://scholar/content/bindings/noteeditor.xml#links-box'); +} + +tagsbox +{ + -moz-binding: url('chrome://scholar/content/bindings/tagsbox.xml#tags-box'); +} + +seealsobox +{ + -moz-binding: url('chrome://scholar/content/bindings/relatedbox.xml#seealso-box'); } .clicky