2004-05-04 08:27:20 +00:00
|
|
|
Enhancements for wxWidgets 3.0
|
2003-03-16 13:19:24 +00:00
|
|
|
==============================
|
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
This table contains the brief summary of the issues below. Priority and
|
|
|
|
Difficulty are values from 1 to 10 with 1 being the least important/difficult
|
|
|
|
and 10 the most.
|
|
|
|
|
|
|
|
Item Prio Diff
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
Namespaces 8 6
|
|
|
|
STLization 10 8
|
|
|
|
Making code exception-friendly 8 10
|
|
|
|
Native RTTI 7 7
|
|
|
|
TRUE/true 9 1
|
|
|
|
|
2003-03-16 13:19:24 +00:00
|
|
|
|
2003-03-16 10:13:20 +00:00
|
|
|
C++ Features
|
|
|
|
============
|
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
- Namespaces:
|
2004-05-04 08:27:20 +00:00
|
|
|
We want to have all wxWidgets identifiers in "wx" namespace but provide
|
2003-03-17 16:14:01 +00:00
|
|
|
typedefs/#defines for backwards compatibility. This can be done easily
|
|
|
|
for the classes and the only real problem are the enums as they would
|
|
|
|
all have to be duplicated at both the global scope (with "wx" prefix) and
|
|
|
|
in wx namespace (without it)
|
|
|
|
|
|
|
|
- STLization
|
|
|
|
This involves providing optional wxString implementation using std::string
|
|
|
|
and doing the same for all our containers with the exception of wxHashMap
|
|
|
|
which should simply be rewritten using templates (but keeping the old
|
|
|
|
version for backwards compatibility -- ideally wx 3.0 would still be usable
|
|
|
|
without templates, even if not all of its features would be available then)
|
|
|
|
|
|
|
|
- Exceptions
|
2004-05-04 08:27:20 +00:00
|
|
|
We are not going to use exceptions in wxWidgets itself but our code should
|
2003-03-17 16:14:01 +00:00
|
|
|
become exception safe. This is a very difficult task as it means that no
|
|
|
|
resource allocations (including memory, files, whatever) should be done
|
|
|
|
without using a smart pointer-like object to store the result as it is the
|
|
|
|
only way to prevent resource leaks in presence of exceptions
|
|
|
|
|
|
|
|
- Real RTTI
|
|
|
|
Optionally use the real RTTI instead of wx emulation of it. Keep the
|
|
|
|
current stuff for backwards compatibility.
|
|
|
|
|
|
|
|
- Complete replacing TRUE/FALSE with true/false
|
|
|
|
Trivial
|
|
|
|
|
2003-03-16 10:13:20 +00:00
|
|
|
|
|
|
|
Core
|
|
|
|
====
|
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
- use wxEventLoop in all builds
|
|
|
|
wxApp and wxDialog should use wxEventLoop objects (the exact class can be
|
|
|
|
customized by user code by overriding some wxApp::CreateEventLoop())
|
|
|
|
instead of duplicating the same code
|
|
|
|
|
2005-11-08 19:59:51 +00:00
|
|
|
- remove wxCOMPATIBILITY
|
|
|
|
wxDEPRECATED() should be used with everything inside WXWIN_COMPATIBILITY_2_4.
|
|
|
|
The stuff inside WXWIN_COMPATIBILITY_2_6 probably should not be deprecated
|
|
|
|
(yet?) because this would give thousands of warnings for the existing code.
|
|
|
|
Exception is api documented as obsolete in 2.6 release already.
|
2003-03-17 16:14:01 +00:00
|
|
|
|
|
|
|
- Modularization/Build System
|
|
|
|
Candidates for components:
|
|
|
|
+ contrib widgets (and maybe some of the ones currently in the core)
|
|
|
|
+ wxHTML
|
|
|
|
+ network stuff
|
|
|
|
+ printing (?)
|
|
|
|
+ ODBC classes
|
|
|
|
+ ...
|
|
|
|
|
|
|
|
- Project File Generation
|
|
|
|
We need a (GUI) tool to generate the project/makefiles for all supported
|
|
|
|
platforms/compilers. Not sure if it should be used for the library itself
|
|
|
|
(would be nice to have something like "make menuconfig" for Linux kernel
|
2004-10-22 19:15:35 +00:00
|
|
|
which allows you to navigate easily among all of the configure/setup.h
|
2003-03-17 16:14:01 +00:00
|
|
|
options but there is a problem with distributing such tool as it can't be
|
|
|
|
compiled by the user because it is needed before the library is built) but
|
|
|
|
we definitely need it for the users makefiles.
|
|
|
|
|
|
|
|
- Properties/Member-Metadata, 2-Step Init with virtual create
|
|
|
|
|
2003-09-11 12:52:20 +00:00
|
|
|
- Tidy code and add comments to headers (possibly in
|
2003-03-19 21:40:05 +00:00
|
|
|
Doxygen/Javadoc style)
|
|
|
|
|
2003-03-16 10:13:20 +00:00
|
|
|
|
|
|
|
Documentation
|
|
|
|
=============
|
|
|
|
|
2003-03-16 13:16:52 +00:00
|
|
|
- The possibility of moving doc into header files with tool
|
|
|
|
support.
|
|
|
|
- Detailed review of doc accuracy.
|
2003-03-16 10:13:20 +00:00
|
|
|
- wxDC : Precise definition of default/initial state.
|
2003-03-16 13:16:52 +00:00
|
|
|
- wxDC : Pixelwise definition of operations (e.g. last point of a
|
|
|
|
line not drawn).
|
2003-03-17 16:14:01 +00:00
|
|
|
- Events:
|
|
|
|
For all controls state clearly when calling a member function results in an
|
|
|
|
event being generated and when it doesn't.
|
|
|
|
- Update the coding standards guide
|
|
|
|
|
2003-03-16 10:13:20 +00:00
|
|
|
|
|
|
|
wxEvents
|
|
|
|
========
|
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
- Change Idle Handling
|
|
|
|
Current Implementation is using too many CPU cycles
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
- Loose Coupling Event-Source Event-Sink
|
|
|
|
kind of the NextStep/C# very performant coupling, exposing events via
|
|
|
|
Metadata
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
- Add Lazy Init of Eventtables
|
2003-03-16 10:13:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
Modules/Plugins
|
|
|
|
===============
|
|
|
|
|
|
|
|
Architecture
|
|
|
|
------------
|
|
|
|
|
2004-10-22 19:15:35 +00:00
|
|
|
We aim to arrive at a lazy initialization of modules only when they are first
|
2003-03-16 13:16:52 +00:00
|
|
|
needed. Dependency information between modules is needed. Dynamic Plug-In
|
|
|
|
loading and unloading must be compatible with that.
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 17:14:04 +00:00
|
|
|
|
2003-03-16 10:13:20 +00:00
|
|
|
wxUniversal
|
|
|
|
===========
|
|
|
|
|
2003-03-16 13:16:52 +00:00
|
|
|
- Renderers within native ports.
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 17:14:04 +00:00
|
|
|
|
2003-03-16 10:13:20 +00:00
|
|
|
wxPrinting
|
|
|
|
==========
|
|
|
|
|
2003-03-16 13:16:52 +00:00
|
|
|
- Page preflighting capabilities in order to determine number
|
|
|
|
of pages.
|
|
|
|
- Preview UI enhancement.
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 17:14:04 +00:00
|
|
|
|
2003-03-16 10:13:20 +00:00
|
|
|
wxStaticBox
|
|
|
|
===========
|
|
|
|
|
2003-03-16 13:16:52 +00:00
|
|
|
Hide the platform problems (GTK: 'children' must be siblings) in encapsulation
|
|
|
|
in order to avoid problems on ports where the hierarchy must be
|
|
|
|
'correct'.
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 17:14:04 +00:00
|
|
|
|
|
|
|
Removal of old code
|
|
|
|
===================
|
|
|
|
|
|
|
|
In addition to wxCOMPATIBILITY code:
|
|
|
|
|
|
|
|
- contrib/src/mmedia
|
|
|
|
- contrib/src/applet?
|
2003-03-19 21:40:05 +00:00
|
|
|
- Dialog Editor
|
2003-03-17 17:14:04 +00:00
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
wxMiscellaneous
|
|
|
|
===============
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
- wxDC Support for point to char-position with text rendering
|
|
|
|
- wxLocale Extension (eg Currency)
|
|
|
|
- wxStreams review
|
|
|
|
- wxURL?
|
2004-05-04 08:27:20 +00:00
|
|
|
- a way to tell wxWidgets to check for any non-portable usage,
|
2003-03-18 15:08:21 +00:00
|
|
|
for a given set of platforms. Sometimes you want to be able
|
|
|
|
to get away with non-portable usage, and sometimes not.
|
|
|
|
This is probably way too time-consuming to implement.
|
|
|
|
- In headers, don't silently omit contents if the features for this
|
|
|
|
header is switched off. Instead, emit an error message.
|
2003-03-19 21:40:05 +00:00
|
|
|
- Implement native tree view and colour dialog in wxGTK.
|
2003-04-17 16:11:52 +00:00
|
|
|
- Better way to specify About, Preferences menu ids under wxMac.
|
|
|
|
- Must be able to portably specify relaying out a frame after the toolbar
|
|
|
|
has been destroyed or recreated. On wxMSW, this is done in
|
|
|
|
~wxToolBar. On wxGTK, in SetToolBar. In wxMac, not at all,
|
|
|
|
but sending a wxSizeEvent will do it.
|
2003-07-23 20:30:19 +00:00
|
|
|
- Need wxRect wxToolBar::GetToolRect(int id) or similar so we can
|
|
|
|
align a popup menu with a toolbar button.
|
2003-04-17 16:11:52 +00:00
|
|
|
- wxMac font selector dialog is the generic font selector -
|
|
|
|
horrible.
|
2003-05-03 15:34:28 +00:00
|
|
|
- No Append(wxArrayString&) for wxChoice and wxComboBox in wxGTK.
|
|
|
|
Probably other functions too. Consider adding Insert to
|
|
|
|
these classes, as per the patch on SF.
|
|
|
|
- Rewrite wxFileHistory using wxString and wxArrayString, and
|
|
|
|
put in separate file.
|
2003-05-19 07:36:47 +00:00
|
|
|
- Add wxArrayString methods to wxTextValidator and any other
|
|
|
|
class that needs them.
|
|
|
|
- Add wxNotebook::GetTabRect or similar so we can estimate
|
|
|
|
page size better in wxNotebookBase::CalcSizeFromPage.
|
|
|
|
- Add function to clear all wxNotebook tabs without
|
|
|
|
destroying the pages.
|
|
|
|
- Add individual setters to wxScrollBar and other classes
|
|
|
|
that use a combined setter.
|
|
|
|
- Remove traces of old resource system from wxWizard.
|
2003-05-23 18:59:07 +00:00
|
|
|
- Have wxDirCtrl as alias for wxGenericDirCtrl.
|
|
|
|
- Allow instant reaction to left-up in a wxGrid cell
|
|
|
|
(extend editor API) to work around bad checkbox
|
|
|
|
behaviour (click, click, click, click away...) and
|
|
|
|
reduce checkbox size on non-Windows platforms.
|
2003-06-01 13:57:23 +00:00
|
|
|
- Add wxNotebook::HitTest for non-Windows platforms.
|
2003-08-14 11:04:54 +00:00
|
|
|
- Implement rebar for all platforms. This will help us
|
|
|
|
get closer to native look and feel, e.g. the gradient
|
|
|
|
shadow on XP toolbars.
|
2003-03-16 10:13:20 +00:00
|
|
|
|
2003-03-17 16:14:01 +00:00
|
|
|
Version: $Id$
|