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
5769cf0f89
fix bugs introduced in wxCmdLineParser::ConvertStringToArgs() during Unicode transition; added a unit test for it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-12 17:03:09 +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
71ebd60b06
make wxDateTime::ParseXXX() functions char*-friendly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-07 00:17:45 +00:00
Vadim Zeitlin
49751a58f0
translate the descriptions in SetDesc(wxCmdLineEntryDesc)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-29 12:34:39 +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
bdee3769af
accept "--opt val" and "--opt:val" syntax in addition to "--opt=val" as
...
documented (patch 1786465)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-20 21:08:38 +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
Vadim Zeitlin
d3a0a0eeab
added wxAppTraits::GetStandardCmdLineOptions() allowing to add the description of the standard toolkit options to the usage message and implement it for wxGTK2 (patch 1703077)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:54:07 +00:00
Vadim Zeitlin
b4a980f4f5
don't use obsolete functions (mostly copystring() and Count()), remove their documentation (patch 1697956)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 00:23:19 +00:00
Vadim Zeitlin
abce4ee622
don't allow switches (i.e. options without value) to have values (closes 781373)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 14:04:27 +00:00
Włodzimierz Skiba
ad9835c97c
Include wx/dynarray.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-19 14:18:39 +00:00
Włodzimierz Skiba
c0f420c1ac
wxTinderbox build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-17 21:49:58 +00:00
Dimitri Schoolwerth
b04ada921f
fixed argv[0] out of bounds error (argc can be 0 when wxEntry is manually called in a plugin environment for example)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-11 15:05:03 +00:00
Vadim Zeitlin
fbfb8bcc3f
added missing consts and pass objects by const reference instead of by value (patch 1205869)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 21:43:15 +00:00
Vadim Zeitlin
4115960d4b
remove extraneous semicolons (patch 1299687)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 20:29:22 +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
Vadim Zeitlin
a2ec9439a3
don't use wxApp::GetAppName() in the usage message, we want the real argv[0] here
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-16 10:08:04 +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
c9d59ee7e0
Source cleaning: TRUE/true, FALSE/false, whitespaces, tabs.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-09 17:42:36 +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
Vadim Zeitlin
36ebb50aa3
fixed bug with looking beyond the end of string in ConvertStringToArgs() (patch 828609)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-07 11:34:39 +00:00
Vadim Zeitlin
93b79b6b57
don't append spaces to all arguments in ConvertStringToArgs()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-22 21:40:04 +00:00
Vadim Zeitlin
7a1f9c0911
attempt to split cmd line into words in the same way as Windows does
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-14 22:58:09 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +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
Julian Smart
55d99c7a77
Fixed copyrights and licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:28:33 +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
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Vadim Zeitlin
e9c54ec336
don't give empty message box if Parse(FALSE) was called and there was --help on the cmd line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 20:26:42 +00:00
Vadim Zeitlin
33293a32fe
fixed error message when long options are disabled (patch 597771)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 14:15:42 +00:00
Mattia Barbon
bd996abe63
Fixed yet another error in my wxCmdLineParser mdifications.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-02 17:55:54 +00:00
Mattia Barbon
0cf8b31be5
Assert is there is no wxMessageOutput
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-01 19:55:29 +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
Chris Elliott
009f8ef4a3
a fix to preserve UNC paths when creating the commandline argument array
...
tested with Borland/wxMSW; existing behaviour of replacing \\ with \ preserved
except at start of string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-24 20:09:46 +00:00
Gilles Depeyrot
bb10b31d43
corrected comment typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-03 19:46:22 +00:00
Vadim Zeitlin
8c9892c2a8
added a wxCHECK(index is correct) to GetParam() (fix for patch #510614 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-30 10:38:44 +00:00
Vadim Zeitlin
217f9d0767
fixed handling of "a:\" command line arguments, added comment explaining how the conversion from string to arguments array is supposed to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-26 12:50:06 +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
4efb5650d1
fixed backslashes parsing in the cmd line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-29 19:47:35 +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
bf188f1add
added cmd line parsing support to wxApp and --theme option to wxUniv
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-10 17:28:19 +00:00
Vadim Zeitlin
1e6feb95a7
first pass of wxUniv merge - nothing works, most parts don't even compile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-26 20:59:19 +00:00
Vadim Zeitlin
3f2bcf3437
detabified
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-22 12:24:51 +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
Julian Smart
47608cc184
Double oops, removed include file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-21 17:08:02 +00:00