MozillaZine

What language can Phoenix/Mozilla extensions be in?

Talk about add-ons and extension development.
WinterWolf

User avatar
 
Posts: 74
Joined: November 28th, 2002, 10:25 pm

Post Posted January 3rd, 2003, 1:42 am

Can I write an extension in something other than XUL? If so what other languages?

Magus
 
Posts: 2022
Joined: November 28th, 2002, 11:39 am
Location: that-a-way ->

Post Posted January 3rd, 2003, 2:56 pm

Nope, extensions are JS + XUL.
For every action there is an equal and opposite criticism.

Stefan

User avatar
 
Posts: 2051
Joined: November 5th, 2002, 2:46 am

Post Posted January 4th, 2003, 5:35 am

Magus wrote:Nope, extensions are JS + XUL.


Actually XUL includes JS :D

WinterWolf

User avatar
 
Posts: 74
Joined: November 28th, 2002, 10:25 pm

Post Posted January 4th, 2003, 10:45 pm

Hmm..., I'm thinking about learning a programming language, C++ or Java(XUL). Both are cross platform and quite popular. I can't decide!!

anyway, do I need to know how to program in Java to make themes?

Ted Mielczarek
 
Posts: 1269
Joined: November 5th, 2002, 7:32 am
Location: PA

Post Posted January 4th, 2003, 10:56 pm

Javascript is not Java. They just have similar syntax for some things. And no, you don't need to know even JS to make themes. As for C++ being cross platform, that's debatable. YOu can write MOzilla extensions in C++ or a few other languages, using XPCOM, but you'll have to use JavaScript and XUL to tie it into the application.

WinterWolf

User avatar
 
Posts: 74
Joined: November 28th, 2002, 10:25 pm

Post Posted January 4th, 2003, 11:47 pm

Check out Qt 3.11.

"Qt is a C++ toolkit for application development. It lets application developers target all major operating systems with a single application source code.

Qt provides a platform-independent API to all central platform functionality: GUI, database access, networking, file handling, etc. The Qt library encapsulates the different APIs of different operating systems, providing the application programmer with a single, common API for all operating systems. The native C APIs are encapsulated in a set of well-designed, fully object-oriented C++ classes. " http://www.trolltech.com/products/qt/index.html

BTW: Does anyone else using a stable 0.5 Phoenix see slightly trranslucent scrollbars? It looks cool, but it only works on my 400 MGZ computer.

Magus
 
Posts: 2022
Joined: November 28th, 2002, 11:39 am
Location: that-a-way ->

Post Posted January 5th, 2003, 3:01 am

Qt is not very cross platform... I've never had it work well at all on Win32.
For every action there is an equal and opposite criticism.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 0 guests