Commit Graph

15354 Commits

Author SHA1 Message Date
Ryan Norton
ae25e5cc8c Fixed GetLineLength and GetLineText for MLTE text controls - Fixed bug where it couldn't get the length or text of the first line (0) and sf bug 1030042 where subsequent lines to 0 would not include the first character. Added those tests to the text sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-25 05:50:36 +00:00
Ryan Norton
8d1147f942 warning fix - only use the function in debug mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-25 00:14:55 +00:00
Ryan Norton
1cc549e58c warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-25 00:12:28 +00:00
Ryan Norton
cc9d56b036 Lots of release bugs fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-25 00:02:13 +00:00
Ryan Norton
bc57786b55 debug handling. More broken Apple 'goodness'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 23:47:19 +00:00
Ryan Norton
7c2779590d remove unused varaible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 21:48:54 +00:00
Ryan Norton
9d43ea9585 unused variable warnings fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 21:39:19 +00:00
Ryan Norton
af4fc79bd4 partial aggregate warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 21:33:21 +00:00
Włodzimierz Skiba
cab1a6053d Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 14:32:35 +00:00
Ryan Norton
80e3f46492 unused variable warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 12:25:57 +00:00
Václav Slavík
bfa7fb5268 uses system's default UI font in the help browser by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 09:56:13 +00:00
Václav Slavík
10e5c7eaa0 replaced NormalizeFontSizes with SetStandardFonts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 09:55:10 +00:00
Włodzimierz Skiba
a771da4036 Above 2.3.0 SetBitmap is still for owner drawn only.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 06:27:15 +00:00
Ryan Norton
3c907f1a7f fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 06:06:09 +00:00
Ryan Norton
7488a05edb PATCH: [ 1033006 ] Fix: socket s timeout of < 1s doesnt work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 05:48:24 +00:00
Ryan Norton
54d5abee41 OK - Robin's right, it is already a SOCKLEN_T
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 23:57:37 +00:00
Robin Dunn
214b94848a Fix from Jed Burgess that correctly untoggles radio toolbar items when
another one in the same group is selected.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 22:39:24 +00:00
Ryan Norton
7d065a0afe Fix warning on OSX - its on int on mac/msw and a socklen_t on others
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 22:09:34 +00:00
Robin Dunn
f565c05e6b Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 22:01:08 +00:00
Włodzimierz Skiba
cb719f2e29 Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 18:20:56 +00:00
Ryan Norton
957f865c97 unused variable warning fix - move unused stuff to proper place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 17:28:20 +00:00
Ryan Norton
e6e1f5176e SOCKLEN_T handling for OSX - it seems to be defined as a size_t, when the parameters to the functions where it is handled is really an int (avoids multiple conversion warnings)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 17:17:43 +00:00
Ryan Norton
255df092b3 remove unused variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 17:03:58 +00:00
Václav Slavík
0304adb195 fixed unresolved references with GTK+ 2.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 14:03:58 +00:00
Włodzimierz Skiba
1f30c17645 wx(Choice/List/Note)book controls send CHANG(ED/ING) events in SetSelection.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 12:43:10 +00:00
Vadim Zeitlin
f7df21aadf don't free user data before sending wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, this prevents user from doing cleanup in his OnDeleteAllItems() handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 10:07:25 +00:00
Vadim Zeitlin
c68f590a2a hack to _really_ fix crashes in comctl32.dll when processing HDN_GETDISPINFO
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 09:59:24 +00:00
Václav Slavík
621be1ec26 wxUSE_XRC implies wxUSE_XML now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 09:18:13 +00:00
Włodzimierz Skiba
d2cdad17e3 Smartphone native look and feel.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 08:39:47 +00:00
Robin Dunn
9213ca5d47 Made wxGTK's wxEventLoop::IsRunning a little more consistent with
wxMSW's and uninstall the idle handled like wxYield does so Pending
can eventually return false.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 00:58:21 +00:00
Ryan Norton
da86e17765 wxUSE_XML and wxUSE_XRC build fixes if expat is not enabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 21:23:46 +00:00
Robert Roebling
eccd56020f Small fix for tabbing into wxListBox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 20:57:09 +00:00
Ryan Norton
a76fd371f7 Only include/build pnghand if the user builds the png library (avoids multiple build errors)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 20:47:23 +00:00
Ryan Norton
699e27dc99 Fix aggregate has a partly bracketed Unmatched initializer warnings - which means that the compiler can't figure out which types the initializer list refers to - so now we're telling the compiler that the first and second 16 values do refer to the Bit16s and the last two values refer to the Point part of Cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 20:30:58 +00:00
Ron Lee
589e20d03c Move the WX_FLAVOUR variables to be defined generally, not just for
autoconf builds, else the wince targets (at least) will complain.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 15:08:33 +00:00
Robert Roebling
c932709d31 Make radiobutton tab behaviour the same on MSW
as in standard MSW app, i.e. tab into the
    activated, not necessarily the first radio
    button.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 14:51:31 +00:00
