X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a5bcc4db0851bf8cd3063917511b0b17c7f9679..8ffbb0f8df8e4c2facffc65c394c8933ac79c3af:/docs/html/faqgen.htm diff --git a/docs/html/faqgen.htm b/docs/html/faqgen.htm index 43d44423d5..64144dcaac 100644 --- a/docs/html/faqgen.htm +++ b/docs/html/faqgen.htm @@ -2,7 +2,7 @@ -wxWidgets 2 FAQ: General +wxWidgets FAQ: General @@ -13,7 +13,7 @@ -wxWidgets 2 FAQ: General +wxWidgets FAQ: General @@ -26,7 +26,7 @@ See also top-level FAQ page.

List of questions in this category


@@ -53,20 +56,20 @@ so your program will take on the native 'look and feel' that users are f Although GUI applications are mostly built programmatically, there are several dialog editors to help build attractive dialogs and panels. Robert Roebling's wxDesigner -and Anthemion Software's DialogBlocks -are two commercial examples, but there are others: see the Useful Tools page.

+and Anthemion Software's DialogBlocks +are two commercial examples, but there are others: see the Useful Tools page.

-You don't have to use C++ to use wxWidgets: there is a Python interface for wxWidgets 2, +You don't have to use C++ to use wxWidgets: there is a Python interface for wxWidgets, and also a Perl interface.

-

Can I use wxWidgets 2 for both proprietary (commercial) projects, and GPL'ed projects?

+

Can I use wxWidgets for both proprietary (commercial) projects, and GPL'ed projects?

Yes. Please see the licence for details, but basically you can distribute proprietary binaries without distributing any source code, and neither will wxWidgets conflict with GPL code you may be using or developing with it.

-The conditions for using wxWidgets 2 are the same whether you are a personal, academic +The conditions for using wxWidgets are the same whether you are a personal, academic or commercial developer.

@@ -91,7 +94,7 @@ Our highest-profile user yet is industry veteran and Lotus Corp. founder Mitch K and his Open Source Applications Foundation.

-

What platforms are supported by wxWidgets 2?

+

What platforms are supported by wxWidgets?

-

How does wxWidgets 2 support platform-specific +

How does wxWidgets support platform-specific features?

This is a hotly-debated topic amongst the developers. My own philosophy @@ -130,7 +133,7 @@ of today's sophisticated applications.

Currently resources such as bitmaps and icons are handled in a platform-specific way, but it is hoped to reduce this dependence in due course.

-Another reason why wxWidgets 2 is not a 'lowest common denominator' toolkit is that +Another reason why wxWidgets is not a 'lowest common denominator' toolkit is that some functionality missing on some platform has been provided using generic, platform-independent code, such as the wxTreeCtrl and wxListCtrl classes.

@@ -139,10 +142,10 @@ platform-independent code, such as the wxTreeCtrl and wxListCtrl classes.

No. This is a much-discussed topic that has (many times) ended with the conclusion that it is in wxWidgets' best interests to avoid use of templates. Not all compilers can handle templates adequately so it would dramatically reduce the number of compilers -and platforms that could be supported. It would also be undersirable to make +and platforms that could be supported. It would also be undesirable to make wxWidgets dependent on another large library that may have to be downloaded and installed. In addition, use of templates can lead to executable bloat, which is something -wxWidgets 2 is strenously trying to avoid.

+wxWidgets is strenuously trying to avoid.

The standard C++ string class is not used, again because it is not available to all compilers, and it is not necessarily a very efficient implementation. Also, we retain more flexibility @@ -163,7 +166,7 @@ or by adding this to a header before you include any STL files:

-

Is there a rich edit/markup widget for wxWidgets 2?

+

Is there a rich edit/markup widget for wxWidgets?

These are the possibilities so far:

@@ -225,22 +228,14 @@ If you are feeling adventurous, you may also check out the sources directly from cvs.

+

What is wxBase?

@@ -276,29 +271,29 @@ from Java, and the level of interest in wxWidgets is as high as ever.

Microsoft is spending a lot on promoting the .NET initiative, which is a set of languages, APIs and web service components for Windows. Ximian has started an open source version of .NET, mostly for Linux. -C# is Microsoft's alternative to Java, supporting 'managed code', +C# is Microsoft's alternative to Java, supporting 'managed code', garbage collection and various other Java-like language features.

