Drop in preference panels
Moderator: Camino Developers
-
- Camino Developer
- Posts: 975
- Joined: November 8th, 2002, 6:14 am
- Location: Holland, Amsterdam
- Contact:
Drop in preference panels
Finally some work has been done on <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=184394">bug 184394</a> which should bring a plugin/extension architecture for preference panels, a great opertunity for 3d party developers.
So what are the posibilities you might ask? Well as a proof of consept one of the developers has made an Advanced preference panel which will allow Camino users to have a very similar UI then Firefoxes about:config to change ALL preferences available.
Isn't it pretty?
<img src="http://www.jasperhauser.nl/download/camino_advanced.jpg">
But that's not all. Fact is that it won't be like Firefox extension because the pref panes can't change anything in the camino code (UI and such). But on the other hand it can hook up to most of the mozilla code. So panels such as Image blocking or a panel dedicated to all image option, a userConent.css editor, or a special SearhURl editor could all be made fairly easy. But perhaps you are a very good coder/hacker with much better ideas who could make even cooler panels?
The beauty of it is that if you write the panel correctly in cocoa you never need to restart camino to apply the changes. As soon as I have more information on all this, I'll make sure a proper tutorial and the files will be made available.
So what are the posibilities you might ask? Well as a proof of consept one of the developers has made an Advanced preference panel which will allow Camino users to have a very similar UI then Firefoxes about:config to change ALL preferences available.
Isn't it pretty?
<img src="http://www.jasperhauser.nl/download/camino_advanced.jpg">
But that's not all. Fact is that it won't be like Firefox extension because the pref panes can't change anything in the camino code (UI and such). But on the other hand it can hook up to most of the mozilla code. So panels such as Image blocking or a panel dedicated to all image option, a userConent.css editor, or a special SearhURl editor could all be made fairly easy. But perhaps you are a very good coder/hacker with much better ideas who could make even cooler panels?
The beauty of it is that if you write the panel correctly in cocoa you never need to restart camino to apply the changes. As soon as I have more information on all this, I'll make sure a proper tutorial and the files will be made available.
—:0-0:— jasperhauser.nl
<a href="http://www.jasperhauser.nl/weblog/">japser's blog</a>
<a href="http://www.jasperhauser.nl/icon/">Jasper Hauser icon design</a>
<a href="http://www.jasperhauser.nl/weblog/">japser's blog</a>
<a href="http://www.jasperhauser.nl/icon/">Jasper Hauser icon design</a>
- eccoana
- Posts: 813
- Joined: February 27th, 2004, 1:43 pm
- Location: bavaria
Re: Drop in preference panels
the new panel is fine, no question. but where is the difference to the current situation? people who could code in cocoa or whatever can already code everything like that. almost no-one did it. why should the situation change now?japser wrote:So panels such as Image blocking or a panel dedicated to all image option, a userConent.css editor, or a special SearhURl editor could all be made fairly easy.
-
- Camino Developer
- Posts: 2430
- Joined: March 16th, 2004, 1:50 pm
-
- Camino Developer
- Posts: 2430
- Joined: March 16th, 2004, 1:50 pm
Re: Drop in preference panels
eccoana wrote:but where is the difference to the current situation? people who could code in cocoa or whatever can already code everything like that. almost no-one did it. why should the situation change now?
Well, drag-and-drop install and documentation on how to easily make a pref pane should at least make it more approachable.
-
- Posts: 2007
- Joined: July 14th, 2003, 10:07 am
- Location: Near Atlantic Ocean
smorgan wrote:MozJF wrote:Well, it only miss cache size definition and it will be a good browser.
Um, you've always been able to set cache size, because Camino respects the Mozilla prefs. A few lines in user.js, and you are set. Or, now, you can just add a pref pane to control cache from preferences
It would have been better to define size using a dialog box, not with an user.js tweaking !
MozJF
-
- Camino Developer
- Posts: 2430
- Joined: March 16th, 2004, 1:50 pm
MozJF wrote:It would have been better to define size using a dialog box, not with an user.js tweaking !
There was a lot of discussion, and the consensus of the developers was that it was an infrequently-used enough pref that it would not be given any UI--as always, some people disagree.
That's not really relevant to this thread though; the point is that now it will be easier for people to make special pref panes when they really want prefs that the developers have chosen not to expose in the UI.
- Uncle Asad
- Camino Developer
- Posts: 3957
- Joined: July 24th, 2004, 1:38 pm
- Location: بين العالمين
- Contact:
japser wrote:Isn't it pretty?
Beautiful
Will the proof-of-concept Advanced prefpane be available for download somewhere once all this lands? (I assume it will never be shipped with release versions of Camino.)
Mac OS X 10.3.9 • PowerBook G4 17" 1.33 GHz | Mac OS X 10.5.x • MacBook Pro 15" 2.2 GHz
Snow7's Camino Forum FAQ Search the Forum Camino. Help Troubleshoot Camino
Snow7's Camino Forum FAQ Search the Forum Camino. Help Troubleshoot Camino
-
- Posts: 45
- Joined: February 2nd, 2004, 9:12 am
- Location: The Ether
Uncle Asad wrote:
Will the proof-of-concept Advanced prefpane be available for download somewhere once all this lands? (I assume it will never be shipped with release versions of Camino.)
Yes, although it will be targetted at advanced users and mostly unsupported. And there might even be sample code for doing a prefpane in applescript or python, if potential prefpane authors really find objective c too daunting.
-
- Camino Developer
- Posts: 975
- Joined: November 8th, 2002, 6:14 am
- Location: Holland, Amsterdam
- Contact:
Re: Drop in preference panels
eccoana wrote:the new panel is fine, no question. but where is the difference to the current situation? people who could code in cocoa or whatever can already code everything like that. almost no-one did it. why should the situation change now?japser wrote:So panels such as Image blocking or a panel dedicated to all image option, a userConent.css editor, or a special SearhURl editor could all be made fairly easy.
One of the bigest changes with this patch will be that the Camino profile/preference folder will have a folder names PreferencePanes where usres can drop their extra panels into. Then Camino will auto detext them and launch them when it launches. This means that they won't need to reinstall them everytime they download a new copy of camino and also makes sure they can remove them very easily if they want.
Note that a bug has been filed including a patch to make sure pref panels can also me written using applescript studio, making sure even non cocoa developers can write pref panels.
—:0-0:— jasperhauser.nl
<a href="http://www.jasperhauser.nl/weblog/">japser's blog</a>
<a href="http://www.jasperhauser.nl/icon/">Jasper Hauser icon design</a>
<a href="http://www.jasperhauser.nl/weblog/">japser's blog</a>
<a href="http://www.jasperhauser.nl/icon/">Jasper Hauser icon design</a>
- eccoana
- Posts: 813
- Joined: February 27th, 2004, 1:43 pm
- Location: bavaria
Re: Drop in preference panels
the problem is that you cannot create a project of type PreferencePane with Xcode as an AppleScriptStudio application.japser wrote:Note that a bug has been filed including a patch to make sure pref panels can also me written using applescript studio, making sure even non cocoa developers can write pref panels.
so it's not a Camino thingy but Xcode related.
I currently rewrite CEP in Xcode but I don't know how to change the prefs on the fly. knowing the correct Xcode method to update Camino preferences on the fly would help much!
-
- Camino Developer
- Posts: 975
- Joined: November 8th, 2002, 6:14 am
- Location: Holland, Amsterdam
- Contact:
I'm sure that petard or any other developer will help you answer your questions, I'm pretty sure that the tutorial (that should be made) will contain explanations for any of your questions.
—:0-0:— jasperhauser.nl
<a href="http://www.jasperhauser.nl/weblog/">japser's blog</a>
<a href="http://www.jasperhauser.nl/icon/">Jasper Hauser icon design</a>
<a href="http://www.jasperhauser.nl/weblog/">japser's blog</a>
<a href="http://www.jasperhauser.nl/icon/">Jasper Hauser icon design</a>
-
- Posts: 1313
- Joined: November 7th, 2003, 12:02 pm
- Contact:
- BDog
- Posts: 805
- Joined: March 6th, 2004, 9:01 am
- Location: Roseville, MN
- Contact:
-
- Posts: 10
- Joined: March 25th, 2005, 3:33 pm