Włodzimierz Skiba
d775fa8235 Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 14:38:52 +00:00
Jouk Jansen
ce07cd8a75 Committing in .
Changes to make compilations on OpenVMS work:
    displayx11.h : one semicolon removed, since it is not needed
    progdlgg.cpp : On some systems (like OpenVMS) unsigned types are realy
                   unsigned. So a comparison unsigned_var < 0 is always
                   false and causes unreacheable code, which is flagged
                   by the compiler. In this case a change from unsigned long
                   to long was more what was intended here.
 Modified Files:
 	wxWidgets/include/wx/unix/displayx11.h
 	wxWidgets/src/generic/progdlgg.cpp
 ----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 06:29:21 +00:00
Włodzimierz Skiba
2ae23cc5ce Correct #if markup to spin-based controls handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 06:22:34 +00:00
Włodzimierz Skiba
d1d276f231 WXUNUSED_UNLESS_ODRAWN does not reflect wxUSE_MENUS_NATIVE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 06:20:42 +00:00
Włodzimierz Skiba
fa3b88eb66 Warning fix to unused variable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 06:18:05 +00:00
Włodzimierz Skiba
0d1f53ca16 Adjustement to the small display of Smartphones.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 06:17:07 +00:00
Włodzimierz Skiba
701a0b4766 Source cleaning: whitespaces, tabs, -1/wxNOT_FOUND, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 18:15:59 +00:00
Ron Lee
ceec2216bd wx-config2.6
Designed to be resiliant against future cut and paste coders.  Any
gnarly parts are black boxed away nicely to avoid accidents and have
integrated debugging support for trivial sanity checking in the event
of modification or trouble.  In this way the major operations are all
cleanly separated making any or all of them simply extensible, or
replaceable in the face of future needs.  Functions now all have api
descriptions.  If you rely on a function to act in some way, please
document it to safeguard yourself against inadvertant interface
changes by others.

Everything now runs top top to bottom, we don't try to output things
as fast as we can read them anymore, instead we read everything in,
sort over it just once without the need for 'just in case' temp's, and
then output whatever we were asked for only when we are sure we have
the correct answer.  Almost all key data aims to be constant past the
point of its initialisation so side effect creep and trouble with half
(re)initialised data should be significantly reduced in future.  In
almost every case it is easy and clean to simply delay initialisation
until all required input channels have been emptied.  If you like,
think of it as mostly being one big constructor, with a little
destructor at the end which outputs what you requested.  At core, it
is simply a generated config file -- with some user friendly logic for
extracting its data and finding related files.

Removed references to --gl-libs in --help.  It still exists, but if
its deprecated, no need to fill space in a compact help summary.  It
will remain documented (as deprecated) in the man page.

Removed references to arcane order rules for arguments.  Those
limitations don't exist anymore, though the options are backward
compatible in all other respects from the user pov.

Removed references to --inplace, it doesn't need to be in the summary
help either.  It also is still accepted as an option, but there is no
value in passing it, an uninstalled wx-config will automatically
behave correctly.  When you need --inplace, it will supply that
behaviour for you (but there is no harm in typing it your self in that
case).  If you do type it when you don't need it, bad things will
probably happen just like they always would have.