Although this may be attractive to some developers, there is a variety of reasons why the .NET/Mono combination is unlikely to make wxWidgets redundant. Please note that the following comments -are Julian Smart's opinions.

+are Julian Smart's opinions.

  1. Not everyone wants or needs net services.
  2. C++ will be used for a long time to come; compared with C++, C# is a recent development and its future is not certain.
  3. Mono Forms may only target Winelib (at least to begin with), so the end result is not as native as -wxWidgets (I'm aware there is GTK# for use with the C# language). +wxWidgets (I'm aware there is GTK# for use with the C# language).
  4. C# is usually byte-compiled and therefore slower. Plus, .NET adds a layer of overhead to the client computer that wxWidgets does not require. -
  5. Mono hasn't proven its long-term viability yet (it's a complex system of components); wxWidgets is ready now. +
  6. Mono hasn't proven its long-term viability yet (it's a complex system of components); wxWidgets is ready now.
  7. You may not wish to buy into Microsoft marketing spin and APIs.
  8. Microsoft may at some point sue developers of non-Microsoft .NET implementations. After all, -platform-independence is not in Microsoft's interest. +platform-independence is not in Microsoft's interest.
  9. .NET might never be implemented on some platforms, especially Mac and embedded variants of Linux.
  10. wxPython and other language variants provide further reasons for wxWidgets to continue. -
  11. The same issue exists for Qt: if Qt sales remain strong, it's a good indication that -the market for a C++-based approach is still there. (Either that, or everyone's turning to wxWidgets!) +
  12. The same issue exists for Qt: if Qt sales remain strong, it's a good indication that +the market for a C++-based approach is still there. (Either that, or everyone's turning to wxWidgets!)
There is nothing to stop folk from developing a C# version of the wxWidgets API; @@ -309,10 +304,64 @@ Update: a wx.NET project

How can I help the project?

-Please check out the Community pages, +Please check out the Community pages, in particular the suggested projects, and mail the developers' mailing list with your own suggestions.

+

How do I start a new port?

+ +Please subscribe to the wx-dev developers' mailing list and +ask if anyone else is interested in helping with the port, or +has specific suggestions. Also please read the coding standards. + +

+Each port consists of a platform-specific part (e.g. src/msw, include/wx/msw), +a generic set of widgets and dialogs for when the port doesn't support +them natively (src/generic, include/wx/generic) and the common code +that all ports use (src/common, include/wx). By browsing the source +you should get a good idea of the general pattern.

+ +Take a port that most closely matches your port, and strip out +the implementation so you have a skeleton port that compiles. Ask on wx-dev +first for the wxStubs port - however, any such predefined skeleton +port may be out of date, so make a judgement on whether to use it. +Perhaps it will still save you time to clean up wxStubs, and +others may benefit from this too.

+ +You will need to define a symbol for the new port, e.g. __WXXBOX__. +Look at files such as wx/defs.h, wx/wxchar.h for areas where you'll +need to add to existing conditionals to set up wide character +support and other issues. If the GUI runs on a Unix variant, +define the __UNIX__ variable in your makefile.

+ +Then you can start implementing the port, starting with +wxWindow, wxTopLevelWindow, wxFrame, wxDialog so you +can get the minimal sample running as soon as possible.

+ +If GDI objects (wxPen, wxBrush, etc.) are not concepts in your +native GUI, you may wish to use very generic versions of +some of these - see the wxX11 port.

+ +Consider using the wxUniversal widget set as a quick way +to implement wxWidgets on your platform. You only need +to define some basic classes such as device contexts, +wxWindow, wxTopLevelWindow, GDI objects etc. and +the actual widgets will be drawn for you. See wxX11, +wxMGL, and wxMSW/Univ for sample wxUniversal ports.

+ +To begin with, you can use whatever makefiles or project +files work for you. Look at existing makefiles to see what +generic/common/Unix files need to be included. Later, you'll want to integrate support +for your port into configure (Unix-like systems and gcc under Windows), +and bakefile (for other makefiles on Windows).

+ +Submit your port as patches via SourceForge; you might +wish to separate it into one patch that touches common headers +and source files, and another containing the port-specific code, to make +it much easier for us to review and apply the patches.

+ +Good luck! +