summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix build with -Dbuild-deprecated-api=falseKjell Ahlstedt2022-08-151-1/+1
| | | | Fixes #82
* examples/member_method: Make on_print() non-virtualKjell Ahlstedt2022-04-271-2/+2
| | | | so it can be compiled with the -Wnon-virtual-dtor compiler option.
* meson.build: Specify 'check' option in run_command()Kjell Ahlstedt2022-02-111-1/+0
| | | | | | The default value will be changed in future Meson releases. Don't use deprecated python3.path() and execute(..., gui_app: ...).
* Meson build: No implicit_include_directoriesKjell Ahlstedt2021-04-081-0/+1
|
* Meson build: Make it possible to use sigc++ as a subprojectKjell Ahlstedt2021-03-121-2/+2
| | | | mm-common can be a subproject of sigc++.
* run make format, to clang-format the codeMurray Cumming2020-04-251-14/+14
| | | | This was with clang-format-9
* examples: Disable deprecated API when building with MesonKjell Ahlstedt2020-03-101-0/+1
| | | | | Deprecated SIGCXX API is disabled when example programs are built with Autotools. Do the same when building with Meson.
* Added example of using libsigc++ with QtRobert Middleton2020-01-085-0/+189
| | | | Pull Request #35.
* Add support for building libsigc++-3.0 with MesonKjell Ahlstedt2019-12-201-0/+27
| | | | libsigc++-3.0 can be built with either Autotools or Meson.
* signal::connect(): Return a sigc::connection.Murray Cumming2016-04-211-2/+2
| | | | Instead of an iterator aliases to a signal<>::connection.
* Update copyright years.Murray Cumming2016-04-202-2/+2
|
* Add .clang-format file and reformat tests and examples.Murray Cumming2016-03-302-14/+16
|
* examples: Use sigc::signal<R(Args...)> syntax.Murray Cumming2016-03-162-2/+2
|
* cmake: add cmake files to dist packageMarcin Kolny2016-03-131-0/+2
|
* cmake: fix library nameMarcin Kolny2016-03-121-1/+1
|
* cmake: add pkg-config supportMarcin Kolny2016-03-121-1/+1
|
* cmake: init - add cmake filesMarcin Kolny2016-03-121-0/+24
|
* examples build: Disable deprecated API.Murray Cumming2016-03-101-1/+1
|
* mem_fun(): Remove the T_obj* overloads.Murray Cumming2016-03-101-1/+1
| | | | | | | So you would, for instance, always call sigc::mem_fun(*this, ...) instead of sigc::mem_fun(this, ...). Bug #763215
* C++11: Change all typedefs to using.Murray Cumming2016-03-071-1/+1
|
* Don't use SIGC_USING_STD()Kjell Ahlstedt2015-12-172-8/+0
| | | | | | The SIGC_USING_STD() macro is defined as an empty string, if some standard C++ symbols are defined in namespace std. They always are. Since many years, SIGC_USING_STD() is an unnecessary macro.
* C++11: Use auto.Murray Cumming2015-07-181-1/+1
| | | | | Trying to avoid using auto where its a specific type that we are trying to test for.
* Transition to new mm-common build infrastructureDaniel Elstner2009-08-063-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * autogen.sh: Replace with a minimal script that simply executes mm-common-prepare, autoreconf and configure. * configure.ac: Get rid of an enormous amount of old cruft. Use macros from the new mm-common module to set up Doxygen for building the documentation. Add option to enable more compiler warnings. * sigc++-2.0-uninstalled.pc.in: New pkg-config data file to allow linking to an uninstalled libsigc++. * sigc++-2.0.pc.in: Modernize. Provide the location of the installed reference documentation and the Doxygen tag file. * sigc++config.h.in: Modernize and update for new build infrastructure. * Makefile.am, */Makefile.am: Modernize and adapt to the new C++ binding build infrastructure in the mm-common module. * sigc++/filelist.am: New Automake include file. Defines lists of C++ and M4 source files. * docs/Makefile.am: Rewrite using doc-reference.am from the mm-common module. * docs/doc-manual.am: New Automake include file for building the libsigc++ Docbook manual. * docs/images/Makefile.am: Remove file. * docs/manual/Makefile.am: ditto, * docs/reference/Makefile.am: ditto. * docs/Makefile_web.am_fragment: Remove for now, to be taken care of later. * docs/reference/Doxyfile.in: Modernize and adapt to new build infrastructure. * docs/reference/beautify_docs.pl: Remove and use the more recent scripts/doc-postprocess.pl instead. * libsigc++-2.0.spec.in: Remove, to be resurrected only if someone complains. * scripts/Makefile.am: Remove file. Distribute the files from the toplevel Makefile.am instead. * scripts/cxx_std.m4: Add missing third argument to AC_DEFINE(). * scripts/doc-install.pl: New file, copied from mm-common. * scripts/doc-postprocess.pl: ditto, * scripts/tagfile-to-devhelp2.xsl: ditto.
* slot and signal template specialization for various numbers of templateMurray Cumming2005-01-211-1/+2
| | | | | | | | | | | 2005-01-21 Murray Cumming <murrayc@murrayc.com> * sigc++/functors/macros/slot.h.m4, sigc++/macros/signal.h.m4: slot and signal template specialization for various numbers of template args: In the class slot line, specify all the remaining template types as null, instead of expecting the compiler to guess them in itself. This partly fixes the build on AIX with the xlC compiler. Bug #164685.
* struct is_base_and_derived: Make the test inner struct a friend, so thatMurray Cumming2005-01-191-1/+3
| | | | | | | | | | | 2005-01-19 Murray Cumming <murrayc@murrayc.com> * sigc++/type_traits: struct is_base_and_derived: Make the test inner struct a friend, so that it can use the big inner struct. This is required by the Tru64 compiler. * sigc++/adaptors/lambda/base.h: Put the unwrap_lambda_value() definitions at the top, because Tru64 (understandably) needs them to be declared before use.
* Added cxx_std.m4, with a test copied from glibmm/scripts/cxx_std.m4 toMurray Cumming2005-01-192-0/+8
| | | | | | | | | | | | | | | 2005-01-19 Murray Cumming <murrayc@murrayc.com> * scripts/: Added cxx_std.m4, with a test copied from glibmm/scripts/cxx_std.m4 to check if the compiler has the std:: namespace. * sigcconfig.h: #undef the new #define and add SIGC_USING_STD(), like GLIBMM_USING_STD, to put stuff in the std:: namespace when it is not there already, * configure.in: Used the new test. * tests/*: Uses SIG_USING_STD() for every std:: thing that we use. This is needed by the Tru64 and HP-UX compilers when using their defaults.
* update .cvsignoreMartin Schulze2004-09-011-1/+2
|
* Use sigc::ptr_fun instead of std::ptr_fun. (fixes bug #144846)Martin Schulze2004-07-111-1/+1
| | | | | | | | 2004-07-11 Martin Schulze <mschulze@cvs.gnome.org> * examples/hello_world.cc: Use sigc::ptr_fun instead of std::ptr_fun. (fixes bug #144846)
* Make block() and unblock() always return a value, to fix compilerMurray Cumming2004-04-021-1/+1
| | | | | | | | | | | | | | 2004-04-02 Murray Cumming <murrayc@murrayc.com> * sigc++/connection.cc: Make block() and unblock() always return a value, to fix compiler warnings. Patch from bug #138620 by Alexander Nedotsukov. 2004-04-02 Murray Cumming <murrayc@murrayc.com> * Fix the compile of examples/member_method.cc. Bug #131701 from Kirill Smelkov. I also made the examples build as part of the regular build.
* Added sigc++/sigc++.h, like in libsigc++ 1.2 Added member_method example,Murray Cumming2003-03-163-11/+53
| | | | | | | | 2003-03-16 Murray Cumming <murrayc@usa.net> * Added sigc++/sigc++.h, like in libsigc++ 1.2 * examples: Added member_method example, which uses a class method and which demonstrates disconnection.
* Added Andreas Rottman's example.Murray Cumming2003-01-222-0/+34
| | | | | | 2003-01-22 Murray Cumming <murrayc@usa.net> * Added Andreas Rottman's example.
* Applied Andreas Rottman's make dist fixes.Murray Cumming2003-01-221-0/+3
| | | | | | 2003-01-22 Murray Cumming <murrayc@usa.net> * Applied Andreas Rottman's make dist fixes.
* Added examples directoryMurray Cumming2003-01-221-0/+0