Along with items above, generally compressed --help text to fit on
even a traditional sized terminal without the need for paging.  If we
want more detailed help built in, it should be broken into separate
pages, and this would be a trivial extension.

Command line input is now controlled by a small generic parser.  You
define what options you want and what groups you want them in by
initialising them as lists.  It runs over all the input and fills
corresponding psuedo-hashes from it for you to use as you please
later.

Added a validator for it to check yes/no options.

Use posix extended regex instead of gnu 'basic' regex extensions,
grep -E is portable, if gmake is not a requirement, we surely can't
push gnu grep on people.

Made --list more user friendly.  It will now always list the current
wx-config if it matches the feature spec, though it will warn if that
config is not in the specified --prefix.  Alternate configs that match
(if any) are listed separately. An unqualified call to wx-config --list
will always return (at least) the config that was called.  We can never
have a 'hanging' wx-config shell with no real implementation to back
it up anymore so we can always return a sensible result for the user.
A wx-config anywhere can list (and hence use) the configs installed in
any (other) prefix.

Delegation.  Too big a topic to remark on in depth here, see the code
for a fuller description.  With everything being nicely constant and
aligned to the respective library build, then aside from delegation,
wx-config really is _just_ a config file (albeit with a layer of logic
around the constants), and each wx-config carries a set of defaults
which match perfectly the library build that it was generated with.
If you choose a set of features that it can match, it will answer all
your queries for them, if it cannot, it will seek to delegate to the
config that is most like itself, but which can supply all the features
you specified.  This should be completely compatible with any set of
options that returned a sensible result previously, and produce a
sensible result in many cases where previously the collating order
of your locale or the nuances of your filesystem operations would
decide which library it thought you wanted.

Sort duplicates out of the list of libraries and trickle shared
dependencies down the list to properly support static builds.

Added the inplace-config tweak for use in the build tree.  This works
like any other config, except it presets the default prefix to point
at the build dir instead of the configured prefix that will become the
default if this build is installed.  It provides the behaviour of
--inplace when $build_dir/wx-config is called without also specifying
a different --{exec-,}prefix or any feature flags that it is
incompatible with.  In that event, it will try to delegate as per the
normal rules.

The inplace wrapper is not installed with the primary config which
cleanly disables it for system installs.  It will be invalidated if
the build (or source) dir is moved, but will be revalidated if the
build tree is subseqently updated with ./config.status --recheck &&
config.status (which it probably would need to be to build anyway for
other reasons at present too)

Enabled full support for static builds again, promoted --static to a
full feature option.  Fixed --ld to return something for them too.

Added --flavour, similar to the existing --vendor, but for autoconf
builds.  These will probably want to be streamlined further.
Broadened the use of release and flavour labels to support better
concurrent installs.

Fix bit rot in make-dist due to new/deleted files.

Whittled down the number of obsolete and duplicated substitution
variables in configure.in, and lowercased some variables we no longer
export for substitution.  Use the autoconf macros to generate files
where we want them instead of making them someplace and then moving
them all about.  Remove extra files and symlinks added for the two
part wx-config version.

Removed the debian -contrib packages.  We'll use multi-lib support
to manage them from now on and indiviual libs can be split out along
functional lines if required.  This means the retained contribs will
now get __WXDEBUG__ versions packaged too.

Removed conflicts from almost packages except i18n and wxPython. All
packages now either update or install alongside any existing ones.

Added support for flavoured debs as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 17:16:29 +00:00
Chris Elliott
e5894d192c fix for gtk/mdi when changing menubars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 11:34:38 +00:00
Włodzimierz Skiba
13bfd81cff Smartphone fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 09:08:52 +00:00
Włodzimierz Skiba
276c8cfb53 WinCE warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 09:03:26 +00:00
Włodzimierz Skiba
7e548f6b13 Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxDefaultCoord, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-20 11:31:49 +00:00
Vadim Zeitlin
a5ea75bc6a added wxStringOutputStream::TellO(); fixed bugs in OnSysWrite()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-19 21:58:50 +00:00
Vadim Zeitlin
5a4c7f718a fixed bug with seeking beyond the end in wxStringInputStream::OnSysSeek() triggered by unit test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-19 21:49:41 +00:00