Vadim Zeitlin
a4761b4c08
implement flag for Unix-like behaviour in wxCmdLineParser::ConverStringToArgs()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:49:25 +00:00
Vadim Zeitlin
e559d790fb
add wxCmdLineParser::AddUsageText() and wxCMD_LINE_USAGE_TEXT (modified patch 1957542)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-12 00:03:06 +00:00
Vadim Zeitlin
16b627b06a
make GetUsageString() public, this is useful at least for the tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-11 23:46:24 +00:00
Vadim Zeitlin
b1859b1a1b
added support for double arguments to wxCmdLineParser (patch 1907289)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:33:25 +00:00
Vadim Zeitlin
779288b486
make wxCmdLineParser:Usage() const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 17:14:55 +00:00
Vadim Zeitlin
541ea80f0e
made wxApp::argv an object convertible to either char** or wchar_t** for better compatibility with the existing ANSI code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-12 22:32:23 +00:00
Vadim Zeitlin
0d5ab92f84
reverted the change of wxCmdLineEntryDesc fields to wxString as this doesn't compile with VC6; make them const char * instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-14 21:05:12 +00:00
Vadim Zeitlin
42599b710d
change wxCmdLineEntryDesc::short/longName type to wxString for better compatibility with existing Unicode code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 23:41:56 +00:00
Vadim Zeitlin
fdbd123ef9
changed wxCmdLineEntryDesc::short/longName fields type to char* from wxChar* (non-ASCII options are uncommon but NULL values are often specified for these fields) and made description field a wxString (as it can be constructed from either char or wchar_t strings and normally shouldn't be NULL)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 19:31:55 +00:00
Václav Slavík
b5dbe15d0b
added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Václav Slavík
8650108199
don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Julian Smart
3103e8a97e
Typo correction patch [ 1208110 ] Lots of typo corrections
...
Olly Betts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Vadim Zeitlin
ff1ce99740
added SetCmdLine(int, char **) overload even when building a Unicode app
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-25 01:58:36 +00:00
Włodzimierz Skiba
68379eaf0a
Source cleaning: whitespaces, tabs, TRUE/true, FALSE/false, -1/wxID_ANY/wxDefaultCoord, !!/!IsEmpty().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 12:56:07 +00:00
Włodzimierz Skiba
ee0f553126
Array of strings is needed regardless of wxUSE_CMDLINE_PARSER.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-21 10:35:38 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Václav Slavík
1202890513
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Mattia Barbon
df5168c427
Added --use-stl to cnfigure, wxUSE_STL to setup0.h
...
Moved wx/datetime.inl contents to wx/datetime.h and removed
inline redefinition hack.
Implemented STL-like interface on top of wxList/wxArray, when wxUSE_STL=0.
Implemented wxList-like and wxArray interfaces on top of std::list and
std::vector, when wxUSE_STL=1.
Added arrstr.h, moved wxArrayString declaration there; string.h
#includes arrstr.h only if WXWIN_COMPATIBILITY_2_4 is enabled.
Added WX_CLEAR_HASH_MAP, WX_CLEAR_HASH_TABLE, WX_CLEAR_LIST macros,
to clear a wxHashMap, wxHashTable, wxList containing pointers: deletes
pointers and makes container zero-sized.
When wxUSE_STL=1, wxStringList works like a std::list<wxString>.
Made wxBase compile when wxUSE_STL=1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-08 19:52:35 +00:00
Vadim Zeitlin
bddd7a8d89
renamed WXDLLEXPORT_BASE/CORE to WXDLLIMPEXP_BASE/CORE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:59:24 +00:00
Vadim Zeitlin
886dd7d28e
fixes needed for separate DLL build to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:41:23 +00:00
Julian Smart
371a5b4e62
Removed erroneous copyright names and corrected licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 10:34:04 +00:00
Vadim Zeitlin
e2b87f38d9
allow compilation with wxUSE_DATETIME == 0 (patch 679822)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-06 00:53:46 +00:00
Vadim Zeitlin
22f3361e1c
use DECLARE_NO_COPY_CLASS() where applicable (patch 633384)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-02 23:38:11 +00:00
Gilles Depeyrot
af49c4b8a2
disable use of #pragma interface under Mac OS X
...
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Mattia Barbon
74698d3a22
Added wxMessageOutput as per the discussion on wx-dev.
...
Added wxApp::DoInit to initialize the global wxMessageOutput instance.
Changed wxCommandLineParser to use wxMessageOutput.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-24 19:29:53 +00:00
Julian Smart
250b589f71
Applied patch [ 581139 ] Misc wxCmdLineParser changes/fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-19 19:53:02 +00:00
Gilles Depeyrot
434c9eb58a
corrected includes when wxUSE_CMDLINE_PARSER is 0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-26 21:59:52 +00:00
Vadim Zeitlin
be03c0ec26
fixes error/usage messages given by the cmd line parsing logic in wxApp;
...
also fixed the handling of long-only options in the usage messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-17 12:21:03 +00:00
Vadim Zeitlin
31f6de22b0
added wxCmdLineParser::ConvertStringToArgs(), wxApp::ConertToStandardCommandArgs() now uses it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-25 21:36:28 +00:00
Václav Slavík
55b2b0d80a
Unicode fixes to wxCmdLineParser
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-18 22:59:51 +00:00
Vadim Zeitlin
2407b388de
added #if wxUSE_CMDLINE_PARSER around the header
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-10 16:44:15 +00:00
Julian Smart
07d09af8cc
Added Reset() to command line parser and called it from Parse(), so
...
that you can call Parse() multiple times and get the desired result.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-22 14:00:47 +00:00
David Webster
494a19d6d9
fixes for trailing commas for OS/2 from WX_2_2_BRANCH
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-21 20:45:20 +00:00
Bryan Petty
f6bcfd974e
merged 2.2 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Vadim Zeitlin
e612f101d3
1. added wfstream.cpp to wxBase (needed by filesys.cpp)
...
2. small enchancements in wxCmdLineParser (handles "help" options correctly)
3. use wxCmdLineParser in makegen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-05 18:10:06 +00:00
Vadim Zeitlin
9f83044fb8
1. compilation fixes for TB_REPLACEBITMAP and FONTENUMPROC
...
2. added wxCmdLineParser class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-05 02:41:18 +00:00