MozillaZine


Drop in preference panels

Talk about the native Mac OS X browser.

Moderator: Camino Developers

japser
Camino Developer

User avatar
 
Posts: 975
Joined: November 8th, 2002, 6:14 am
Location: Holland, Amsterdam

Post Posted March 2nd, 2005, 11:55 am

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.
—: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>

MozJF
 
Posts: 2007
Joined: July 14th, 2003, 10:07 am
Location: Near Atlantic Ocean

Post Posted March 2nd, 2005, 12:35 pm

Well, Camino will be - at least - usable for a "die-hard" user of firefox.

Well, it only miss cache size definition and it will be a good browser.

/me is already outside ;o)
MozJF

eccoana

User avatar
 
Posts: 813
Joined: February 27th, 2004, 1:43 pm
Location: bavaria

Post Posted March 2nd, 2005, 3:11 pm

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.
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?

smorgan
Camino Developer
 
Posts: 2430
Joined: March 16th, 2004, 1:50 pm

Post Posted March 2nd, 2005, 10:45 pm

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 :)

smorgan
Camino Developer
 
Posts: 2430
Joined: March 16th, 2004, 1:50 pm

Post Posted March 2nd, 2005, 10:46 pm

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.

MozJF
 
Posts: 2007
Joined: July 14th, 2003, 10:07 am
Location: Near Atlantic Ocean

Post Posted March 2nd, 2005, 11:08 pm

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

smorgan
Camino Developer
 
Posts: 2430
Joined: March 16th, 2004, 1:50 pm

Post Posted March 2nd, 2005, 11:14 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

User avatar
 
Posts: 3957
Joined: July 24th, 2004, 1:38 pm
Location: بين العالمين

Post Posted March 2nd, 2005, 11:36 pm

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 FAQSearch the Forum  Camino. HelpTroubleshoot Camino

petard
 
Posts: 45
Joined: February 2nd, 2004, 9:12 am
Location: The Ether

Post Posted March 2nd, 2005, 11:55 pm

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.

japser
Camino Developer

User avatar
 
Posts: 975
Joined: November 8th, 2002, 6:14 am
Location: Holland, Amsterdam

Post Posted March 3rd, 2005, 2:02 am

eccoana wrote:
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.
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?


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>

eccoana

User avatar
 
Posts: 813
Joined: February 27th, 2004, 1:43 pm
Location: bavaria

Post Posted March 3rd, 2005, 2:35 am

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.
the problem is that you cannot create a project of type PreferencePane with Xcode as an AppleScriptStudio application.
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!

japser
Camino Developer

User avatar
 
Posts: 975
Joined: November 8th, 2002, 6:14 am
Location: Holland, Amsterdam

Post Posted March 3rd, 2005, 2:44 am

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>

jedik
 
Posts: 1313
Joined: November 7th, 2003, 12:02 pm

Post Posted March 21st, 2005, 5:55 am

Hi.

How do I enable the *Advanced* preference pane? Or is it restricted to developer's builds?

Thanks in advance.

Jedi Knight

BDog

User avatar
 
Posts: 805
Joined: March 6th, 2004, 9:01 am
Location: Roseville, MN

Post Posted March 30th, 2005, 4:50 pm

jedik wrote:Hi.

How do I enable the *Advanced* preference pane? Or is it restricted to developer's builds?

Thanks in advance.

Jedi Knight
I would also like this panel... Pretty pretty please? :-)

eeyoredragon
 
Posts: 10
Joined: March 25th, 2005, 3:33 pm

Post Posted May 29th, 2005, 12:54 am

Will take a look at this. Been messing around with Objective C and Cocoa and have been looking for a good toy to work on :)

Return to Camino


Who is online

Users browsing this forum: No registered users and 0 guests