summaryrefslogtreecommitdiff
path: root/glib/src/optionentry.hg
Commit message (Collapse)AuthorAgeFilesLines
* glib/src/*.hg: Mark all _WRAP_ENUM() with decl_prefixChun-wei Fan2020-04-041-1/+1
| | | | | As per Kjell's suggestions, make things more future-proof by marking all _WRAP_ENUM()'s with 'decl_prefix GLIBMM_API'.
* glib/src: Decorate classes and methods with GLIBMM_APIChun-wei Fan2020-03-071-1/+1
| | | | | | This prepares for us to export symbols using compiler directives, so that we can eventually retire gendef.exe. This also makes the scripts place GLIBMM_API as appropriate for the generated Glib:Error classes and the wrap() method.
* Glib::OptionEntry: Use _MEMBER_SET_STR where possibleKjell Ahlstedt2018-03-021-10/+10
| | | | No need to hand-code member functions that set a text string.
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-2/+1
| | | | Bug 786824
* Glib::OptionEntry: Use _WRAP_ENUM for Glib::OptionEntry::FlagsKjell Ahlstedt2017-06-121-14/+6
| | | | It's changed from a plain enum to a scoped enum.
* More use of nullptr instead of 0.Murray Cumming2015-11-201-1/+1
|
* C++11: _CLASS_GENERIC classes: Add move operations.Murray Cumming2015-08-231-0/+7
| | | | | | These don't have much in common with each other. Like most of our move operations, they are completely untested, though they could be.
* OptionContext: Add API documentation based on the C docs.Murray Cumming2014-01-291-0/+1
| | | | | | | | | * glib/src/optioncontext.hg: Add class overview documentation based on the C documentation, but reworded to match our C++ API. This should now provide some clue about where to start other than with our (well hidden) example code. * glib/src/optiongroup.hg: Add documentation for the add_entry*() methods.
* Strip trailing whitespace.Mark Vender2012-10-291-13/+13
| | | | | | | * gio/giomm/*.[h|cc]: * gio/src/*.[hg|ccg]: * glib/glibmm/*.[h|cc]: * glib/src/*.[hg|ccg]: Strip trailing whitespace. Bug #681072.
* Improve the use of _IGNORE. Don't use gio_others.defs.Kjell Ahlstedt2012-09-181-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * gio/src/applicationcommandline.hg: Change a _CONVERSION (due to the exclusion of gio_others.defs). * gio/src/dbusintrospection.hg: * gio/src/fileinfo.hg: Add _IGNORE. * gio/src/fileiostream.hg: * gio/src/fileoutputstream.hg: Correct an _IGNORE. * gio/src/gio.defs: Don't include gio_others.defs. One of its entries is wrong and all of them also exist (in correct form) in gio_methods.defs or gio_signals.defs. * glib/src/convert.hg: * glib/src/regex.hg: Add _IGNORE. * glib/src/date.hg: * glib/src/fileutils.hg: * glib/src/markup.hg: * glib/src/optionentry.hg: * glib/src/shell.hg: * glib/src/spawn.hg: * glib/src/thread.hg: * glib/src/threads.hg: * glib/src/unicode.hg: * glib/src/uriutils.hg: Remove _IGNORE(g_iconv). * glib/src/variantiter.hg: Add an _IGNORE. Remove _IGNORE(g_variant_iter_new).
* Remove useless Subversion tags.Mark Vender2012-09-151-2/+0
| | | | *.[hg|ccg]: Remove uselless Subversion tags.
* OptionGroup: Add add_entry() that takes a slot with callback function.Kjell Ahlstedt2011-02-151-4/+4
| | | | | | | | | | | * glib/src/optiongroup.[hg|ccg]: Add add_entry() and add_entry_filename() that take a slot. Add protected option_arg_callback(). An exception thrown by on_pre_parse() or on_post_parse() is propagated to the error argument of g_callback_pre_parse() or post_parse_callback(). * glib/src/optionentry.hg: Add description of set_flags(). * examples/options/main.cc: Add more OptionEntries and callback functions for parsing command option values. Bug 589197 (Hubert Figuiere)
* Add _IGNORE's for g_iconv().José Alburquerque2010-05-251-1/+3
| | | | | | | | | | | | | | * glib/src/date.hg: * glib/src/fileutils.hg: * glib/src/markup.hg: * glib/src/optionentry.hg: * glib/src/shell.hg: * glib/src/spawn.hg: * glib/src/thread.hg: * glib/src/unicode.hg: * glib/src/uriutils.hg: For some reason, gmmproc thinks that g_iconv should be wrapped in these files so include _IGNORE's so that it is clear what has not been wrapped yet.
* Change license header to mention Lesser General Public License version 2.1Deng Xiyue2009-01-191-4/+4
| | | | | | | | | | 2009-01-20 Deng Xiyue <manphiz@gmail.com> * Change license header to mention Lesser General Public License version 2.1 instead of Library General Public License, to be consistent with COPYING. svn path=/trunk/; revision=779
* Hand-code set_description(), set_arg_description() and set_long_name(), toMurray Cumming2008-04-111-4/+9
| | | | | | | | | | | 2008-04-11 Murray Cumming <murrayc@murrayc.com> * glib/src/optionentry.ccg: * glib/src/optionentry.hg: Hand-code set_description(), set_arg_description() and set_long_name(), to free any existing string, to maybe fix a (possible) leak found by valgrind. svn path=/trunk/; revision=651
* Split intoMurray Cumming2008-01-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2008-01-27 Murray Cumming <murrayc@murrayc.com> * gio/src/fileattribute.ccg: * gio/src/fileattribute.hg: Split into * gio/src/fileattributeinfo.ccg: * gio/src/fileattributeinfo.hg: and * gio/src/fileattributeinfolist.ccg: * gio/src/fileattributeinfolist.hg * gio/giomm.h: * gio/src/Makefile_list_of_hg.am_fragment: * gio/src/file.hg: * gio/src/fileinfo.hg: * gio/src/outputstream.hg: * gio/src/seekable.hg: * glib/src/optionentry.hg: Adapted. * tools/pm/DocsParser.pm: substitute_identifiers(): Tried (unsuccessfully) to remove G:: prefixes in generated documentation. svn path=/trunk/; revision=545
* Stuff I forgot to commit.Murray Cumming2005-07-311-1/+5
|
* Added new compiler tests. 1. To see whether it allows use of non extern CMurray Cumming2005-01-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-21 Murray Cumming <murrayc@localhost.localdomain> * configure.in, scripts/cxx.m4, glibmm/glibmmconfig.h.in: Added new compiler tests. 1. To see whether it allows use of non extern C functions as extern C callbacks, because the Tru64 compiler does not allow this, when using strict_ansi. We do not actually use this yet. 2. To see whether it allows us to define a template that uses an undefined type, even if we do not use it before defining the type. Tru64 does not allow this. That's probably correct. * glib/glibmm/container.h: #ifdef out a dynamic_cast that Tru64 does not allow, and which I can not think of a better place to put. See the comment in the code. * glib/glibmm/containerhandler_helpers.h: When the compiler does not alllow the GObject and GtkObject (dynamic_cast of) specializations here, then put them in glib/glibmm/object.h and gtkmm/gtk/src/object.hg instead.- needed by Tru64 compiler. * glib/glibmm/value.h, value_custom.[h|cc]: Conditionally moved the RefPtr Value specialization into object.h, as above. * glib/src/ optiongroup.ccg, spawn.ccg, thread.ccg: Make C callacks separate extern C. * glib/src/optiongroup.ccg: Do not use the StringArrayHandle, because the Tru64 compiler has problems with it - see comments in code. * glib/src/optionentry.hg: Remove the include of value.h, because it is not used and it causes a Tru64 compile error in optioncontext.cc because its templates are included before the types that the template uses. 2005-01-19 Murray Cumming <murrayc@murrayc.com> * configure.in, scripts/cxx.m4, glibmm/glibmmconfig.h.in: Added a compiler test, because the IRIX MipsPro compiler does not allow the inline initialization of ustring::npos. * glib/glibmm/ustring.[h|cc]: When the compiler does not support the inline initialization of npos, initialize it in the .cc file. Declare partial specializations of the SequenceString inner class inside the class - needed by IRIX MipsPro compiler.
* Temporarily reverted some stuff. I will recommit some of it.Murray Cumming2005-01-211-0/+1
|
* Make C callacks separate extern C functions instead of static memberMurray Cumming2005-01-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-20 Murray Cumming <murrayc@murrayc.com> * glib/src/iochannel.[hg|ccg], markup.[hg|ccg], optiongroup.ccg, spawn.ccg, thread.ccg: Make C callacks separate extern C functions instead of static member functions, to satisfy the IRIX MipsPro compiler. Unfortunately this means that we export some private API. * glib/src/optionentry.hg: Remove the include of value.h, because it is not used and it causes a MipsPro compile error in optioncontext.cc because its templates are included before the types that the template uses. * glib/src/optiongroup.ccg: Do not use the StringArrayHandle, because the MipsPro compiler has problems with it - see comments in code. * configure.in, scripts/cxx.m4, glibmm/glibmmconfig.h.in: Added a compiler test, because the IRIX MipsPro compiler does not allow us to define a template that uses an undefined type, even if we do not use it before defining the type. That's probably correct. * glib/glibmm/containerhandler_helpers.h: When the compiler does not alllow the GObject and GtkObject (dynamic_cast of) specializations here, then put them in glib/glibmm/object.h and gtkmm/gtk/src/object.hg instead.- needed by MipsPro (IRIX) compiler..
* 2.5.4:Murray Cumming2005-01-101-5/+15
| | | | | | | | 2005-01-10 Murray Cumming <murrayc@murrayc.com> * glibmm/src/optiongroup.[hg|ccg]: Added a castitem constructor that always takes ownership, needed by Gtk::Main. Added the new FLAG_REVERSE flag value. Added reference documentation.
* Add add_entry(entry, bool&), to wrap use of G_OPTION_ARG_NONE. Bug #163325Murray Cumming2005-01-091-5/+0
| | | | | | | | 2005-01-09 Murray Cumming <murrayc@murrayc.com> * glib/src/optionentry.[hg|cc]: Add add_entry(entry, bool&), to wrap use of G_OPTION_ARG_NONE. Bug #163325 from Daniel Holbach. * examples/options/main.cc: Use the new add_entry() overload.
* Removed OptionEntry enum and set_arg_data(), because they are not neededMurray Cumming2004-11-221-8/+1
| | | | | | | 2004-11-21 Murray Cumming <murrayc@murrayc.com> * glib/src/optionentry.[hg|ccg]: Removed OptionEntry enum and set_arg_data(), because they are not needed any more.
* Remove accessors for arg and arg_data. add_entry(): Remove arg_typeMurray Cumming2004-10-261-4/+11
| | | | | | | | | | | | 2004-10-26 Murray Cumming <murrayc@murrayc.com> * glib/src/optionentry.hg: Remove accessors for arg and arg_data. * glib/src/optiongroup.[hg|ccg]: add_entry(): Remove arg_type parameter and instead add overrides which take specific C++ value types. Add CppOptionEntry inner class to hold information about each entry and its dynamically allocated C value. Add map_entries_ map to store them, so we can iterate over them during post_parse.
* Rethought the structure now that I see how the parts work together.Murray Cumming2004-10-101-3/+9
| | | | | | | | | | | | 2004-10-01 Murray Cumming <murrayc@murrayc.com> * glib/src/option*.[hg|ccg], examples/options/main.cc: Rethought the structure now that I see how the parts work together. Rearranged the example to show how the parsing can fill values in member variables of a derived OptionGroup class. However, 1. it crashes now, 2. we need extra code to map the GOption C types to suitable C++ types, probably by doing pre and post parsing to create temporary C types for the C++ types.
* Wrapped more methods, but I have still not finished. Started an example.Murray Cumming2004-09-271-0/+35
| | | | | | | | 2004-09-27 Murray Cumming <murrayc@murrayc.com> * glib/src/option*.[hg|ccg]: Wrapped more methods, but I have still not finished. * examples/options/: Started an example.
* Regenerated with h2defs.py Added optionentry.[hg|ccg],Murray Cumming2004-09-261-0/+47
2004-09-26 Murray Cumming <murrayc@murrayc.com> * glib/src/glib_functions.defs: Regenerated with h2defs.py * glib/src/: Added optionentry.[hg|ccg], optiongroup.[hg|ccg], optioncontext.[hg|ccg].