mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 09:36:33 +01:00
upgrade to glibmm 2.16
git-svn-id: svn://localhost/ardour2/branches/3.0@5303 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5b97b13766
commit
e916ac2821
211 changed files with 26478 additions and 4168 deletions
339
libs/glibmm2/COPYING.tools
Normal file
339
libs/glibmm2/COPYING.tools
Normal file
|
|
@ -0,0 +1,339 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -2,7 +2,7 @@ Installation Instructions
|
||||||
*************************
|
*************************
|
||||||
|
|
||||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
|
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
|
||||||
2006 Free Software Foundation, Inc.
|
2006, 2007 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is free documentation; the Free Software Foundation gives
|
This file is free documentation; the Free Software Foundation gives
|
||||||
unlimited permission to copy, distribute and modify it.
|
unlimited permission to copy, distribute and modify it.
|
||||||
|
|
@ -67,6 +67,9 @@ The simplest way to compile this package is:
|
||||||
all sorts of other programs in order to regenerate files that came
|
all sorts of other programs in order to regenerate files that came
|
||||||
with the distribution.
|
with the distribution.
|
||||||
|
|
||||||
|
6. Often, you can also type `make uninstall' to remove the installed
|
||||||
|
files again.
|
||||||
|
|
||||||
Compilers and Options
|
Compilers and Options
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
ACLOCAL_AMFLAGS = -I scripts
|
ACLOCAL_AMFLAGS = -I scripts
|
||||||
|
|
||||||
SUBDIRS = tools glib scripts
|
SUBDIRS = tools glib gio examples scripts tests MSVC_Net2005 MSVC_Net2008 docs
|
||||||
DIST_SUBDIRS = $(SUBDIRS)
|
DIST_SUBDIRS = $(SUBDIRS)
|
||||||
|
|
||||||
EXTRA_DIST = build_shared/Makefile_build.am_fragment \
|
EXTRA_DIST = build_shared/Makefile_build.am_fragment \
|
||||||
build_shared/Makefile_build_gensrc.am_fragment \
|
build_shared/Makefile_build_gensrc.am_fragment \
|
||||||
build_shared/Makefile_gensrc.am_fragment \
|
build_shared/Makefile_gensrc.am_fragment \
|
||||||
build_shared/Makefile_gensrc_platform.am_fragment \
|
build_shared/Makefile_conditional.am_fragment \
|
||||||
build_shared/Makefile_build_extra.am_fragment \
|
README.win32 \
|
||||||
CHANGES README.win32
|
COPYING COPYING.tools
|
||||||
|
|
||||||
|
|
||||||
all-local:
|
all-local:
|
||||||
|
|
@ -27,7 +27,7 @@ dist-hook:
|
||||||
echo; echo
|
echo; echo
|
||||||
|
|
||||||
|
|
||||||
# include $(top_srcdir)/docs/Makefile_web.am_fragment
|
include $(top_srcdir)/docs/Makefile_web.am_fragment
|
||||||
|
|
||||||
doc_tarball_files = \
|
doc_tarball_files = \
|
||||||
docs/images/*.gif \
|
docs/images/*.gif \
|
||||||
|
|
@ -60,5 +60,106 @@ doc-clean: doc-clean-recursive
|
||||||
doc-rebuild:
|
doc-rebuild:
|
||||||
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-rebuild)
|
(cd docs && $(MAKE) $(AM_MAKEFLAGS) doc-rebuild)
|
||||||
|
|
||||||
.PHONY: post-html post-html-local post-html-recursive doc-clean doc-clean-recursive doc-rebuild
|
SVN_REV=`svnversion -n`
|
||||||
|
URL_KEY=URL:
|
||||||
|
SVN_PATH=`svn info |grep "$(URL_KEY)" |sed -e "s/$(URL_KEY)\s*//"`
|
||||||
|
ROOT_KEY=Repository Root:
|
||||||
|
SVN_ROOT=`svn info |grep "$(ROOT_KEY)" |sed -e "s/$(ROOT_KEY)\s*//"`
|
||||||
|
|
||||||
|
tag-release: distcheck
|
||||||
|
@svn cp -r$(SVN_REV) -m "tag $(PACKAGE) $(VERSION)" $(SVN_PATH) $(SVN_ROOT)/tags/$(PACKAGE)-$(VERSION) \
|
||||||
|
|| (echo "Tagging failed. Do you have local changes that are not committed?" \
|
||||||
|
&& echo "Try running 'svn update'." && false)
|
||||||
|
@echo "Release Tagged."
|
||||||
|
|
||||||
|
upload-release: tag-release
|
||||||
|
scp $(DIST_ARCHIVES) master.gnome.org:
|
||||||
|
@echo "Tarball uploaded. Now run install-module on master.gnome.org"
|
||||||
|
@echo "[hint: make install-module]"
|
||||||
|
|
||||||
|
RELEASE_ANNOUNCE_LIST = gnome-announce-list@gnome.org, gtkmm-list@gnome.org
|
||||||
|
release-announce:
|
||||||
|
@echo "Please send the following announcement to:"
|
||||||
|
@echo "$(RELEASE_ANNOUNCE_LIST)"
|
||||||
|
@echo ""
|
||||||
|
@echo "Subject: ANNOUNCE: $(PACKAGE) $(VERSION) released"
|
||||||
|
@echo ""
|
||||||
|
@echo "============================== CUT HERE =============================="
|
||||||
|
@echo "* ABOUT $(PACKAGE) *"
|
||||||
|
@echo ""
|
||||||
|
@echo " $(PACKAGE) is a C++ API for glib and gio. It is useful on its own "
|
||||||
|
@echo " and is a dependency of gtkmm, the C++ API for GTK+."
|
||||||
|
@echo ""
|
||||||
|
@echo " $(PACKAGE) $(GLIBMM_RELEASE) wraps new API in glib $(GLIBMM_RELEASE), including the gio library, "
|
||||||
|
@echo " and is API/ABI-compatibile with older versions of glibmm back to "
|
||||||
|
@echo " version 2.4. It is a version of the glibmm-2.4 API."
|
||||||
|
@echo ""
|
||||||
|
@echo " For more information, please visit http://gtkmm.org/"
|
||||||
|
@echo ""
|
||||||
|
@echo "* DOWNLOAD *"
|
||||||
|
@echo ""
|
||||||
|
@echo " Source packages for $(PACKAGE) (as well as API-stable bindings for the "
|
||||||
|
@echo " rest of the GNOME platform) can be downloaded from:"
|
||||||
|
@echo ""
|
||||||
|
@echo " http://www.gtkmm.org/download.shtml"
|
||||||
|
@echo ""
|
||||||
|
@echo "* DEVELOPMENT *"
|
||||||
|
@echo ""
|
||||||
|
@echo " There is active discussion on the mailing list: "
|
||||||
|
@echo " http://www.gtkmm.org/mailinglist.shtml"
|
||||||
|
@echo " and in the #c++ channel on irc.gnome.org"
|
||||||
|
@echo ""
|
||||||
|
@echo " gtkmm and $(PACKAGE) stay in-sync with GTK+ by following the official "
|
||||||
|
@echo " GNOME release schedule:"
|
||||||
|
@echo ""
|
||||||
|
@echo " http://www.gnome.org/start/unstable/"
|
||||||
|
@echo ""
|
||||||
|
@echo "* CHANGES *"
|
||||||
|
@echo ""
|
||||||
|
@echo " --- INSERT NEWS HERE ---"
|
||||||
|
@echo "============================== CUT HERE =============================="
|
||||||
|
|
||||||
|
install-module:
|
||||||
|
ssh master.gnome.org install-module $(DIST_ARCHIVES)
|
||||||
|
|
||||||
|
release: upload-release release-announce
|
||||||
|
|
||||||
|
#FIXME: use generic paths, rather than my particular paths
|
||||||
|
H2DEF = env python /opt/gnome2/share/pygobject/2.0/codegen/h2def.py
|
||||||
|
DEFS_INC_DIR = /opt/gnome2/include
|
||||||
|
GEN_ENUM = env perl ./tools/enum.pl
|
||||||
|
GEN_EXTRA_DEFS_GLIB = ./tools/extra_defs_gen/generate_extra_defs
|
||||||
|
GEN_EXTRA_DEFS_GIO = ./tools/extra_defs_gen/generate_defs_gio
|
||||||
|
DOCEXTRACT = /home/jonathon/gnome-build/pygobject/codegen/docextract_to_xml.py
|
||||||
|
|
||||||
|
defs: glib-defs gio-defs docextract
|
||||||
|
@echo
|
||||||
|
@echo "*** Make sure to examine the .defs files to make sure they look reasonable"
|
||||||
|
@echo
|
||||||
|
|
||||||
|
glib-defs:
|
||||||
|
$(H2DEF) $(DEFS_INC_DIR)/glib-2.0/glib/*.h > glib/src/glib_functions.defs
|
||||||
|
$(H2DEF) $(DEFS_INC_DIR)/glib-2.0/gobject/*.h > glib/src/gobject_functions.defs
|
||||||
|
$(H2DEF) $(DEFS_INC_DIR)/glib-2.0/gmodule.h > glib/src/gmodule_functions.defs
|
||||||
|
$(GEN_ENUM) $(DEFS_INC_DIR)/glib-2.0/glib/*.h > glib/src/glib_enums.defs
|
||||||
|
$(GEN_ENUM) $(DEFS_INC_DIR)/glib-2.0/gobject/*.h > glib/src/gobject_enums.defs
|
||||||
|
$(GEN_ENUM) $(DEFS_INC_DIR)/glib-2.0/gmodule.h > glib/src/gmodule_enums.defs
|
||||||
|
|
||||||
|
gio-defs:
|
||||||
|
$(H2DEF) $(DEFS_INC_DIR)/glib-2.0/gio/*.h \
|
||||||
|
$(DEFS_INC_DIR)/gio-unix-2.0/gio/*.h > gio/src/gio_methods.defs
|
||||||
|
$(GEN_ENUM) $(DEFS_INC_DIR)/glib-2.0/gio/*.h \
|
||||||
|
$(DEFS_INC_DIR)/gio-unix-2.0/gio/*.h > gio/src/gio_enums.defs
|
||||||
|
$(GEN_EXTRA_DEFS_GIO) > gio/src/gio_signals.defs
|
||||||
|
|
||||||
|
docextract:
|
||||||
|
$(DOCEXTRACT) -s ../glib/glib \
|
||||||
|
-s ../glib/docs/reference/glib \
|
||||||
|
-s ../glib/gobject \
|
||||||
|
-s ../glib/docs/reference/gobject > glib/src/glib_docs.xml
|
||||||
|
$(DOCEXTRACT) -s ../glib/gio \
|
||||||
|
-s ../glib/docs/reference/gio > gio/src/gio_docs.xml
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: post-html post-html-local post-html-recursive doc-clean doc-clean-recursive doc-rebuild release tag-release upload-release release-announce install-module defs glib-defs gio-defs docextract
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,427 @@
|
||||||
|
2.20.0 (stable):
|
||||||
|
|
||||||
|
* Documentation fixes (Daniel Elstner)
|
||||||
|
|
||||||
|
2.19.8 (unstable):
|
||||||
|
(2.19.4 to 2.19.8 were skipped)
|
||||||
|
|
||||||
|
* Added FILE_CREATE_REPLACE_DESTINATION enum value.
|
||||||
|
* Added Error::TOO_MANY_OPEN_FILES error code.
|
||||||
|
* Fix some compiler warnings about extra ;s.
|
||||||
|
(Murray Cumming)
|
||||||
|
|
||||||
|
2.19.3 (unstable):
|
||||||
|
|
||||||
|
* New API:
|
||||||
|
* BufferedInputStream: buffer_size property
|
||||||
|
* BufferedOutputStream: buffer_size, auto_grow properties
|
||||||
|
* DataInputStream: byte_order, newline_type properties
|
||||||
|
* DataOutputStream: byte_order property
|
||||||
|
* FilterInputStream: close_base_stream property, get/set_close_base_stream()
|
||||||
|
* FilterOutputStream: close_base_stream property, get/set_close_base_stream()
|
||||||
|
* UnixInputStream: fd and close_fd properties, get_fd(), get/set_close_fd()
|
||||||
|
* UnixOutputStream: fd and close_fd properties, get_fd(), get/set_close_fd()
|
||||||
|
* Make licenses consistent with eachother (library gpl vs. lesser gpl, etc)
|
||||||
|
(Deng Xiyue)
|
||||||
|
* Fixed some problems when building with exceptions disabled (Murray Cumming)
|
||||||
|
* Build fixes (Theppitak Karoonboonyanan)
|
||||||
|
|
||||||
|
2.19.2 (unstable):
|
||||||
|
|
||||||
|
* File: Added make_directory_with_parents() method overload with no parameter.
|
||||||
|
Bug #566003 (Philip Belemezov).
|
||||||
|
* NoteTree: Do not use a non-ASCII dash character in a comment, to
|
||||||
|
avoid the MSVC++ warning C4819 with Visual Studio 2008.
|
||||||
|
(Tao Wang) Bug #568072
|
||||||
|
* spawn_*() functions: Added alternative API for when
|
||||||
|
GLIBMM_EXCEPTIONS_ENABLED is not enabled. (Murray Cumming)
|
||||||
|
Bug #565487 (Jonathon Jongsma)
|
||||||
|
* uri_*() functions: Fix memory leak.
|
||||||
|
(Jonathan Jongsma) Bug #566845 (Jason Kasper)
|
||||||
|
* ustring: Add an overload which takes only a format string and no arguments
|
||||||
|
to be substituted. (Daniel Elstner) Bug #506394.
|
||||||
|
|
||||||
|
2.19.1 (unstable):
|
||||||
|
|
||||||
|
* Fix accidental ABI breakage in 2.19.0 caused by adding default handlers for
|
||||||
|
new Gio::Drive signals
|
||||||
|
|
||||||
|
2.19.0 (unstable):
|
||||||
|
|
||||||
|
* wrapped new glib 2.19.x API
|
||||||
|
* Gio::AppInfo: get_commandline(), can_delete(), do_delete(),
|
||||||
|
reset_type_associations(), launch_default_for_uri()
|
||||||
|
* Gio::Drive: new signals changed, disconnected, and eject_button
|
||||||
|
* Gio::Icon: create(std::string), to_string()(),
|
||||||
|
* Gio::Mount: guess_content_type_sync(), is_shadowed(), shadow(), unshadow()
|
||||||
|
* Gio::content_type_from_mine_type();
|
||||||
|
* Gio::DesktopAppInfo: create_from_keyfile()
|
||||||
|
* Gio::Emblem: new class
|
||||||
|
* Gio::EmblemedIcon: new class
|
||||||
|
* Gio::MemoryOutputStream: new class
|
||||||
|
* Bugs Fixed:
|
||||||
|
* 555743 - warning in glibmm
|
||||||
|
* 562716 - warning fixing cause more warnings.
|
||||||
|
* 396963 - Add Glib::signal_idle().connect_once()
|
||||||
|
* Thanks to contributions from Przemysław Grzegorczyk, Dave Foster, Hubert
|
||||||
|
Figuiere, and Jonathon Jongsma for changes in this release
|
||||||
|
|
||||||
|
2.18.1 (stable):
|
||||||
|
|
||||||
|
* Many windows build improvements
|
||||||
|
* Bugs fixed:
|
||||||
|
* 506410 - Call of overloaded Stringify is ambiguous
|
||||||
|
* 529496 - Gio::Error::HOST_NOT_FOUND clashes with a netdb.h #define
|
||||||
|
* 539891 - Can't use doxygen commands in *_override.xml
|
||||||
|
* 555576 - name clash in fileinfo.h with winbase.h from VS2005
|
||||||
|
* 556315 - Extra defs generation utility forgets to generate signals for inter...
|
||||||
|
* 556387 - FileEnumerator::next_file reference counting problems
|
||||||
|
* Thanks to contributions from Armin Burgmeier, Jonathon Jongsma, José
|
||||||
|
Alburquerque, Murray Cumming, and Szilárd Pfeiffer
|
||||||
|
|
||||||
|
2.18.0 (stable):
|
||||||
|
|
||||||
|
* Bug #550789: Fixed a licensing issue with some of the tools distributed with
|
||||||
|
the source tarball (Murray Cumming)
|
||||||
|
|
||||||
|
2.17.3 (unstable):
|
||||||
|
|
||||||
|
* More Glib::NodeTree improvements (Szilárd Pfeiffer, Murray Cumming)
|
||||||
|
* Windows build fixes (Armin Burgmeier)
|
||||||
|
|
||||||
|
2.17.2 (unstable):
|
||||||
|
|
||||||
|
* Changes to API that was added in this unstable series:
|
||||||
|
* Glib::Tree (wrapper around GNode) renamed to Glib::NodeTree to avoid
|
||||||
|
confusion with GTree
|
||||||
|
* pass the node to the traversal the callback (Szilárd Pfeiffer)
|
||||||
|
* Move TraverseFlags inside the NodeTree class (Murray Cumming)
|
||||||
|
* New API:
|
||||||
|
* Added the drive_eject_button signal (Murray Cumming)
|
||||||
|
* Bug Fixes:
|
||||||
|
* #423990: glibmm et al don't recognize new GNU m4 (Damien Carbery)
|
||||||
|
* #529496: Gio::Error::HOST_NOT_FOUND clashes with a netdb.h #define (Murray
|
||||||
|
Cumming)
|
||||||
|
* #523043: Initialization of Glib::ObjectBase for derived types should be
|
||||||
|
mentioned in documentation (Moritz Ulrich)
|
||||||
|
* #506410: Call of overloaded Stringify is ambiguous (Szilárd Pfeiffer,
|
||||||
|
Murray Cumming)
|
||||||
|
|
||||||
|
2.17.1 (unstable):
|
||||||
|
|
||||||
|
* New API: (Murray Cumming)
|
||||||
|
* Gio::File: make_directory_with_parents(), query_file_type(), monitor().
|
||||||
|
* Gio::FileEnumerator: get_container().
|
||||||
|
* Gio::Mount: guess_content_type() and guess_content_type_finish().
|
||||||
|
* Gio:ThemedIcon: prepend_name().
|
||||||
|
* Gio::Volume: get_activation_root().
|
||||||
|
* Bug Fixes:
|
||||||
|
* #512348: provide documentation about threadsafety of
|
||||||
|
Glib::Thread::create() when the slot object is of type sigc::trackable (Chris Vine)
|
||||||
|
* #538803: minor fixes to Glib::Tree (Levi Bard)
|
||||||
|
* #540656: Pass NULL in a couple functions instead of an empty string allow
|
||||||
|
files to be overwritten (Armin Burgmeier)
|
||||||
|
* #540875: add documentation for Glib::OwnershipType (Johannes Schmid)
|
||||||
|
* #542929: Fix some compiler warnings (Benjamin Herr)
|
||||||
|
* Fix AppLaunchContext::get_display(),
|
||||||
|
AppLaunchContext::get_startup_notify_id() to use a list of Gio::File, not
|
||||||
|
filepath string. properly documented we know that this is correct. It's an
|
||||||
|
API break but this function could nothave worked before. (Murray)
|
||||||
|
* Bug #543292: Fix visual studio project file (Jens Georg)
|
||||||
|
* Added Keyfile example (Murray Cumming)
|
||||||
|
|
||||||
|
2.17.0 (unstable):
|
||||||
|
|
||||||
|
* Added copy constructor and assignment operator, made GDate constructor visible (José
|
||||||
|
Alburquerque)
|
||||||
|
* Added Glib::Tree, a wrapper for GNode, providing an N-ary tree container, more or
|
||||||
|
less like a standard C++ container (Levi Bard)
|
||||||
|
* Bug #529648 - give helpful warning message when library user forgets to initialize the
|
||||||
|
library (Jonathon Jongsma)
|
||||||
|
* Bug #529533 - Fix bug that prevented for Gio::Mount, Gio::Drive, and Gio::Volume from
|
||||||
|
being wrapped for some backend implementations (Jonathon Jongsma)
|
||||||
|
|
||||||
|
2.16.2 (stable):
|
||||||
|
|
||||||
|
* Bug 526831 – G_OPTION_REMAINING no longer works with OptionEntry (Murray
|
||||||
|
Cumming)
|
||||||
|
* Bug 527687 – ustring::erase(iterator) incorrect for non ascii character
|
||||||
|
(Murray Cumming)
|
||||||
|
* add API documentation for spawn_* functions (Murray Cumming)
|
||||||
|
* fix possible memory leak in OptionEntr (Murray Cumming)
|
||||||
|
|
||||||
|
2.16.1 (stable):
|
||||||
|
|
||||||
|
* Reference-counting bugfix in Gio::File::create() and Gio::File::replace()
|
||||||
|
(Murray Cumming)
|
||||||
|
* Include Gio::Error header in headers that have API that can throw this
|
||||||
|
exception (Murray Cumming)
|
||||||
|
* Improve documentation (Murray Cumming)
|
||||||
|
* Build fixes for giomm on win32 (Jonathon Jongsma)
|
||||||
|
* fix warning with g++ 4.3 (Tim Retout)
|
||||||
|
|
||||||
|
2.16.0 (stable):
|
||||||
|
|
||||||
|
Changes compared to glibmm 2.14:
|
||||||
|
|
||||||
|
* New Gio API. Check for giomm-2.4 with pkg-config to use this.
|
||||||
|
(Marko Anastasov, Jonathon Jongsma, José Alburquerque, Murray Cumming)
|
||||||
|
* New Glib::Checksum class.
|
||||||
|
(Naveen Verma, Murray Cumming)
|
||||||
|
* New uri helper functions: uri_unescape_string(), uri_parse_scheme(),
|
||||||
|
uri_escape_string().
|
||||||
|
(Murray Cumming)
|
||||||
|
|
||||||
|
2.15.8 (unstable):
|
||||||
|
|
||||||
|
* File: load_contents(), load_contents_finish(), load_partial_contents_finish():
|
||||||
|
Use char*& instead of char** for contents.
|
||||||
|
Use std::string& instead of char** for etag_out.
|
||||||
|
Added method overloads without cancellable.
|
||||||
|
(Murray Cumming)
|
||||||
|
* Improved documentation: Mention exceptions instead of errors.
|
||||||
|
|
||||||
|
2.15.7 (unstable):
|
||||||
|
|
||||||
|
* File:
|
||||||
|
- Added query_filesystem_info_async() and
|
||||||
|
query_filesystem_info_finish() because these were added to the C API.
|
||||||
|
(Murray Cumming)
|
||||||
|
- Renamed contains_file() to file_has_prefix() because this was changed in the
|
||||||
|
C API.
|
||||||
|
(Wouter Bolsterlee)
|
||||||
|
* ThemedIcon: Added append_name() because this was added to the C API.
|
||||||
|
(Murray Cumming)
|
||||||
|
|
||||||
|
Glib:
|
||||||
|
* Renamed uri_get_scheme() to uri_parse_scheme() because this was changed
|
||||||
|
in the C API.
|
||||||
|
(Wouter Bolsterlee)
|
||||||
|
|
||||||
|
Documentation:
|
||||||
|
* Corrections to the .devhelp file generation.
|
||||||
|
(Jonathon Jongsma. Bug #518673)
|
||||||
|
|
||||||
|
|
||||||
|
2.15.6 (unstable):
|
||||||
|
|
||||||
|
Gio:
|
||||||
|
* Removed most vfuncs, because they are not useful to application developers,
|
||||||
|
and are a likely source of errors. (Murray Cumming)
|
||||||
|
* DesktopAppInfo:
|
||||||
|
- Added Added create(), create_from_file(),
|
||||||
|
is_hidden() and set_desktop_env()
|
||||||
|
Renamed new_from_file() to create_from_file().
|
||||||
|
(José Alburquerque)
|
||||||
|
* File: equal(), get_relative_file(), contains_file(): Take const File
|
||||||
|
parameters.
|
||||||
|
* FileAttributeInfoList: Added dup().
|
||||||
|
* MemoryInputStream: Added add_data(const void* data, gssize len).
|
||||||
|
* Mount: Really added signals.
|
||||||
|
* MountOperation: Wrapped the ask-question signal.
|
||||||
|
(Murray Cumming)
|
||||||
|
* Volume:
|
||||||
|
- Added should_automount().
|
||||||
|
(Marko Anastasov)
|
||||||
|
- Really added signals.
|
||||||
|
(Murray Cumming)
|
||||||
|
* UnixOutputStream, DataOutputStream, DataInputStream: Made constructors
|
||||||
|
protected.
|
||||||
|
(Marko Anastasov)
|
||||||
|
|
||||||
|
|
||||||
|
Documentation:
|
||||||
|
* Install a devhelp file like the existing gtkmm one.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
|
||||||
|
2.15.5 (unstable)
|
||||||
|
|
||||||
|
Gio:
|
||||||
|
* File, Mount, Volume:
|
||||||
|
Updated for latest gio API changes, adding a MountFlags parameter to some
|
||||||
|
methods.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
* Volume, VolumeMonitor, Added some vfuncs, though we might remove these
|
||||||
|
later as they seem useless and likely to be sources of problems.
|
||||||
|
(Murray Cumming)
|
||||||
|
|
||||||
|
Glib:
|
||||||
|
* Actually install gi18n-lib.h
|
||||||
|
(Takao Fujiwara. Bug #515133)
|
||||||
|
|
||||||
|
2.15.4 (unstable):
|
||||||
|
|
||||||
|
Glib:
|
||||||
|
|
||||||
|
* AppInfo: Added vfuncs.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
* Added BufferedOutputStream, DataInputStream and DataOutputStream, and
|
||||||
|
FilterOutputStream.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
* Cancellable: Added the signal.
|
||||||
|
(Murray Cumming)
|
||||||
|
* Added ContentType functions.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
* File:
|
||||||
|
- Added overloads of create_file(), remove(), trash(),
|
||||||
|
make_directory(), make_symbolic_link(), query_settable_attributes(),
|
||||||
|
query_writable_namespaces(), query_filesystem_info(),
|
||||||
|
query_default_handler() and mount_mountable(() without cancellable
|
||||||
|
parameters.
|
||||||
|
(Murray Cumming)
|
||||||
|
- Added copy_attributes(), added mount_enclosing_volume(),
|
||||||
|
mount_enclosing_volume_finish(), find_enclosing_mount(), and
|
||||||
|
find_enclosing_mount_finish().
|
||||||
|
(Murray Cumming)
|
||||||
|
- set_attributes_from_info(): Reordered parameters so we can have default
|
||||||
|
values.
|
||||||
|
(Murray Cumming)
|
||||||
|
- Added copy_async(), with overloads without slot_progress. copy_finish(),
|
||||||
|
query_default_handler().
|
||||||
|
(Marko Anastasov)
|
||||||
|
- find_enclosing_mount(), append_to(): Reordered parameters and added
|
||||||
|
overloads without cancellable.
|
||||||
|
(Murray Cumming)
|
||||||
|
- Added non-cancellable set_attribute_string(), set_attribute_byte_string(),
|
||||||
|
set_attribute_{uint32, int32, uint64, int64}.
|
||||||
|
(José Alburquerque)
|
||||||
|
* Added FilenameCompleter.
|
||||||
|
(Murray Cumming)
|
||||||
|
* LoadableIcon:
|
||||||
|
- Derive from Icon, and no longer derive FileIcon from Icon directly.
|
||||||
|
(Murray Cumming)
|
||||||
|
- Wrapped some vfuncs and some extra methods.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
* Added MemoryInputStream.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
* Added ThemedIcon
|
||||||
|
(Murray Cumming)
|
||||||
|
* Added UnixInputStream, UnixOutputStream, and DesktopAppInfo, available only
|
||||||
|
on Unix/Linux.
|
||||||
|
(José Alburquerque, Murray Cumming)
|
||||||
|
* Volume: Added get_mount(), get_identifier(), enumerate_identifiers().
|
||||||
|
(Marko Anastasov)
|
||||||
|
* VolumeMonitor: Added signals and properties.
|
||||||
|
(Murray Cumming)
|
||||||
|
|
||||||
|
Build:
|
||||||
|
* Use local gmmproc files again, instead of only installed ones.
|
||||||
|
(Murray Cumming)
|
||||||
|
* Fix compile with GCC 4.3.
|
||||||
|
(Kjartan Maraas)
|
||||||
|
|
||||||
|
|
||||||
|
2.15.3 (unstable):
|
||||||
|
|
||||||
|
Gio:
|
||||||
|
* FilterInputStream: Really wrap this.
|
||||||
|
* VolumeMonitor: Workaround a crash in gio due to the
|
||||||
|
eccentric use of the GType system to discover GVolumeMonitor
|
||||||
|
implementations. See gio bug #511814.
|
||||||
|
* Added Gio::Error exception.
|
||||||
|
* Added more method overloads without optional parameters, and
|
||||||
|
reordered more parameters to allow default values.
|
||||||
|
(Murray Cumming)
|
||||||
|
* giomm.h: Added includes.
|
||||||
|
(Jonathan Jongsma)
|
||||||
|
|
||||||
|
* Note that there are some examples in the gtkmm-documentation module.
|
||||||
|
|
||||||
|
|
||||||
|
2.15.2 (unstable):
|
||||||
|
|
||||||
|
Glib:
|
||||||
|
|
||||||
|
* Checksum: New class, wrapping GChecksum.
|
||||||
|
(Naveen Verma. Bug #510235)
|
||||||
|
* ObjectBase: Added connect_property_changed_with_return()
|
||||||
|
because connect_property_changed() does not return a sigc::connection.
|
||||||
|
Bug #433984 (Philip Langdale, Kalle Vahlman).
|
||||||
|
* enums.pl .defs generator: Handle parantheses.
|
||||||
|
(Marko Anastasov. Bug #498621)
|
||||||
|
|
||||||
|
Gio:
|
||||||
|
* Added FilterInputStream, Mount, FileMonitor, VolumeMonitor.
|
||||||
|
(Marko Anastasov, Murray Cumming)
|
||||||
|
* Many methods' parameters have been reordered so we can
|
||||||
|
add default parameter values.
|
||||||
|
* Many methods now have overloads with less parameters.
|
||||||
|
(Murray Cumming, José Alburquerque, Marko Anastasov)
|
||||||
|
|
||||||
|
|
||||||
|
2.15.1 (unstable):
|
||||||
|
|
||||||
|
Gio:
|
||||||
|
* Actually build the giomm library.
|
||||||
|
* Added API reference documentation.
|
||||||
|
(Murray Cumming)
|
||||||
|
* Added AppInfo and AppLaunchContext.
|
||||||
|
* Drive:
|
||||||
|
- Added poll_for_media() and poll_for_media_finish().
|
||||||
|
- Added capability-checking functions.
|
||||||
|
(Marko Anastasov)
|
||||||
|
* File: Renamed create() to create_file(),
|
||||||
|
create_async() to create_file_async() and
|
||||||
|
create_finish() to create_file_finish() to slightly
|
||||||
|
reduce confusion with the static create*() methods.
|
||||||
|
* FileInputStream, FileOutputStream: Derive from Seekable.
|
||||||
|
(Murray Cumming)
|
||||||
|
* FileInputStream, InputStream, Volume: Modified *_finish
|
||||||
|
functions to take a const AsyncResult.
|
||||||
|
(Marko Anastasov)
|
||||||
|
* Added LoadableIcon.
|
||||||
|
(Murray Cumming)
|
||||||
|
* MountOperation: Added MountOperationResult enumeration and make
|
||||||
|
reply() take this instead of a bool.
|
||||||
|
(Jonathon Jongsma)
|
||||||
|
|
||||||
|
(Murray Cumming)
|
||||||
|
|
||||||
|
Glib:
|
||||||
|
* Added uri_unescape_string(), uri_get_scheme() and uri_escape_string().
|
||||||
|
(Murray Cumming
|
||||||
|
|
||||||
|
|
||||||
|
2.15.0 (unstable):
|
||||||
|
|
||||||
|
* New giomm library (check for giomm-2.4 with pkg-config)
|
||||||
|
in the glibmm tarball. This wraps the new gio API in glib 2.15/16.
|
||||||
|
However, this API could change considerably before the stable
|
||||||
|
glibmm 2.16 is released.
|
||||||
|
(Marko Anastasov)
|
||||||
|
* ustring:
|
||||||
|
- Added compose() to substitute placeholders in a format string, as an
|
||||||
|
equivalent to sprintf(), to help internationalization/translation.
|
||||||
|
- Added format() to simplify the common task of converting a value
|
||||||
|
(such as a number) to a string, with optional stream formatting
|
||||||
|
parmatters. This uses the regular C++ stream API in its implementation.
|
||||||
|
(Daniel Elstner, Openismus)
|
||||||
|
* Glib::RefPtr: Deprecate clear(), replacing it with
|
||||||
|
reset(), because people often do treemodel.clear() when they
|
||||||
|
mean treemodel->clear(). reset() is consistent with std::auto_ptr<>.
|
||||||
|
But the method is still there so the compiler still can't help
|
||||||
|
you to avoid the mistake.
|
||||||
|
(Murray Cumming)
|
||||||
|
* KeyFile: set_integer_list(), set_boolean_list(), set_double_list()
|
||||||
|
actually work now without crashing.
|
||||||
|
(Daniel Elstner, Openismus)
|
||||||
|
* gmmproc:
|
||||||
|
- Refuse to generate a wrapper for a construct-only
|
||||||
|
property which is also write-only, and display a warning.
|
||||||
|
(Daniel Elstner, bug #436789)
|
||||||
|
- Added _DERIVES_INITIALLY_UNOWNED to sink floating
|
||||||
|
references in constructor of classes that wrap
|
||||||
|
GInitiallyUnowned-derived GTypes. Plus _INITIALLY_UNOWNED_SINK
|
||||||
|
for hand-written constructors.
|
||||||
|
(Murray Cumming)
|
||||||
|
* Build:
|
||||||
|
- Fix build for glib 2.15 by including
|
||||||
|
gtestutils.h instead of gmessages.h to get g_assert(),
|
||||||
|
though I am angry that this API break has been allowed.
|
||||||
|
(Murray Cumming)
|
||||||
|
- Fix build for pre-releases of gcc 4.3 - also an include
|
||||||
|
issue. (Sebastien Bacher, #498438)
|
||||||
|
|
||||||
2.14.2:
|
2.14.2:
|
||||||
|
|
||||||
* Build: Hopefully fix the build on NetBSD-4.99.6/amd64.
|
* Build: Hopefully fix the build on NetBSD-4.99.6/amd64.
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
This is glibmm, a C++ API for parts of glib that are useful for C++.
|
||||||
|
See http://www.gtkmm.org
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,36 +2,19 @@
|
||||||
## The gtkmm development team.
|
## The gtkmm development team.
|
||||||
##
|
##
|
||||||
## **** Common rules for inclusion in Makefile.am ****
|
## **** Common rules for inclusion in Makefile.am ****
|
||||||
|
## Included by Makefile_build_gensrc.am_fragment
|
||||||
##
|
##
|
||||||
##
|
|
||||||
## Used variable: Example content:
|
|
||||||
##
|
|
||||||
## sublib_name = glibmm
|
|
||||||
## sublib_cflags = $(GLIBMM_CFLAGS)
|
|
||||||
## files_built_*_cc =
|
|
||||||
## files_built_*_h = proxy.h
|
|
||||||
## files_extra_cc = array.cc class.cc closure.cc
|
|
||||||
## files_extra_h = array.h boxedtype.h class.h
|
|
||||||
## files_extra_all_cc = array.cc class.cc closure.cc
|
|
||||||
## files_extra_all_h = array.h boxedtype.h class.h
|
|
||||||
##
|
|
||||||
## Returned variable: Usage example:
|
|
||||||
##
|
|
||||||
## files_all_*_cc libglibmm_la_SOURCES = $(files_all_*_cc)
|
|
||||||
## common_ldflags libglibmm_la_LDFLAGS = $(common_ldflags)
|
|
||||||
|
|
||||||
files_all_general_cc = $(files_built_general_cc) $(files_extra_cc)
|
include $(srcdir)/../src/Makefile_list_of_hg.am_fragment
|
||||||
files_all_posix_cc = $(files_built_posix_cc)
|
|
||||||
files_all_win32_cc = $(files_built_win32_cc)
|
|
||||||
|
|
||||||
# Support for DLL on mingw using libtool > 1.4
|
# Support for DLL on mingw using libtool > 1.4
|
||||||
# When creating DLLs on win32, we need to explicitly add a few extra
|
# When creating DLLs on win32, we need to explicitly add a few extra
|
||||||
# libraries at link time to resolve symbols (remember a dll is like an
|
# libraries at link time to resolve symbols (remember a dll is like an
|
||||||
# executable).
|
# executable).
|
||||||
if PLATFORM_WIN32
|
if PLATFORM_WIN32
|
||||||
extra_win32_defines = \
|
extra_win32_defines = \
|
||||||
-D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
|
-D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
|
||||||
no_undefined = -no-undefined -Wl,--export-all-symbols
|
no_undefined = -no-undefined -Wl,--export-all-symbols
|
||||||
win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
||||||
else
|
else
|
||||||
extra_win32_defines =
|
extra_win32_defines =
|
||||||
|
|
@ -39,33 +22,29 @@ no_undefined =
|
||||||
win32_dlls_extra_libs =
|
win32_dlls_extra_libs =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
common_ldflags = -version-info $(LIBGLIBMM_SO_VERSION) $(no_undefined)
|
common_ldflags = -version-info $(sublib_libversion) $(no_undefined)
|
||||||
|
|
||||||
all_includes = -I$(top_builddir)/glib -I$(top_srcdir)/glib \
|
# All modules can include all other modules,
|
||||||
|
# for instance, so that gdkmm can use headers in pangomm.
|
||||||
|
all_includes = -I$(top_builddir)/$(sublib_topdir) -I$(top_srcdir)/$(sublib_topdir) \
|
||||||
|
-I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_builddir) \
|
||||||
|
-I$(top_builddir)/gio -I$(top_srcdir)/gio \
|
||||||
$(sublib_cflags) $(GTHREAD_CFLAGS)
|
$(sublib_cflags) $(GTHREAD_CFLAGS)
|
||||||
|
|
||||||
extra_defines = -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines) \
|
dist_sources = $(files_all_built_cc) $(files_all_extra_cc) $(files_all_built_h) $(files_all_extra_h)
|
||||||
$(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
|
|
||||||
|
|
||||||
dist_sources = $(files_built_all_cc) $(files_extra_all_cc) \
|
|
||||||
$(files_built_all_h) $(files_extra_all_h)
|
|
||||||
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
DEFS = @DEFS@ $(strip $(extra_defines))
|
|
||||||
|
DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines)
|
||||||
DEFAULT_INCLUDES =
|
DEFAULT_INCLUDES =
|
||||||
INCLUDES = $(strip $(all_includes))
|
|
||||||
|
# DISABLE_DEPRECATED_CFLAGS and DISABLE_DEPRECATED_API_CFLAGS are empty unless the appropriate --enable-*=no options are specified to configure:
|
||||||
|
INCLUDES = $(strip $(all_includes)) $(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
|
||||||
|
|
||||||
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
|
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
|
||||||
if OS_WIN32
|
sublib_include_HEADERS = $(files_all_built_h) $(files_all_extra_h)
|
||||||
sublib_include_HEADERS = $(files_built_general_h) \
|
|
||||||
$(files_built_win32_h) \
|
|
||||||
$(files_extra_h)
|
|
||||||
else
|
|
||||||
sublib_include_HEADERS = $(files_built_general_h) \
|
|
||||||
$(files_built_posix_h) \
|
|
||||||
$(files_extra_h)
|
|
||||||
endif
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
maintainer-clean-local:
|
||||||
(cd $(srcdir) && rm -f $(files_built_all_cc) $(files_built_all_h))
|
(cd $(srcdir) && rm -f $(files_all_built_cc) $(files_all_built_h))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,66 +1,86 @@
|
||||||
## Copyright (c) 2001
|
## Copyright (c) 2001-2004
|
||||||
## The gtkmm development team.
|
## The gtkmm development team.
|
||||||
##
|
##
|
||||||
## **** Common rules for inclusion in Makefile.am ****
|
## Included by src/Makefile_list_of_hg.am_fragment
|
||||||
##
|
##
|
||||||
|
## This Makefile.am helper transforms lists of source files that are
|
||||||
|
## specific to a sublibrary (atkmm, pangomm, gdkmm or gtkmm) into more
|
||||||
|
## generic lists. These lists of files are processed by the automake
|
||||||
|
## rules contained in Makefile_build.am_fragment (sublib/sublibmm
|
||||||
|
## directory) and Makefile_gensrc.am_fragment (sublib/src directory).
|
||||||
|
##
|
||||||
|
## The input variables are:
|
||||||
|
## * defined in sublib/src/Makefile_list_of_hg.am_fragment:
|
||||||
|
## files_posix_hg, files_win32_hg, files_general_hg,
|
||||||
|
## files_general_deprecated_hg.
|
||||||
|
## * defined sublib/sublibmm/Makefile.am:
|
||||||
|
## sublib_files_extra_posix_[cc|h],
|
||||||
|
## sublib_files_extra_win32_[cc|h],
|
||||||
|
## sublib_files_extra_general_[cc|h],
|
||||||
|
## sublib_files_extra_general_deprecated_[cc|h]
|
||||||
##
|
##
|
||||||
## Used variable: Example content:
|
## The output variables are:
|
||||||
##
|
## files_all_hg: all .hg files (general, all platforms, deprecated)
|
||||||
## sublib_name = gtkmm
|
## files_hg: general and platform-specific .hg files
|
||||||
## sublib_cflags = $(GTKMM_CFLAGS)
|
## files_built_cc, files_built_h: generated source files that
|
||||||
## files_extra_cc = stock_id.cc
|
## will be compiled on the target platform
|
||||||
## files_extra_h = base.h stock_id.h
|
## + corresponding headers.
|
||||||
##
|
## files_all_built_cc, files_all_built_h: all generated source
|
||||||
## Returned variable: Usage example:
|
## files + corresponding headers.
|
||||||
##
|
## files_extra_cc, files_extra_h : general and platform-specific
|
||||||
## files_all_general_cc libgtkmm_la_SOURCES = $(files_all_general_cc)
|
## source files and corresponding headers
|
||||||
## files_all_posix_cc libgtkmm_la_SOURCES = $(files_all_posix_cc)
|
## files_all_extra_cc, files_all_extra_h: all extra source files
|
||||||
## files_all_win32_cc libgtkmm_la_SOURCES = $(files_all_win32_cc)
|
## and corresponding headers.
|
||||||
## common_ldflags libgtkmm_la_LDFLAGS = $(common_ldflags)
|
## !!! deprecated files not included !!!
|
||||||
|
|
||||||
include $(srcdir)/../src/Makefile_list_of_hg.am_fragment
|
# Built files
|
||||||
include $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
|
||||||
|
|
||||||
files_built_general_cc = $(files_general_hg:.hg=.cc) wrap_init.cc
|
files_all_hg = \
|
||||||
files_built_general_h = $(files_general_hg:.hg=.h)
|
$(files_posix_hg) \
|
||||||
files_built_posix_cc = $(files_posix_hg:.hg=.cc)
|
$(files_win32_hg) \
|
||||||
files_built_posix_h = $(files_posix_hg:.hg=.h)
|
$(files_general_hg) \
|
||||||
files_built_win32_cc = $(files_win32_hg:.hg=.cc)
|
$(files_general_deprecated_hg)
|
||||||
files_built_win32_h = $(files_win32_hg:.hg=.h)
|
|
||||||
|
|
||||||
files_built_all_cc = $(files_built_general_cc) \
|
if OS_WIN32
|
||||||
$(files_built_posix_cc) \
|
files_hg = $(files_general_hg) $(files_win32_hg) $(files_general_deprecated_hg)
|
||||||
$(files_built_win32_cc)
|
else
|
||||||
files_built_all_h = $(files_built_general_h) \
|
files_hg = $(files_general_hg) $(files_posix_hg) $(files_general_deprecated_hg)
|
||||||
$(files_built_posix_h) \
|
endif
|
||||||
$(files_built_win32_h)
|
|
||||||
|
|
||||||
include $(top_srcdir)/build_shared/Makefile_build_extra.am_fragment
|
files_built_cc = $(files_hg:.hg=.cc) wrap_init.cc
|
||||||
include $(top_srcdir)/build_shared/Makefile_build.am_fragment
|
files_built_h = $(files_hg:.hg=.h)
|
||||||
|
|
||||||
cvsignore:
|
files_all_built_cc = $(files_all_hg:.hg=.cc) wrap_init.cc
|
||||||
( \
|
files_all_built_h = $(files_all_hg:.hg=.h)
|
||||||
echo ".deps"; \
|
|
||||||
echo ".libs"; \
|
|
||||||
echo "*.la"; \
|
|
||||||
echo "*.lo"; \
|
|
||||||
echo "Makefile"; \
|
|
||||||
echo "Makefile.in"; \
|
|
||||||
echo; \
|
|
||||||
list='$(strip $(files_built_all_cc) $(files_built_all_h))'; \
|
|
||||||
for file in $$list; do \
|
|
||||||
echo "$$file"; \
|
|
||||||
done \
|
|
||||||
) >$(srcdir)/.cvsignore
|
|
||||||
( \
|
|
||||||
echo "Makefile"; \
|
|
||||||
echo "Makefile.in"; \
|
|
||||||
echo; \
|
|
||||||
list='$(strip $(files_all_hg:.hg=_p.h))'; \
|
|
||||||
for file in $$list; do \
|
|
||||||
echo "$$file"; \
|
|
||||||
done \
|
|
||||||
) >$(srcdir)/private/.cvsignore
|
|
||||||
|
|
||||||
.PHONY: cvsignore
|
# Extra files
|
||||||
|
|
||||||
|
files_all_extra_cc = \
|
||||||
|
$(sublib_files_extra_posix_cc) \
|
||||||
|
$(sublib_files_extra_win32_cc) \
|
||||||
|
$(sublib_files_extra_general_cc) \
|
||||||
|
$(sublib_files_extra_general_deprecated_cc)
|
||||||
|
|
||||||
|
files_all_extra_h = \
|
||||||
|
$(sublib_files_extra_posix_h) \
|
||||||
|
$(sublib_files_extra_win32_h) \
|
||||||
|
$(sublib_files_extra_general_h) \
|
||||||
|
$(sublib_files_extra_general_deprecated_h)
|
||||||
|
files_all_extra_h += wrap_init.h
|
||||||
|
|
||||||
|
if OS_WIN32
|
||||||
|
files_extra_cc = \
|
||||||
|
$(sublib_files_extra_win32_cc) \
|
||||||
|
$(sublib_files_extra_general_cc)
|
||||||
|
files_extra_h = \
|
||||||
|
$(sublib_files_extra_win32_h) \
|
||||||
|
$(sublib_files_extra_general_h)
|
||||||
|
else
|
||||||
|
files_extra_cc = \
|
||||||
|
$(sublib_files_extra_posix_cc) \
|
||||||
|
$(sublib_files_extra_general_cc)
|
||||||
|
files_extra_h = \
|
||||||
|
$(sublib_files_extra_posix_h) \
|
||||||
|
$(sublib_files_extra_general_h)
|
||||||
|
endif
|
||||||
|
files_extra_h += wrap_init.h
|
||||||
|
|
|
||||||
|
|
@ -2,50 +2,61 @@
|
||||||
## The gtkmm development team.
|
## The gtkmm development team.
|
||||||
##
|
##
|
||||||
## **** Common rules for inclusion in Makefile.am ****
|
## **** Common rules for inclusion in Makefile.am ****
|
||||||
##
|
## Included from something/src/Makefile.am
|
||||||
##
|
##
|
||||||
## Used variable: Example content:
|
## Used variable: Example content:
|
||||||
##
|
##
|
||||||
## sublib_name = gdkmm
|
## sublib_name = gdkmm
|
||||||
## sublib_namespace = Gdk
|
## sublib_namespace = Gdk
|
||||||
|
|
||||||
## files_defs = gdk.defs gdk_pixbuf.defs
|
## files_defs = gdk.defs gdk_pixbuf.defs
|
||||||
|
|
||||||
|
|
||||||
tools_dir_m4 = $(top_srcdir)/tools/m4
|
tools_dir = $(top_srcdir)/tools
|
||||||
tools_dir_pm = $(top_srcdir)/tools/pm
|
tools_dir_m4= $(top_srcdir)/tools/m4
|
||||||
|
tools_dir_pm= $(top_srcdir)/tools/pm
|
||||||
|
|
||||||
gensrc_destdir = $(srcdir)/../$(sublib_name)
|
gensrc_destdir = $(srcdir)/../$(sublib_name)
|
||||||
stamp_dir = $(srcdir)/.stamps
|
stamp_dir = $(srcdir)/.stamps
|
||||||
|
|
||||||
include $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment
|
include $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment
|
||||||
tools_m4 = $(files_tools_m4:%.m4=$(tools_dir_m4)/%.m4)
|
tools_m4 = $(files_tools_m4:%.m4=$(tools_dir_m4)/%.m4)
|
||||||
tools_pm = $(files_tools_pm:%.pm=$(tools_dir_pm)/%.pm)
|
# tools_pm = $(files_tools_pm:%.pm=$(tools_dir_pm)/%.pm)
|
||||||
|
|
||||||
include $(srcdir)/Makefile_list_of_hg.am_fragment
|
include $(srcdir)/../src/Makefile_list_of_hg.am_fragment
|
||||||
include $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
|
||||||
files_all_ccg = $(files_all_hg:%.hg=%.ccg)
|
files_all_ccg = $(files_all_hg:%.hg=%.ccg)
|
||||||
files_h = $(files_all_hg:%.hg=$(gensrc_destdir)/%.h)
|
files_h = $(files_all_hg:%.hg=$(gensrc_destdir)/%.h)
|
||||||
files_cc = $(files_all_hg:%.hg=$(gensrc_destdir)/%.cc)
|
files_cc = $(files_all_hg:%.hg=$(gensrc_destdir)/%.cc)
|
||||||
files_stamp = $(files_all_hg:%.hg=$(stamp_dir)/stamp-%)
|
files_stamp = $(files_all_hg:%.hg=$(stamp_dir)/stamp-%)
|
||||||
|
|
||||||
|
#The gmmproc from this glibmm:
|
||||||
gmmproc_in = $(top_srcdir)/tools/gmmproc.in
|
gmmproc_in = $(top_srcdir)/tools/gmmproc.in
|
||||||
gmmproc_path = $(top_builddir)/tools/gmmproc
|
gmmproc_path = $(top_builddir)/tools/gmmproc
|
||||||
|
|
||||||
|
|
||||||
|
# We use our own m4 and pm files as well as the ones installed by gtkmm:
|
||||||
|
# Our override m4 include seems to need to be before the default one.
|
||||||
gmmproc_args = -I $(tools_dir_m4) --defs $(srcdir)
|
gmmproc_args = -I $(tools_dir_m4) --defs $(srcdir)
|
||||||
run_gmmproc = $(PERL_PATH) -I$(tools_dir_pm) $(gmmproc_path) $(gmmproc_args)
|
run_gmmproc = $(PERL_PATH) -I$(tools_dir_pm) $(gmmproc_path) $(gmmproc_args)
|
||||||
|
|
||||||
|
|
||||||
gen_wrap_init_in = $(top_srcdir)/tools/generate_wrap_init.pl.in
|
gen_wrap_init_in = $(top_srcdir)/tools/generate_wrap_init.pl.in
|
||||||
gen_wrap_init_path = $(top_builddir)/tools/generate_wrap_init.pl
|
gen_wrap_init_path = $(top_builddir)/tools/generate_wrap_init.pl
|
||||||
gen_wrap_init_args = --namespace=$(sublib_namespace)
|
gen_wrap_init_args = --namespace=$(sublib_namespace) --parent_dir=$(sublib_parentdir)
|
||||||
run_gen_wrap_init = $(PERL_PATH) $(gen_wrap_init_path) $(gen_wrap_init_args)
|
run_gen_wrap_init = $(PERL_PATH) $(gen_wrap_init_path) $(gen_wrap_init_args)
|
||||||
|
|
||||||
EXTRA_DIST = Makefile_list_of_hg.am_fragment $(files_defs) $(files_all_hg) $(files_all_ccg)
|
EXTRA_DIST = Makefile_list_of_hg.am_fragment \
|
||||||
|
$(files_defs) $(files_all_hg) $(files_all_ccg)
|
||||||
|
|
||||||
|
|
||||||
$(stamp_dir)/stamp-%: %.hg %.ccg $(gmmproc_in) $(tools_m4) $(tools_pm) $(files_defs)
|
$(stamp_dir)/stamp-%: %.hg %.ccg $(tools_m4) $(files_defs)
|
||||||
$(run_gmmproc) $(notdir $*) $(srcdir) $(gensrc_destdir)
|
$(run_gmmproc) $(notdir $*) $(srcdir) $(gensrc_destdir)
|
||||||
@echo 'timestamp' >$@
|
@echo 'timestamp' > $@
|
||||||
|
|
||||||
$(gensrc_destdir)/wrap_init.cc: $(gen_wrap_init_in) $(files_all_hg)
|
sublib_srcdir = $(srcdir)/../src
|
||||||
|
files_hg_with_path = $(patsubst %.hg,$(sublib_srcdir)/%.hg,$(files_all_hg))
|
||||||
|
|
||||||
|
$(gensrc_destdir)/wrap_init.cc: $(gen_wrap_init_path) $(files_hg_with_path)
|
||||||
$(run_gen_wrap_init) $(files_all_hg:%.hg=$(srcdir)/%.hg) >$@
|
$(run_gen_wrap_init) $(files_all_hg:%.hg=$(srcdir)/%.hg) >$@
|
||||||
|
|
||||||
create-stamp-dir:
|
create-stamp-dir:
|
||||||
|
|
@ -57,6 +68,3 @@ endif
|
||||||
|
|
||||||
maintainer-clean-local:
|
maintainer-clean-local:
|
||||||
rm -rf $(stamp_dir)
|
rm -rf $(stamp_dir)
|
||||||
|
|
||||||
.PHONY: create-stamp-dir
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,3 @@ glibmm_config_DATA = glibmmconfig.h
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = glibmm-2.4.pc
|
pkgconfig_DATA = glibmm-2.4.pc
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -2,6 +2,7 @@ prefix=/usr/local
|
||||||
exec_prefix=${prefix}
|
exec_prefix=${prefix}
|
||||||
libdir=${exec_prefix}/lib
|
libdir=${exec_prefix}/lib
|
||||||
includedir=${prefix}/include
|
includedir=${prefix}/include
|
||||||
|
gmmprocdir=@GMMPROC_DIR@
|
||||||
|
|
||||||
Name: GLibmm
|
Name: GLibmm
|
||||||
Description: C++ wrapper for GLib
|
Description: C++ wrapper for GLib
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
libdir=@libdir@
|
libdir=@libdir@
|
||||||
includedir=@includedir@
|
includedir=@includedir@
|
||||||
|
gmmprocdir=@GMMPROC_DIR@
|
||||||
|
|
||||||
Name: GLibmm
|
Name: GLibmm
|
||||||
Description: C++ wrapper for GLib
|
Description: C++ wrapper for GLib
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
/* $Id: glibmm.h 417 2007-06-12 13:38:39Z murrayc $ */
|
/* $Id: glibmm.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* glibmm - a C++ wrapper for the GLib toolkit
|
/* glibmm - a C++ wrapper for the GLib toolkit
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#include <glibmmconfig.h>
|
#include <glibmmconfig.h>
|
||||||
//#include <glibmm/i18n.h> //This must be included by the application, after system headers such as <iostream>.
|
//#include <glibmm/i18n.h> //This must be included by the application, after system headers such as <iostream>.
|
||||||
#include <glibmm/arrayhandle.h>
|
#include <glibmm/arrayhandle.h>
|
||||||
|
#include <glibmm/checksum.h>
|
||||||
#include <glibmm/class.h>
|
#include <glibmm/class.h>
|
||||||
#include <glibmm/containerhandle_shared.h>
|
#include <glibmm/containerhandle_shared.h>
|
||||||
#include <glibmm/convert.h>
|
#include <glibmm/convert.h>
|
||||||
|
|
@ -45,6 +46,7 @@
|
||||||
#include <glibmm/markup.h>
|
#include <glibmm/markup.h>
|
||||||
#include <glibmm/miscutils.h>
|
#include <glibmm/miscutils.h>
|
||||||
#include <glibmm/module.h>
|
#include <glibmm/module.h>
|
||||||
|
#include <glibmm/nodetree.h>
|
||||||
#include <glibmm/objectbase.h>
|
#include <glibmm/objectbase.h>
|
||||||
#include <glibmm/object.h>
|
#include <glibmm/object.h>
|
||||||
#include <glibmm/optioncontext.h>
|
#include <glibmm/optioncontext.h>
|
||||||
|
|
@ -66,6 +68,7 @@
|
||||||
#include <glibmm/threadpool.h>
|
#include <glibmm/threadpool.h>
|
||||||
#include <glibmm/timer.h>
|
#include <glibmm/timer.h>
|
||||||
#include <glibmm/timeval.h>
|
#include <glibmm/timeval.h>
|
||||||
|
#include <glibmm/uriutils.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <glibmm/value.h>
|
#include <glibmm/value.h>
|
||||||
#include <glibmm/wrap.h>
|
#include <glibmm/wrap.h>
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,11 @@ SUBDIRS = private
|
||||||
|
|
||||||
sublib_name = glibmm
|
sublib_name = glibmm
|
||||||
sublib_libname = glibmm-2.4
|
sublib_libname = glibmm-2.4
|
||||||
|
sublib_libversion = $(LIBGLIBMM_SO_VERSION)
|
||||||
sublib_namespace = Glib
|
sublib_namespace = Glib
|
||||||
sublib_cflags = $(GLIBMM_CFLAGS)
|
sublib_cflags = $(GLIBMM_CFLAGS)
|
||||||
|
sublib_topdir = glib
|
||||||
|
sublib_win32_dlls_libs =
|
||||||
|
|
||||||
sublib_files_extra_posix_cc =
|
sublib_files_extra_posix_cc =
|
||||||
sublib_files_extra_win32_cc =
|
sublib_files_extra_win32_cc =
|
||||||
|
|
@ -59,6 +62,7 @@ sublib_files_extra_general_h = \
|
||||||
exceptionhandler.h \
|
exceptionhandler.h \
|
||||||
helperlist.h \
|
helperlist.h \
|
||||||
init.h \
|
init.h \
|
||||||
|
i18n-lib.h \
|
||||||
i18n.h \
|
i18n.h \
|
||||||
interface.h \
|
interface.h \
|
||||||
iochannel.h \
|
iochannel.h \
|
||||||
|
|
@ -69,6 +73,7 @@ sublib_files_extra_general_h = \
|
||||||
object.h \
|
object.h \
|
||||||
objectbase.h \
|
objectbase.h \
|
||||||
pattern.h \
|
pattern.h \
|
||||||
|
priorities.h \
|
||||||
property.h \
|
property.h \
|
||||||
propertyproxy.h \
|
propertyproxy.h \
|
||||||
propertyproxy_base.h \
|
propertyproxy_base.h \
|
||||||
|
|
@ -89,17 +94,13 @@ sublib_files_extra_general_h = \
|
||||||
value_custom.h \
|
value_custom.h \
|
||||||
wrap.h
|
wrap.h
|
||||||
|
|
||||||
include $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment
|
include $(top_srcdir)/build_shared/Makefile_build.am_fragment
|
||||||
|
|
||||||
files_built_general_cc += value_basictypes.cc
|
sublib_files_extra_general_cc += value_basictypes.cc
|
||||||
files_built_general_h += signalproxy.h value_basictypes.h
|
sublib_files_extra_general_h += signalproxy.h value_basictypes.h
|
||||||
|
|
||||||
lib_LTLIBRARIES = libglibmm-2.4.la
|
lib_LTLIBRARIES = libglibmm-2.4.la
|
||||||
if OS_WIN32
|
libglibmm_2_4_la_SOURCES = $(files_built_cc) $(files_extra_cc)
|
||||||
libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_win32_cc)
|
|
||||||
else
|
|
||||||
libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_posix_cc)
|
|
||||||
endif
|
|
||||||
libglibmm_2_4_la_LDFLAGS = $(common_ldflags)
|
libglibmm_2_4_la_LDFLAGS = $(common_ldflags)
|
||||||
libglibmm_2_4_la_LIBADD = $(GLIBMM_LIBS)
|
libglibmm_2_4_la_LIBADD = $(GLIBMM_LIBS)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# Makefile.in generated by automake 1.10 from Makefile.am.
|
# Makefile.in generated by automake 1.10.1 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
|
# Built files
|
||||||
|
|
||||||
|
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
pkgdatadir = $(datadir)/@PACKAGE@
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
|
@ -33,16 +35,21 @@ PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
build_triplet = @build@
|
build_triplet = @build@
|
||||||
host_triplet = @host@
|
host_triplet = @host@
|
||||||
DIST_COMMON = $(am__sublib_include_HEADERS_DIST) \
|
DIST_COMMON = $(srcdir)/../src/Makefile_list_of_hg.am_fragment \
|
||||||
$(srcdir)/../src/Makefile_list_of_hg.am_fragment \
|
|
||||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||||
|
$(sublib_include_HEADERS) \
|
||||||
$(top_srcdir)/build_shared/Makefile_build.am_fragment \
|
$(top_srcdir)/build_shared/Makefile_build.am_fragment \
|
||||||
$(top_srcdir)/build_shared/Makefile_build_extra.am_fragment \
|
$(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment
|
||||||
$(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment \
|
|
||||||
$(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
|
||||||
subdir = glib/glibmm
|
subdir = glib/glibmm
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
|
||||||
|
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
|
||||||
|
$(top_srcdir)/scripts/dk-feature.m4 \
|
||||||
|
$(top_srcdir)/scripts/docgen.m4 \
|
||||||
|
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||||
|
$(top_srcdir)/scripts/macros.m4 \
|
||||||
|
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||||
|
$(top_srcdir)/configure.in
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
$(ACLOCAL_M4)
|
$(ACLOCAL_M4)
|
||||||
mkinstalldirs = $(install_sh) -d
|
mkinstalldirs = $(install_sh) -d
|
||||||
|
|
@ -62,41 +69,39 @@ libLTLIBRARIES_INSTALL = $(INSTALL)
|
||||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||||
am__DEPENDENCIES_1 =
|
am__DEPENDENCIES_1 =
|
||||||
libglibmm_2_4_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
libglibmm_2_4_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
||||||
am__libglibmm_2_4_la_SOURCES_DIST = convert.cc date.cc fileutils.cc \
|
am__libglibmm_2_4_la_SOURCES_DIST = checksum.cc convert.cc date.cc \
|
||||||
iochannel.cc keyfile.cc markup.cc module.cc optioncontext.cc \
|
fileutils.cc iochannel.cc keyfile.cc markup.cc module.cc \
|
||||||
optionentry.cc optiongroup.cc regex.cc shell.cc spawn.cc \
|
optioncontext.cc optionentry.cc optiongroup.cc regex.cc \
|
||||||
thread.cc unicode.cc wrap_init.cc value_basictypes.cc class.cc \
|
shell.cc spawn.cc thread.cc nodetree.cc unicode.cc uriutils.cc \
|
||||||
containers.cc debug.cc dispatcher.cc error.cc exception.cc \
|
wrap_init.cc class.cc containers.cc debug.cc dispatcher.cc \
|
||||||
exceptionhandler.cc init.cc interface.cc main.cc miscutils.cc \
|
error.cc exception.cc exceptionhandler.cc init.cc interface.cc \
|
||||||
object.cc objectbase.cc pattern.cc property.cc \
|
main.cc miscutils.cc object.cc objectbase.cc pattern.cc \
|
||||||
propertyproxy.cc propertyproxy_base.cc quark.cc random.cc \
|
property.cc propertyproxy.cc propertyproxy_base.cc quark.cc \
|
||||||
signalproxy.cc signalproxy_connectionnode.cc \
|
random.cc signalproxy.cc signalproxy_connectionnode.cc \
|
||||||
streamiochannel.cc stringutils.cc threadpool.cc timer.cc \
|
streamiochannel.cc stringutils.cc threadpool.cc timer.cc \
|
||||||
timeval.cc ustring.cc utility.cc value.cc value_custom.cc \
|
timeval.cc ustring.cc utility.cc value.cc value_custom.cc \
|
||||||
wrap.cc
|
wrap.cc value_basictypes.cc
|
||||||
am__objects_1 = convert.lo date.lo fileutils.lo iochannel.lo \
|
am__objects_1 = checksum.lo convert.lo date.lo fileutils.lo \
|
||||||
keyfile.lo markup.lo module.lo optioncontext.lo optionentry.lo \
|
iochannel.lo keyfile.lo markup.lo module.lo optioncontext.lo \
|
||||||
optiongroup.lo regex.lo shell.lo spawn.lo thread.lo unicode.lo
|
optionentry.lo optiongroup.lo regex.lo shell.lo spawn.lo \
|
||||||
am__objects_2 = $(am__objects_1) wrap_init.lo value_basictypes.lo
|
thread.lo nodetree.lo unicode.lo uriutils.lo
|
||||||
am__objects_3 = class.lo containers.lo debug.lo dispatcher.lo error.lo \
|
am__objects_2 =
|
||||||
|
@OS_WIN32_FALSE@am__objects_3 = $(am__objects_1) $(am__objects_2) \
|
||||||
|
@OS_WIN32_FALSE@ $(am__objects_2)
|
||||||
|
@OS_WIN32_TRUE@am__objects_3 = $(am__objects_1) $(am__objects_2) \
|
||||||
|
@OS_WIN32_TRUE@ $(am__objects_2)
|
||||||
|
am__objects_4 = $(am__objects_3) wrap_init.lo
|
||||||
|
am__objects_5 = class.lo containers.lo debug.lo dispatcher.lo error.lo \
|
||||||
exception.lo exceptionhandler.lo init.lo interface.lo main.lo \
|
exception.lo exceptionhandler.lo init.lo interface.lo main.lo \
|
||||||
miscutils.lo object.lo objectbase.lo pattern.lo property.lo \
|
miscutils.lo object.lo objectbase.lo pattern.lo property.lo \
|
||||||
propertyproxy.lo propertyproxy_base.lo quark.lo random.lo \
|
propertyproxy.lo propertyproxy_base.lo quark.lo random.lo \
|
||||||
signalproxy.lo signalproxy_connectionnode.lo \
|
signalproxy.lo signalproxy_connectionnode.lo \
|
||||||
streamiochannel.lo stringutils.lo threadpool.lo timer.lo \
|
streamiochannel.lo stringutils.lo threadpool.lo timer.lo \
|
||||||
timeval.lo ustring.lo utility.lo value.lo value_custom.lo \
|
timeval.lo ustring.lo utility.lo value.lo value_custom.lo \
|
||||||
wrap.lo
|
wrap.lo value_basictypes.lo
|
||||||
am__objects_4 =
|
@OS_WIN32_FALSE@am__objects_6 = $(am__objects_2) $(am__objects_5)
|
||||||
@OS_WIN32_FALSE@am__objects_5 = $(am__objects_3) $(am__objects_4)
|
@OS_WIN32_TRUE@am__objects_6 = $(am__objects_2) $(am__objects_5)
|
||||||
@OS_WIN32_TRUE@am__objects_5 = $(am__objects_3) $(am__objects_4)
|
am_libglibmm_2_4_la_OBJECTS = $(am__objects_4) $(am__objects_6)
|
||||||
am__objects_6 = $(am__objects_5)
|
|
||||||
am__objects_7 = $(am__objects_2) $(am__objects_6)
|
|
||||||
am__objects_8 = $(am__objects_4)
|
|
||||||
am__objects_9 = $(am__objects_8)
|
|
||||||
@OS_WIN32_FALSE@am_libglibmm_2_4_la_OBJECTS = $(am__objects_7) \
|
|
||||||
@OS_WIN32_FALSE@ $(am__objects_9)
|
|
||||||
@OS_WIN32_TRUE@am_libglibmm_2_4_la_OBJECTS = $(am__objects_7) \
|
|
||||||
@OS_WIN32_TRUE@ $(am__objects_9)
|
|
||||||
libglibmm_2_4_la_OBJECTS = $(am_libglibmm_2_4_la_OBJECTS)
|
libglibmm_2_4_la_OBJECTS = $(am_libglibmm_2_4_la_OBJECTS)
|
||||||
libglibmm_2_4_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
libglibmm_2_4_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||||
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||||
|
|
@ -121,18 +126,6 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||||
install-pdf-recursive install-ps-recursive install-recursive \
|
install-pdf-recursive install-ps-recursive install-recursive \
|
||||||
installcheck-recursive installdirs-recursive pdf-recursive \
|
installcheck-recursive installdirs-recursive pdf-recursive \
|
||||||
ps-recursive uninstall-recursive
|
ps-recursive uninstall-recursive
|
||||||
am__sublib_include_HEADERS_DIST = convert.h date.h fileutils.h \
|
|
||||||
iochannel.h keyfile.h markup.h module.h optioncontext.h \
|
|
||||||
optionentry.h optiongroup.h regex.h shell.h spawn.h thread.h \
|
|
||||||
unicode.h signalproxy.h value_basictypes.h arrayhandle.h \
|
|
||||||
class.h containerhandle_shared.h containers.h debug.h \
|
|
||||||
dispatcher.h error.h exception.h exceptionhandler.h \
|
|
||||||
helperlist.h init.h i18n.h interface.h listhandle.h main.h \
|
|
||||||
miscutils.h object.h objectbase.h pattern.h property.h \
|
|
||||||
propertyproxy.h propertyproxy_base.h quark.h random.h refptr.h \
|
|
||||||
sarray.h signalproxy_connectionnode.h slisthandle.h \
|
|
||||||
streamiochannel.h stringutils.h threadpool.h timer.h timeval.h \
|
|
||||||
ustring.h utility.h value.h value_custom.h wrap.h wrap_init.h
|
|
||||||
sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER)
|
||||||
HEADERS = $(sublib_include_HEADERS)
|
HEADERS = $(sublib_include_HEADERS)
|
||||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||||
|
|
@ -158,10 +151,12 @@ CXXCPP = @CXXCPP@
|
||||||
CXXDEPMODE = @CXXDEPMODE@
|
CXXDEPMODE = @CXXDEPMODE@
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DEFS = @DEFS@ $(strip $(extra_defines))
|
DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines)
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
|
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||||
DLLTOOL = @DLLTOOL@
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
ECHO = @ECHO@
|
ECHO = @ECHO@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
ECHO_N = @ECHO_N@
|
ECHO_N = @ECHO_N@
|
||||||
|
|
@ -183,6 +178,8 @@ GMMPROC_DIR = @GMMPROC_DIR@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||||
|
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||||
|
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
|
@ -195,9 +192,11 @@ LIBS = @LIBS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
M4 = @M4@
|
||||||
MAINT = @MAINT@
|
MAINT = @MAINT@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
|
|
@ -207,6 +206,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PERL_PATH = @PERL_PATH@
|
||||||
PKG_CONFIG = @PKG_CONFIG@
|
PKG_CONFIG = @PKG_CONFIG@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
|
|
@ -263,172 +263,122 @@ sharedstatedir = @sharedstatedir@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
sysconfdir = @sysconfdir@
|
sysconfdir = @sysconfdir@
|
||||||
target_alias = @target_alias@
|
target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
SUBDIRS = private
|
SUBDIRS = private
|
||||||
sublib_name = glibmm
|
sublib_name = glibmm
|
||||||
sublib_libname = glibmm-2.4
|
sublib_libname = glibmm-2.4
|
||||||
|
sublib_libversion = $(LIBGLIBMM_SO_VERSION)
|
||||||
sublib_namespace = Glib
|
sublib_namespace = Glib
|
||||||
sublib_cflags = $(GLIBMM_CFLAGS)
|
sublib_cflags = $(GLIBMM_CFLAGS)
|
||||||
|
sublib_topdir = glib
|
||||||
|
sublib_win32_dlls_libs =
|
||||||
sublib_files_extra_posix_cc =
|
sublib_files_extra_posix_cc =
|
||||||
sublib_files_extra_win32_cc =
|
sublib_files_extra_win32_cc =
|
||||||
sublib_files_extra_general_cc = \
|
sublib_files_extra_general_cc = class.cc containers.cc debug.cc \
|
||||||
class.cc \
|
dispatcher.cc error.cc exception.cc exceptionhandler.cc \
|
||||||
containers.cc \
|
init.cc interface.cc main.cc miscutils.cc object.cc \
|
||||||
debug.cc \
|
objectbase.cc pattern.cc property.cc propertyproxy.cc \
|
||||||
dispatcher.cc \
|
propertyproxy_base.cc quark.cc random.cc signalproxy.cc \
|
||||||
error.cc \
|
signalproxy_connectionnode.cc streamiochannel.cc \
|
||||||
exception.cc \
|
stringutils.cc threadpool.cc timer.cc timeval.cc ustring.cc \
|
||||||
exceptionhandler.cc \
|
utility.cc value.cc value_custom.cc wrap.cc \
|
||||||
init.cc \
|
value_basictypes.cc
|
||||||
interface.cc \
|
|
||||||
main.cc \
|
|
||||||
miscutils.cc \
|
|
||||||
object.cc \
|
|
||||||
objectbase.cc \
|
|
||||||
pattern.cc \
|
|
||||||
property.cc \
|
|
||||||
propertyproxy.cc \
|
|
||||||
propertyproxy_base.cc \
|
|
||||||
quark.cc \
|
|
||||||
random.cc \
|
|
||||||
signalproxy.cc \
|
|
||||||
signalproxy_connectionnode.cc \
|
|
||||||
streamiochannel.cc \
|
|
||||||
stringutils.cc \
|
|
||||||
threadpool.cc \
|
|
||||||
timer.cc \
|
|
||||||
timeval.cc \
|
|
||||||
ustring.cc \
|
|
||||||
utility.cc \
|
|
||||||
value.cc \
|
|
||||||
value_custom.cc \
|
|
||||||
wrap.cc
|
|
||||||
|
|
||||||
sublib_files_extra_posix_h =
|
sublib_files_extra_posix_h =
|
||||||
sublib_files_extra_win32_h =
|
sublib_files_extra_win32_h =
|
||||||
sublib_files_extra_general_h = \
|
sublib_files_extra_general_h = arrayhandle.h class.h \
|
||||||
arrayhandle.h \
|
containerhandle_shared.h containers.h debug.h dispatcher.h \
|
||||||
class.h \
|
error.h exception.h exceptionhandler.h helperlist.h init.h \
|
||||||
containerhandle_shared.h \
|
i18n-lib.h i18n.h interface.h iochannel.h keyfile.h \
|
||||||
containers.h \
|
listhandle.h main.h miscutils.h object.h objectbase.h \
|
||||||
debug.h \
|
pattern.h priorities.h property.h propertyproxy.h \
|
||||||
dispatcher.h \
|
propertyproxy_base.h quark.h random.h refptr.h sarray.h \
|
||||||
error.h \
|
signalproxy_connectionnode.h slisthandle.h streamiochannel.h \
|
||||||
exception.h \
|
stringutils.h threadpool.h timer.h timeval.h ustring.h \
|
||||||
exceptionhandler.h \
|
utility.h value.h value_custom.h wrap.h signalproxy.h \
|
||||||
helperlist.h \
|
value_basictypes.h
|
||||||
init.h \
|
|
||||||
i18n.h \
|
|
||||||
interface.h \
|
|
||||||
iochannel.h \
|
|
||||||
keyfile.h \
|
|
||||||
listhandle.h \
|
|
||||||
main.h \
|
|
||||||
miscutils.h \
|
|
||||||
object.h \
|
|
||||||
objectbase.h \
|
|
||||||
pattern.h \
|
|
||||||
property.h \
|
|
||||||
propertyproxy.h \
|
|
||||||
propertyproxy_base.h \
|
|
||||||
quark.h \
|
|
||||||
random.h \
|
|
||||||
refptr.h \
|
|
||||||
sarray.h \
|
|
||||||
signalproxy_connectionnode.h \
|
|
||||||
slisthandle.h \
|
|
||||||
streamiochannel.h \
|
|
||||||
stringutils.h \
|
|
||||||
threadpool.h \
|
|
||||||
timer.h \
|
|
||||||
timeval.h \
|
|
||||||
ustring.h \
|
|
||||||
utility.h \
|
|
||||||
value.h \
|
|
||||||
value_custom.h \
|
|
||||||
wrap.h
|
|
||||||
|
|
||||||
files_posix_hg =
|
files_posix_hg =
|
||||||
files_win32_hg =
|
files_win32_hg =
|
||||||
files_general_hg = convert.hg date.hg fileutils.hg iochannel.hg keyfile.hg markup.hg module.hg optioncontext.hg optionentry.hg optiongroup.hg regex.hg shell.hg spawn.hg thread.hg unicode.hg
|
files_general_hg = checksum.hg convert.hg date.hg fileutils.hg iochannel.hg keyfile.hg markup.hg \
|
||||||
files_all_hg = $(files_general_hg) $(files_posix_hg) $(files_win32_hg)
|
module.hg optioncontext.hg optionentry.hg optiongroup.hg regex.hg \
|
||||||
@OS_WIN32_FALSE@files_hg = $(files_general_hg) $(files_posix_hg)
|
shell.hg spawn.hg thread.hg nodetree.hg unicode.hg uriutils.hg
|
||||||
@OS_WIN32_TRUE@files_hg = $(files_general_hg) $(files_win32_hg)
|
|
||||||
files_built_general_cc = $(files_general_hg:.hg=.cc) wrap_init.cc \
|
|
||||||
value_basictypes.cc
|
|
||||||
files_built_general_h = $(files_general_hg:.hg=.h) signalproxy.h \
|
|
||||||
value_basictypes.h
|
|
||||||
files_built_posix_cc = $(files_posix_hg:.hg=.cc)
|
|
||||||
files_built_posix_h = $(files_posix_hg:.hg=.h)
|
|
||||||
files_built_win32_cc = $(files_win32_hg:.hg=.cc)
|
|
||||||
files_built_win32_h = $(files_win32_hg:.hg=.h)
|
|
||||||
files_built_all_cc = $(files_built_general_cc) \
|
|
||||||
$(files_built_posix_cc) \
|
|
||||||
$(files_built_win32_cc)
|
|
||||||
|
|
||||||
files_built_all_h = $(files_built_general_h) \
|
files_general_deprecated_hg =
|
||||||
$(files_built_posix_h) \
|
files_all_hg = \
|
||||||
$(files_built_win32_h)
|
$(files_posix_hg) \
|
||||||
|
$(files_win32_hg) \
|
||||||
|
$(files_general_hg) \
|
||||||
|
$(files_general_deprecated_hg)
|
||||||
|
|
||||||
@OS_WIN32_FALSE@files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc)
|
@OS_WIN32_FALSE@files_hg = $(files_general_hg) $(files_posix_hg) $(files_general_deprecated_hg)
|
||||||
@OS_WIN32_TRUE@files_extra_cc_tmp = $(sublib_files_extra_general_cc) $(sublib_files_extra_win32_cc)
|
@OS_WIN32_TRUE@files_hg = $(files_general_hg) $(files_win32_hg) $(files_general_deprecated_hg)
|
||||||
@OS_WIN32_FALSE@files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_posix_h)
|
files_built_cc = $(files_hg:.hg=.cc) wrap_init.cc
|
||||||
@OS_WIN32_TRUE@files_extra_h_tmp = $(sublib_files_extra_general_h) $(sublib_files_extra_win32_h)
|
files_built_h = $(files_hg:.hg=.h)
|
||||||
files_extra_cc = $(files_extra_cc_tmp)
|
files_all_built_cc = $(files_all_hg:.hg=.cc) wrap_init.cc
|
||||||
files_extra_h = $(files_extra_h_tmp) wrap_init.h
|
files_all_built_h = $(files_all_hg:.hg=.h)
|
||||||
files_extra_all_cc = $(sublib_files_extra_general_cc) $(sublib_files_extra_posix_cc) $(sublib_files_extra_win32_cc)
|
|
||||||
files_extra_all_h = $(sublib_files_extra_general_h) \
|
# Extra files
|
||||||
$(sublib_files_extra_posix_h) $(sublib_files_extra_win32_h) \
|
files_all_extra_cc = \
|
||||||
wrap_init.h
|
$(sublib_files_extra_posix_cc) \
|
||||||
files_all_general_cc = $(files_built_general_cc) $(files_extra_cc)
|
$(sublib_files_extra_win32_cc) \
|
||||||
files_all_posix_cc = $(files_built_posix_cc)
|
$(sublib_files_extra_general_cc) \
|
||||||
files_all_win32_cc = $(files_built_win32_cc)
|
$(sublib_files_extra_general_deprecated_cc)
|
||||||
|
|
||||||
|
files_all_extra_h = $(sublib_files_extra_posix_h) \
|
||||||
|
$(sublib_files_extra_win32_h) $(sublib_files_extra_general_h) \
|
||||||
|
$(sublib_files_extra_general_deprecated_h) wrap_init.h
|
||||||
|
@OS_WIN32_FALSE@files_extra_cc = \
|
||||||
|
@OS_WIN32_FALSE@ $(sublib_files_extra_posix_cc) \
|
||||||
|
@OS_WIN32_FALSE@ $(sublib_files_extra_general_cc)
|
||||||
|
|
||||||
|
@OS_WIN32_TRUE@files_extra_cc = \
|
||||||
|
@OS_WIN32_TRUE@ $(sublib_files_extra_win32_cc) \
|
||||||
|
@OS_WIN32_TRUE@ $(sublib_files_extra_general_cc)
|
||||||
|
|
||||||
|
@OS_WIN32_FALSE@files_extra_h = $(sublib_files_extra_posix_h) \
|
||||||
|
@OS_WIN32_FALSE@ $(sublib_files_extra_general_h) wrap_init.h
|
||||||
|
@OS_WIN32_TRUE@files_extra_h = $(sublib_files_extra_win32_h) \
|
||||||
|
@OS_WIN32_TRUE@ $(sublib_files_extra_general_h) wrap_init.h
|
||||||
@PLATFORM_WIN32_FALSE@extra_win32_defines =
|
@PLATFORM_WIN32_FALSE@extra_win32_defines =
|
||||||
|
|
||||||
# Support for DLL on mingw using libtool > 1.4
|
# Support for DLL on mingw using libtool > 1.4
|
||||||
# When creating DLLs on win32, we need to explicitly add a few extra
|
# When creating DLLs on win32, we need to explicitly add a few extra
|
||||||
# libraries at link time to resolve symbols (remember a dll is like an
|
# libraries at link time to resolve symbols (remember a dll is like an
|
||||||
# executable).
|
# executable).
|
||||||
@PLATFORM_WIN32_TRUE@extra_win32_defines = \
|
@PLATFORM_WIN32_TRUE@extra_win32_defines = \
|
||||||
@PLATFORM_WIN32_TRUE@ -D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
|
@PLATFORM_WIN32_TRUE@ -D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
|
||||||
|
|
||||||
@PLATFORM_WIN32_FALSE@no_undefined =
|
@PLATFORM_WIN32_FALSE@no_undefined =
|
||||||
@PLATFORM_WIN32_TRUE@no_undefined = -no-undefined -Wl,--export-all-symbols
|
@PLATFORM_WIN32_TRUE@no_undefined = -no-undefined -Wl,--export-all-symbols
|
||||||
@PLATFORM_WIN32_FALSE@win32_dlls_extra_libs =
|
@PLATFORM_WIN32_FALSE@win32_dlls_extra_libs =
|
||||||
@PLATFORM_WIN32_TRUE@win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
@PLATFORM_WIN32_TRUE@win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
||||||
common_ldflags = -version-info $(LIBGLIBMM_SO_VERSION) $(no_undefined)
|
common_ldflags = -version-info $(sublib_libversion) $(no_undefined)
|
||||||
all_includes = -I$(top_builddir)/glib -I$(top_srcdir)/glib \
|
|
||||||
|
# All modules can include all other modules,
|
||||||
|
# for instance, so that gdkmm can use headers in pangomm.
|
||||||
|
all_includes = -I$(top_builddir)/$(sublib_topdir) -I$(top_srcdir)/$(sublib_topdir) \
|
||||||
|
-I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_builddir) \
|
||||||
|
-I$(top_builddir)/gio -I$(top_srcdir)/gio \
|
||||||
$(sublib_cflags) $(GTHREAD_CFLAGS)
|
$(sublib_cflags) $(GTHREAD_CFLAGS)
|
||||||
|
|
||||||
extra_defines = -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines) \
|
dist_sources = $(files_all_built_cc) $(files_all_extra_cc) $(files_all_built_h) $(files_all_extra_h)
|
||||||
$(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
|
|
||||||
|
|
||||||
dist_sources = $(files_built_all_cc) $(files_extra_all_cc) \
|
|
||||||
$(files_built_all_h) $(files_extra_all_h)
|
|
||||||
|
|
||||||
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
DEFAULT_INCLUDES =
|
DEFAULT_INCLUDES =
|
||||||
INCLUDES = $(strip $(all_includes))
|
|
||||||
|
# DISABLE_DEPRECATED_CFLAGS and DISABLE_DEPRECATED_API_CFLAGS are empty unless the appropriate --enable-*=no options are specified to configure:
|
||||||
|
INCLUDES = $(strip $(all_includes)) $(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
|
||||||
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
|
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
|
||||||
@OS_WIN32_FALSE@sublib_include_HEADERS = $(files_built_general_h) \
|
sublib_include_HEADERS = $(files_all_built_h) $(files_all_extra_h)
|
||||||
@OS_WIN32_FALSE@ $(files_built_posix_h) \
|
|
||||||
@OS_WIN32_FALSE@ $(files_extra_h)
|
|
||||||
|
|
||||||
@OS_WIN32_TRUE@sublib_include_HEADERS = $(files_built_general_h) \
|
|
||||||
@OS_WIN32_TRUE@ $(files_built_win32_h) \
|
|
||||||
@OS_WIN32_TRUE@ $(files_extra_h)
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libglibmm-2.4.la
|
lib_LTLIBRARIES = libglibmm-2.4.la
|
||||||
@OS_WIN32_FALSE@libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_posix_cc)
|
libglibmm_2_4_la_SOURCES = $(files_built_cc) $(files_extra_cc)
|
||||||
@OS_WIN32_TRUE@libglibmm_2_4_la_SOURCES = $(files_all_general_cc) $(files_all_win32_cc)
|
|
||||||
libglibmm_2_4_la_LDFLAGS = $(common_ldflags)
|
libglibmm_2_4_la_LDFLAGS = $(common_ldflags)
|
||||||
libglibmm_2_4_la_LIBADD = $(GLIBMM_LIBS)
|
libglibmm_2_4_la_LIBADD = $(GLIBMM_LIBS)
|
||||||
all: all-recursive
|
all: all-recursive
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .cc .lo .o .obj
|
.SUFFIXES: .cc .lo .o .obj
|
||||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(srcdir)/../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment $(top_srcdir)/build_shared/Makefile_build_extra.am_fragment $(top_srcdir)/build_shared/Makefile_build.am_fragment $(am__configure_deps)
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/build_shared/Makefile_build.am_fragment $(srcdir)/../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(am__configure_deps)
|
||||||
@for dep in $?; do \
|
@for dep in $?; do \
|
||||||
case '$(am__configure_deps)' in \
|
case '$(am__configure_deps)' in \
|
||||||
*$$dep*) \
|
*$$dep*) \
|
||||||
|
|
@ -463,8 +413,8 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||||
if test -f $$p; then \
|
if test -f $$p; then \
|
||||||
f=$(am__strip_dir) \
|
f=$(am__strip_dir) \
|
||||||
echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
||||||
$(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||||
else :; fi; \
|
else :; fi; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -472,8 +422,8 @@ uninstall-libLTLIBRARIES:
|
||||||
@$(NORMAL_UNINSTALL)
|
@$(NORMAL_UNINSTALL)
|
||||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||||
p=$(am__strip_dir) \
|
p=$(am__strip_dir) \
|
||||||
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
||||||
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean-libLTLIBRARIES:
|
clean-libLTLIBRARIES:
|
||||||
|
|
@ -493,6 +443,7 @@ mostlyclean-compile:
|
||||||
distclean-compile:
|
distclean-compile:
|
||||||
-rm -f *.tab.c
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/checksum.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/class.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/class.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/containers.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/containers.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert.Plo@am__quote@
|
||||||
|
|
@ -511,6 +462,7 @@ distclean-compile:
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/markup.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/markup.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/miscutils.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/miscutils.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module.Plo@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nodetree.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/object.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/object.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/objectbase.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/objectbase.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optioncontext.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optioncontext.Plo@am__quote@
|
||||||
|
|
@ -534,6 +486,7 @@ distclean-compile:
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeval.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeval.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unicode.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unicode.Plo@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uriutils.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ustring.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ustring.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utility.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utility.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/value.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/value.Plo@am__quote@
|
||||||
|
|
@ -661,8 +614,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
done | \
|
done | \
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
mkid -fID $$unique
|
mkid -fID $$unique
|
||||||
tags: TAGS
|
tags: TAGS
|
||||||
|
|
||||||
|
|
@ -687,8 +640,8 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
done | \
|
done | \
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
test -n "$$unique" || unique=$$empty_fix; \
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
|
@ -698,13 +651,12 @@ ctags: CTAGS
|
||||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
$(TAGS_FILES) $(LISP)
|
$(TAGS_FILES) $(LISP)
|
||||||
tags=; \
|
tags=; \
|
||||||
here=`pwd`; \
|
|
||||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
done | \
|
done | \
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
$$tags $$unique
|
$$tags $$unique
|
||||||
|
|
@ -874,33 +826,7 @@ uninstall-am: uninstall-libLTLIBRARIES uninstall-sublib_includeHEADERS
|
||||||
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
maintainer-clean-local:
|
||||||
(cd $(srcdir) && rm -f $(files_built_all_cc) $(files_built_all_h))
|
(cd $(srcdir) && rm -f $(files_all_built_cc) $(files_all_built_h))
|
||||||
|
|
||||||
cvsignore:
|
|
||||||
( \
|
|
||||||
echo ".deps"; \
|
|
||||||
echo ".libs"; \
|
|
||||||
echo "*.la"; \
|
|
||||||
echo "*.lo"; \
|
|
||||||
echo "Makefile"; \
|
|
||||||
echo "Makefile.in"; \
|
|
||||||
echo; \
|
|
||||||
list='$(strip $(files_built_all_cc) $(files_built_all_h))'; \
|
|
||||||
for file in $$list; do \
|
|
||||||
echo "$$file"; \
|
|
||||||
done \
|
|
||||||
) >$(srcdir)/.cvsignore
|
|
||||||
( \
|
|
||||||
echo "Makefile"; \
|
|
||||||
echo "Makefile.in"; \
|
|
||||||
echo; \
|
|
||||||
list='$(strip $(files_all_hg:.hg=_p.h))'; \
|
|
||||||
for file in $$list; do \
|
|
||||||
echo "$$file"; \
|
|
||||||
done \
|
|
||||||
) >$(srcdir)/private/.cvsignore
|
|
||||||
|
|
||||||
.PHONY: cvsignore
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
.NOEXPORT:
|
.NOEXPORT:
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_ARRAYHANDLE_H
|
#ifndef _GLIBMM_ARRAYHANDLE_H
|
||||||
#define _GLIBMM_ARRAYHANDLE_H
|
#define _GLIBMM_ARRAYHANDLE_H
|
||||||
|
|
||||||
/* $Id: arrayhandle.h 32 2003-04-21 17:39:41Z murrayc $ */
|
/* $Id: arrayhandle.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
160
libs/glibmm2/glib/glibmm/checksum.cc
Normal file
160
libs/glibmm2/glib/glibmm/checksum.cc
Normal file
|
|
@ -0,0 +1,160 @@
|
||||||
|
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||||
|
|
||||||
|
|
||||||
|
#include <glibmm/checksum.h>
|
||||||
|
#include <glibmm/private/checksum_p.h>
|
||||||
|
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <glibmm/utility.h>
|
||||||
|
#include <glibmm/checksum.h>
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
Checksum::Checksum(ChecksumType type)
|
||||||
|
: gobject_(g_checksum_new((GChecksumType)type))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
Checksum::operator bool() const
|
||||||
|
{
|
||||||
|
return gobject_ != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
gssize Checksum::get_length(ChecksumType checksum_type)
|
||||||
|
{
|
||||||
|
return g_checksum_type_get_length((GChecksumType)checksum_type);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string Checksum::compute_checksum(ChecksumType type, const std::string& data)
|
||||||
|
{
|
||||||
|
return Glib::convert_return_gchar_ptr_to_ustring(g_compute_checksum_for_string(((GChecksumType)type), data.c_str(), data.size()));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Checksum::update(const std::string& data)
|
||||||
|
{
|
||||||
|
g_checksum_update(gobj(), (const guchar*)data.c_str(), data.size());
|
||||||
|
}
|
||||||
|
|
||||||
|
} // Glib namespace
|
||||||
|
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
} // anonymous namespace
|
||||||
|
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
Glib::Checksum wrap(GChecksum* object, bool take_copy /* = false */)
|
||||||
|
{
|
||||||
|
return Glib::Checksum(object, take_copy);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
Checksum::Checksum()
|
||||||
|
:
|
||||||
|
gobject_ (0) // Allows creation of invalid wrapper, e.g. for output arguments to methods.
|
||||||
|
{}
|
||||||
|
|
||||||
|
Checksum::Checksum(const Checksum& src)
|
||||||
|
:
|
||||||
|
gobject_ ((src.gobject_) ? g_checksum_copy(src.gobject_) : 0)
|
||||||
|
{}
|
||||||
|
|
||||||
|
Checksum::Checksum(GChecksum* castitem, bool make_a_copy /* = false */)
|
||||||
|
{
|
||||||
|
if(!make_a_copy)
|
||||||
|
{
|
||||||
|
// It was given to us by a function which has already made a copy for us to keep.
|
||||||
|
gobject_ = castitem;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// We are probably getting it via direct access to a struct,
|
||||||
|
// so we can not just take it - we have to take a copy of it.
|
||||||
|
if(castitem)
|
||||||
|
gobject_ = g_checksum_copy(castitem);
|
||||||
|
else
|
||||||
|
gobject_ = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Checksum& Checksum::operator=(const Checksum& src)
|
||||||
|
{
|
||||||
|
GChecksum *const new_gobject = (src.gobject_) ? g_checksum_copy(src.gobject_) : 0;
|
||||||
|
|
||||||
|
if(gobject_)
|
||||||
|
g_checksum_free(gobject_);
|
||||||
|
|
||||||
|
gobject_ = new_gobject;
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
Checksum::~Checksum()
|
||||||
|
{
|
||||||
|
if(gobject_)
|
||||||
|
g_checksum_free(gobject_);
|
||||||
|
}
|
||||||
|
|
||||||
|
GChecksum* Checksum::gobj_copy() const
|
||||||
|
{
|
||||||
|
return g_checksum_copy(gobject_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Checksum::reset()
|
||||||
|
{
|
||||||
|
g_checksum_reset(gobj());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Checksum::update(const guchar* data, gsize length)
|
||||||
|
{
|
||||||
|
g_checksum_update(gobj(), data, length);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Checksum::get_digest(guint8 * buffer, gsize * digest_len) const
|
||||||
|
{
|
||||||
|
g_checksum_get_digest(const_cast<GChecksum*>(gobj()), buffer, digest_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string Checksum::get_string() const
|
||||||
|
{
|
||||||
|
return Glib::convert_const_gchar_ptr_to_stdstring(g_checksum_get_string(const_cast<GChecksum*>(gobj())));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string Checksum::compute_checksum(ChecksumType type, const guchar* data, gsize length)
|
||||||
|
{
|
||||||
|
return Glib::convert_return_gchar_ptr_to_stdstring(g_compute_checksum_for_data(((GChecksumType)type), data, length));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
||||||
224
libs/glibmm2/glib/glibmm/checksum.h
Normal file
224
libs/glibmm2/glib/glibmm/checksum.h
Normal file
|
|
@ -0,0 +1,224 @@
|
||||||
|
// -*- c++ -*-
|
||||||
|
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||||
|
#ifndef _GLIBMM_CHECKSUM_H
|
||||||
|
#define _GLIBMM_CHECKSUM_H
|
||||||
|
|
||||||
|
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#ifndef DOXYGEN_SHOUD_SKIP_THIS
|
||||||
|
extern "C" { typedef struct _GChecksum GChecksum; }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
/** Computes the checksum for data.
|
||||||
|
* This is a generic API for computing checksums (or "digests") for a sequence of arbitrary bytes,
|
||||||
|
* using various hashing algorithms like MD5, SHA-1 and SHA-256. Checksums are commonly used in various environments and specifications.
|
||||||
|
*
|
||||||
|
* glibmm supports incremental checksums by calling update() as long as there's data available and then using get_string()
|
||||||
|
* or get_digest() to compute the checksum and return it either as a string in hexadecimal form, or as a raw sequence of bytes.
|
||||||
|
* To compute the checksum for binary blobs and NULL-terminated strings in one go, use the static compute_checksum() convenience functions().
|
||||||
|
*
|
||||||
|
* @newin2p16
|
||||||
|
*/
|
||||||
|
class Checksum
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
|
typedef Checksum CppObjectType;
|
||||||
|
typedef GChecksum BaseObjectType;
|
||||||
|
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||||
|
|
||||||
|
Checksum();
|
||||||
|
|
||||||
|
// Use make_a_copy=true when getting it directly from a struct.
|
||||||
|
explicit Checksum(GChecksum* castitem, bool make_a_copy = false);
|
||||||
|
|
||||||
|
Checksum(const Checksum& src);
|
||||||
|
Checksum& operator=(const Checksum& src);
|
||||||
|
|
||||||
|
~Checksum();
|
||||||
|
|
||||||
|
GChecksum* gobj() { return gobject_; }
|
||||||
|
const GChecksum* gobj() const { return gobject_; }
|
||||||
|
|
||||||
|
///Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
|
||||||
|
GChecksum* gobj_copy() const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
GChecksum* gobject_;
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @class ChecksumType:
|
||||||
|
* @a CHECKSUM_MD5: Use the MD5 hashing algorithm
|
||||||
|
* @a CHECKSUM_SHA1: Use the SHA-1 hashing algorithm
|
||||||
|
* @a CHECKSUM_SHA256: Use the SHA-256 hashing algorithm
|
||||||
|
*
|
||||||
|
* The hashing algorithm to be used by Checksum when performing the
|
||||||
|
* digest of some data.
|
||||||
|
*
|
||||||
|
* Note that the ChecksumType enumeration may be extended at a later
|
||||||
|
* date to include new hashing algorithm types.
|
||||||
|
*
|
||||||
|
* @newin2p16
|
||||||
|
*/
|
||||||
|
/** @addtogroup glibmmEnums Enums and Flags */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ingroup glibmmEnums
|
||||||
|
*/
|
||||||
|
enum ChecksumType
|
||||||
|
{
|
||||||
|
CHECKSUM_MD5,
|
||||||
|
CHECKSUM_SHA1,
|
||||||
|
CHECKSUM_SHA256
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/** Creates a new Checksum, using the checksum algorithm @a checksum_type.
|
||||||
|
* If the checksum_type is not known, then operator bool() will return false.
|
||||||
|
*
|
||||||
|
* @param type checksum type, one of defined above.
|
||||||
|
*/
|
||||||
|
explicit Checksum(ChecksumType checksum_type);
|
||||||
|
|
||||||
|
/** Returns true if the Checksum object is valid.
|
||||||
|
* This will return false, for instance, if an unsupported checksum type was provided to the constructor.
|
||||||
|
*/
|
||||||
|
operator bool() const;
|
||||||
|
|
||||||
|
|
||||||
|
/** Resets the state of the @a checksum back to it's initial state.
|
||||||
|
*
|
||||||
|
* @newin2p18
|
||||||
|
*/
|
||||||
|
void reset();
|
||||||
|
|
||||||
|
|
||||||
|
/** Feeds @a data into an existing Checksum. The checksum must still be
|
||||||
|
* open, that is g_checksum_get_string() or g_checksum_get_digest() must
|
||||||
|
* not have been called on @a checksum.
|
||||||
|
*
|
||||||
|
* @newin2p16
|
||||||
|
* @param data Buffer used to compute the checksum.
|
||||||
|
* @param length Size of the buffer, or -1 if it is a null-terminated string.
|
||||||
|
*/
|
||||||
|
void update(const guchar* data, gsize length);
|
||||||
|
|
||||||
|
/** Feeds data into an existing Checksum.
|
||||||
|
* The checksum must still be open, that is get_string() or get_digest() must not have been called on the checksum.
|
||||||
|
*
|
||||||
|
* @param data Buffer used to compute the checksum
|
||||||
|
*/
|
||||||
|
void update(const std::string& data);
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the digest from @a checksum as a raw binary vector and places it
|
||||||
|
* into @a buffer. The size of the digest depends on the type of checksum.
|
||||||
|
*
|
||||||
|
* Once this function has been called, the Checksum is closed and can
|
||||||
|
* no longer be updated with g_checksum_update().
|
||||||
|
*
|
||||||
|
* @newin2p16
|
||||||
|
* @param buffer Output buffer.
|
||||||
|
* @param digest_len An inout parameter. The caller initializes it to the size of @a buffer.
|
||||||
|
* After the call it contains the length of the digest.
|
||||||
|
*/
|
||||||
|
void get_digest(guint8 *buffer, gsize *digest_len) const;
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the digest as an hexadecimal string.
|
||||||
|
*
|
||||||
|
* Once this function has been called the Checksum can no longer be
|
||||||
|
* updated with g_checksum_update().
|
||||||
|
* @return The hexadecimal representation of the checksum. The
|
||||||
|
* returned string is owned by the checksum and should not be modified
|
||||||
|
* or freed.
|
||||||
|
*
|
||||||
|
* @newin2p16.
|
||||||
|
*/
|
||||||
|
std::string get_string() const;
|
||||||
|
|
||||||
|
|
||||||
|
/** Computes the checksum for a binary @a data of @a length. This is a
|
||||||
|
* convenience wrapper for g_checksum_new(), g_checksum_get_string()
|
||||||
|
* and g_checksum_free().
|
||||||
|
* @param checksum_type A ChecksumType.
|
||||||
|
* @param data Binary blob to compute the digest of.
|
||||||
|
* @param length Length of @a data.
|
||||||
|
* @return The digest of the binary data as a string in hexadecimal.
|
||||||
|
* The returned string should be freed with g_free() when done using it.
|
||||||
|
*
|
||||||
|
* @newin2p16.
|
||||||
|
*/
|
||||||
|
static std::string compute_checksum(ChecksumType type, const guchar* data, gsize length);
|
||||||
|
|
||||||
|
/** Computes the checksum of a string.
|
||||||
|
*
|
||||||
|
* @param checksum_type A ChecksumType
|
||||||
|
* @param str The string to compute the checksum of.
|
||||||
|
* @result The checksum as a hexadecimal string.
|
||||||
|
*/
|
||||||
|
static std::string compute_checksum(ChecksumType type, const std::string& str);
|
||||||
|
|
||||||
|
|
||||||
|
//We don't use _WRAP_METHOD because this is not really a GCheckSum function:
|
||||||
|
/** Gets the length in bytes of digests of type @a checksum_type.
|
||||||
|
*
|
||||||
|
* @param checksum_type A ChecksumType.
|
||||||
|
* @result The checksum length, or -1 if @a checksum_type is not supported.
|
||||||
|
*/
|
||||||
|
static gssize get_length(ChecksumType checksum_type);
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
} //namespace Glib
|
||||||
|
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
/** A Glib::wrap() method for this object.
|
||||||
|
*
|
||||||
|
* @param object The C instance.
|
||||||
|
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
|
||||||
|
* @result A C++ instance that wraps this C instance.
|
||||||
|
*
|
||||||
|
* @relates Glib::Checksum
|
||||||
|
*/
|
||||||
|
Glib::Checksum wrap(GChecksum* object, bool take_copy = false);
|
||||||
|
|
||||||
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _GLIBMM_CHECKSUM_H */
|
||||||
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: class.cc 336 2006-10-04 12:06:14Z murrayc $ */
|
/* $Id: class.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 1998-2002 The gtkmm Development Team
|
/* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,22 @@
|
||||||
#ifndef _GLIBMM_CLASS_H
|
#ifndef _GLIBMM_CLASS_H
|
||||||
#define _GLIBMM_CLASS_H
|
#define _GLIBMM_CLASS_H
|
||||||
|
|
||||||
/* $Id: class.h 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: class.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2001 Free Software Foundation
|
/* Copyright 2001 Free Software Foundation
|
||||||
* Copyright (C) 1998-2002 The gtkmm Development Team
|
* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_CONTAINERHANDLE_SHARED_H
|
#ifndef _GLIBMM_CONTAINERHANDLE_SHARED_H
|
||||||
#define _GLIBMM_CONTAINERHANDLE_SHARED_H
|
#define _GLIBMM_CONTAINERHANDLE_SHARED_H
|
||||||
|
|
||||||
/* $Id: containerhandle_shared.h 322 2006-09-19 20:36:43Z murrayc $ */
|
/* $Id: containerhandle_shared.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -29,7 +29,6 @@
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <glib/gmem.h>
|
|
||||||
#include <glibmm/refptr.h>
|
#include <glibmm/refptr.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <glibmm/wrap.h>
|
#include <glibmm/wrap.h>
|
||||||
|
|
@ -54,11 +53,16 @@ namespace Glib
|
||||||
/**
|
/**
|
||||||
* @ingroup ContHandles
|
* @ingroup ContHandles
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//! Ownership of the container
|
||||||
|
/*! Defines how and if the container will release the list and
|
||||||
|
* its elemens when it is destroyed
|
||||||
|
*/
|
||||||
enum OwnershipType
|
enum OwnershipType
|
||||||
{
|
{
|
||||||
OWNERSHIP_NONE = 0,
|
OWNERSHIP_NONE = 0, /*!< Do not release anything */
|
||||||
OWNERSHIP_SHALLOW, //Release the list, but not its elements, when the container is deleted
|
OWNERSHIP_SHALLOW, /*!< Release the list, but not its elements, when the container is deleted */
|
||||||
OWNERSHIP_DEEP //Release the list, and its elements, when the container is deleted.
|
OWNERSHIP_DEEP /*!< Release the list, and its elements, when the container is deleted. */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -314,40 +318,22 @@ struct TypeTraits<std::string>
|
||||||
{ g_free(const_cast<CTypeNonConst>(str)); }
|
{ g_free(const_cast<CTypeNonConst>(str)); }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Specialization for bool
|
/** Specialization for bool.
|
||||||
* @ingroup ContHelpers
|
* @ingroup ContHelpers
|
||||||
*/
|
*/
|
||||||
template <>
|
template <>
|
||||||
struct TypeTraits<bool>
|
struct TypeTraits<bool>
|
||||||
{
|
{
|
||||||
typedef bool CppType;
|
typedef bool CppType;
|
||||||
typedef gboolean* CType;
|
typedef gboolean CType;
|
||||||
typedef gboolean* CTypeNonConst;
|
typedef gboolean CTypeNonConst;
|
||||||
|
|
||||||
static CType to_c_type (CppType val) { return (int*)GINT_TO_POINTER(val); }
|
static CType to_c_type (CppType item) { return static_cast<CType>(item); }
|
||||||
static CType to_c_type (CType ptr) { return ptr; }
|
static CType to_c_type (CType item) { return item; }
|
||||||
|
static CppType to_cpp_type (CType item) { return (item != 0); }
|
||||||
static CppType to_cpp_type(CType ptr)
|
static void release_c_type (CType) {}
|
||||||
{
|
|
||||||
if(ptr)
|
|
||||||
{
|
|
||||||
//We use this for gboolean too, because it is actually an int.
|
|
||||||
return GPOINTER_TO_INT(ptr);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return CppType();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void release_c_type(CType /* ptr */)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
|
||||||
#ifndef GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS
|
#ifndef GLIBMM_HAVE_TEMPLATE_SEQUENCE_CTORS
|
||||||
|
|
||||||
/* The STL containers in Sun's libCstd don't support templated sequence
|
/* The STL containers in Sun's libCstd don't support templated sequence
|
||||||
|
|
@ -368,6 +354,4 @@ void fill_container(Cont& container, In pbegin, In pend)
|
||||||
|
|
||||||
} // namespace Glib
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
||||||
#endif /* _GLIBMM_CONTAINERHANDLE_SHARED_H */
|
#endif /* _GLIBMM_CONTAINERHANDLE_SHARED_H */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
|
|
||||||
/* $Id: containers.cc 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: containers.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* containers.h
|
/* containers.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998-2002 The gtkmm Development Team
|
* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,29 +2,28 @@
|
||||||
#ifndef _GLIBMM_CONTAINERS_H
|
#ifndef _GLIBMM_CONTAINERS_H
|
||||||
#define _GLIBMM_CONTAINERS_H
|
#define _GLIBMM_CONTAINERS_H
|
||||||
|
|
||||||
/* $Id: containers.h 229 2005-11-23 07:22:43Z murrayc $ */
|
/* $Id: containers.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* containers.h
|
/* containers.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998-2002 The gtkmm Development Team
|
* Copyright (C) 1998-2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/glist.h>
|
#include <glib.h>
|
||||||
#include <glib/gslist.h>
|
|
||||||
#include <glibmm/sarray.h> /* for backward compatibility */
|
#include <glibmm/sarray.h> /* for backward compatibility */
|
||||||
|
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
|
||||||
|
|
@ -10,23 +10,24 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gconvert.h>
|
//#include <glib/gtestutils.h> //For g_assert() in glib >= 2.15.0
|
||||||
#include <glib.h>
|
//#include <glib/gmessages.h> //For g_assert() in glib < 2.15.0
|
||||||
#include <glib/gunicode.h>
|
#include <glib.h> //For g_assert() in all versions of glib.
|
||||||
|
|
||||||
#include <glibmm/utility.h>
|
#include <glibmm/utility.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,22 +9,22 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <glib/gtypes.h> /* for gsize */
|
#include <glib.h> /* for gsize */
|
||||||
|
|
||||||
#include <glibmm/error.h>
|
#include <glibmm/error.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
|
|
|
||||||
|
|
@ -10,22 +10,23 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gmem.h>
|
//#include <glib/gtestutils.h> //For g_assert() in glib >= 2.15.0
|
||||||
#include <glib.h>
|
//#include <glib/gmessages.h> //For g_assert() in glib < 2.15.0
|
||||||
|
#include <glib.h> //For g_assert() in all versions of glib.
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
@ -61,6 +62,20 @@ Date::Date(const GDate& castitem)
|
||||||
gobject_ (castitem)
|
gobject_ (castitem)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Date::Date(const Date& other)
|
||||||
|
{
|
||||||
|
g_date_clear(&gobject_, 1);
|
||||||
|
g_date_set_julian(&gobject_, other.get_julian());
|
||||||
|
}
|
||||||
|
|
||||||
|
Date& Date::operator=(const Date& other)
|
||||||
|
{
|
||||||
|
if (&other != this)
|
||||||
|
g_date_set_julian(&gobject_, other.get_julian());
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
void Date::clear()
|
void Date::clear()
|
||||||
{
|
{
|
||||||
g_date_clear(&gobject_, 1);
|
g_date_clear(&gobject_, 1);
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -28,8 +28,7 @@
|
||||||
|
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
|
|
||||||
#include <glib/gdate.h>
|
#include <glib.h>
|
||||||
#include <glib/gtypes.h>
|
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
extern "C" { struct tm; }
|
extern "C" { struct tm; }
|
||||||
|
|
@ -100,18 +99,63 @@ enum DMY
|
||||||
static const Year BAD_YEAR = 0;
|
static const Year BAD_YEAR = 0;
|
||||||
static const guint32 BAD_JULIAN = 0;
|
static const guint32 BAD_JULIAN = 0;
|
||||||
|
|
||||||
|
/** Construct an undefined date.
|
||||||
|
*/
|
||||||
Date();
|
Date();
|
||||||
|
|
||||||
|
/** Construct a date with the given day, month and year.
|
||||||
|
* @param day The day.
|
||||||
|
* @param month The month.
|
||||||
|
* @param year The year.
|
||||||
|
*/
|
||||||
Date(Day day, Month month, Year year);
|
Date(Day day, Month month, Year year);
|
||||||
|
|
||||||
|
/** Construct a date from a julian day.
|
||||||
|
* @param julian_day The julian day (guint32).
|
||||||
|
*/
|
||||||
explicit Date(guint32 julian_day);
|
explicit Date(guint32 julian_day);
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
/** Construct a Glib::Date by copying the contents of a GDate.
|
||||||
explicit Date(const GDate& castitem);
|
* @param castitem The GDate.
|
||||||
#endif
|
*
|
||||||
|
* @newin2p18
|
||||||
void clear();
|
|
||||||
/** Clear the date. The cleared dates will not represent an existing date, but will not contain garbage.
|
|
||||||
* @param month Month to set.
|
|
||||||
*/
|
*/
|
||||||
|
explicit Date(const GDate& castitem);
|
||||||
|
|
||||||
|
/** Construct a Glib::Date from another.
|
||||||
|
* @param other the other Glib::Date.
|
||||||
|
*
|
||||||
|
* @newin2p18
|
||||||
|
*/
|
||||||
|
Date(const Date& other);
|
||||||
|
|
||||||
|
/** Assign another date to this one. For example:
|
||||||
|
* @code
|
||||||
|
* ...
|
||||||
|
* Glib::Date my_date;
|
||||||
|
* my_date = other_date;
|
||||||
|
* @endcode
|
||||||
|
*
|
||||||
|
* @param other The other Glib::Date.
|
||||||
|
*
|
||||||
|
* @newin2p18
|
||||||
|
*/
|
||||||
|
Date& operator=(const Date& other);
|
||||||
|
|
||||||
|
/// Provides access to the underlying C instance.
|
||||||
|
GDate* gobj() { return &gobject_; }
|
||||||
|
|
||||||
|
/// Provides access to the underlying C instance.
|
||||||
|
const GDate* gobj() const { return &gobject_; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
GDate gobject_;
|
||||||
|
|
||||||
|
public:
|
||||||
|
/** Clear the date. The cleared dates will not represent an existing date,
|
||||||
|
* but will not contain garbage.
|
||||||
|
*/
|
||||||
|
void clear();
|
||||||
|
|
||||||
/** Parses a user-inputted string str, and try to figure out what date it represents, taking the current locale into account. If the string is successfully parsed, the date will be valid after the call. Otherwise, it will be invalid.
|
/** Parses a user-inputted string str, and try to figure out what date it represents, taking the current locale into account. If the string is successfully parsed, the date will be valid after the call. Otherwise, it will be invalid.
|
||||||
* This function is not appropriate for file formats and the like; it isn't very precise, and its exact behavior varies with the locale. It's intended to be a heuristic routine that guesses what the user means by a given string (and it does work pretty well in that capacity).
|
* This function is not appropriate for file formats and the like; it isn't very precise, and its exact behavior varies with the locale. It's intended to be a heuristic routine that guesses what the user means by a given string (and it does work pretty well in that capacity).
|
||||||
|
|
@ -160,6 +204,8 @@ enum DMY
|
||||||
*/
|
*/
|
||||||
void set_time(const GTimeVal& timeval);
|
void set_time(const GTimeVal& timeval);
|
||||||
|
|
||||||
|
/** Set this Glib::Date to the current time.
|
||||||
|
*/
|
||||||
void set_time_current();
|
void set_time_current();
|
||||||
|
|
||||||
/** Sets the month of the year. If the resulting day-month-year triplet is invalid, the date will be invalid.
|
/** Sets the month of the year. If the resulting day-month-year triplet is invalid, the date will be invalid.
|
||||||
|
|
@ -191,7 +237,6 @@ enum DMY
|
||||||
|
|
||||||
//TODO: Why return Date& (which is always *this) from these methods?
|
//TODO: Why return Date& (which is always *this) from these methods?
|
||||||
//Isn't it enough to also change the current instance?
|
//Isn't it enough to also change the current instance?
|
||||||
//Maybe we need a copy constructor too.
|
|
||||||
//murrayc
|
//murrayc
|
||||||
|
|
||||||
/** Add a number of days to a Date.
|
/** Add a number of days to a Date.
|
||||||
|
|
@ -419,14 +464,6 @@ enum DMY
|
||||||
* @return true if the date is a valid one.
|
* @return true if the date is a valid one.
|
||||||
*/
|
*/
|
||||||
static bool valid_dmy(Day day, Month month, Year year);
|
static bool valid_dmy(Day day, Month month, Year year);
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
|
||||||
GDate* gobj() { return &gobject_; }
|
|
||||||
const GDate* gobj() const { return &gobject_; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
|
||||||
GDate gobject_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,18 @@
|
||||||
/* $Id: debug.cc 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: debug.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,35 +2,33 @@
|
||||||
#ifndef _GLIBMM_DEBUG_H
|
#ifndef _GLIBMM_DEBUG_H
|
||||||
#define _GLIBMM_DEBUG_H
|
#define _GLIBMM_DEBUG_H
|
||||||
|
|
||||||
/* $Id: debug.h 17 2003-01-22 12:09:02Z murrayc $ */
|
/* $Id: debug.h 785 2009-02-17 19:03:06Z daniel $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gmacros.h>
|
#include <glib.h>
|
||||||
#include <glibmmconfig.h>
|
#include <glibmmconfig.h>
|
||||||
|
|
||||||
// Some stuff that's useful when debugging gtkmm internals:
|
// Some stuff that's useful when debugging gtkmm internals:
|
||||||
|
|
||||||
#ifdef GLIBMM_DEBUG_REFCOUNTING
|
#ifdef GLIBMM_DEBUG_REFCOUNTING
|
||||||
|
|
||||||
#include <glib.h>
|
/* We can't use the equivalent GLib macro because it's always disabled in C++,
|
||||||
|
|
||||||
/* We can't use G_GNUC_PRETTY_FUNCTION because it's always disabled in C++,
|
|
||||||
* even though __PRETTY_FUNCTION__ works fine in C++ as well if you use it
|
* even though __PRETTY_FUNCTION__ works fine in C++ as well if you use it
|
||||||
* right (i.e. concatenation with string literals isn't allowed).
|
* right (i.e. concatenation with string literals isn't allowed).
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: dispatcher.cc 370 2007-01-20 10:53:28Z daniel $ */
|
/* $Id: dispatcher.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_DISPATCHER_H
|
#ifndef _GLIBMM_DISPATCHER_H
|
||||||
#define _GLIBMM_DISPATCHER_H
|
#define _GLIBMM_DISPATCHER_H
|
||||||
|
|
||||||
/* $Id: dispatcher.h 370 2007-01-20 10:53:28Z daniel $ */
|
/* $Id: dispatcher.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,28 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: error.cc 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: error.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* error.cc
|
/* error.cc
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gerror.h>
|
//#include <glib/gtestutils.h> //For g_assert() in glib >= 2.15.0
|
||||||
#include <glib.h>
|
//#include <glib/gmessages.h> //For g_assert() in glib < 2.15.0
|
||||||
|
#include <glib.h> //For g_assert() in all versions of glib.
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <glibmmconfig.h>
|
#include <glibmmconfig.h>
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_ERROR_H
|
#ifndef _GLIBMM_ERROR_H
|
||||||
#define _GLIBMM_ERROR_H
|
#define _GLIBMM_ERROR_H
|
||||||
/* $Id: error.h 336 2006-10-04 12:06:14Z murrayc $ */
|
/* $Id: error.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
extern "C" { typedef struct _GError GError; }
|
extern "C" { typedef struct _GError GError; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <glib/gquark.h>
|
#include <glib.h>
|
||||||
#include <glibmm/exception.h>
|
#include <glibmm/exception.h>
|
||||||
#include <glibmmconfig.h> //For GLIBMM_EXCEPTIONS_ENABLED
|
#include <glibmmconfig.h> //For GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,29 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: exception.cc 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: exception.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* exception.cc
|
/* exception.cc
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib.h>
|
//#include <glib/gtestutils.h> //For g_assert() in glib >= 2.15.0
|
||||||
|
//#include <glib/gmessages.h> //For g_assert() in glib < 2.15.0
|
||||||
|
#include <glib.h> //For g_assert() in all versions of glib.
|
||||||
|
|
||||||
#include <glibmm/exception.h>
|
#include <glibmm/exception.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_EXCEPTION_H
|
#ifndef _GLIBMM_EXCEPTION_H
|
||||||
#define _GLIBMM_EXCEPTION_H
|
#define _GLIBMM_EXCEPTION_H
|
||||||
/* $Id: exception.h 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: exception.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* exception.h
|
/* exception.h
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: exceptionhandler.cc 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: exceptionhandler.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* exceptionhandler.cc
|
/* exceptionhandler.cc
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,23 +2,23 @@
|
||||||
#ifndef _GLIBMM_EXCEPTIONHANDLER_H
|
#ifndef _GLIBMM_EXCEPTIONHANDLER_H
|
||||||
#define _GLIBMM_EXCEPTIONHANDLER_H
|
#define _GLIBMM_EXCEPTIONHANDLER_H
|
||||||
|
|
||||||
/* $Id: exceptionhandler.h 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: exceptionhandler.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* exceptionhandler.h
|
/* exceptionhandler.h
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,23 +10,21 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gdir.h>
|
#include <glib.h>
|
||||||
#include <glib/gfileutils.h>
|
|
||||||
#include <glib/gstrfuncs.h>
|
|
||||||
#include <glibmm/utility.h>
|
#include <glibmm/utility.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -58,7 +56,7 @@ Dir::~Dir()
|
||||||
std::string Dir::read_name()
|
std::string Dir::read_name()
|
||||||
{
|
{
|
||||||
const char *const name = g_dir_read_name(gobject_);
|
const char *const name = g_dir_read_name(gobject_);
|
||||||
return (name) ? std::string(name) : std::string();
|
return Glib::convert_const_gchar_ptr_to_stdstring(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Dir::rewind()
|
void Dir::rewind()
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_HELPERLIST_H
|
#ifndef _GLIBMM_HELPERLIST_H
|
||||||
#define _GLIBMM_HELPERLIST_H
|
#define _GLIBMM_HELPERLIST_H
|
||||||
/* $Id: helperlist.h 386 2007-03-23 17:31:16Z murrayc $ */
|
/* $Id: helperlist.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* helperlist.h
|
/* helperlist.h
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -110,7 +110,8 @@ public:
|
||||||
{
|
{
|
||||||
size_type j = 0;
|
size_type j = 0;
|
||||||
iterator i;
|
iterator i;
|
||||||
for(i = begin(), j = 0; i != end(), j < l; ++i, ++j);
|
for(i = begin(), j = 0; i != end(), j < l; ++i, ++j)
|
||||||
|
;
|
||||||
return (*i);
|
return (*i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
30
libs/glibmm2/glib/glibmm/i18n-lib.h
Normal file
30
libs/glibmm2/glib/glibmm/i18n-lib.h
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
// -*- c++ -*-
|
||||||
|
#ifndef _GLIBMM_I18N_LIB_H
|
||||||
|
#define _GLIBMM_I18N_LIB_H
|
||||||
|
|
||||||
|
/* $Id: i18n-lib.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Include this file to define internationalization macros such as _().
|
||||||
|
// This file must be included by the application, after system headers such as <iostream>.
|
||||||
|
|
||||||
|
#include <glib/gi18n-lib.h>
|
||||||
|
|
||||||
|
#endif /* _GLIBMM_I18N_LIB_H */
|
||||||
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_I18N_H
|
#ifndef _GLIBMM_I18N_H
|
||||||
#define _GLIBMM_I18N_H
|
#define _GLIBMM_I18N_H
|
||||||
|
|
||||||
/* $Id: i18n.h 77 2004-03-02 23:29:57Z murrayc $ */
|
/* $Id: i18n.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: init.cc 54 2003-11-03 09:27:33Z murrayc $ */
|
/* $Id: init.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2003 The glibmm Development Team
|
/* Copyright (C) 2003 The glibmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_INIT_H
|
#ifndef _GLIBMM_INIT_H
|
||||||
#define _GLIBMM_INIT_H
|
#define _GLIBMM_INIT_H
|
||||||
|
|
||||||
/* $Id: init.h 54 2003-11-03 09:27:33Z murrayc $ */
|
/* $Id: init.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -26,7 +26,7 @@ namespace Glib
|
||||||
|
|
||||||
/** Initialize glibmm.
|
/** Initialize glibmm.
|
||||||
* You may call this more than once.
|
* You may call this more than once.
|
||||||
* You do nott need to call this if you are using Glib::MainLoop or Gtk::Main,
|
* You do not need to call this if you are using Glib::MainLoop or Gtk::Main,
|
||||||
* because they call it for you.
|
* because they call it for you.
|
||||||
*/
|
*/
|
||||||
void init();
|
void init();
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: interface.cc 209 2005-03-07 15:42:20Z murrayc $ */
|
/* $Id: interface.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_INTERFACE_H
|
#ifndef _GLIBMM_INTERFACE_H
|
||||||
#define _GLIBMM_INTERFACE_H
|
#define _GLIBMM_INTERFACE_H
|
||||||
|
|
||||||
/* $Id: interface.h 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: interface.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -41,7 +41,20 @@ public:
|
||||||
typedef GTypeInterface BaseClassType;
|
typedef GTypeInterface BaseClassType;
|
||||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||||
|
|
||||||
|
/** Called by constructors of derived classes. Provide the result of
|
||||||
|
* the Class object's init() function to ensure that it is properly
|
||||||
|
* initialized.
|
||||||
|
*
|
||||||
|
* @param interface_class The Class object for the derived type.
|
||||||
|
*/
|
||||||
explicit Interface(const Glib::Interface_Class& interface_class);
|
explicit Interface(const Glib::Interface_Class& interface_class);
|
||||||
|
|
||||||
|
/** Called by constructors of derived classes.
|
||||||
|
*
|
||||||
|
* @param cast_item A C instance that will be wrapped by the new
|
||||||
|
* C++ instance. This does not take a reference, so call reference()
|
||||||
|
* if necessary.
|
||||||
|
*/
|
||||||
explicit Interface(GObject* castitem);
|
explicit Interface(GObject* castitem);
|
||||||
virtual ~Interface();
|
virtual ~Interface();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -28,7 +28,6 @@
|
||||||
#include <glibmm/iochannel.h>
|
#include <glibmm/iochannel.h>
|
||||||
#include <glibmm/utility.h>
|
#include <glibmm/utility.h>
|
||||||
#include <glibmm/main.h>
|
#include <glibmm/main.h>
|
||||||
#include <glib.h>
|
|
||||||
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
|
@ -449,12 +448,15 @@ Glib::RefPtr<IOChannel> wrap(GIOChannel* gobject, bool take_copy)
|
||||||
|
|
||||||
/**** Glib::GlibmmIOChannel ************************************************/
|
/**** Glib::GlibmmIOChannel ************************************************/
|
||||||
|
|
||||||
// static
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
GIOStatus GlibmmIOChannel::io_read(GIOChannel* channel, char* buf, gsize count,
|
GIOStatus GlibmmIOChannel::io_read(GIOChannel* channel, char* buf, gsize count,
|
||||||
gsize* bytes_read, GError** err)
|
gsize* bytes_read, GError** err)
|
||||||
|
#else
|
||||||
|
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
GIOStatus GlibmmIOChannel::io_read(GIOChannel* channel, char* buf, gsize count,
|
||||||
|
gsize* bytes_read, GError** /* err */)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
|
||||||
|
|
||||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||||
|
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -477,12 +479,15 @@ GIOStatus GlibmmIOChannel::io_read(GIOChannel* channel, char* buf, gsize count,
|
||||||
return G_IO_STATUS_ERROR;
|
return G_IO_STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
GIOStatus GlibmmIOChannel::io_write(GIOChannel* channel, const char* buf, gsize count,
|
GIOStatus GlibmmIOChannel::io_write(GIOChannel* channel, const char* buf, gsize count,
|
||||||
gsize* bytes_written, GError** err)
|
gsize* bytes_written, GError** err)
|
||||||
|
#else
|
||||||
|
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
GIOStatus GlibmmIOChannel::io_write(GIOChannel* channel, const char* buf, gsize count,
|
||||||
|
gsize* bytes_written, GError** /* err */)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
|
||||||
|
|
||||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||||
|
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -505,11 +510,13 @@ GIOStatus GlibmmIOChannel::io_write(GIOChannel* channel, const char* buf, gsize
|
||||||
return G_IO_STATUS_ERROR;
|
return G_IO_STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
GIOStatus GlibmmIOChannel::io_seek(GIOChannel* channel, gint64 offset, GSeekType type, GError** err)
|
GIOStatus GlibmmIOChannel::io_seek(GIOChannel* channel, gint64 offset, GSeekType type, GError** err)
|
||||||
|
#else
|
||||||
|
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
GIOStatus GlibmmIOChannel::io_seek(GIOChannel* channel, gint64 offset, GSeekType type, GError** /* err */)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
|
||||||
|
|
||||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||||
|
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -532,11 +539,13 @@ GIOStatus GlibmmIOChannel::io_seek(GIOChannel* channel, gint64 offset, GSeekType
|
||||||
return G_IO_STATUS_ERROR;
|
return G_IO_STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
GIOStatus GlibmmIOChannel::io_close(GIOChannel* channel, GError** err)
|
GIOStatus GlibmmIOChannel::io_close(GIOChannel* channel, GError** err)
|
||||||
|
#else
|
||||||
|
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
GIOStatus GlibmmIOChannel::io_close(GIOChannel* channel, GError** /* err */)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
|
||||||
|
|
||||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||||
|
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -594,11 +603,13 @@ void GlibmmIOChannel::io_free(GIOChannel* channel)
|
||||||
g_free(channel);
|
g_free(channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
GIOStatus GlibmmIOChannel::io_set_flags(GIOChannel* channel, GIOFlags flags, GError** err)
|
GIOStatus GlibmmIOChannel::io_set_flags(GIOChannel* channel, GIOFlags flags, GError** err)
|
||||||
|
#else
|
||||||
|
//Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
GIOStatus GlibmmIOChannel::io_set_flags(GIOChannel* channel, GIOFlags flags, GError** /* err */)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if(!&err) err = err; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
|
||||||
|
|
||||||
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
IOChannel *const wrapper = reinterpret_cast<GlibmmIOChannel*>(channel)->wrapper;
|
||||||
|
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
#include <glibmm/main.h>
|
#include <glibmm/main.h>
|
||||||
#include <glibmm/refptr.h>
|
#include <glibmm/refptr.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <glib/gtypes.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <glibmmconfig.h>
|
#include <glibmmconfig.h>
|
||||||
|
|
@ -269,11 +269,10 @@ public:
|
||||||
* @throw Glib::ConvertError
|
* @throw Glib::ConvertError
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** This function cannot be called on a channel with <tt>0</tt> encoding.
|
/** Reads a Unicode character from @a channel.
|
||||||
|
* This function cannot be called on a channel with <tt>0</tt> encoding.
|
||||||
* @param thechar A location to return a character.
|
* @param thechar A location to return a character.
|
||||||
* @param error A location to return an error of type G::ConvertError
|
* @return A IOStatus.
|
||||||
* or G::IOChannelError.
|
|
||||||
* @return A G::IOStatus.
|
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
IOStatus read(gunichar& thechar);
|
IOStatus read(gunichar& thechar);
|
||||||
|
|
@ -305,8 +304,6 @@ public:
|
||||||
* success if count < 6 and the channel's encoding is non-<tt>0</tt>.
|
* success if count < 6 and the channel's encoding is non-<tt>0</tt>.
|
||||||
* This indicates that the next UTF-8 character is too wide for
|
* This indicates that the next UTF-8 character is too wide for
|
||||||
* the buffer.
|
* the buffer.
|
||||||
* @param error A location to return an error of type G::ConvertError
|
|
||||||
* or G::IOChannelError.
|
|
||||||
* @return The status of the operation.
|
* @return The status of the operation.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -392,12 +389,10 @@ public:
|
||||||
* @param count The size of the buffer. If -1, the buffer
|
* @param count The size of the buffer. If -1, the buffer
|
||||||
* is taken to be a nul-terminated string.
|
* is taken to be a nul-terminated string.
|
||||||
* @param bytes_written The number of bytes written. This can be nonzero
|
* @param bytes_written The number of bytes written. This can be nonzero
|
||||||
* even if the return value is not G::IO_STATUS_NORMAL.
|
* even if the return value is not IO_STATUS_NORMAL.
|
||||||
* If the return value is G::IO_STATUS_NORMAL and the
|
* If the return value is IO_STATUS_NORMAL and the
|
||||||
* channel is blocking, this will always be equal
|
* channel is blocking, this will always be equal
|
||||||
* to @a count if @a count >= 0.
|
* to @a count if @a count >= 0.
|
||||||
* @param error A location to return an error of type G::ConvertError
|
|
||||||
* or G::IOChannelError.
|
|
||||||
* @return The status of the operation.
|
* @return The status of the operation.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -414,11 +409,10 @@ public:
|
||||||
* @throw Glib::ConvertError
|
* @throw Glib::ConvertError
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** This function cannot be called on a channel with <tt>0</tt> encoding.
|
/** Writes a Unicode character to @a channel.
|
||||||
|
* This function cannot be called on a channel with <tt>0</tt> encoding.
|
||||||
* @param thechar A character.
|
* @param thechar A character.
|
||||||
* @param error A location to return an error of type G::ConvertError
|
* @return A IOStatus.
|
||||||
* or G::IOChannelError.
|
|
||||||
* @return A G::IOStatus.
|
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
IOStatus write(gunichar unichar);
|
IOStatus write(gunichar unichar);
|
||||||
|
|
@ -438,12 +432,11 @@ public:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Replacement for g_io_channel_seek() with the new API.
|
/** Replacement for g_io_channel_seek() with the new API.
|
||||||
* @param offset The offset in bytes from the position specified by @a type .
|
* @param offset The offset in bytes from the position specified by @a type.
|
||||||
* @param type A G::SeekType. The type G::SEEK_CUR is only allowed in those
|
* @param type A SeekType. The type SEEK_CUR is only allowed in those
|
||||||
* cases where a call to g_io_channel_set_encoding()
|
* cases where a call to g_io_channel_set_encoding()
|
||||||
* is allowed. See the documentation for
|
* is allowed. See the documentation for
|
||||||
* g_io_channel_set_encoding() for details.
|
* g_io_channel_set_encoding() for details.
|
||||||
* @param error A location to return an error of type G::IOChannelError.
|
|
||||||
* @return The status of the operation.
|
* @return The status of the operation.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -460,10 +453,9 @@ public:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Flushes the write buffer for the GIOChannel.
|
/** Flushes the write buffer for the GIOChannel.
|
||||||
* @param error Location to store an error of type G::IOChannelError.
|
|
||||||
* @return The status of the operation: One of
|
* @return The status of the operation: One of
|
||||||
* G::IO_CHANNEL_NORMAL, G::IO_CHANNEL_AGAIN, or
|
* IO_CHANNEL_NORMAL, IO_CHANNEL_AGAIN, or
|
||||||
* G::IO_CHANNEL_ERROR.
|
* IO_CHANNEL_ERROR.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
IOStatus flush();
|
IOStatus flush();
|
||||||
|
|
@ -482,10 +474,10 @@ public:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Close an IO channel. Any pending data to be written will be
|
/** Close an IO channel. Any pending data to be written will be
|
||||||
* flushed if @a flush is <tt>true</tt>. The channel will not be freed until the
|
* flushed if @a flush is <tt>true</tt>. The channel will not be freed until the
|
||||||
* last reference is dropped using g_io_channel_unref().
|
* last reference is dropped using g_io_channel_unref().
|
||||||
* @param flush If <tt>true</tt>, flush pending.
|
* @param flush If <tt>true</tt>, flush pending.
|
||||||
* @param err Location to store a G::IOChannelError.
|
* @param err Location to store a IOChannelError.
|
||||||
* @return The status of the operation.
|
* @return The status of the operation.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -509,7 +501,7 @@ public:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Sets the buffer size.
|
/** Sets the buffer size.
|
||||||
* @param size The size of the buffer. 0 == pick a good size.
|
* @param size The size of the buffer, or 0 to let GLib pick a good size.
|
||||||
*/
|
*/
|
||||||
void set_buffer_size(gsize size);
|
void set_buffer_size(gsize size);
|
||||||
|
|
||||||
|
|
@ -525,10 +517,10 @@ public:
|
||||||
* @return Bitwise combination of the flags set on the channel.
|
* @return Bitwise combination of the flags set on the channel.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Gets the current flags for a G::IOChannel, including read-only
|
/** Gets the current flags for a IOChannel, including read-only
|
||||||
* flags such as G::IO_FLAG_IS_READABLE.
|
* flags such as IO_FLAG_IS_READABLE.
|
||||||
*
|
*
|
||||||
* The values of the flags G::IO_FLAG_IS_READABLE and G::IO_FLAG_IS_WRITEABLE
|
* The values of the flags IO_FLAG_IS_READABLE and IO_FLAG_IS_WRITEABLE
|
||||||
* are cached for internal use by the channel when it is created.
|
* are cached for internal use by the channel when it is created.
|
||||||
* If they should change at some later point (e.g. partial shutdown
|
* If they should change at some later point (e.g. partial shutdown
|
||||||
* of a socket with the UNIX shutdown() function), the user
|
* of a socket with the UNIX shutdown() function), the user
|
||||||
|
|
@ -544,9 +536,8 @@ public:
|
||||||
* @throw Glib::IOChannelError
|
* @throw Glib::IOChannelError
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Sets the (writeable) flags in @a channel to ( @a flags & G::IO_CHANNEL_SET_MASK).
|
/** Sets the (writeable) flags in @a channel to ( @a flags & IO_CHANNEL_SET_MASK).
|
||||||
* @param flags The flags to set on the IO channel.
|
* @param flags The flags to set on the IO channel.
|
||||||
* @param error A location to return an error of type G::IOChannelError.
|
|
||||||
* @return The status of the operation.
|
* @return The status of the operation.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -579,11 +570,11 @@ public:
|
||||||
*
|
*
|
||||||
* A buffered channel can only be set unbuffered if the channel's
|
* A buffered channel can only be set unbuffered if the channel's
|
||||||
* internal buffers have been flushed. Newly created channels or
|
* internal buffers have been flushed. Newly created channels or
|
||||||
* channels which have returned G::IO_STATUS_EOF
|
* channels which have returned IO_STATUS_EOF
|
||||||
* not require such a flush. For write-only channels, a call to
|
* not require such a flush. For write-only channels, a call to
|
||||||
* g_io_channel_flush() is sufficient. For all other channels,
|
* g_io_channel_flush() is sufficient. For all other channels,
|
||||||
* the buffers may be flushed by a call to g_io_channel_seek_position().
|
* the buffers may be flushed by a call to g_io_channel_seek_position().
|
||||||
* This includes the possibility of seeking with seek type G::SEEK_CUR
|
* This includes the possibility of seeking with seek type SEEK_CUR
|
||||||
* and an offset of zero. Note that this means that socket-based
|
* and an offset of zero. Note that this means that socket-based
|
||||||
* channels cannot be set unbuffered once they have had data
|
* channels cannot be set unbuffered once they have had data
|
||||||
* read from them.
|
* read from them.
|
||||||
|
|
@ -601,8 +592,8 @@ public:
|
||||||
* @return The buffering status of the channel.
|
* @return The buffering status of the channel.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Return Value: <tt>true</tt> if the @a channel is buffered.
|
/** Return Value: <tt>true</tt> if the @a channel is buffered.
|
||||||
* @return <tt>true</tt> if the @a channel is buffered.
|
* @return <tt>true</tt> if the @a channel is buffered.
|
||||||
*/
|
*/
|
||||||
bool get_buffered() const;
|
bool get_buffered() const;
|
||||||
|
|
||||||
|
|
@ -612,11 +603,10 @@ public:
|
||||||
* @return Bitwise combination of Glib::IOCondition flags.
|
* @return Bitwise combination of Glib::IOCondition flags.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** This function returns a G::IOCondition depending on whether there
|
/** This function returns a IOCondition depending on whether there
|
||||||
* is data to be read/space to write data in the
|
* is data to be read/space to write data in the internal buffers in
|
||||||
* internal buffers in the G::IOChannel. Only the flags G::IO_IN and
|
* the IOChannel. Only the flags IO_IN and IO_OUT may be set.
|
||||||
* G::IO_OUT may be set.
|
* @return A IOCondition.
|
||||||
* @return A G::IOCondition.
|
|
||||||
*/
|
*/
|
||||||
IOCondition get_buffer_condition() const;
|
IOCondition get_buffer_condition() const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,16 @@
|
||||||
/* Copyright 2006 The gtkmm Development Team
|
/* Copyright 2006 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -41,61 +41,94 @@ KeyFile::KeyFile(GKeyFile* castitem, bool takes_ownership)
|
||||||
KeyFile::~KeyFile()
|
KeyFile::~KeyFile()
|
||||||
{
|
{
|
||||||
if (owns_gobject_)
|
if (owns_gobject_)
|
||||||
g_key_file_free(gobject_);
|
g_key_file_free(gobject_);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool KeyFile::load_from_data(const Glib::ustring& data, KeyFileFlags flags)
|
bool KeyFile::load_from_data(const Glib::ustring& data, KeyFileFlags flags)
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
bool retvalue = g_key_file_load_from_data(gobj(), data.c_str(), data.bytes(), ((GKeyFileFlags)(flags)), &(error));
|
|
||||||
if(error) :: Glib::Error::throw_exception(error);
|
const gboolean result = g_key_file_load_from_data(
|
||||||
return retvalue;
|
gobj(), data.c_str(), data.bytes(),
|
||||||
|
static_cast<GKeyFileFlags>(unsigned(flags)),
|
||||||
|
&error);
|
||||||
|
|
||||||
|
if(error)
|
||||||
|
Glib::Error::throw_exception(error);
|
||||||
|
|
||||||
|
return (result != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool KeyFile::load_from_data_dirs(const std::string& file, std::string& full_path, KeyFileFlags flags)
|
bool KeyFile::load_from_data_dirs(const std::string& file, std::string& full_path,
|
||||||
|
KeyFileFlags flags)
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
char *full_path_c;
|
char* full_path_c = 0;
|
||||||
bool retvalue = g_key_file_load_from_data_dirs(gobj(), file.c_str(), &full_path_c, ((GKeyFileFlags)(flags)), &(error));
|
|
||||||
full_path = Glib::convert_return_gchar_ptr_to_ustring(full_path_c);
|
const gboolean result = g_key_file_load_from_data_dirs(
|
||||||
if(error) :: Glib::Error::throw_exception(error);
|
gobj(), file.c_str(), &full_path_c,
|
||||||
return retvalue;
|
static_cast<GKeyFileFlags>(unsigned(flags)),
|
||||||
|
&error);
|
||||||
|
|
||||||
|
if(error)
|
||||||
|
Glib::Error::throw_exception(error);
|
||||||
|
|
||||||
|
if(full_path_c)
|
||||||
|
full_path = Glib::ScopedPtr<char>(full_path_c).get();
|
||||||
|
else
|
||||||
|
full_path.erase();
|
||||||
|
|
||||||
|
return (result != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ustring KeyFile::to_data()
|
Glib::ustring KeyFile::to_data()
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
gsize size;
|
char *const str = g_key_file_to_data(gobj(), 0, &error);
|
||||||
Glib::ustring retvalue = Glib::convert_return_gchar_ptr_to_ustring(g_key_file_to_data(gobj(), &size, &error));
|
|
||||||
if(error) :: Glib::Error::throw_exception(error);
|
if(error)
|
||||||
return retvalue;
|
Glib::Error::throw_exception(error);
|
||||||
|
|
||||||
|
return Glib::convert_return_gchar_ptr_to_ustring(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ArrayHandle<Glib::ustring> KeyFile::get_groups() const
|
Glib::ArrayHandle<Glib::ustring> KeyFile::get_groups() const
|
||||||
{
|
{
|
||||||
gchar** group_names = 0;
|
gsize length = 0;
|
||||||
gsize number_of_groups = 0;
|
char** const array = g_key_file_get_groups(const_cast<GKeyFile*>(gobj()), &length);
|
||||||
group_names = g_key_file_get_groups(const_cast<GKeyFile*>(gobj()), &number_of_groups);
|
|
||||||
return Glib::ArrayHandle<Glib::ustring>(group_names, number_of_groups, Glib::OWNERSHIP_DEEP);
|
return Glib::ArrayHandle<Glib::ustring>(array, length, Glib::OWNERSHIP_DEEP);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ArrayHandle<Glib::ustring> KeyFile::get_keys(const Glib::ustring& group_name) const
|
Glib::ArrayHandle<Glib::ustring> KeyFile::get_keys(const Glib::ustring& group_name) const
|
||||||
{
|
{
|
||||||
gchar** key_names = 0;
|
gsize length = 0;
|
||||||
gsize number_of_keys = 0;
|
GError* error = 0;
|
||||||
GError* error = 0;
|
|
||||||
key_names = g_key_file_get_keys(const_cast<GKeyFile*>(gobj()), group_name.c_str(), &number_of_keys, &error);
|
char** const array = g_key_file_get_keys(
|
||||||
|
const_cast<GKeyFile*>(gobj()),
|
||||||
|
(group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
|
&length, &error);
|
||||||
|
|
||||||
if(error)
|
if(error)
|
||||||
Glib::Error::throw_exception(error);
|
Glib::Error::throw_exception(error);
|
||||||
return Glib::ArrayHandle<Glib::ustring>(key_names, number_of_keys, Glib::OWNERSHIP_DEEP);
|
|
||||||
|
return Glib::ArrayHandle<Glib::ustring>(array, length, Glib::OWNERSHIP_DEEP);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ustring KeyFile::get_locale_string(const Glib::ustring& group_name, const Glib::ustring& key) const
|
Glib::ustring KeyFile::get_locale_string(const Glib::ustring& group_name,
|
||||||
|
const Glib::ustring& key) const
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
Glib::ustring retvalue = Glib::convert_return_gchar_ptr_to_ustring(g_key_file_get_locale_string(const_cast<GKeyFile*>(gobj()), group_name.c_str(), key.c_str(), 0, &(error)));
|
char *const str = g_key_file_get_locale_string(
|
||||||
if(error) ::Glib::Error::throw_exception(error);
|
const_cast<GKeyFile*>(gobj()),
|
||||||
return retvalue;
|
(group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
|
key.c_str(), 0, &error);
|
||||||
|
|
||||||
|
if(error)
|
||||||
|
Glib::Error::throw_exception(error);
|
||||||
|
|
||||||
|
return Glib::convert_return_gchar_ptr_to_ustring(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
@ -105,19 +138,17 @@ int KeyFile::get_integer(const Glib::ustring& key, std::auto_ptr<Glib::Error>& e
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
{
|
{
|
||||||
GError* gerror = 0;
|
GError* gerror = 0;
|
||||||
int retvalue = g_key_file_get_integer(const_cast<GKeyFile*>(gobj()), NULL, key.c_str(), &(gerror));
|
const int value = g_key_file_get_integer(const_cast<GKeyFile*>(gobj()),
|
||||||
|
0, key.c_str(), &gerror);
|
||||||
|
if(gerror)
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
if(gerror)
|
Glib::Error::throw_exception(gerror);
|
||||||
::Glib::Error::throw_exception(gerror);
|
|
||||||
#else
|
#else
|
||||||
if(gerror)
|
error = Glib::Error::throw_exception(gerror);
|
||||||
error = ::Glib::Error::throw_exception(gerror);
|
#endif
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
return value;
|
||||||
|
|
||||||
return retvalue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
double KeyFile::get_double(const Glib::ustring& key) const
|
double KeyFile::get_double(const Glib::ustring& key) const
|
||||||
#else
|
#else
|
||||||
|
|
@ -142,49 +173,76 @@ void KeyFile::set_double(const Glib::ustring& key, double value)
|
||||||
g_key_file_set_double(gobj(), 0, key.c_str(), value);
|
g_key_file_set_double(gobj(), 0, key.c_str(), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: alternative code path with exceptions disabled
|
||||||
Glib::ArrayHandle<Glib::ustring> KeyFile::get_string_list(const Glib::ustring& group_name, const Glib::ustring& key) const
|
Glib::ArrayHandle<Glib::ustring> KeyFile::get_string_list(const Glib::ustring& group_name,
|
||||||
|
const Glib::ustring& key) const
|
||||||
{
|
{
|
||||||
gchar** string_list = 0;
|
gsize length = 0;
|
||||||
gsize length_of_list = 0;
|
GError* error = 0;
|
||||||
GError* error = 0;
|
|
||||||
string_list = g_key_file_get_string_list(const_cast<GKeyFile*>(gobj()), group_name.c_str(), key.c_str(), &length_of_list, &error);
|
char** const array = g_key_file_get_string_list(
|
||||||
|
const_cast<GKeyFile*>(gobj()),
|
||||||
|
(group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
|
key.c_str(), &length, &error);
|
||||||
|
|
||||||
if(error)
|
if(error)
|
||||||
Glib::Error::throw_exception(error);
|
Glib::Error::throw_exception(error);
|
||||||
return Glib::ArrayHandle<Glib::ustring>(string_list, length_of_list, Glib::OWNERSHIP_DEEP);
|
|
||||||
|
return Glib::ArrayHandle<Glib::ustring>(array, length, Glib::OWNERSHIP_DEEP);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ArrayHandle<Glib::ustring> KeyFile::get_locale_string_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale) const
|
// TODO: alternative code path with exceptions disabled
|
||||||
|
Glib::ArrayHandle<Glib::ustring> KeyFile::get_locale_string_list(const Glib::ustring& group_name,
|
||||||
|
const Glib::ustring& key,
|
||||||
|
const Glib::ustring& locale) const
|
||||||
{
|
{
|
||||||
gchar** string_list = 0;
|
gsize length = 0;
|
||||||
gsize length_of_list = 0;
|
GError* error = 0;
|
||||||
GError* error = 0;
|
|
||||||
string_list = g_key_file_get_locale_string_list(const_cast<GKeyFile*>(gobj()), group_name.c_str(), key.c_str(), locale.c_str(), &length_of_list, &error);
|
char** const array = g_key_file_get_locale_string_list(
|
||||||
|
const_cast<GKeyFile*>(gobj()),
|
||||||
|
(group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
|
key.c_str(), locale.c_str(), &length, &error);
|
||||||
|
|
||||||
if(error)
|
if(error)
|
||||||
Glib::Error::throw_exception(error);
|
Glib::Error::throw_exception(error);
|
||||||
return Glib::ArrayHandle<Glib::ustring>(string_list, length_of_list, Glib::OWNERSHIP_DEEP);
|
|
||||||
|
return Glib::ArrayHandle<Glib::ustring>(array, length, Glib::OWNERSHIP_DEEP);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ArrayHandle<bool> KeyFile::get_boolean_list(const Glib::ustring& group_name, const Glib::ustring& key) const
|
// TODO: alternative code path with exceptions disabled
|
||||||
|
Glib::ArrayHandle<bool> KeyFile::get_boolean_list(const Glib::ustring& group_name,
|
||||||
|
const Glib::ustring& key) const
|
||||||
{
|
{
|
||||||
gboolean* bool_list = 0;
|
gsize length = 0;
|
||||||
gsize length_of_list = 0;
|
GError* error = 0;
|
||||||
GError* error = 0;
|
|
||||||
bool_list = g_key_file_get_boolean_list(const_cast<GKeyFile*>(gobj()), group_name.c_str(), key.c_str(), &length_of_list, &error);
|
gboolean *const array = g_key_file_get_boolean_list(
|
||||||
|
const_cast<GKeyFile*>(gobj()),
|
||||||
|
(group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
|
key.c_str(), &length, &error);
|
||||||
|
|
||||||
if(error)
|
if(error)
|
||||||
Glib::Error::throw_exception(error);
|
Glib::Error::throw_exception(error);
|
||||||
return Glib::ArrayHandle<bool>(&bool_list, length_of_list, Glib::OWNERSHIP_DEEP);
|
|
||||||
|
return Glib::ArrayHandle<bool>(array, length, Glib::OWNERSHIP_SHALLOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ArrayHandle<int> KeyFile::get_integer_list(const Glib::ustring& group_name, const Glib::ustring& key) const
|
Glib::ArrayHandle<int> KeyFile::get_integer_list(const Glib::ustring& group_name,
|
||||||
|
const Glib::ustring& key) const
|
||||||
{
|
{
|
||||||
gint* integer_list = 0;
|
gsize length = 0;
|
||||||
gsize length_of_list = 0;
|
GError* error = 0;
|
||||||
GError* error = 0;
|
|
||||||
integer_list = g_key_file_get_integer_list(const_cast<GKeyFile*>(gobj()), group_name.c_str(), key.c_str(), &length_of_list, &error);
|
int *const array = g_key_file_get_integer_list(
|
||||||
|
const_cast<GKeyFile*>(gobj()),
|
||||||
|
(group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
|
key.c_str(), &length, &error);
|
||||||
|
|
||||||
if(error)
|
if(error)
|
||||||
Glib::Error::throw_exception(error);
|
Glib::Error::throw_exception(error);
|
||||||
return Glib::ArrayHandle<int>(integer_list, length_of_list, Glib::OWNERSHIP_DEEP);
|
|
||||||
|
return Glib::ArrayHandle<int>(array, length, Glib::OWNERSHIP_SHALLOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ArrayHandle<double> KeyFile::get_double_list(const Glib::ustring& group_name, const Glib::ustring& key) const
|
Glib::ArrayHandle<double> KeyFile::get_double_list(const Glib::ustring& group_name, const Glib::ustring& key) const
|
||||||
|
|
@ -198,67 +256,84 @@ Glib::ArrayHandle<double> KeyFile::get_double_list(const Glib::ustring& group_na
|
||||||
return Glib::ArrayHandle<double>(integer_list, length_of_list, Glib::OWNERSHIP_DEEP);
|
return Glib::ArrayHandle<double>(integer_list, length_of_list, Glib::OWNERSHIP_DEEP);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyFile::set_string_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ArrayHandle<Glib::ustring>& list)
|
void KeyFile::set_string_list(const Glib::ustring& group_name, const Glib::ustring& key,
|
||||||
|
const Glib::ArrayHandle<Glib::ustring>& list)
|
||||||
{
|
{
|
||||||
gsize length_of_list = list.size();
|
g_key_file_set_string_list(gobj(), (group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
g_key_file_set_string_list(gobj(), group_name.c_str(), key.c_str(), list.data(), length_of_list);
|
key.c_str(), list.data(), list.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyFile::set_locale_string_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale, const Glib::ArrayHandle<Glib::ustring>& list)
|
void KeyFile::set_locale_string_list(const Glib::ustring& group_name,
|
||||||
|
const Glib::ustring& key, const Glib::ustring& locale,
|
||||||
|
const Glib::ArrayHandle<Glib::ustring>& list)
|
||||||
{
|
{
|
||||||
gsize length_of_list = list.size();
|
g_key_file_set_locale_string_list(gobj(), (group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
g_key_file_set_locale_string_list(gobj(), group_name.c_str(), key.c_str(), locale.c_str(), list.data(), length_of_list);
|
key.c_str(), locale.c_str(), list.data(), list.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyFile::set_integer_list(const Glib::ustring& group_name, const Glib::ustring& key, Glib::ArrayHandle<int>& list)
|
void KeyFile::set_integer_list(const Glib::ustring& group_name, const Glib::ustring& key,
|
||||||
|
const Glib::ArrayHandle<int>& list)
|
||||||
{
|
{
|
||||||
gsize length_of_list = list.size();
|
g_key_file_set_integer_list(gobj(), (group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
g_key_file_set_integer_list(gobj(), group_name.c_str(), key.c_str(), const_cast<int*>(list.data()), length_of_list);
|
key.c_str(), const_cast<int*>(list.data()), list.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyFile::set_double_list(const Glib::ustring& group_name, const Glib::ustring& key, Glib::ArrayHandle<double>& list)
|
void KeyFile::set_double_list(const Glib::ustring& group_name, const Glib::ustring& key,
|
||||||
|
const Glib::ArrayHandle<double>& list)
|
||||||
{
|
{
|
||||||
gsize length_of_list = list.size();
|
g_key_file_set_double_list(gobj(), group_name.c_str(), key.c_str(),
|
||||||
g_key_file_set_double_list(gobj(), group_name.c_str(), key.c_str(), const_cast<double*>(list.data()), length_of_list);
|
const_cast<double*>(list.data()), list.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyFile::set_boolean_list(const Glib::ustring& group_name, const Glib::ustring& key, Glib::ArrayHandle<bool>& list)
|
void KeyFile::set_boolean_list(const Glib::ustring& group_name, const Glib::ustring& key,
|
||||||
|
const Glib::ArrayHandle<bool>& list)
|
||||||
{
|
{
|
||||||
gsize length_of_list = list.size();
|
g_key_file_set_boolean_list(gobj(), (group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
g_key_file_set_boolean_list(gobj(), group_name.c_str(), key.c_str(), *(list.data()), length_of_list);
|
key.c_str(), const_cast<gboolean*>(list.data()), list.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ustring KeyFile::get_comment() const
|
Glib::ustring KeyFile::get_comment() const
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
Glib::ustring retvalue = Glib::convert_return_gchar_ptr_to_ustring(g_key_file_get_comment(const_cast<GKeyFile*>(gobj()), 0, 0, &(error)));
|
char *const str = g_key_file_get_comment(const_cast<GKeyFile*>(gobj()), 0, 0, &error);
|
||||||
if(error) ::Glib::Error::throw_exception(error);
|
|
||||||
return retvalue;
|
if(error)
|
||||||
|
Glib::Error::throw_exception(error);
|
||||||
|
|
||||||
|
return Glib::convert_return_gchar_ptr_to_ustring(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ustring KeyFile::get_comment(const Glib::ustring& group_name) const
|
Glib::ustring KeyFile::get_comment(const Glib::ustring& group_name) const
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
Glib::ustring retvalue = Glib::convert_return_gchar_ptr_to_ustring(g_key_file_get_comment(const_cast<GKeyFile*>(gobj()), group_name.c_str(), 0, &(error)));
|
char *const str = g_key_file_get_comment(const_cast<GKeyFile*>(gobj()),
|
||||||
if(error) ::Glib::Error::throw_exception(error);
|
(group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
return retvalue;
|
0, &error);
|
||||||
|
if(error)
|
||||||
|
Glib::Error::throw_exception(error);
|
||||||
|
|
||||||
|
return Glib::convert_return_gchar_ptr_to_ustring(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyFile::set_comment(const Glib::ustring& comment)
|
void KeyFile::set_comment(const Glib::ustring& comment)
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
g_key_file_set_comment(gobj(), 0, 0, comment.c_str(), &(error));
|
g_key_file_set_comment(gobj(), 0, 0, comment.c_str(), &error);
|
||||||
if(error) ::Glib::Error::throw_exception(error);
|
|
||||||
|
if(error)
|
||||||
|
Glib::Error::throw_exception(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyFile::set_comment(const Glib::ustring& group_name, const Glib::ustring& comment)
|
void KeyFile::set_comment(const Glib::ustring& group_name, const Glib::ustring& comment)
|
||||||
{
|
{
|
||||||
GError *error = 0;
|
GError* error = 0;
|
||||||
g_key_file_set_comment(gobj(), group_name.c_str(), 0, comment.c_str(), &(error));
|
g_key_file_set_comment(gobj(), (group_name.empty()) ? 0 : group_name.c_str(),
|
||||||
if(error) ::Glib::Error::throw_exception(error);
|
0, comment.c_str(), &error);
|
||||||
|
if(error)
|
||||||
|
Glib::Error::throw_exception(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} // namespace Glib
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,16 @@
|
||||||
/* Copyright(C) 2006 The gtkmm Development Team
|
/* Copyright(C) 2006 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or(at your option) any later version.
|
* version 2.1 of the License, or(at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
#include <glibmm/arrayhandle.h>
|
#include <glibmm/arrayhandle.h>
|
||||||
#include <glibmm/error.h>
|
#include <glibmm/error.h>
|
||||||
#include <glibmm/utility.h>
|
#include <glibmm/utility.h>
|
||||||
#include <glib/gkeyfile.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
extern "C" { typedef struct _GKeyFile GKeyFile; }
|
extern "C" { typedef struct _GKeyFile GKeyFile; }
|
||||||
|
|
@ -153,8 +153,8 @@ private:
|
||||||
*
|
*
|
||||||
* Key-value pairs generally have the form key=value, with the exception of localized strings, which have the form
|
* Key-value pairs generally have the form key=value, with the exception of localized strings, which have the form
|
||||||
* key[locale]=value. Space before and after the '=' character are ignored. Newline, tab, carriage return and
|
* key[locale]=value. Space before and after the '=' character are ignored. Newline, tab, carriage return and
|
||||||
* backslash characters in value are escaped as \n, \t, \r, and \\, respectively. To preserve leading spaces in
|
* backslash characters in value are escaped as \\n, \\t, \\r, and \\\\, respectively. To preserve leading spaces in
|
||||||
* values, these can also be escaped as \s.
|
* values, these can also be escaped as \\s.
|
||||||
*
|
*
|
||||||
* Key files can store strings (possibly with localized variants), integers, booleans and lists of these. Lists are
|
* Key files can store strings (possibly with localized variants), integers, booleans and lists of these. Lists are
|
||||||
* separated by a separator character, typically ';' or ','. To use the list separator character in a value in a
|
* separated by a separator character, typically ';' or ','. To use the list separator character in a value in a
|
||||||
|
|
@ -207,12 +207,13 @@ public:
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
/** Loads a key file into an empty G::KeyFile structure.
|
/** Loads a key file into an empty KeyFile instance.
|
||||||
* If the file could not be loaded then %error is set to
|
* If the file could not be loaded then a FileError or KeyFileError exception is thrown.
|
||||||
* either a G::FileError or G::KeyFileError.
|
*
|
||||||
|
* @a throw Glib::FileError
|
||||||
|
* @a throw Glib::KeyFileError
|
||||||
* @param file The path of a filename to load, in the GLib file name encoding.
|
* @param file The path of a filename to load, in the GLib file name encoding.
|
||||||
* @param flags Flags from G::KeyFileFlags.
|
* @param flags Flags from KeyFileFlags.
|
||||||
* @param error Return location for a G::Error, or <tt>0</tt>.
|
|
||||||
* @return <tt>true</tt> if a key file could be loaded, <tt>false</tt> othewise
|
* @return <tt>true</tt> if a key file could be loaded, <tt>false</tt> othewise
|
||||||
* @newin2p6.
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
|
|
@ -283,20 +284,19 @@ public:
|
||||||
Glib::ArrayHandle<Glib::ustring> get_keys(const Glib::ustring& group_name) const;
|
Glib::ArrayHandle<Glib::ustring> get_keys(const Glib::ustring& group_name) const;
|
||||||
|
|
||||||
|
|
||||||
/** Looks whether the key file has the group @a group_name .
|
/** Looks whether the key file has the group @a group_name.
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @return <tt>true</tt> if @a group_name is a part of @a key_file , <tt>false</tt>
|
* @return <tt>true</tt> if @a group_name is a part of @a key_file, <tt>false</tt>
|
||||||
* otherwise.
|
* otherwise.
|
||||||
* @newin2p6.
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
bool has_group(const Glib::ustring& group_name) const;
|
bool has_group(const Glib::ustring& group_name) const;
|
||||||
|
|
||||||
/** Looks whether the key file has the key @a key in the group
|
/** Looks whether the key file has the key @a key in the group
|
||||||
* @a group_name .
|
* @a group_name.
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key name.
|
* @param key A key name.
|
||||||
* @param error Return location for a G::Error.
|
* @return <tt>true</tt> if @a key is a part of @a group_name, <tt>false</tt>
|
||||||
* @return <tt>true</tt> if @a key is a part of @a group_name , <tt>false</tt>
|
|
||||||
* otherwise.
|
* otherwise.
|
||||||
*
|
*
|
||||||
* @newin2p6.
|
* @newin2p6.
|
||||||
|
|
@ -308,12 +308,13 @@ public:
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
||||||
/** Return value: a newly allocated string or <tt>0</tt> if the specified
|
/** Returns the value associated with @a key under @a group_name.
|
||||||
|
*
|
||||||
|
* @a throw Glib::FileError in the event the key cannot be found (with the Glib::KEY_FILE_ERROR_KEY_NOT_FOUND code).
|
||||||
|
* @a throw Glib::KeyFileError in the event that the @a group_name cannot be found (with the Glib::KEY_FILE_ERROR_GROUP_NOT_FOUND).
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param error Return location for a G::Error, or <tt>0</tt>.
|
* @return The value as a string.
|
||||||
* @return A newly allocated string or <tt>0</tt> if the specified
|
|
||||||
* key cannot be found.
|
|
||||||
*
|
*
|
||||||
* @newin2p6.
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
|
|
@ -327,7 +328,6 @@ public:
|
||||||
/** Return value: a newly allocated string or <tt>0</tt> if the specified
|
/** Return value: a newly allocated string or <tt>0</tt> if the specified
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param error Return location for a G::Error, or <tt>0</tt>.
|
|
||||||
* @return A newly allocated string or <tt>0</tt> if the specified
|
* @return A newly allocated string or <tt>0</tt> if the specified
|
||||||
* key cannot be found.
|
* key cannot be found.
|
||||||
*
|
*
|
||||||
|
|
@ -349,8 +349,7 @@ public:
|
||||||
/** Return value: a newly allocated string or <tt>0</tt> if the specified
|
/** Return value: a newly allocated string or <tt>0</tt> if the specified
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param locale A locale or <tt>0</tt>.
|
* @param locale A locale identifier or <tt>0</tt>.
|
||||||
* @param error Return location for a G::Error, or <tt>0</tt>.
|
|
||||||
* @return A newly allocated string or <tt>0</tt> if the specified
|
* @return A newly allocated string or <tt>0</tt> if the specified
|
||||||
* key cannot be found.
|
* key cannot be found.
|
||||||
*
|
*
|
||||||
|
|
@ -363,12 +362,11 @@ public:
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
||||||
/** Return value: the value associated with the key as a boolean, or
|
/** Return value: the value associated with the key as a boolean,
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param error Return location for a G::Error.
|
* @return The value associated with the key as a boolean,
|
||||||
* @return The value associated with the key as a boolean, or
|
* or <tt>false</tt> if the key was not found or could not be parsed.
|
||||||
* <tt>false</tt> if the key was not found or could not be parsed.
|
|
||||||
*
|
*
|
||||||
* @newin2p6.
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
|
|
@ -391,7 +389,6 @@ public:
|
||||||
/** Return value: the value associated with the key as an integer, or
|
/** Return value: the value associated with the key as an integer, or
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param error Return location for a G::Error.
|
|
||||||
* @return The value associated with the key as an integer, or
|
* @return The value associated with the key as an integer, or
|
||||||
* 0 if the key was not found or could not be parsed.
|
* 0 if the key was not found or could not be parsed.
|
||||||
*
|
*
|
||||||
|
|
@ -418,7 +415,6 @@ public:
|
||||||
/** Return value: the value associated with the key as a double, or
|
/** Return value: the value associated with the key as a double, or
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param error Return location for a G::Error.
|
|
||||||
* @return The value associated with the key as a double, or
|
* @return The value associated with the key as a double, or
|
||||||
* 0.0 if the key was not found or could not be parsed.
|
* 0.0 if the key was not found or could not be parsed.
|
||||||
*
|
*
|
||||||
|
|
@ -431,8 +427,8 @@ public:
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
||||||
/** Associates a new double value with @a key under @a group_name .
|
/** Associates a new double value with @a key under @a group_name.
|
||||||
* If @a key cannot be found then it is created.
|
* If @a key cannot be found then it is created.
|
||||||
*
|
*
|
||||||
* @newin2p14
|
* @newin2p14
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
|
|
@ -518,14 +514,12 @@ public:
|
||||||
Glib::ustring get_comment(const Glib::ustring& group_name) const;
|
Glib::ustring get_comment(const Glib::ustring& group_name) const;
|
||||||
|
|
||||||
|
|
||||||
/** Retrieves a comment above @a key from @a group_name .
|
/** Retrieves a comment above @a key from @a group_name.
|
||||||
* @a group_name . If @a key is <tt>0</tt> then @a comment will
|
* If @a key is <tt>0</tt> then @a comment will be read from above
|
||||||
* be read from above @a group_name . If both @a key
|
* @a group_name. If both @a key and @a group_name are <tt>0</tt>, then
|
||||||
* and @a group_name are <tt>0</tt>, then @a comment will
|
* @a comment will be read from above the first group in the file.
|
||||||
* be read from above the first group in the file.
|
|
||||||
* @param group_name A group name, or <tt>0</tt>.
|
* @param group_name A group name, or <tt>0</tt>.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param error Return location for a G::Error.
|
|
||||||
* @return A comment that should be freed with g_free()
|
* @return A comment that should be freed with g_free()
|
||||||
*
|
*
|
||||||
* @newin2p6.
|
* @newin2p6.
|
||||||
|
|
@ -546,9 +540,9 @@ public:
|
||||||
*/
|
*/
|
||||||
void set_list_separator(gchar separator);
|
void set_list_separator(gchar separator);
|
||||||
|
|
||||||
/** Associates a new value with @a key under @a group_name . If @a key
|
/** Associates a new value with @a key under @a group_name.
|
||||||
* cannot be found then it is created. If @a group_name cannot be
|
* If @a key cannot be found then it is created.
|
||||||
* found then it is created.
|
* If @a group_name cannot be found then it is created.
|
||||||
*
|
*
|
||||||
* @newin2p6
|
* @newin2p6
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
|
|
@ -557,9 +551,9 @@ public:
|
||||||
*/
|
*/
|
||||||
void set_value(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& value);
|
void set_value(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& value);
|
||||||
|
|
||||||
/** Associates a new string value with @a key under @a group_name . If
|
/** Associates a new string value with @a key under @a group_name.
|
||||||
* @a key cannot be found then it is created. If @a group_name
|
* If @a key cannot be found then it is created.
|
||||||
* cannot be found then it is created.
|
* If @a group_name cannot be found then it is created.
|
||||||
*
|
*
|
||||||
* @newin2p6
|
* @newin2p6
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
|
|
@ -568,20 +562,19 @@ public:
|
||||||
*/
|
*/
|
||||||
void set_string(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& string);
|
void set_string(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& string);
|
||||||
|
|
||||||
/** Associates a string value for @a key and @a locale under
|
/** Associates a string value for @a key and @a locale under @a group_name.
|
||||||
* @a group_name . If the translation for @a key cannot be found
|
* If the translation for @a key cannot be found then it is created.
|
||||||
* then it is created.
|
|
||||||
*
|
*
|
||||||
* @newin2p6
|
* @newin2p6
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param locale A locale.
|
* @param locale A locale identifier.
|
||||||
* @param string A string.
|
* @param string A string.
|
||||||
*/
|
*/
|
||||||
void set_locale_string(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale, const Glib::ustring& string);
|
void set_locale_string(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& locale, const Glib::ustring& string);
|
||||||
|
|
||||||
/** Associates a new boolean value with @a key under @a group_name .
|
/** Associates a new boolean value with @a key under @a group_name.
|
||||||
* If @a key cannot be found then it is created.
|
* If @a key cannot be found then it is created.
|
||||||
*
|
*
|
||||||
* @newin2p6
|
* @newin2p6
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
|
|
@ -590,8 +583,8 @@ public:
|
||||||
*/
|
*/
|
||||||
void set_boolean(const Glib::ustring& group_name, const Glib::ustring& key, bool value);
|
void set_boolean(const Glib::ustring& group_name, const Glib::ustring& key, bool value);
|
||||||
|
|
||||||
/** Associates a new integer value with @a key under @a group_name .
|
/** Associates a new integer value with @a key under @a group_name.
|
||||||
* If @a key cannot be found then it is created.
|
* If @a key cannot be found then it is created.
|
||||||
*
|
*
|
||||||
* @newin2p6
|
* @newin2p6
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
|
|
@ -627,7 +620,7 @@ public:
|
||||||
* @param key The name of a key
|
* @param key The name of a key
|
||||||
* @param list A list holding object of type bool
|
* @param list A list holding object of type bool
|
||||||
*/
|
*/
|
||||||
void set_boolean_list(const Glib::ustring& group_name, const Glib::ustring& key, Glib::ArrayHandle<bool>& list);
|
void set_boolean_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ArrayHandle<bool>& list);
|
||||||
|
|
||||||
|
|
||||||
/** Sets a list of integers for the @a key under @a group_name.
|
/** Sets a list of integers for the @a key under @a group_name.
|
||||||
|
|
@ -636,7 +629,7 @@ public:
|
||||||
* @param key The name of a key
|
* @param key The name of a key
|
||||||
* @param list A list holding object of type int
|
* @param list A list holding object of type int
|
||||||
*/
|
*/
|
||||||
void set_integer_list(const Glib::ustring& group_name, const Glib::ustring& key, Glib::ArrayHandle<int>& list);
|
void set_integer_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ArrayHandle<int>& list);
|
||||||
|
|
||||||
|
|
||||||
/** Sets a list of doubles for the @a key under @a group_name.
|
/** Sets a list of doubles for the @a key under @a group_name.
|
||||||
|
|
@ -647,7 +640,7 @@ public:
|
||||||
*
|
*
|
||||||
* @newin2p14
|
* @newin2p14
|
||||||
*/
|
*/
|
||||||
void set_double_list(const Glib::ustring& group_name, const Glib::ustring& key, Glib::ArrayHandle<double>& list);
|
void set_double_list(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ArrayHandle<double>& list);
|
||||||
|
|
||||||
|
|
||||||
/** Places @a comment at the start of the file, before the first group.
|
/** Places @a comment at the start of the file, before the first group.
|
||||||
|
|
@ -667,17 +660,16 @@ public:
|
||||||
* @param comment The comment
|
* @param comment The comment
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Places a comment above @a key from @a group_name .
|
/** Places a comment above @a key from @a group_name.
|
||||||
* @a group_name . If @a key is <tt>0</tt> then @a comment will
|
* If @a key is <tt>0</tt> then @a comment will be written above @a group_name.
|
||||||
* be written above @a group_name . If both @a key
|
* If both @a key and @a group_name are <tt>0</tt>, then @a comment will be
|
||||||
* and @a group_name are <tt>0</tt>, then @a comment will
|
* written above the first group in the file.
|
||||||
* be written above the first group in the file.
|
|
||||||
*
|
|
||||||
* @newin2p6
|
|
||||||
* @param group_name A group name, or <tt>0</tt>.
|
* @param group_name A group name, or <tt>0</tt>.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param comment A comment.
|
* @param comment A comment.
|
||||||
* @param error Return location for a G::Error.
|
* @return <tt>true</tt> if the comment was written, <tt>false</tt> otherwise
|
||||||
|
*
|
||||||
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
void set_comment(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& comment);
|
void set_comment(const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ustring& comment);
|
||||||
|
|
@ -686,16 +678,15 @@ public:
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
||||||
/** Removes a comment above @a key from @a group_name .
|
/** Removes a comment above @a key from @a group_name.
|
||||||
* @a group_name . If @a key is <tt>0</tt> then @a comment will
|
* If @a key is <tt>0</tt> then @a comment will be removed above @a group_name.
|
||||||
* be written above @a group_name . If both @a key
|
* If both @a key and @a group_name are <tt>0</tt>, then @a comment will
|
||||||
* and @a group_name are <tt>0</tt>, then @a comment will
|
* be removed above the first group in the file.
|
||||||
* be written above the first group in the file.
|
|
||||||
*
|
|
||||||
* @newin2p6
|
|
||||||
* @param group_name A group name, or <tt>0</tt>.
|
* @param group_name A group name, or <tt>0</tt>.
|
||||||
* @param key A key.
|
* @param key A key.
|
||||||
* @param error Return location for a G::Error.
|
* @return <tt>true</tt> if the comment was removed, <tt>false</tt> otherwise
|
||||||
|
*
|
||||||
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
void remove_comment(const Glib::ustring& group_name, const Glib::ustring& key);
|
void remove_comment(const Glib::ustring& group_name, const Glib::ustring& key);
|
||||||
|
|
@ -704,12 +695,12 @@ public:
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
||||||
/** Removes @a key in @a group_name from the key file.
|
/** Removes @a key in @a group_name from the key file.
|
||||||
*
|
|
||||||
* @newin2p6
|
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param key A key name to remove.
|
* @param key A key name to remove.
|
||||||
* @param error Return location for a G::Error or <tt>0</tt>.
|
* @return <tt>true</tt> if the key was removed, <tt>false</tt> otherwise
|
||||||
|
*
|
||||||
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
void remove_key(const Glib::ustring& group_name, const Glib::ustring& key);
|
void remove_key(const Glib::ustring& group_name, const Glib::ustring& key);
|
||||||
|
|
@ -718,12 +709,12 @@ public:
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
||||||
/** Removes the specified group, @a group_name ,
|
/** Removes the specified group, @a group_name,
|
||||||
* from the key file.
|
* from the key file.
|
||||||
*
|
|
||||||
* @newin2p6
|
|
||||||
* @param group_name A group name.
|
* @param group_name A group name.
|
||||||
* @param error Return location for a G::Error or <tt>0</tt>.
|
* @return <tt>true</tt> if the group was removed, <tt>false</tt> otherwise
|
||||||
|
*
|
||||||
|
* @newin2p6.
|
||||||
*/
|
*/
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
void remove_group(const Glib::ustring& group_name);
|
void remove_group(const Glib::ustring& group_name);
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,26 @@
|
||||||
#ifndef _GLIBMM_LISTHANDLE_H
|
#ifndef _GLIBMM_LISTHANDLE_H
|
||||||
#define _GLIBMM_LISTHANDLE_H
|
#define _GLIBMM_LISTHANDLE_H
|
||||||
|
|
||||||
/* $Id: listhandle.h 32 2003-04-21 17:39:41Z murrayc $ */
|
/* $Id: listhandle.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/glist.h>
|
#include <glib.h>
|
||||||
#include <glibmm/containerhandle_shared.h>
|
#include <glibmm/containerhandle_shared.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: main.cc 420 2007-06-22 15:29:58Z murrayc $ */
|
/* $Id: main.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -24,7 +24,6 @@
|
||||||
#include <glibmm/wrap.h>
|
#include <glibmm/wrap.h>
|
||||||
#include <glibmm/iochannel.h>
|
#include <glibmm/iochannel.h>
|
||||||
|
|
||||||
#include <glib.h>
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
GLIBMM_USING_STD(min)
|
GLIBMM_USING_STD(min)
|
||||||
|
|
@ -311,6 +310,12 @@ sigc::connection SignalTimeout::connect(const sigc::slot<bool>& slot,
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SignalTimeout::connect_once(const sigc::slot<void>& slot,
|
||||||
|
unsigned int interval, int priority)
|
||||||
|
{
|
||||||
|
connect(sigc::bind_return(slot, false), interval, priority);
|
||||||
|
}
|
||||||
|
|
||||||
/* Note that this is our equivalent of g_timeout_add_seconds(). */
|
/* Note that this is our equivalent of g_timeout_add_seconds(). */
|
||||||
sigc::connection SignalTimeout::connect_seconds(const sigc::slot<bool>& slot,
|
sigc::connection SignalTimeout::connect_seconds(const sigc::slot<bool>& slot,
|
||||||
unsigned int interval, int priority)
|
unsigned int interval, int priority)
|
||||||
|
|
@ -334,6 +339,12 @@ sigc::connection SignalTimeout::connect_seconds(const sigc::slot<bool>& slot,
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SignalTimeout::connect_seconds_once(const sigc::slot<void>& slot,
|
||||||
|
unsigned int interval, int priority)
|
||||||
|
{
|
||||||
|
connect_seconds(sigc::bind_return(slot, false), interval, priority);
|
||||||
|
}
|
||||||
|
|
||||||
SignalTimeout signal_timeout()
|
SignalTimeout signal_timeout()
|
||||||
{
|
{
|
||||||
return SignalTimeout(0); // 0 means default context
|
return SignalTimeout(0); // 0 means default context
|
||||||
|
|
@ -369,6 +380,11 @@ sigc::connection SignalIdle::connect(const sigc::slot<bool>& slot, int priority)
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SignalIdle::connect_once(const sigc::slot<void>& slot, int priority)
|
||||||
|
{
|
||||||
|
connect(sigc::bind_return(slot, false), priority);
|
||||||
|
}
|
||||||
|
|
||||||
SignalIdle signal_idle()
|
SignalIdle signal_idle()
|
||||||
{
|
{
|
||||||
return SignalIdle(0); // 0 means default context
|
return SignalIdle(0); // 0 means default context
|
||||||
|
|
|
||||||
|
|
@ -2,27 +2,26 @@
|
||||||
#ifndef _GLIBMM_MAIN_H
|
#ifndef _GLIBMM_MAIN_H
|
||||||
#define _GLIBMM_MAIN_H
|
#define _GLIBMM_MAIN_H
|
||||||
|
|
||||||
/* $Id: main.h 420 2007-06-22 15:29:58Z murrayc $ */
|
/* $Id: main.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/giochannel.h>
|
#include <glib.h>
|
||||||
#include <glib/gmain.h>
|
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <sigc++/sigc++.h>
|
#include <sigc++/sigc++.h>
|
||||||
|
|
@ -30,6 +29,7 @@
|
||||||
#include <glibmmconfig.h>
|
#include <glibmmconfig.h>
|
||||||
#include <glibmm/refptr.h>
|
#include <glibmm/refptr.h>
|
||||||
#include <glibmm/timeval.h>
|
#include <glibmm/timeval.h>
|
||||||
|
#include <glibmm/priorities.h>
|
||||||
|
|
||||||
GLIBMM_USING_STD(vector)
|
GLIBMM_USING_STD(vector)
|
||||||
|
|
||||||
|
|
@ -47,41 +47,6 @@ class IOChannel;
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/*! Use this for high priority event sources. It is not used within
|
|
||||||
* GLib or GTK+.<br><br>
|
|
||||||
*/
|
|
||||||
PRIORITY_HIGH = -100,
|
|
||||||
|
|
||||||
/*! Use this for default priority event sources. In glibmm this
|
|
||||||
* priority is used by default when installing timeout handlers with
|
|
||||||
* SignalTimeout::connect(). In GDK this priority is used for events
|
|
||||||
* from the X server.<br><br>
|
|
||||||
*/
|
|
||||||
PRIORITY_DEFAULT = 0,
|
|
||||||
|
|
||||||
/*! Use this for high priority idle functions. GTK+ uses
|
|
||||||
* <tt>PRIORITY_HIGH_IDLE + 10</tt> for resizing operations, and
|
|
||||||
* <tt>PRIORITY_HIGH_IDLE + 20</tt> for redrawing operations.
|
|
||||||
* (This is done to ensure that any pending resizes are processed before
|
|
||||||
* any pending redraws, so that widgets are not redrawn twice unnecessarily.)
|
|
||||||
* <br><br>
|
|
||||||
*/
|
|
||||||
PRIORITY_HIGH_IDLE = 100,
|
|
||||||
|
|
||||||
/*! Use this for default priority idle functions. In glibmm this priority is
|
|
||||||
* used by default when installing idle handlers with SignalIdle::connect().
|
|
||||||
* <br><br>
|
|
||||||
*/
|
|
||||||
PRIORITY_DEFAULT_IDLE = 200,
|
|
||||||
|
|
||||||
/*! Use this for very low priority background tasks. It is not used within
|
|
||||||
* GLib or GTK+.
|
|
||||||
*/
|
|
||||||
PRIORITY_LOW = 300
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** A bitwise combination representing an I/O condition to watch for on an
|
/** A bitwise combination representing an I/O condition to watch for on an
|
||||||
* event source.
|
* event source.
|
||||||
|
|
@ -195,6 +160,20 @@ public:
|
||||||
sigc::connection connect(const sigc::slot<bool>& slot, unsigned int interval,
|
sigc::connection connect(const sigc::slot<bool>& slot, unsigned int interval,
|
||||||
int priority = PRIORITY_DEFAULT);
|
int priority = PRIORITY_DEFAULT);
|
||||||
|
|
||||||
|
/** Connects an timeout handler that runs only once.
|
||||||
|
* This method takes a function pointer to a function with a void return
|
||||||
|
* and no parameters. After running once it is not called again.
|
||||||
|
*
|
||||||
|
* @see connect
|
||||||
|
* @param slot A slot to call when @a interval has elapsed. For example:
|
||||||
|
* @code
|
||||||
|
* void on_timeout_once()
|
||||||
|
* @endcode
|
||||||
|
* @param interval The timeout in milliseconds.
|
||||||
|
* @param priority The priority of the new event source.
|
||||||
|
*/
|
||||||
|
void connect_once(const sigc::slot<void>& slot, unsigned int interval,
|
||||||
|
int priority = PRIORITY_DEFAULT);
|
||||||
|
|
||||||
/** Connects a timeout handler with whole second granularity.
|
/** Connects a timeout handler with whole second granularity.
|
||||||
*
|
*
|
||||||
|
|
@ -226,6 +205,23 @@ public:
|
||||||
sigc::connection connect_seconds(const sigc::slot<bool>& slot, unsigned int interval,
|
sigc::connection connect_seconds(const sigc::slot<bool>& slot, unsigned int interval,
|
||||||
int priority = PRIORITY_DEFAULT);
|
int priority = PRIORITY_DEFAULT);
|
||||||
|
|
||||||
|
/** Connects an timeout handler that runs only once with whole second
|
||||||
|
* granularity.
|
||||||
|
*
|
||||||
|
* This method takes a function pointer to a function with a void return
|
||||||
|
* and no parameters. After running once it is not called again.
|
||||||
|
*
|
||||||
|
* @see connect_seconds
|
||||||
|
* @param slot A slot to call when @a interval has elapsed. For example:
|
||||||
|
* @code
|
||||||
|
* void on_timeout_once()
|
||||||
|
* @endcode
|
||||||
|
* @param interval The timeout in milliseconds.
|
||||||
|
* @param priority The priority of the new event source.
|
||||||
|
*/
|
||||||
|
void connect_seconds_once(const sigc::slot<void>& slot, unsigned int interval,
|
||||||
|
int priority = PRIORITY_DEFAULT);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GMainContext* context_;
|
GMainContext* context_;
|
||||||
|
|
||||||
|
|
@ -257,6 +253,12 @@ public:
|
||||||
*/
|
*/
|
||||||
sigc::connection connect(const sigc::slot<bool>& slot, int priority = PRIORITY_DEFAULT_IDLE);
|
sigc::connection connect(const sigc::slot<bool>& slot, int priority = PRIORITY_DEFAULT_IDLE);
|
||||||
|
|
||||||
|
/** Connects an idle handler that runs only once.
|
||||||
|
* This method takes a function pointer to a function with a void return
|
||||||
|
* and no parameters. After running once it is not called again.
|
||||||
|
*/
|
||||||
|
void connect_once(const sigc::slot<void>& slot, int priority = PRIORITY_DEFAULT_IDLE);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GMainContext* context_;
|
GMainContext* context_;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -104,7 +104,7 @@ void ParserCallbacks::start_element(GMarkupParseContext* context,
|
||||||
void* user_data,
|
void* user_data,
|
||||||
GError** error)
|
GError** error)
|
||||||
{
|
{
|
||||||
if(!&error) error = error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
(void)error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
|
||||||
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
||||||
g_return_if_fail(context == cpp_context.gobj());
|
g_return_if_fail(context == cpp_context.gobj());
|
||||||
|
|
@ -145,7 +145,7 @@ void ParserCallbacks::end_element(GMarkupParseContext* context,
|
||||||
void* user_data,
|
void* user_data,
|
||||||
GError** error)
|
GError** error)
|
||||||
{
|
{
|
||||||
if(!&error) error = error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
(void)error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
|
||||||
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
||||||
g_return_if_fail(context == cpp_context.gobj());
|
g_return_if_fail(context == cpp_context.gobj());
|
||||||
|
|
@ -174,7 +174,7 @@ void ParserCallbacks::text(GMarkupParseContext* context,
|
||||||
void* user_data,
|
void* user_data,
|
||||||
GError** error)
|
GError** error)
|
||||||
{
|
{
|
||||||
if(!&error) error = error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
(void)error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
|
||||||
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
||||||
g_return_if_fail(context == cpp_context.gobj());
|
g_return_if_fail(context == cpp_context.gobj());
|
||||||
|
|
@ -203,7 +203,7 @@ void ParserCallbacks::passthrough(GMarkupParseContext* context,
|
||||||
void* user_data,
|
void* user_data,
|
||||||
GError** error)
|
GError** error)
|
||||||
{
|
{
|
||||||
if(!&error) error = error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
(void)error; //Avoid an unused parameter warning when GLIBMM_EXCEPTIONS_ENABLED is used.
|
||||||
|
|
||||||
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
ParseContext& cpp_context = *static_cast<ParseContext*>(user_data);
|
||||||
g_return_if_fail(context == cpp_context.gobj());
|
g_return_if_fail(context == cpp_context.gobj());
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -86,7 +86,8 @@ public:
|
||||||
PARSE,
|
PARSE,
|
||||||
UNKNOWN_ELEMENT,
|
UNKNOWN_ELEMENT,
|
||||||
UNKNOWN_ATTRIBUTE,
|
UNKNOWN_ATTRIBUTE,
|
||||||
INVALID_CONTENT
|
INVALID_CONTENT,
|
||||||
|
MISSING_ATTRIBUTE
|
||||||
};
|
};
|
||||||
|
|
||||||
MarkupError(Code error_code, const Glib::ustring& error_message);
|
MarkupError(Code error_code, const Glib::ustring& error_message);
|
||||||
|
|
@ -173,7 +174,8 @@ Glib::ustring escape_text(const Glib::ustring& text);
|
||||||
enum ParseFlags
|
enum ParseFlags
|
||||||
{
|
{
|
||||||
DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0,
|
DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0,
|
||||||
TREAT_CDATA_AS_TEXT = 1 << 1
|
TREAT_CDATA_AS_TEXT = 1 << 1,
|
||||||
|
PREFIX_ERROR_POSITION = 1 << 2
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @ingroup glibmmEnums */
|
/** @ingroup glibmmEnums */
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: miscutils.cc 420 2007-06-22 15:29:58Z murrayc $ */
|
/* $Id: miscutils.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_MISCUTILS_H
|
#ifndef _GLIBMM_MISCUTILS_H
|
||||||
#define _GLIBMM_MISCUTILS_H
|
#define _GLIBMM_MISCUTILS_H
|
||||||
|
|
||||||
/* $Id: miscutils.h 428 2007-07-29 12:43:29Z murrayc $ */
|
/* $Id: miscutils.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
20
libs/glibmm2/glib/glibmm/nodetree.cc
Normal file
20
libs/glibmm2/glib/glibmm/nodetree.cc
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||||
|
|
||||||
|
|
||||||
|
#include <glibmm/nodetree.h>
|
||||||
|
#include <glibmm/private/nodetree_p.h>
|
||||||
|
|
||||||
|
#include <glibmm/nodetree.h>
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
} // anonymous namespace
|
||||||
|
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
||||||
774
libs/glibmm2/glib/glibmm/nodetree.h
Normal file
774
libs/glibmm2/glib/glibmm/nodetree.h
Normal file
|
|
@ -0,0 +1,774 @@
|
||||||
|
// -*- c++ -*-
|
||||||
|
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||||
|
#ifndef _GLIBMM_NODETREE_H
|
||||||
|
#define _GLIBMM_NODETREE_H
|
||||||
|
|
||||||
|
|
||||||
|
/* Copyright (C) 2007 glibmm development team
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
#include <stack>
|
||||||
|
#include <deque>
|
||||||
|
|
||||||
|
#include <glibmm/refptr.h>
|
||||||
|
#include <glibmm/ustring.h>
|
||||||
|
#include <glibmm/error.h>
|
||||||
|
#include <glibmm/arrayhandle.h>
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
//Hand-written, instead of using _WRAP_ENUM,
|
||||||
|
//because the C enum values don't have a prefix.
|
||||||
|
|
||||||
|
/** Specifies the type of traveral performed by methods such as NodeTree::_traverse() and NodeTree::find().
|
||||||
|
*
|
||||||
|
* @ingroup glibmmEnums
|
||||||
|
*/
|
||||||
|
enum TraverseType
|
||||||
|
{
|
||||||
|
TRAVERSE_IN_ORDER = G_IN_ORDER, /*!< Visits a node's left child first, then the node itself, then its right child. This is the one to use if you want the output sorted according to the compare function. */
|
||||||
|
TRAVERSE_PRE_ORDER = G_PRE_ORDER, /*!< Visits a node, then its children. */
|
||||||
|
TRAVERSE_POST_ORDER = G_POST_ORDER, /*!< Visits the node's children, then the node itself. */
|
||||||
|
TRAVERSE_LEVEL_ORDER = G_LEVEL_ORDER /*!< For NodeTree, it vists the root node first, then its children, then its grandchildren, and so on. Note that this is less efficient than the other orders. This is not implemented for Glib::Tree. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/** N-ary Trees - trees of data with any number of branches
|
||||||
|
* The NodeTree class and its associated functions provide an N-ary tree data structure, in which nodes in the tree can contain arbitrary data.
|
||||||
|
*
|
||||||
|
* To insert a node into a tree use insert(), insert_before(), append() or prepend().
|
||||||
|
*
|
||||||
|
* To create a new node and insert it into a tree use insert_data(), insert_data_before(), append_data() and prepend_data().
|
||||||
|
*
|
||||||
|
* To reverse the children of a node use reverse_children().
|
||||||
|
*
|
||||||
|
* To find a node use root(), find(), find_child(), index_of(), child_index(), first_child(), last_child(), nth_child(), first_sibling(), prev_sibling(), next_sibling() or last_sibling().
|
||||||
|
*
|
||||||
|
* To get information about a node or tree use is_leaf(), is_root(), depth(), node_count(), child_count(), is_ancestor() or max_height().
|
||||||
|
*
|
||||||
|
* To traverse a tree, calling a function for each node visited in the traversal, use traverse() or foreach().
|
||||||
|
*
|
||||||
|
* To remove a node or subtree from a tree use unlink().
|
||||||
|
*
|
||||||
|
* @newin2p18
|
||||||
|
*/
|
||||||
|
template <typename T>
|
||||||
|
class NodeTree
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
|
typedef NodeTree CppObjectType;
|
||||||
|
typedef GNode BaseObjectType;
|
||||||
|
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
public:
|
||||||
|
typedef sigc::slot<bool, NodeTree<T>&> TraverseFunc;
|
||||||
|
typedef sigc::slot<void, NodeTree<T>&> ForeachFunc;
|
||||||
|
|
||||||
|
private:
|
||||||
|
static NodeTree<T>* wrap(GNode* node)
|
||||||
|
{
|
||||||
|
if (!node)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return reinterpret_cast<NodeTree<T>* >(node->data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
|
NodeTree()
|
||||||
|
{
|
||||||
|
clone();
|
||||||
|
}
|
||||||
|
|
||||||
|
explicit NodeTree(const T& the_data) :
|
||||||
|
data_(the_data)
|
||||||
|
{
|
||||||
|
clone();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NodeTree(const NodeTree<T>& node) :
|
||||||
|
data_(node.data())
|
||||||
|
{
|
||||||
|
clone(&node);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Removes the instance and its children from the tree,
|
||||||
|
* freeing any memory allocated.
|
||||||
|
*/
|
||||||
|
~NodeTree()
|
||||||
|
{
|
||||||
|
if(!is_root())
|
||||||
|
unlink();
|
||||||
|
|
||||||
|
clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NodeTree<T>& operator=(const NodeTree<T>& node)
|
||||||
|
{
|
||||||
|
clear();
|
||||||
|
clone(&node);
|
||||||
|
|
||||||
|
data_ = node.data();
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Provides access to the underlying C GObject.
|
||||||
|
inline GNode* gobj()
|
||||||
|
{
|
||||||
|
return gobject_;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Provides access to the underlying C GObject.
|
||||||
|
inline const GNode* gobj() const
|
||||||
|
{
|
||||||
|
return gobject_;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Inserts a NodeTree beneath the parent at the given position.
|
||||||
|
*
|
||||||
|
* @param position the position to place node at, with respect to its siblings
|
||||||
|
* If position is -1, node is inserted as the last child of parent
|
||||||
|
* @param node the NodeTree to insert
|
||||||
|
* @return the inserted NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>& insert(int position, NodeTree<T>& node)
|
||||||
|
{
|
||||||
|
g_node_insert(gobj(), position, node.gobj());
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a NodeTree beneath the parent before the given sibling.
|
||||||
|
*
|
||||||
|
* @param sibling the sibling NodeTree to place node before.
|
||||||
|
* @param node the NodeTree to insert
|
||||||
|
* @return the inserted NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>& insert_before(NodeTree<T>& sibling, NodeTree<T>& node)
|
||||||
|
{
|
||||||
|
g_node_insert_before(gobj(), sibling.gobj(), node.gobj());
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a NodeTree beneath the parent after the given sibling.
|
||||||
|
*
|
||||||
|
* @param sibling the sibling NodeTree to place node after.
|
||||||
|
* @param node the NodeTree to insert
|
||||||
|
* @return the inserted NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>& insert_after(NodeTree<T>& sibling, NodeTree<T>& node)
|
||||||
|
{
|
||||||
|
g_node_insert_after(gobj(), sibling.gobj(), node.gobj());
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a NodeTree as the last child.
|
||||||
|
*
|
||||||
|
* @param node the NodeTree to append
|
||||||
|
* @return the new NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>& append(NodeTree<T>& node)
|
||||||
|
{
|
||||||
|
g_node_append(gobj(), node.gobj());
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a NodeTree as the first child.
|
||||||
|
*
|
||||||
|
* @param data the data for the NodeTree
|
||||||
|
* @return the NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>& prepend(NodeTree<T>& node)
|
||||||
|
{
|
||||||
|
g_node_prepend(gobj(), node.gobj());
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a new NodeTree at the given position.
|
||||||
|
*
|
||||||
|
* @param position the position to place the new NodeTree at.
|
||||||
|
* If position is -1, the new NodeTree is inserted as the last child of parent
|
||||||
|
* @param data the data for the new NodeTree
|
||||||
|
* @return the new NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>* insert_data(int position, const T& the_data)
|
||||||
|
{
|
||||||
|
NodeTree<T>* node = new NodeTree<T>(the_data);
|
||||||
|
insert(position, *node);
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a new NodeTree before the given sibling.
|
||||||
|
*
|
||||||
|
* @param sibling the sibling NodeTree to place node before.
|
||||||
|
* @param data the data for the new NodeTree
|
||||||
|
* @return the new NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>* insert_data_before(NodeTree<T>& sibling, const T& the_data)
|
||||||
|
{
|
||||||
|
NodeTree<T>* node = new NodeTree<T>(the_data);
|
||||||
|
insert_before(sibling, *node);
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a new NodeTree as the last child.
|
||||||
|
*
|
||||||
|
* @param data the data for the new NodeTree
|
||||||
|
* @return the new NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>* append_data(const T& the_data)
|
||||||
|
{
|
||||||
|
NodeTree<T>* node = new NodeTree<T>(the_data);
|
||||||
|
append(*node);
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Inserts a new NodeTree as the first child.
|
||||||
|
*
|
||||||
|
* @param data the data for the new NodeTree
|
||||||
|
* @return the new NodeTree
|
||||||
|
*/
|
||||||
|
NodeTree<T>* prepend_data(const T& the_data)
|
||||||
|
{
|
||||||
|
NodeTree<T>* node = new NodeTree<T>(the_data);
|
||||||
|
prepend(*node);
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Reverses the order of the children.
|
||||||
|
*/
|
||||||
|
void reverse_children()
|
||||||
|
{
|
||||||
|
g_node_reverse_children(gobj());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Returns a pointer to the root of the tree.
|
||||||
|
*
|
||||||
|
* @return A pointer to the root of the tree.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* get_root()
|
||||||
|
{
|
||||||
|
return wrap(g_node_get_root(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
const NodeTree<T>* get_root() const
|
||||||
|
{
|
||||||
|
return wrap(g_node_get_root(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Specifies which nodes are visited during several of the NodeTree methods,
|
||||||
|
* including traverse() and find().
|
||||||
|
*
|
||||||
|
* @ingroup glibmmEnums
|
||||||
|
*/
|
||||||
|
enum TraverseFlags
|
||||||
|
{
|
||||||
|
TRAVERSE_LEAVES = G_TRAVERSE_LEAVES, /*!< Only leaf nodes should be visited. */
|
||||||
|
TRAVERSE_NON_LEAVES = G_TRAVERSE_NON_LEAVES, /*!< Only non-leaf nodes should be visited. */
|
||||||
|
TRAVERSE_ALL = G_TRAVERSE_ALL, /*!< All nodes should be visited. */
|
||||||
|
TRAVERSE_MASK = G_TRAVERSE_MASK /*!< A mask of all traverse flags. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/** Traverses a tree starting at the current node.
|
||||||
|
* It calls the given function for each node visited.
|
||||||
|
* The traversal can be halted at any point by returning true from @a func.
|
||||||
|
*
|
||||||
|
* @param order The order in which nodes are visited.
|
||||||
|
* @param flags Which types of children are to be visited.
|
||||||
|
* @param max_depth The maximum depth of the traversal.
|
||||||
|
* Nodes below this depth will not be visited.
|
||||||
|
* If max_depth is -1 all nodes in the tree are visited.
|
||||||
|
* If max_depth is 1, only the root is visited.
|
||||||
|
* If max_depth is 2, the root and its children are visited. And so on.
|
||||||
|
* @param func the slot to invoke for each visited child
|
||||||
|
*/
|
||||||
|
void traverse(const TraverseFunc& func, TraverseType order = TRAVERSE_IN_ORDER, TraverseFlags flags = TRAVERSE_ALL, int max_depth = -1)
|
||||||
|
{
|
||||||
|
TraverseFunc func_copy = func;
|
||||||
|
g_node_traverse(gobj(), (GTraverseType)order, (GTraverseFlags)flags, max_depth, c_callback_traverse, reinterpret_cast<gpointer>(&func_copy));
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
|
/** Calls a function for each of the children of a NodeTree.
|
||||||
|
* Note that it doesn't descend beneath the child nodes.
|
||||||
|
*
|
||||||
|
* @param flags Wwhich types of children are to be visited.
|
||||||
|
* @param func The slot to invoke for each visited node.
|
||||||
|
*/
|
||||||
|
void foreach(const ForeachFunc& func, TraverseFlags flags = TRAVERSE_ALL)
|
||||||
|
{
|
||||||
|
ForeachFunc func_copy = func;
|
||||||
|
g_node_children_foreach(gobj(), (GTraverseFlags)flags, c_callback_foreach, reinterpret_cast<gpointer>(&func_copy));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Finds the first child of a NodeTree with the given data.
|
||||||
|
*
|
||||||
|
* @param flags Which types of children are to be visited, one of TRAVERSE_ALL, TRAVERSE_LEAVES and TRAVERSE_NON_LEAVES.
|
||||||
|
* @param data The data for which to search.
|
||||||
|
* @return the found child, or 0 if the data is not found
|
||||||
|
*/
|
||||||
|
NodeTree<T>* find_child(const T& the_data, TraverseFlags flags = TRAVERSE_ALL)
|
||||||
|
{
|
||||||
|
sigc::slot<void, GNode*, const T&, GNode**> real_slot = sigc::ptr_fun(on_compare_child);
|
||||||
|
|
||||||
|
GNode* child = 0;
|
||||||
|
typedef sigc::slot<void, GNode*> type_foreach_gnode_slot;
|
||||||
|
type_foreach_gnode_slot bound_slot = sigc::bind(real_slot, the_data, &child);
|
||||||
|
|
||||||
|
g_node_children_foreach(gobj(), (GTraverseFlags)flags, c_callback_foreach_compare_child, reinterpret_cast<gpointer>(&bound_slot));
|
||||||
|
|
||||||
|
return wrap(child);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Finds the first child of a NodeTree with the given data.
|
||||||
|
*
|
||||||
|
* @param flags Which types of children are to be visited, one of TRAVERSE_ALL, TRAVERSE_LEAVES and TRAVERSE_NON_LEAVES.
|
||||||
|
* @param data The data for which to search.
|
||||||
|
* @return the found child, or 0 if the data is not found
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* find_child(const T& the_data, TraverseFlags flags = TRAVERSE_ALL) const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->find_child(flags, the_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Finds a node in a tree.
|
||||||
|
*
|
||||||
|
* @param order The order in which nodes are visited: IN_ORDER, TRAVERSE_PRE_ORDER, TRAVERSE_POST_ORDER, or TRAVERSE_LEVEL_ORDER
|
||||||
|
* @param flags Which types of children are to be visited: one of TRAVERSE_ALL, TRAVERSE_LEAVES and TRAVERSE_NON_LEAVES.
|
||||||
|
* @param data The data for which to search.
|
||||||
|
* @return The found node, or 0 if the data is not found.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* find(const T& the_data, TraverseType order = TRAVERSE_IN_ORDER, TraverseFlags flags = TRAVERSE_ALL)
|
||||||
|
{
|
||||||
|
//We use a sigc::slot for the C callback, so we can bind some extra data.
|
||||||
|
sigc::slot<gboolean, GNode*, const T&, GNode**> real_slot = sigc::ptr_fun(on_compare_node);
|
||||||
|
GNode* child = 0;
|
||||||
|
|
||||||
|
typedef sigc::slot<gboolean, GNode*> type_traverse_gnode_slot;
|
||||||
|
type_traverse_gnode_slot bound_slot = sigc::bind(real_slot, the_data, &child);
|
||||||
|
|
||||||
|
g_node_traverse(const_cast<GNode*>(gobj()), (GTraverseType)order, (GTraverseFlags)flags, -1, c_callback_traverse_compare_node, reinterpret_cast<gpointer>(&bound_slot));
|
||||||
|
|
||||||
|
return wrap(child);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Finds a node in a tree.
|
||||||
|
*
|
||||||
|
* @param order The order in which nodes are visited.
|
||||||
|
* @param flags Which types of children are to be visited.
|
||||||
|
* @param data The data for which to search.
|
||||||
|
* @return The found node, or 0 if the data is not found.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* find(const T& the_data, TraverseType order = TRAVERSE_IN_ORDER, TraverseFlags flags = TRAVERSE_ALL) const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->find(order, flags, the_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the position of the first child which contains the given data.
|
||||||
|
*
|
||||||
|
* @param data The data to find.
|
||||||
|
* @return The index of the child which contains data, or -1 if the data is not found.
|
||||||
|
*/
|
||||||
|
int child_index(const T& the_data) const
|
||||||
|
{
|
||||||
|
int n = 0;
|
||||||
|
|
||||||
|
for(const NodeTree<T>* i = first_child(); i != 0; i = i->next_sibling())
|
||||||
|
{
|
||||||
|
if((i->data()) == the_data)
|
||||||
|
return n;
|
||||||
|
|
||||||
|
n++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the position with respect to its siblings.
|
||||||
|
* child must be a child of node.
|
||||||
|
* The first child is numbered 0, the second 1, and so on.
|
||||||
|
*
|
||||||
|
* @param child A child
|
||||||
|
* @return The position of @a child with respect to its siblings.
|
||||||
|
*/
|
||||||
|
int child_position(const NodeTree<T>& child) const
|
||||||
|
{
|
||||||
|
return g_node_child_position(const_cast<GNode*>(gobj()), const_cast<GNode*>(child.gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the first child.
|
||||||
|
*
|
||||||
|
* @return The first child, or 0 if the node has no children.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* first_child()
|
||||||
|
{
|
||||||
|
return wrap(g_node_first_child(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the first child.
|
||||||
|
*
|
||||||
|
* @return The first child, or 0 if the node has no children.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* first_child() const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->first_child();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the last child.
|
||||||
|
*
|
||||||
|
* @return The last child, or 0 if the node has no children.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* last_child()
|
||||||
|
{
|
||||||
|
return wrap(g_node_last_child(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the last child.
|
||||||
|
*
|
||||||
|
* @return The last child, or 0 if the node has no children.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* last_child() const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->last_child();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the nth child.
|
||||||
|
*
|
||||||
|
* @return The nth child, or 0 if n is too large.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* nth_child(int n)
|
||||||
|
{
|
||||||
|
return wrap(g_node_nth_child(gobj(), n));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the nth child.
|
||||||
|
*
|
||||||
|
* @return The nth child, or 0 if n is too large.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* nth_child(int n) const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->nth_child(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the first sibling
|
||||||
|
* @return The first sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* first_sibling()
|
||||||
|
{
|
||||||
|
return wrap(g_node_first_sibling(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the first sibling
|
||||||
|
* @return The first sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* first_sibling() const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->first_sibling();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the previous sibling.
|
||||||
|
*
|
||||||
|
* @return The previous sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* prev_sibling()
|
||||||
|
{
|
||||||
|
return wrap(g_node_prev_sibling(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the previous sibling.
|
||||||
|
*
|
||||||
|
* @return The previous sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* prev_sibling() const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->prev_sibling();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the next sibling
|
||||||
|
*
|
||||||
|
* @return The next sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* next_sibling()
|
||||||
|
{
|
||||||
|
return wrap(g_node_next_sibling(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the next sibling
|
||||||
|
*
|
||||||
|
* @return The next sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* next_sibling() const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->next_sibling();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the last sibling.
|
||||||
|
*
|
||||||
|
* @return The last sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* last_sibling()
|
||||||
|
{
|
||||||
|
return wrap(g_node_last_sibling(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the last sibling.
|
||||||
|
*
|
||||||
|
* @return The last sibling, or 0 if the node has no siblings.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* last_sibling() const
|
||||||
|
{
|
||||||
|
return const_cast<NodeTree<T>*>(this)->last_sibling();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Returns true if this is a leaf node.
|
||||||
|
*
|
||||||
|
* @return true if this is a leaf node.
|
||||||
|
*/
|
||||||
|
bool is_leaf() const
|
||||||
|
{
|
||||||
|
return G_NODE_IS_LEAF(const_cast<GNode*>(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Returns true if this is the root node.
|
||||||
|
*
|
||||||
|
* @return true if this is the root node.
|
||||||
|
*/
|
||||||
|
bool is_root() const
|
||||||
|
{
|
||||||
|
return G_NODE_IS_ROOT(const_cast<GNode*>(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Gets the depth of this node.
|
||||||
|
* The root node has a depth of 1.
|
||||||
|
* For the children of the root node the depth is 2. And so on.
|
||||||
|
*
|
||||||
|
* @return the depth of this node
|
||||||
|
*/
|
||||||
|
guint depth() const
|
||||||
|
{
|
||||||
|
return g_node_depth(const_cast<GNode*>(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the number of nodes in a tree.
|
||||||
|
*
|
||||||
|
* @param flags Which types of children are to be counted: one of TRAVERSE_ALL, TRAVERSE_LEAVES and TRAVERSE_NON_LEAVES
|
||||||
|
* @return The number of nodes in the tree.
|
||||||
|
*/
|
||||||
|
guint node_count(TraverseFlags flags = TRAVERSE_ALL) const
|
||||||
|
{
|
||||||
|
return g_node_n_nodes(const_cast<GNode*>(gobj()), (GTraverseFlags)flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the number children.
|
||||||
|
*
|
||||||
|
* @return The number of children.
|
||||||
|
*/
|
||||||
|
guint child_count() const
|
||||||
|
{
|
||||||
|
return g_node_n_children(const_cast<GNode*>(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Returns true if this is an ancestor of @a descendant.
|
||||||
|
* This is true if this is the parent of @a descendant,
|
||||||
|
* or if this is the grandparent of @a descendant etc.
|
||||||
|
*
|
||||||
|
* @param descendant A node.
|
||||||
|
* @return true if this is an ancestor of descendant.
|
||||||
|
*/
|
||||||
|
bool is_ancestor(const NodeTree<T>& descendant) const
|
||||||
|
{
|
||||||
|
return g_node_is_ancestor(const_cast<GNode*>(gobj()), const_cast<GNode*>(descendant.gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Gets the maximum height of all branches beneath this node.
|
||||||
|
* This is the maximum distance from the node to all leaf nodes.
|
||||||
|
* If root has no children, 1 is returned. If root has children, 2 is returned. And so on.
|
||||||
|
*
|
||||||
|
* @return The maximum height of all branches.
|
||||||
|
*/
|
||||||
|
guint get_max_height() const
|
||||||
|
{
|
||||||
|
return g_node_max_height(const_cast<GNode*>(gobj()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** Unlinks a node from a tree, resulting in two separate trees.
|
||||||
|
*/
|
||||||
|
void unlink()
|
||||||
|
{
|
||||||
|
g_node_unlink(gobj());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if 0 //Commented-out because people can just use the copy constructor.
|
||||||
|
/** Recursively copies a node and it's data.
|
||||||
|
*
|
||||||
|
* Returns: a new node containing the copies of the data.
|
||||||
|
*/
|
||||||
|
NodeTree<T>* copy_deep() const
|
||||||
|
{
|
||||||
|
//Use copy constructor instead of g_node_copy_deep to create C++ wrappers also not only the wrapped C objects.
|
||||||
|
return new NodeTree<T>(*this);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/// Accessor for this node's data
|
||||||
|
T& data()
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Accessor for this node's data
|
||||||
|
const T& data() const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Accessor for this node's parent.
|
||||||
|
*
|
||||||
|
* @return The node's parent.
|
||||||
|
*/
|
||||||
|
const NodeTree<T>* parent() const
|
||||||
|
{
|
||||||
|
return wrap(gobj()->parent);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do not wrap this shallow copy function, because it is not useful:
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void clear()
|
||||||
|
{
|
||||||
|
//Free the children (not just with g_node_destroy(), to avoid the leaking of C++ wrapper objects):
|
||||||
|
while(NodeTree<T>* i = first_child())
|
||||||
|
delete i;
|
||||||
|
|
||||||
|
//Free the wrapped object (g_node_free not available)
|
||||||
|
g_slice_free(GNode, gobject_);
|
||||||
|
gobject_ = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
///Create a new GNode, taking the contents of an existing node if one is specified.
|
||||||
|
void clone(const NodeTree<T>* node = 0)
|
||||||
|
{
|
||||||
|
//Store the this pointer in the GNode so we can discover this wrapper later:
|
||||||
|
gobject_ = g_node_new(reinterpret_cast<gpointer>(this));
|
||||||
|
|
||||||
|
if(node)
|
||||||
|
{
|
||||||
|
//Prepend the copied children of @node to the constructing node.
|
||||||
|
for(const NodeTree<T>* i = node->last_child(); i != 0; i = i->prev_sibling())
|
||||||
|
prepend(*(new NodeTree<T>(*i)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Wrapper for invoking a TraverseFunc.
|
||||||
|
static gboolean c_callback_traverse(GNode* node, gpointer slot)
|
||||||
|
{
|
||||||
|
const TraverseFunc* tf = reinterpret_cast<const TraverseFunc*>(slot);
|
||||||
|
return (*tf)(*wrap(node));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Wrapper for invoking a ForeachFunc.
|
||||||
|
static void c_callback_foreach(GNode* node, gpointer slot)
|
||||||
|
{
|
||||||
|
const ForeachFunc* ff = reinterpret_cast<const ForeachFunc*>(slot);
|
||||||
|
(*ff)(*wrap(node));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Method for comparing a single child (Internal use).
|
||||||
|
static void on_compare_child(GNode* node, const T& needle, GNode** result)
|
||||||
|
{
|
||||||
|
if((0 != result) && (wrap(node)->data() == needle))
|
||||||
|
{
|
||||||
|
*result = node;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Wrapper for invoking a sigc::slot<void,GNode*> (Internal use).
|
||||||
|
static void c_callback_foreach_compare_child(GNode* node, gpointer data)
|
||||||
|
{
|
||||||
|
const ForeachFunc* slot = reinterpret_cast<const ForeachFunc*>(data);
|
||||||
|
(*slot)(*wrap(node));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Method for comparing a single node (Internal use).
|
||||||
|
static gboolean on_compare_node(GNode* node, const T& needle, GNode** result)
|
||||||
|
{
|
||||||
|
if(wrap(node)->data() == needle)
|
||||||
|
{
|
||||||
|
*result = node;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Wrapper for invoking a sigc::slot<gboolean,GNode*> (Internal use).
|
||||||
|
static gboolean c_callback_traverse_compare_node(GNode* node, gpointer data)
|
||||||
|
{
|
||||||
|
const TraverseFunc* slot = reinterpret_cast<const TraverseFunc*>(data);
|
||||||
|
return (*slot)(*wrap(node));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
GNode* gobject_;
|
||||||
|
T data_;
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _GLIBMM_NODETREE_H */
|
||||||
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: object.cc 369 2007-01-20 10:19:33Z daniel $ */
|
/* $Id: object.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 1998-2002 The gtkmm Development Team
|
/* Copyright 1998-2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -22,13 +22,14 @@
|
||||||
#include <glibmm/private/object_p.h>
|
#include <glibmm/private/object_p.h>
|
||||||
#include <glibmm/property.h>
|
#include <glibmm/property.h>
|
||||||
|
|
||||||
#include <glib.h>
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <gobject/gvaluecollector.h>
|
#include <gobject/gvaluecollector.h>
|
||||||
|
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
//Weak references:
|
//Weak references:
|
||||||
//I'm not sure what the point of these are apart from being a hacky way out of circular references,
|
//I'm not sure what the point of these are apart from being a hacky way out of circular references,
|
||||||
//but maybe we could make it easier to use them by making a Java Reference Object -style class like so:
|
//but maybe we could make it easier to use them by making a Java Reference Object -style class like so:
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_OBJECT_H
|
#ifndef _GLIBMM_OBJECT_H
|
||||||
#define _GLIBMM_OBJECT_H
|
#define _GLIBMM_OBJECT_H
|
||||||
/* $Id: object.h 369 2007-01-20 10:19:33Z daniel $ */
|
/* $Id: object.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
# error "X11/Xlib.h seems to have been included before this header. Due to some commonly-named macros in X11/Xlib.h, it may only be included after any glibmm, gdkmm, or gtkmm headers."
|
# error "X11/Xlib.h seems to have been included before this header. Due to some commonly-named macros in X11/Xlib.h, it may only be included after any glibmm, gdkmm, or gtkmm headers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <glib/gmacros.h> /* for G_GNUC_NULL_TERMINATED */
|
#include <glib.h> /* for G_GNUC_NULL_TERMINATED */
|
||||||
#include <glibmm/objectbase.h>
|
#include <glibmm/objectbase.h>
|
||||||
#include <glibmm/wrap.h>
|
#include <glibmm/wrap.h>
|
||||||
#include <glibmm/quark.h>
|
#include <glibmm/quark.h>
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: objectbase.cc 337 2006-11-10 02:24:49Z murrayc $ */
|
/* $Id: objectbase.cc 785 2009-02-17 19:03:06Z daniel $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -83,8 +83,6 @@ void ObjectBase::initialize(GObject* castitem)
|
||||||
return; // Don't initialize the wrapper twice.
|
return; // Don't initialize the wrapper twice.
|
||||||
}
|
}
|
||||||
|
|
||||||
//g_print("%s : %s\n", G_GNUC_PRETTY_FUNCTION, G_OBJECT_TYPE_NAME(castitem));
|
|
||||||
|
|
||||||
gobject_ = castitem;
|
gobject_ = castitem;
|
||||||
_set_current_wrapper(castitem);
|
_set_current_wrapper(castitem);
|
||||||
}
|
}
|
||||||
|
|
@ -257,6 +255,11 @@ void ObjectBase::get_property_value(const Glib::ustring& property_name, Glib::Va
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectBase::connect_property_changed(const Glib::ustring& property_name, const sigc::slot<void>& slot)
|
void ObjectBase::connect_property_changed(const Glib::ustring& property_name, const sigc::slot<void>& slot)
|
||||||
|
{
|
||||||
|
connect_property_changed_with_return(property_name, slot);
|
||||||
|
}
|
||||||
|
|
||||||
|
sigc::connection ObjectBase::connect_property_changed_with_return(const Glib::ustring& property_name, const sigc::slot<void>& slot)
|
||||||
{
|
{
|
||||||
// Create a proxy to hold our connection info
|
// Create a proxy to hold our connection info
|
||||||
// This will be deleted by destroy_notify_handler.
|
// This will be deleted by destroy_notify_handler.
|
||||||
|
|
@ -271,9 +274,12 @@ void ObjectBase::connect_property_changed(const Glib::ustring& property_name, co
|
||||||
notify_signal_name.c_str(), (GCallback)(&PropertyProxyConnectionNode::callback), pConnectionNode,
|
notify_signal_name.c_str(), (GCallback)(&PropertyProxyConnectionNode::callback), pConnectionNode,
|
||||||
&PropertyProxyConnectionNode::destroy_notify_handler,
|
&PropertyProxyConnectionNode::destroy_notify_handler,
|
||||||
G_CONNECT_AFTER);
|
G_CONNECT_AFTER);
|
||||||
|
|
||||||
|
return sigc::connection(pConnectionNode->slot_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool _gobject_cppinstance_already_deleted(GObject* gobject)
|
bool _gobject_cppinstance_already_deleted(GObject* gobject)
|
||||||
{
|
{
|
||||||
//This function is used to prevent calling wrap() on a GTK+ instance whose gtkmm instance has been deleted.
|
//This function is used to prevent calling wrap() on a GTK+ instance whose gtkmm instance has been deleted.
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_OBJECTBASE_H
|
#ifndef _GLIBMM_OBJECTBASE_H
|
||||||
#define _GLIBMM_OBJECTBASE_H
|
#define _GLIBMM_OBJECTBASE_H
|
||||||
|
|
||||||
/* $Id: objectbase.h 385 2007-03-23 17:23:42Z murrayc $ */
|
/* $Id: objectbase.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -112,9 +112,20 @@ public:
|
||||||
|
|
||||||
/** You can use the signal_changed() signal of the property proxy instead,
|
/** You can use the signal_changed() signal of the property proxy instead,
|
||||||
* but this is necessary when using the reduced API.
|
* but this is necessary when using the reduced API.
|
||||||
|
*
|
||||||
|
* See also connect_property_changed_with_return().
|
||||||
*/
|
*/
|
||||||
void connect_property_changed(const Glib::ustring& property_name, const sigc::slot<void>& slot);
|
void connect_property_changed(const Glib::ustring& property_name, const sigc::slot<void>& slot);
|
||||||
|
|
||||||
|
/** You can use the signal_changed() signal of the property proxy instead,
|
||||||
|
* but this is necessary when using the reduced API.
|
||||||
|
*
|
||||||
|
* This method was added because connect_property_changed() does not return a sigc::connection,
|
||||||
|
* and we could not break the ABI by changing that function.
|
||||||
|
*/
|
||||||
|
sigc::connection connect_property_changed_with_return(const Glib::ustring& property_name, const sigc::slot<void>& slot);
|
||||||
|
|
||||||
|
//TODO: Why are these virtual?
|
||||||
/** Increment the reference count for this object.
|
/** Increment the reference count for this object.
|
||||||
* You should never need to do this manually - use the object via a RefPtr instead.
|
* You should never need to do this manually - use the object via a RefPtr instead.
|
||||||
*/
|
*/
|
||||||
|
|
@ -125,10 +136,10 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual void unreference() const;
|
virtual void unreference() const;
|
||||||
|
|
||||||
///Provides access to the underlying C GtkObject.
|
///Provides access to the underlying C GObject.
|
||||||
inline GObject* gobj() { return gobject_; }
|
inline GObject* gobj() { return gobject_; }
|
||||||
|
|
||||||
///Provides access to the underlying C GtkObject.
|
///Provides access to the underlying C GObject.
|
||||||
inline const GObject* gobj() const { return gobject_; }
|
inline const GObject* gobj() const { return gobject_; }
|
||||||
|
|
||||||
/// Give a ref-ed copy to someone. Use for direct struct access.
|
/// Give a ref-ed copy to someone. Use for direct struct access.
|
||||||
|
|
|
||||||
|
|
@ -10,23 +10,23 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glibmm/utility.h>
|
#include <glibmm/utility.h>
|
||||||
#include <glibmm/exceptionhandler.h>
|
#include <glibmm/exceptionhandler.h>
|
||||||
#include <glib/goption.h>
|
#include <glib.h>
|
||||||
|
|
||||||
namespace Glib
|
namespace Glib
|
||||||
{
|
{
|
||||||
|
|
@ -115,6 +115,11 @@ void OptionContext::set_translate_func (const SlotTranslate& slot)
|
||||||
&Private::SignalProxy_translate_gtk_callback_destroy);
|
&Private::SignalProxy_translate_gtk_callback_destroy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Glib::ustring OptionContext::get_help(bool main_help) const
|
||||||
|
{
|
||||||
|
return Glib::convert_return_gchar_ptr_to_ustring(g_option_context_get_help(const_cast<GOptionContext*>(gobj()), static_cast<int>(main_help), NULL));
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Glib
|
} // namespace Glib
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
|
@ -195,6 +200,11 @@ bool OptionContext::parse(int& argc, char**& argv, std::auto_ptr<Glib::Error>& e
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Glib::ustring OptionContext::get_help(bool main_help, const OptionGroup& group) const
|
||||||
|
{
|
||||||
|
return Glib::convert_return_gchar_ptr_to_ustring(g_option_context_get_help(const_cast<GOptionContext*>(gobj()), static_cast<int>(main_help), const_cast<GOptionGroup*>((group).gobj())));
|
||||||
|
}
|
||||||
|
|
||||||
void OptionContext::set_summary(const Glib::ustring& summary)
|
void OptionContext::set_summary(const Glib::ustring& summary)
|
||||||
{
|
{
|
||||||
g_option_context_set_summary(gobj(), summary.c_str());
|
g_option_context_set_summary(gobj(), summary.c_str());
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
/* Copyright (C) 2004 The glibmm Development Team
|
/* Copyright (C) 2004 The glibmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -80,6 +80,7 @@ class OptionContext
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/** Creates a new option context.
|
/** Creates a new option context.
|
||||||
|
|
@ -112,7 +113,7 @@ public:
|
||||||
bool get_help_enabled() const;
|
bool get_help_enabled() const;
|
||||||
|
|
||||||
/** Sets whether to ignore unknown options or not. If an argument is
|
/** Sets whether to ignore unknown options or not. If an argument is
|
||||||
* ignored, it is left in the @a argv array after parsing. By default,
|
* ignored, it is left in the @a argv array after parsing. By default,
|
||||||
* g_option_context_parse() treats unknown options as error.
|
* g_option_context_parse() treats unknown options as error.
|
||||||
*
|
*
|
||||||
* This setting does not affect non-option arguments (i.e. arguments
|
* This setting does not affect non-option arguments (i.e. arguments
|
||||||
|
|
@ -134,20 +135,20 @@ public:
|
||||||
|
|
||||||
|
|
||||||
/** Parses the command line arguments, recognizing options
|
/** Parses the command line arguments, recognizing options
|
||||||
* which have been added to @a context . A side-effect of
|
* which have been added to @a context. A side-effect of
|
||||||
* calling this function is that g_set_prgname() will be
|
* calling this function is that g_set_prgname() will be
|
||||||
* called.
|
* called.
|
||||||
*
|
*
|
||||||
* If the parsing is successful, any parsed arguments are
|
* If the parsing is successful, any parsed arguments are
|
||||||
* removed from the array and @a argc and @a argv are updated
|
* removed from the array and @a argc and @a argv are updated
|
||||||
* accordingly. A '--' option is stripped from @a argv
|
* accordingly. A '--' option is stripped from @a argv
|
||||||
* unless there are unparsed options before and after it,
|
* unless there are unparsed options before and after it,
|
||||||
* or some of the options after it start with '-'. In case
|
* or some of the options after it start with '-'. In case
|
||||||
* of an error, @a argc and @a argv are left unmodified.
|
* of an error, @a argc and @a argv are left unmodified.
|
||||||
*
|
*
|
||||||
* If automatic <option>--help</option> support is enabled
|
* If automatic <option>--help</option> support is enabled
|
||||||
* (see g_option_context_set_help_enabled()), and the
|
* (see g_option_context_set_help_enabled()), and the
|
||||||
* @a argv array contains one of the recognized help options,
|
* @a argv array contains one of the recognized help options,
|
||||||
* this function will produce help output to stdout and
|
* this function will produce help output to stdout and
|
||||||
* call <tt>exit (0)</tt>.
|
* call <tt>exit (0)</tt>.
|
||||||
*
|
*
|
||||||
|
|
@ -157,7 +158,6 @@ public:
|
||||||
* arguments.
|
* arguments.
|
||||||
* @param argc A pointer to the number of command line arguments.
|
* @param argc A pointer to the number of command line arguments.
|
||||||
* @param argv A pointer to the array of command line arguments.
|
* @param argv A pointer to the array of command line arguments.
|
||||||
* @param error A return location for errors.
|
|
||||||
* @return <tt>true</tt> if the parsing was successful,
|
* @return <tt>true</tt> if the parsing was successful,
|
||||||
* <tt>false</tt> if an error occurred
|
* <tt>false</tt> if an error occurred
|
||||||
*
|
*
|
||||||
|
|
@ -196,6 +196,18 @@ public:
|
||||||
//const OptionGroup& get_main_group() const;
|
//const OptionGroup& get_main_group() const;
|
||||||
|
|
||||||
|
|
||||||
|
/** Returns: A newly allocated string containing the help text
|
||||||
|
* @param main_help If <tt>true</tt>, only include the main group.
|
||||||
|
* @param group The OptionGroup to create help for, or <tt>0</tt>.
|
||||||
|
* @return A newly allocated string containing the help text
|
||||||
|
*
|
||||||
|
* @newin2p14.
|
||||||
|
*/
|
||||||
|
Glib::ustring get_help(bool main_help, const OptionGroup& group) const;
|
||||||
|
|
||||||
|
//TODO: Documentation.
|
||||||
|
Glib::ustring get_help(bool main_help = true) const;
|
||||||
|
|
||||||
GOptionContext* gobj() { return gobject_; }
|
GOptionContext* gobj() { return gobject_; }
|
||||||
const GOptionContext* gobj() const { return gobject_; }
|
const GOptionContext* gobj() const { return gobject_; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,23 +10,22 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glibmm/utility.h>
|
#include <glibmm/utility.h>
|
||||||
#include <glib/goption.h>
|
#include <glib.h>
|
||||||
#include <glib/gmem.h>
|
|
||||||
|
|
||||||
namespace Glib
|
namespace Glib
|
||||||
{
|
{
|
||||||
|
|
@ -80,6 +79,42 @@ OptionEntry& OptionEntry::operator=(const OptionEntry& src)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OptionEntry::set_long_name(const Glib::ustring& value)
|
||||||
|
{
|
||||||
|
if(gobject_->long_name)
|
||||||
|
{
|
||||||
|
g_free((gchar*)(gobject_->long_name));
|
||||||
|
gobject_->long_name = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Note that we do not use NULL for an empty string,
|
||||||
|
//because G_OPTION_REMAINING is actually a "", so it actually has a distinct meaning:
|
||||||
|
//TODO: Wrap G_OPTION_REMAINING in C++ somehow, maybe as an explicit set_long_name(void) or set_is_remaining()? murrayc.
|
||||||
|
gobj()->long_name = (value).c_str() ? g_strdup((value).c_str()) : NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
void OptionEntry::set_description(const Glib::ustring& value)
|
||||||
|
{
|
||||||
|
if(gobject_->description)
|
||||||
|
{
|
||||||
|
g_free((gchar*)(gobject_->description));
|
||||||
|
gobject_->description = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
gobj()->description = (value).empty() ? NULL : g_strdup((value).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
void OptionEntry::set_arg_description(const Glib::ustring& value)
|
||||||
|
{
|
||||||
|
if(gobject_->arg_description)
|
||||||
|
{
|
||||||
|
g_free((gchar*)(gobject_->arg_description));
|
||||||
|
gobject_->arg_description = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
gobj()->arg_description = (value).empty() ? NULL : g_strdup((value).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace Glib
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
@ -98,11 +133,6 @@ namespace Glib
|
||||||
return Glib::convert_const_gchar_ptr_to_ustring(gobj()->long_name);
|
return Glib::convert_const_gchar_ptr_to_ustring(gobj()->long_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionEntry::set_long_name(const Glib::ustring& value)
|
|
||||||
{
|
|
||||||
gobj()->long_name = g_strdup((value).c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
gchar OptionEntry::get_short_name() const
|
gchar OptionEntry::get_short_name() const
|
||||||
{
|
{
|
||||||
return gobj()->short_name;
|
return gobj()->short_name;
|
||||||
|
|
@ -128,21 +158,11 @@ namespace Glib
|
||||||
return Glib::convert_const_gchar_ptr_to_ustring(gobj()->description);
|
return Glib::convert_const_gchar_ptr_to_ustring(gobj()->description);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionEntry::set_description(const Glib::ustring& value)
|
|
||||||
{
|
|
||||||
gobj()->description = g_strdup((value).c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
Glib::ustring OptionEntry::get_arg_description() const
|
Glib::ustring OptionEntry::get_arg_description() const
|
||||||
{
|
{
|
||||||
return Glib::convert_const_gchar_ptr_to_ustring(gobj()->arg_description);
|
return Glib::convert_const_gchar_ptr_to_ustring(gobj()->arg_description);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OptionEntry::set_arg_description(const Glib::ustring& value)
|
|
||||||
{
|
|
||||||
gobj()->arg_description = g_strdup((value).c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace Glib
|
} // namespace Glib
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
/* Copyright (C) 2004 The glibmm Development Team
|
/* Copyright (C) 2004 The glibmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -77,10 +77,12 @@ public:
|
||||||
|
|
||||||
OptionEntry& operator=(const OptionEntry& src);
|
OptionEntry& operator=(const OptionEntry& src);
|
||||||
|
|
||||||
|
//#m4 __CONVERSION(`Glib::ustring',`const gchar*',`($3).empty() ? NULL : g_strdup(($3).c_str())')
|
||||||
|
|
||||||
Glib::ustring get_long_name() const;
|
Glib::ustring get_long_name() const;
|
||||||
void set_long_name(const Glib::ustring& value);
|
|
||||||
|
void set_long_name(const Glib::ustring& value);
|
||||||
|
|
||||||
gchar get_short_name() const;
|
gchar get_short_name() const;
|
||||||
void set_short_name(const gchar& value);
|
void set_short_name(const gchar& value);
|
||||||
|
|
||||||
|
|
@ -90,11 +92,15 @@ public:
|
||||||
//TODO: G_OPTION_ARG_CALLBACK,
|
//TODO: G_OPTION_ARG_CALLBACK,
|
||||||
|
|
||||||
Glib::ustring get_description() const;
|
Glib::ustring get_description() const;
|
||||||
void set_description(const Glib::ustring& value);
|
|
||||||
|
void set_description(const Glib::ustring& value);
|
||||||
|
|
||||||
|
|
||||||
Glib::ustring get_arg_description() const;
|
Glib::ustring get_arg_description() const;
|
||||||
void set_arg_description(const Glib::ustring& value);
|
|
||||||
|
void set_arg_description(const Glib::ustring& value);
|
||||||
|
|
||||||
|
|
||||||
GOptionEntry* gobj() { return gobject_; }
|
GOptionEntry* gobj() { return gobject_; }
|
||||||
const GOptionEntry* gobj() const { return gobject_; }
|
const GOptionEntry* gobj() const { return gobject_; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -28,8 +28,7 @@
|
||||||
#include <glibmm/optioncontext.h>
|
#include <glibmm/optioncontext.h>
|
||||||
#include <glibmm/utility.h>
|
#include <glibmm/utility.h>
|
||||||
//#include <glibmm/containers.h>
|
//#include <glibmm/containers.h>
|
||||||
#include <glib/gmem.h> // g_malloc
|
#include <glib.h> // g_malloc
|
||||||
#include <glib/goption.h>
|
|
||||||
|
|
||||||
namespace Glib
|
namespace Glib
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@
|
||||||
/* Copyright (C) 2004 The glibmm Development Team
|
/* Copyright (C) 2004 The glibmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <glib/goption.h> //TODO: Try to hide this.
|
#include <glib.h> //TODO: Try to hide this.
|
||||||
|
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,26 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: pattern.cc 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: pattern.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* pattern.cc
|
/* pattern.cc
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gpattern.h>
|
#include <glib.h>
|
||||||
#include <glibmm/pattern.h>
|
#include <glibmm/pattern.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,23 +2,23 @@
|
||||||
#ifndef _GLIBMM_PATTERN_H
|
#ifndef _GLIBMM_PATTERN_H
|
||||||
#define _GLIBMM_PATTERN_H
|
#define _GLIBMM_PATTERN_H
|
||||||
|
|
||||||
/* $Id: pattern.h 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: pattern.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* pattern.h
|
/* pattern.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
65
libs/glibmm2/glib/glibmm/priorities.h
Normal file
65
libs/glibmm2/glib/glibmm/priorities.h
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
// -*- c++ -*-
|
||||||
|
#ifndef _GLIBMM_PRIORITIES_H
|
||||||
|
#define _GLIBMM_PRIORITIES_H
|
||||||
|
|
||||||
|
/* $Id: priorities.h 420 2007-06-22 15:29:58Z murrayc $ */
|
||||||
|
|
||||||
|
/* Copyright (C) 2002-2008 The gtkmm Development Team
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Glib
|
||||||
|
{
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
/*! Use this for high priority event sources. It is not used within
|
||||||
|
* GLib or GTK+.<br><br>
|
||||||
|
*/
|
||||||
|
PRIORITY_HIGH = -100,
|
||||||
|
|
||||||
|
/*! Use this for default priority event sources. In glibmm this
|
||||||
|
* priority is used by default when installing timeout handlers with
|
||||||
|
* SignalTimeout::connect(). In GDK this priority is used for events
|
||||||
|
* from the X server.<br><br>
|
||||||
|
*/
|
||||||
|
PRIORITY_DEFAULT = 0,
|
||||||
|
|
||||||
|
/*! Use this for high priority idle functions. GTK+ uses
|
||||||
|
* <tt>PRIORITY_HIGH_IDLE + 10</tt> for resizing operations, and
|
||||||
|
* <tt>PRIORITY_HIGH_IDLE + 20</tt> for redrawing operations.
|
||||||
|
* (This is done to ensure that any pending resizes are processed before
|
||||||
|
* any pending redraws, so that widgets are not redrawn twice unnecessarily.)
|
||||||
|
* <br><br>
|
||||||
|
*/
|
||||||
|
PRIORITY_HIGH_IDLE = 100,
|
||||||
|
|
||||||
|
/*! Use this for default priority idle functions. In glibmm this priority is
|
||||||
|
* used by default when installing idle handlers with SignalIdle::connect().
|
||||||
|
* <br><br>
|
||||||
|
*/
|
||||||
|
PRIORITY_DEFAULT_IDLE = 200,
|
||||||
|
|
||||||
|
/*! Use this for very low priority background tasks. It is not used within
|
||||||
|
* GLib or GTK+.
|
||||||
|
*/
|
||||||
|
PRIORITY_LOW = 300
|
||||||
|
};
|
||||||
|
|
||||||
|
} //namespace Glib
|
||||||
|
|
||||||
|
#endif //#ifndef _GLIBMM_PRIORITIES_H
|
||||||
|
|
||||||
|
|
@ -2,19 +2,18 @@
|
||||||
## The gtkmm development team.
|
## The gtkmm development team.
|
||||||
|
|
||||||
include $(srcdir)/../../src/Makefile_list_of_hg.am_fragment
|
include $(srcdir)/../../src/Makefile_list_of_hg.am_fragment
|
||||||
include $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
|
||||||
|
|
||||||
files_built_h = $(files_hg:.hg=_p.h)
|
files_built_p_h = $(files_hg:.hg=_p.h)
|
||||||
files_built_all_h = $(files_all_hg:.hg=_p.h)
|
files_built_all_p_h = $(files_all_hg:.hg=_p.h)
|
||||||
files_extra_h = interface_p.h object_p.h
|
files_extra_p_h = interface_p.h object_p.h
|
||||||
files_extra_all_h = interface_p.h object_p.h
|
files_extra_all_p_h = interface_p.h object_p.h
|
||||||
|
|
||||||
dist_sources = $(files_built_all_h) $(files_extra_all_h)
|
dist_sources = $(files_built_all_p_h) $(files_extra_all_p_h)
|
||||||
DISTFILES = $(DIST_COMMON) $(dist_sources)
|
DISTFILES = $(DIST_COMMON) $(dist_sources)
|
||||||
|
|
||||||
private_includedir = $(includedir)/glibmm-2.4/glibmm/private
|
private_includedir = $(includedir)/glibmm-2.4/glibmm/private
|
||||||
private_include_HEADERS = $(files_built_h) $(files_extra_h)
|
private_include_HEADERS = $(files_built_p_h) $(files_extra_p_h)
|
||||||
|
|
||||||
maintainer-clean-local:
|
maintainer-clean-local:
|
||||||
(cd $(srcdir) && rm -f $(files_built_h))
|
(cd $(srcdir) && rm -f $(files_built_p_h))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# Makefile.in generated by automake 1.10 from Makefile.am.
|
# Makefile.in generated by automake 1.10.1 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
|
# Built files
|
||||||
|
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
pkgdatadir = $(datadir)/@PACKAGE@
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
pkglibdir = $(libdir)/@PACKAGE@
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
|
@ -35,10 +37,17 @@ host_triplet = @host@
|
||||||
DIST_COMMON = $(am__private_include_HEADERS_DIST) \
|
DIST_COMMON = $(am__private_include_HEADERS_DIST) \
|
||||||
$(srcdir)/../../src/Makefile_list_of_hg.am_fragment \
|
$(srcdir)/../../src/Makefile_list_of_hg.am_fragment \
|
||||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||||
$(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment
|
$(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment
|
||||||
subdir = glib/glibmm/private
|
subdir = glib/glibmm/private
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
am__aclocal_m4_deps = $(top_srcdir)/scripts/c_std.m4 \
|
||||||
|
$(top_srcdir)/scripts/cxx.m4 $(top_srcdir)/scripts/cxx_std.m4 \
|
||||||
|
$(top_srcdir)/scripts/dk-feature.m4 \
|
||||||
|
$(top_srcdir)/scripts/docgen.m4 \
|
||||||
|
$(top_srcdir)/scripts/glibmm_check_perl.m4 \
|
||||||
|
$(top_srcdir)/scripts/macros.m4 \
|
||||||
|
$(top_srcdir)/scripts/reduced.m4 $(top_srcdir)/scripts/sun.m4 \
|
||||||
|
$(top_srcdir)/configure.in
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
$(ACLOCAL_M4)
|
$(ACLOCAL_M4)
|
||||||
mkinstalldirs = $(install_sh) -d
|
mkinstalldirs = $(install_sh) -d
|
||||||
|
|
@ -48,11 +57,11 @@ CONFIG_HEADER = $(top_builddir)/config.h \
|
||||||
CONFIG_CLEAN_FILES =
|
CONFIG_CLEAN_FILES =
|
||||||
SOURCES =
|
SOURCES =
|
||||||
DIST_SOURCES =
|
DIST_SOURCES =
|
||||||
am__private_include_HEADERS_DIST = convert_p.h date_p.h fileutils_p.h \
|
am__private_include_HEADERS_DIST = checksum_p.h convert_p.h date_p.h \
|
||||||
iochannel_p.h keyfile_p.h markup_p.h module_p.h \
|
fileutils_p.h iochannel_p.h keyfile_p.h markup_p.h module_p.h \
|
||||||
optioncontext_p.h optionentry_p.h optiongroup_p.h regex_p.h \
|
optioncontext_p.h optionentry_p.h optiongroup_p.h regex_p.h \
|
||||||
shell_p.h spawn_p.h thread_p.h unicode_p.h interface_p.h \
|
shell_p.h spawn_p.h thread_p.h nodetree_p.h unicode_p.h \
|
||||||
object_p.h
|
uriutils_p.h interface_p.h object_p.h
|
||||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
am__vpath_adj = case $$p in \
|
am__vpath_adj = case $$p in \
|
||||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
|
@ -84,8 +93,10 @@ CXXFLAGS = @CXXFLAGS@
|
||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
|
DISABLE_DEPRECATED_API_CFLAGS = @DISABLE_DEPRECATED_API_CFLAGS@
|
||||||
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
|
||||||
DLLTOOL = @DLLTOOL@
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
ECHO = @ECHO@
|
ECHO = @ECHO@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
ECHO_N = @ECHO_N@
|
ECHO_N = @ECHO_N@
|
||||||
|
|
@ -107,6 +118,8 @@ GMMPROC_DIR = @GMMPROC_DIR@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
|
||||||
GTHREAD_LIBS = @GTHREAD_LIBS@
|
GTHREAD_LIBS = @GTHREAD_LIBS@
|
||||||
|
GTKMMPROC_MERGECDOCS = @GTKMMPROC_MERGECDOCS@
|
||||||
|
GTKMM_DOXYGEN_INPUT = @GTKMM_DOXYGEN_INPUT@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
|
@ -119,9 +132,11 @@ LIBS = @LIBS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
M4 = @M4@
|
||||||
MAINT = @MAINT@
|
MAINT = @MAINT@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
|
|
@ -131,6 +146,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
PERL_PATH = @PERL_PATH@
|
||||||
PKG_CONFIG = @PKG_CONFIG@
|
PKG_CONFIG = @PKG_CONFIG@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
|
|
@ -187,26 +203,63 @@ sharedstatedir = @sharedstatedir@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
sysconfdir = @sysconfdir@
|
sysconfdir = @sysconfdir@
|
||||||
target_alias = @target_alias@
|
target_alias = @target_alias@
|
||||||
|
top_build_prefix = @top_build_prefix@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
files_posix_hg =
|
files_posix_hg =
|
||||||
files_win32_hg =
|
files_win32_hg =
|
||||||
files_general_hg = convert.hg date.hg fileutils.hg iochannel.hg keyfile.hg markup.hg module.hg optioncontext.hg optionentry.hg optiongroup.hg regex.hg shell.hg spawn.hg thread.hg unicode.hg
|
files_general_hg = checksum.hg convert.hg date.hg fileutils.hg iochannel.hg keyfile.hg markup.hg \
|
||||||
files_all_hg = $(files_general_hg) $(files_posix_hg) $(files_win32_hg)
|
module.hg optioncontext.hg optionentry.hg optiongroup.hg regex.hg \
|
||||||
@OS_WIN32_FALSE@files_hg = $(files_general_hg) $(files_posix_hg)
|
shell.hg spawn.hg thread.hg nodetree.hg unicode.hg uriutils.hg
|
||||||
@OS_WIN32_TRUE@files_hg = $(files_general_hg) $(files_win32_hg)
|
|
||||||
files_built_h = $(files_hg:.hg=_p.h)
|
files_general_deprecated_hg =
|
||||||
files_built_all_h = $(files_all_hg:.hg=_p.h)
|
files_all_hg = \
|
||||||
files_extra_h = interface_p.h object_p.h
|
$(files_posix_hg) \
|
||||||
files_extra_all_h = interface_p.h object_p.h
|
$(files_win32_hg) \
|
||||||
dist_sources = $(files_built_all_h) $(files_extra_all_h)
|
$(files_general_hg) \
|
||||||
|
$(files_general_deprecated_hg)
|
||||||
|
|
||||||
|
@OS_WIN32_FALSE@files_hg = $(files_general_hg) $(files_posix_hg) $(files_general_deprecated_hg)
|
||||||
|
@OS_WIN32_TRUE@files_hg = $(files_general_hg) $(files_win32_hg) $(files_general_deprecated_hg)
|
||||||
|
files_built_cc = $(files_hg:.hg=.cc) wrap_init.cc
|
||||||
|
files_built_h = $(files_hg:.hg=.h)
|
||||||
|
files_all_built_cc = $(files_all_hg:.hg=.cc) wrap_init.cc
|
||||||
|
files_all_built_h = $(files_all_hg:.hg=.h)
|
||||||
|
|
||||||
|
# Extra files
|
||||||
|
files_all_extra_cc = \
|
||||||
|
$(sublib_files_extra_posix_cc) \
|
||||||
|
$(sublib_files_extra_win32_cc) \
|
||||||
|
$(sublib_files_extra_general_cc) \
|
||||||
|
$(sublib_files_extra_general_deprecated_cc)
|
||||||
|
|
||||||
|
files_all_extra_h = $(sublib_files_extra_posix_h) \
|
||||||
|
$(sublib_files_extra_win32_h) $(sublib_files_extra_general_h) \
|
||||||
|
$(sublib_files_extra_general_deprecated_h) wrap_init.h
|
||||||
|
@OS_WIN32_FALSE@files_extra_cc = \
|
||||||
|
@OS_WIN32_FALSE@ $(sublib_files_extra_posix_cc) \
|
||||||
|
@OS_WIN32_FALSE@ $(sublib_files_extra_general_cc)
|
||||||
|
|
||||||
|
@OS_WIN32_TRUE@files_extra_cc = \
|
||||||
|
@OS_WIN32_TRUE@ $(sublib_files_extra_win32_cc) \
|
||||||
|
@OS_WIN32_TRUE@ $(sublib_files_extra_general_cc)
|
||||||
|
|
||||||
|
@OS_WIN32_FALSE@files_extra_h = $(sublib_files_extra_posix_h) \
|
||||||
|
@OS_WIN32_FALSE@ $(sublib_files_extra_general_h) wrap_init.h
|
||||||
|
@OS_WIN32_TRUE@files_extra_h = $(sublib_files_extra_win32_h) \
|
||||||
|
@OS_WIN32_TRUE@ $(sublib_files_extra_general_h) wrap_init.h
|
||||||
|
files_built_p_h = $(files_hg:.hg=_p.h)
|
||||||
|
files_built_all_p_h = $(files_all_hg:.hg=_p.h)
|
||||||
|
files_extra_p_h = interface_p.h object_p.h
|
||||||
|
files_extra_all_p_h = interface_p.h object_p.h
|
||||||
|
dist_sources = $(files_built_all_p_h) $(files_extra_all_p_h)
|
||||||
DISTFILES = $(DIST_COMMON) $(dist_sources)
|
DISTFILES = $(DIST_COMMON) $(dist_sources)
|
||||||
private_includedir = $(includedir)/glibmm-2.4/glibmm/private
|
private_includedir = $(includedir)/glibmm-2.4/glibmm/private
|
||||||
private_include_HEADERS = $(files_built_h) $(files_extra_h)
|
private_include_HEADERS = $(files_built_p_h) $(files_extra_p_h)
|
||||||
all: all-am
|
all: all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_gensrc_platform.am_fragment $(am__configure_deps)
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(am__configure_deps)
|
||||||
@for dep in $?; do \
|
@for dep in $?; do \
|
||||||
case '$(am__configure_deps)' in \
|
case '$(am__configure_deps)' in \
|
||||||
*$$dep*) \
|
*$$dep*) \
|
||||||
|
|
@ -264,8 +317,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
done | \
|
done | \
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
mkid -fID $$unique
|
mkid -fID $$unique
|
||||||
tags: TAGS
|
tags: TAGS
|
||||||
|
|
||||||
|
|
@ -277,8 +330,8 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
done | \
|
done | \
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
test -n "$$unique" || unique=$$empty_fix; \
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
|
@ -288,13 +341,12 @@ ctags: CTAGS
|
||||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||||
$(TAGS_FILES) $(LISP)
|
$(TAGS_FILES) $(LISP)
|
||||||
tags=; \
|
tags=; \
|
||||||
here=`pwd`; \
|
|
||||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
unique=`for i in $$list; do \
|
unique=`for i in $$list; do \
|
||||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
done | \
|
done | \
|
||||||
$(AWK) ' { files[$$0] = 1; } \
|
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||||
END { for (i in files) print i; }'`; \
|
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
$$tags $$unique
|
$$tags $$unique
|
||||||
|
|
@ -437,7 +489,7 @@ uninstall-am: uninstall-private_includeHEADERS
|
||||||
|
|
||||||
|
|
||||||
maintainer-clean-local:
|
maintainer-clean-local:
|
||||||
(cd $(srcdir) && rm -f $(files_built_h))
|
(cd $(srcdir) && rm -f $(files_built_p_h))
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
.NOEXPORT:
|
.NOEXPORT:
|
||||||
|
|
|
||||||
8
libs/glibmm2/glib/glibmm/private/checksum_p.h
Normal file
8
libs/glibmm2/glib/glibmm/private/checksum_p.h
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
// -*- c++ -*-
|
||||||
|
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||||
|
#ifndef _GLIBMM_CHECKSUM_P_H
|
||||||
|
#define _GLIBMM_CHECKSUM_P_H
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _GLIBMM_CHECKSUM_P_H */
|
||||||
|
|
||||||
8
libs/glibmm2/glib/glibmm/private/nodetree_p.h
Normal file
8
libs/glibmm2/glib/glibmm/private/nodetree_p.h
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
// -*- c++ -*-
|
||||||
|
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||||
|
#ifndef _GLIBMM_NODETREE_P_H
|
||||||
|
#define _GLIBMM_NODETREE_P_H
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _GLIBMM_NODETREE_P_H */
|
||||||
|
|
||||||
8
libs/glibmm2/glib/glibmm/private/uriutils_p.h
Normal file
8
libs/glibmm2/glib/glibmm/private/uriutils_p.h
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
// -*- c++ -*-
|
||||||
|
// Generated by gtkmmproc -- DO NOT MODIFY!
|
||||||
|
#ifndef _GLIBMM_URIUTILS_P_H
|
||||||
|
#define _GLIBMM_URIUTILS_P_H
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _GLIBMM_URIUTILS_P_H */
|
||||||
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: property.cc 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: property.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_PROPERTY_H
|
#ifndef _GLIBMM_PROPERTY_H
|
||||||
#define _GLIBMM_PROPERTY_H
|
#define _GLIBMM_PROPERTY_H
|
||||||
/* $Id: property.h 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: property.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: propertyproxy.cc 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: propertyproxy.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* propertyproxy.cc
|
/* propertyproxy.cc
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_PROPERTYPROXY_H
|
#ifndef _GLIBMM_PROPERTYPROXY_H
|
||||||
#define _GLIBMM_PROPERTYPROXY_H
|
#define _GLIBMM_PROPERTYPROXY_H
|
||||||
/* $Id: propertyproxy.h 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: propertyproxy.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* propertyproxy.h
|
/* propertyproxy.h
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -39,6 +39,11 @@ namespace Glib
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* You may also receive notification when a property's value changes, by connecting to signal_changed().
|
* You may also receive notification when a property's value changes, by connecting to signal_changed().
|
||||||
|
*
|
||||||
|
* You may register new properties for your class (actually for the underlying GType)
|
||||||
|
* simply by adding a PropertyProxy instance as a class member.
|
||||||
|
* However, your constructor must call the Glib::ObjectBase constructor with a new GType name,
|
||||||
|
* in order to register a new GType.
|
||||||
*/
|
*/
|
||||||
template <class T>
|
template <class T>
|
||||||
class PropertyProxy : public PropertyProxy_Base
|
class PropertyProxy : public PropertyProxy_Base
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,21 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: propertyproxy_base.cc 354 2006-11-28 12:59:19Z murrayc $ */
|
/* $Id: propertyproxy_base.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* propertyproxy_base.h
|
/* propertyproxy_base.h
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_PROPERTYPROXY_BASE_H
|
#ifndef _GLIBMM_PROPERTYPROXY_BASE_H
|
||||||
#define _GLIBMM_PROPERTYPROXY_BASE_H
|
#define _GLIBMM_PROPERTYPROXY_BASE_H
|
||||||
/* $Id: propertyproxy_base.h 337 2006-11-10 02:24:49Z murrayc $ */
|
/* $Id: propertyproxy_base.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* propertyproxy_base.h
|
/* propertyproxy_base.h
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,24 @@
|
||||||
/* $Id: quark.cc 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: quark.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* quark.cc
|
/* quark.cc
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gquark.h>
|
|
||||||
#include <glibmm/quark.h>
|
#include <glibmm/quark.h>
|
||||||
|
|
||||||
namespace Glib
|
namespace Glib
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,28 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
#ifndef _GLIBMM_QUARK_H
|
#ifndef _GLIBMM_QUARK_H
|
||||||
#define _GLIBMM_QUARK_H
|
#define _GLIBMM_QUARK_H
|
||||||
/* $Id: quark.h 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: quark.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* quark.h
|
/* quark.h
|
||||||
*
|
*
|
||||||
* Copyright 2002 The gtkmm Development Team
|
* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gquark.h>
|
#include <glib.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,26 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
/* $Id: random.cc 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: random.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* random.cc
|
/* random.cc
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glibmm/random.h>
|
#include <glibmm/random.h>
|
||||||
#include <glib/grand.h>
|
|
||||||
|
|
||||||
|
|
||||||
namespace Glib
|
namespace Glib
|
||||||
|
|
|
||||||
|
|
@ -2,28 +2,28 @@
|
||||||
#ifndef _GLIBMM_RANDOM_H
|
#ifndef _GLIBMM_RANDOM_H
|
||||||
#define _GLIBMM_RANDOM_H
|
#define _GLIBMM_RANDOM_H
|
||||||
|
|
||||||
/* $Id: random.h 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: random.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* random.h
|
/* random.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gtypes.h>
|
#include <glib.h>
|
||||||
|
|
||||||
extern "C" { typedef struct _GRand GRand; }
|
extern "C" { typedef struct _GRand GRand; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,21 @@
|
||||||
#ifndef _GLIBMM_REFPTR_H
|
#ifndef _GLIBMM_REFPTR_H
|
||||||
#define _GLIBMM_REFPTR_H
|
#define _GLIBMM_REFPTR_H
|
||||||
|
|
||||||
/* $Id: refptr.h 216 2005-04-07 08:28:46Z murrayc $ */
|
/* $Id: refptr.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright 2002 The gtkmm Development Team
|
/* Copyright 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -116,9 +116,15 @@ public:
|
||||||
*/
|
*/
|
||||||
inline operator bool() const;
|
inline operator bool() const;
|
||||||
|
|
||||||
/// Set underlying instance to 0, decrementing reference count of existing instance appropriately.
|
#ifndef GLIBMM_DISABLE_DEPRECATED
|
||||||
|
/// @deprecated Use reset() instead because this leads to confusion with clear() methods on the underlying class. For instance, people use .clear() when they mean ->clear().
|
||||||
inline void clear();
|
inline void clear();
|
||||||
|
#endif //GLIBMM_DISABLE_DEPRECATED
|
||||||
|
|
||||||
|
/** Set underlying instance to 0, decrementing reference count of existing instance appropriately.
|
||||||
|
* @newin2p16
|
||||||
|
*/
|
||||||
|
inline void reset();
|
||||||
|
|
||||||
/** Dynamic cast to derived class.
|
/** Dynamic cast to derived class.
|
||||||
*
|
*
|
||||||
|
|
@ -279,8 +285,16 @@ RefPtr<T_CppObject>::operator bool() const
|
||||||
return (pCppObject_ != 0);
|
return (pCppObject_ != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GLIBMM_DISABLE_DEPRECATED
|
||||||
template <class T_CppObject> inline
|
template <class T_CppObject> inline
|
||||||
void RefPtr<T_CppObject>::clear()
|
void RefPtr<T_CppObject>::clear()
|
||||||
|
{
|
||||||
|
reset();
|
||||||
|
}
|
||||||
|
#endif //GLIBMM_DISABLE_DEPRECATED
|
||||||
|
|
||||||
|
template <class T_CppObject> inline
|
||||||
|
void RefPtr<T_CppObject>::reset()
|
||||||
{
|
{
|
||||||
RefPtr<T_CppObject> temp; // swap with an empty RefPtr<> to clear *this
|
RefPtr<T_CppObject> temp; // swap with an empty RefPtr<> to clear *this
|
||||||
this->swap(temp);
|
this->swap(temp);
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,16 @@
|
||||||
/* Copyright (C) 2007 The glibmm Development Team
|
/* Copyright (C) 2007 The glibmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,16 @@
|
||||||
/* Copyright (C) 2007 The glibmm Development Team
|
/* Copyright (C) 2007 The glibmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <glibmm/error.h>
|
#include <glibmm/error.h>
|
||||||
#include <glibmm/arrayhandle.h>
|
#include <glibmm/arrayhandle.h>
|
||||||
#include <glib/gregex.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
typedef struct _GRegex GRegex;
|
typedef struct _GRegex GRegex;
|
||||||
|
|
@ -155,10 +155,48 @@ class RegexError : public Glib::Error
|
||||||
public:
|
public:
|
||||||
enum Code
|
enum Code
|
||||||
{
|
{
|
||||||
COMPILE,
|
COMPILE = 0,
|
||||||
OPTIMIZE,
|
OPTIMIZE = 1,
|
||||||
REPLACE,
|
REPLACE = 2,
|
||||||
MATCH
|
MATCH = 3,
|
||||||
|
INTERNAL = 4,
|
||||||
|
STRAY_BACKSLASH = 101,
|
||||||
|
MISSING_CONTROL_CHAR = 102,
|
||||||
|
UNRECOGNIZED_ESCAPE = 103,
|
||||||
|
QUANTIFIERS_OUT_OF_ORDER = 104,
|
||||||
|
QUANTIFIER_TOO_BIG = 105,
|
||||||
|
UNTERMINATED_CHARACTER_CLASS = 106,
|
||||||
|
INVALID_ESCAPE_IN_CHARACTER_CLASS = 107,
|
||||||
|
RANGE_OUT_OF_ORDER = 108,
|
||||||
|
NOTHING_TO_REPEAT = 109,
|
||||||
|
UNRECOGNIZED_CHARACTER = 112,
|
||||||
|
POSIX_NAMED_CLASS_OUTSIDE_CLASS = 113,
|
||||||
|
UNMATCHED_PARENTHESIS = 114,
|
||||||
|
INEXISTENT_SUBPATTERN_REFERENCE = 115,
|
||||||
|
UNTERMINATED_COMMENT = 118,
|
||||||
|
EXPRESSION_TOO_LARGE = 120,
|
||||||
|
MEMORY_ERROR = 121,
|
||||||
|
VARIABLE_LENGTH_LOOKBEHIND = 125,
|
||||||
|
MALFORMED_CONDITION = 126,
|
||||||
|
TOO_MANY_CONDITIONAL_BRANCHES = 127,
|
||||||
|
ASSERTION_EXPECTED = 128,
|
||||||
|
UNKNOWN_POSIX_CLASS_NAME = 130,
|
||||||
|
POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED = 131,
|
||||||
|
HEX_CODE_TOO_LARGE = 134,
|
||||||
|
INVALID_CONDITION = 135,
|
||||||
|
SINGLE_BYTE_MATCH_IN_LOOKBEHIND = 136,
|
||||||
|
INFINITE_LOOP = 140,
|
||||||
|
MISSING_SUBPATTERN_NAME_TERMINATOR = 142,
|
||||||
|
DUPLICATE_SUBPATTERN_NAME = 143,
|
||||||
|
MALFORMED_PROPERTY = 146,
|
||||||
|
UNKNOWN_PROPERTY = 147,
|
||||||
|
SUBPATTERN_NAME_TOO_LONG = 148,
|
||||||
|
TOO_MANY_SUBPATTERNS = 149,
|
||||||
|
INVALID_OCTAL_VALUE = 151,
|
||||||
|
TOO_MANY_BRANCHES_IN_DEFINE = 154,
|
||||||
|
DEFINE_REPETION = 155,
|
||||||
|
INCONSISTENT_NEWLINE_OPTIONS = 156,
|
||||||
|
MISSING_BACK_REFERENCE = 157
|
||||||
};
|
};
|
||||||
|
|
||||||
RegexError(Code error_code, const Glib::ustring& error_message);
|
RegexError(Code error_code, const Glib::ustring& error_message);
|
||||||
|
|
@ -270,13 +308,13 @@ public:
|
||||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||||
static Glib::RefPtr<Glib::Regex> create(const Glib::ustring& pattern, RegexCompileFlags compile_options = static_cast<RegexCompileFlags>(0), RegexMatchFlags match_options = static_cast<RegexMatchFlags>(0));
|
static Glib::RefPtr<Glib::Regex> create(const Glib::ustring& pattern, RegexCompileFlags compile_options = static_cast<RegexCompileFlags>(0), RegexMatchFlags match_options = static_cast<RegexMatchFlags>(0));
|
||||||
#else
|
#else
|
||||||
static Glib::RefPtr<Glib::Regex> create(const Glib::ustring& pattern, RegexCompileFlags compile_options = static_cast<RegexCompileFlags>(0), RegexMatchFlags match_options = static_cast<RegexMatchFlags>(0), std::auto_ptr<Glib::Error>& error);
|
static Glib::RefPtr<Glib::Regex> create(const Glib::ustring& pattern, RegexCompileFlags compile_options, RegexMatchFlags match_options, std::auto_ptr<Glib::Error>& error);
|
||||||
#endif /* !GLIBMM_EXCEPTIONS_ENABLED */
|
#endif /* !GLIBMM_EXCEPTIONS_ENABLED */
|
||||||
|
|
||||||
|
|
||||||
/** Gets the pattern string associated with @a regex , i.e.\ a copy of
|
/** Gets the pattern string associated with @a regex, i.e.\ a copy of
|
||||||
* the string passed to g_regex_new().
|
* the string passed to g_regex_new().
|
||||||
* @return The pattern of @a regex
|
* @return The pattern of @a regex
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
*/
|
*/
|
||||||
|
|
@ -296,9 +334,9 @@ public:
|
||||||
*/
|
*/
|
||||||
int get_capture_count() const;
|
int get_capture_count() const;
|
||||||
|
|
||||||
/** Retrieves the number of the subexpression named @a name .
|
/** Retrieves the number of the subexpression named @a name.
|
||||||
* @param name Name of the subexpression.
|
* @param name Name of the subexpression.
|
||||||
* @return The number of the subexpression or -1 if @a name
|
* @return The number of the subexpression or -1 if @a name
|
||||||
* does not exists
|
* does not exists
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
|
|
@ -308,21 +346,21 @@ public:
|
||||||
static Glib::ustring escape_string(const Glib::ustring& string);
|
static Glib::ustring escape_string(const Glib::ustring& string);
|
||||||
|
|
||||||
|
|
||||||
/** Scans for a match in @a string for @a pattern .
|
/** Scans for a match in @a string for @a pattern.
|
||||||
*
|
*
|
||||||
* This function is equivalent to g_regex_match() but it does not
|
* This function is equivalent to g_regex_match() but it does not
|
||||||
* require to compile the pattern with g_regex_new(), avoiding some
|
* require to compile the pattern with g_regex_new(), avoiding some
|
||||||
* lines of code when you need just to do a match without extracting
|
* lines of code when you need just to do a match without extracting
|
||||||
* substrings, capture counts, and so on.
|
* substrings, capture counts, and so on.
|
||||||
*
|
*
|
||||||
* If this function is to be called on the same @a pattern more than
|
* If this function is to be called on the same @a pattern more than
|
||||||
* once, it's more efficient to compile the pattern once with
|
* once, it's more efficient to compile the pattern once with
|
||||||
* g_regex_new() and then use g_regex_match().
|
* g_regex_new() and then use g_regex_match().
|
||||||
* @param pattern The regular expression.
|
* @param pattern The regular expression.
|
||||||
* @param string The string to scan for matches.
|
* @param string The string to scan for matches.
|
||||||
* @param compile_options Compile options for the regular expression.
|
* @param compile_options Compile options for the regular expression, or 0.
|
||||||
* @param match_options Match options.
|
* @param match_options Match options, or 0.
|
||||||
* @return <tt>true</tt> is the string matched, <tt>false</tt> otherwise
|
* @return <tt>true</tt> if the string matched, <tt>false</tt> otherwise
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
*/
|
*/
|
||||||
|
|
@ -375,7 +413,7 @@ public:
|
||||||
* some lines of code when you need just to do a split without
|
* some lines of code when you need just to do a split without
|
||||||
* extracting substrings, capture counts, and so on.
|
* extracting substrings, capture counts, and so on.
|
||||||
*
|
*
|
||||||
* If this function is to be called on the same @a pattern more than
|
* If this function is to be called on the same @a pattern more than
|
||||||
* once, it's more efficient to compile the pattern once with
|
* once, it's more efficient to compile the pattern once with
|
||||||
* g_regex_new() and then use g_regex_split().
|
* g_regex_new() and then use g_regex_split().
|
||||||
*
|
*
|
||||||
|
|
@ -387,15 +425,15 @@ public:
|
||||||
* you'll need to check for the empty string before calling this
|
* you'll need to check for the empty string before calling this
|
||||||
* function.
|
* function.
|
||||||
*
|
*
|
||||||
* A pattern that can match empty strings splits @a string into
|
* A pattern that can match empty strings splits @a string into
|
||||||
* separate characters wherever it matches the empty string between
|
* separate characters wherever it matches the empty string between
|
||||||
* characters. For example splitting "ab c" using as a separator
|
* characters. For example splitting "ab c" using as a separator
|
||||||
* "\s*", you will get "a", "b" and "c".
|
* "\s*", you will get "a", "b" and "c".
|
||||||
* @param pattern The regular expression.
|
* @param pattern The regular expression.
|
||||||
* @param string The string to scan for matches.
|
* @param string The string to scan for matches.
|
||||||
* @param compile_options Compile options for the regular expression.
|
* @param compile_options Compile options for the regular expression, or 0.
|
||||||
* @param match_options Match options.
|
* @param match_options Match options, or 0.
|
||||||
* @return A <tt>0</tt>-terminated gchar ** array. Free it using g_strfreev()
|
* @return A <tt>0</tt>-terminated array of strings. Free it using g_strfreev()
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
*/
|
*/
|
||||||
|
|
@ -414,7 +452,7 @@ public:
|
||||||
* you do need to represent empty elements, you'll need to check for the
|
* you do need to represent empty elements, you'll need to check for the
|
||||||
* empty string before calling this function.
|
* empty string before calling this function.
|
||||||
*
|
*
|
||||||
* A pattern that can match empty strings splits @a string into separate
|
* A pattern that can match empty strings splits @a string into separate
|
||||||
* characters wherever it matches the empty string between characters.
|
* characters wherever it matches the empty string between characters.
|
||||||
* For example splitting "ab c" using as a separator "\s*", you will get
|
* For example splitting "ab c" using as a separator "\s*", you will get
|
||||||
* "a", "b" and "c".
|
* "a", "b" and "c".
|
||||||
|
|
@ -440,21 +478,20 @@ public:
|
||||||
* you do need to represent empty elements, you'll need to check for the
|
* you do need to represent empty elements, you'll need to check for the
|
||||||
* empty string before calling this function.
|
* empty string before calling this function.
|
||||||
*
|
*
|
||||||
* A pattern that can match empty strings splits @a string into separate
|
* A pattern that can match empty strings splits @a string into separate
|
||||||
* characters wherever it matches the empty string between characters.
|
* characters wherever it matches the empty string between characters.
|
||||||
* For example splitting "ab c" using as a separator "\s*", you will get
|
* For example splitting "ab c" using as a separator "\s*", you will get
|
||||||
* "a", "b" and "c".
|
* "a", "b" and "c".
|
||||||
*
|
*
|
||||||
* Setting @a start_position differs from just passing over a shortened
|
* Setting @a start_position differs from just passing over a shortened
|
||||||
* string and setting G::REGEX_MATCH_NOTBOL in the case of a pattern
|
* string and setting REGEX_MATCH_NOTBOL in the case of a pattern
|
||||||
* that begins with any kind of lookbehind assertion, such as "\b".
|
* that begins with any kind of lookbehind assertion, such as "\b".
|
||||||
* @param string The string to split with the pattern.
|
* @param string The string to split with the pattern.
|
||||||
* @param string_len The length of @a string , or -1 if @a string is nul-terminated.
|
* @param string_len The length of @a string, or -1 if @a string is nul-terminated.
|
||||||
* @param start_position Starting index of the string to match.
|
* @param start_position Starting index of the string to match.
|
||||||
* @param match_options Match time option flags.
|
* @param match_options Match time option flags.
|
||||||
* @param max_tokens The maximum number of tokens to split @a string into.
|
* @param max_tokens The maximum number of tokens to split @a string into.
|
||||||
* If this is less than 1, the string is split completely.
|
* If this is less than 1, the string is split completely.
|
||||||
* @param error Return location for a G::Error.
|
|
||||||
* @return A <tt>0</tt>-terminated gchar ** array. Free it using g_strfreev()
|
* @return A <tt>0</tt>-terminated gchar ** array. Free it using g_strfreev()
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
|
|
@ -473,7 +510,7 @@ public:
|
||||||
#endif /* !GLIBMM_EXCEPTIONS_ENABLED */
|
#endif /* !GLIBMM_EXCEPTIONS_ENABLED */
|
||||||
|
|
||||||
|
|
||||||
/** Replaces all occurances of the pattern in @a regex with the
|
/** Replaces all occurances of the pattern in @a regex with the
|
||||||
* replacement text. Backreferences of the form '\number' or
|
* replacement text. Backreferences of the form '\number' or
|
||||||
* '\g<number>' in the replacement text are interpolated by the
|
* '\g<number>' in the replacement text are interpolated by the
|
||||||
* number-th captured subexpression of the match, '\g<name>' refers
|
* number-th captured subexpression of the match, '\g<name>' refers
|
||||||
|
|
@ -512,19 +549,18 @@ public:
|
||||||
*
|
*
|
||||||
* If you do not need to use backreferences use g_regex_replace_literal().
|
* If you do not need to use backreferences use g_regex_replace_literal().
|
||||||
*
|
*
|
||||||
* The @a replacement string must be UTF-8 encoded even if G::REGEX_RAW was
|
* The @a replacement string must be UTF-8 encoded even if REGEX_RAW was
|
||||||
* passed to g_regex_new(). If you want to use not UTF-8 encoded stings
|
* passed to g_regex_new(). If you want to use not UTF-8 encoded stings
|
||||||
* you can use g_regex_replace_literal().
|
* you can use g_regex_replace_literal().
|
||||||
*
|
*
|
||||||
* Setting @a start_position differs from just passing over a shortened
|
* Setting @a start_position differs from just passing over a shortened
|
||||||
* string and setting G::REGEX_MATCH_NOTBOL in the case of a pattern that
|
* string and setting REGEX_MATCH_NOTBOL in the case of a pattern that
|
||||||
* begins with any kind of lookbehind assertion, such as "\b".
|
* begins with any kind of lookbehind assertion, such as "\b".
|
||||||
* @param string The string to perform matches against.
|
* @param string The string to perform matches against.
|
||||||
* @param string_len The length of @a string , or -1 if @a string is nul-terminated.
|
* @param string_len The length of @a string, or -1 if @a string is nul-terminated.
|
||||||
* @param start_position Starting index of the string to match.
|
* @param start_position Starting index of the string to match.
|
||||||
* @param replacement Text to replace each match with.
|
* @param replacement Text to replace each match with.
|
||||||
* @param match_options Options for the match.
|
* @param match_options Options for the match.
|
||||||
* @param error Location to store the error occuring, or <tt>0</tt> to ignore errors.
|
|
||||||
* @return A newly allocated string containing the replacements
|
* @return A newly allocated string containing the replacements
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
|
|
@ -542,20 +578,19 @@ public:
|
||||||
#endif /* !GLIBMM_EXCEPTIONS_ENABLED */
|
#endif /* !GLIBMM_EXCEPTIONS_ENABLED */
|
||||||
|
|
||||||
|
|
||||||
/** Replaces all occurances of the pattern in @a regex with the
|
/** Replaces all occurances of the pattern in @a regex with the
|
||||||
* replacement text. @a replacement is replaced literally, to
|
* replacement text. @a replacement is replaced literally, to
|
||||||
* include backreferences use g_regex_replace().
|
* include backreferences use g_regex_replace().
|
||||||
*
|
*
|
||||||
* Setting @a start_position differs from just passing over a
|
* Setting @a start_position differs from just passing over a
|
||||||
* shortened string and setting G::REGEX_MATCH_NOTBOL in the
|
* shortened string and setting REGEX_MATCH_NOTBOL in the
|
||||||
* case of a pattern that begins with any kind of lookbehind
|
* case of a pattern that begins with any kind of lookbehind
|
||||||
* assertion, such as "\b".
|
* assertion, such as "\b".
|
||||||
* @param string The string to perform matches against.
|
* @param string The string to perform matches against.
|
||||||
* @param string_len The length of @a string , or -1 if @a string is nul-terminated.
|
* @param string_len The length of @a string, or -1 if @a string is nul-terminated.
|
||||||
* @param start_position Starting index of the string to match.
|
* @param start_position Starting index of the string to match.
|
||||||
* @param replacement Text to replace each match with.
|
* @param replacement Text to replace each match with.
|
||||||
* @param match_options Options for the match.
|
* @param match_options Options for the match.
|
||||||
* @param error Location to store the error occuring, or <tt>0</tt> to ignore errors.
|
|
||||||
* @return A newly allocated string containing the replacements
|
* @return A newly allocated string containing the replacements
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
|
|
@ -574,18 +609,17 @@ public:
|
||||||
|
|
||||||
|
|
||||||
/** Replaces occurances of the pattern in regex with the output of
|
/** Replaces occurances of the pattern in regex with the output of
|
||||||
* @a eval for that occurance.
|
* @a eval for that occurance.
|
||||||
*
|
*
|
||||||
* Setting @a start_position differs from just passing over a shortened
|
* Setting @a start_position differs from just passing over a shortened
|
||||||
* string and setting G::REGEX_MATCH_NOTBOL in the case of a pattern
|
* string and setting REGEX_MATCH_NOTBOL in the case of a pattern
|
||||||
* that begins with any kind of lookbehind assertion, such as "\b".
|
* that begins with any kind of lookbehind assertion, such as "\b".
|
||||||
* @param string String to perform matches against.
|
* @param string String to perform matches against.
|
||||||
* @param string_len The length of @a string , or -1 if @a string is nul-terminated.
|
* @param string_len The length of @a string, or -1 if @a string is nul-terminated.
|
||||||
* @param start_position Starting index of the string to match.
|
* @param start_position Starting index of the string to match.
|
||||||
* @param match_options Options for the match.
|
* @param match_options Options for the match.
|
||||||
* @param eval A function to call for each match.
|
* @param eval A function to call for each match.
|
||||||
* @param user_data User data to pass to the function.
|
* @param user_data User data to pass to the function.
|
||||||
* @param error Location to store the error occuring, or <tt>0</tt> to ignore errors.
|
|
||||||
* @return A newly allocated string containing the replacements
|
* @return A newly allocated string containing the replacements
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
|
|
@ -597,20 +631,19 @@ public:
|
||||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||||
|
|
||||||
|
|
||||||
/** Checks whether @a replacement is a valid replacement string
|
/** Checks whether @a replacement is a valid replacement string
|
||||||
* (see g_regex_replace()), i.e.\ that all escape sequences in
|
* (see g_regex_replace()), i.e.\ that all escape sequences in
|
||||||
* it are valid.
|
* it are valid.
|
||||||
*
|
*
|
||||||
* If @a has_references is not <tt>0</tt> then @a replacement is checked
|
* If @a has_references is not <tt>0</tt> then @a replacement is checked
|
||||||
* for pattern references. For instance, replacement text 'foo<tt>\\n</tt>'
|
* for pattern references. For instance, replacement text 'foo<tt>\\n</tt>'
|
||||||
* does not contain references and may be evaluated without information
|
* does not contain references and may be evaluated without information
|
||||||
* about actual match, but '\0\1' (whole match followed by first
|
* about actual match, but '\0\1' (whole match followed by first
|
||||||
* subpattern) requires valid G::MatchInfo object.
|
* subpattern) requires valid MatchInfo object.
|
||||||
* @param replacement The replacement string.
|
* @param replacement The replacement string.
|
||||||
* @param has_references Location to store information about
|
* @param has_references Location to store information about
|
||||||
* references in @a replacement or <tt>0</tt>.
|
* references in @a replacement or <tt>0</tt>.
|
||||||
* @param error Location to store error.
|
* @return Whether @a replacement is a valid replacement string
|
||||||
* @return Whether @a replacement is a valid replacement string
|
|
||||||
*
|
*
|
||||||
* @newin2p14.
|
* @newin2p14.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,23 +2,23 @@
|
||||||
#ifndef _GLIBMM_SARRAY_H
|
#ifndef _GLIBMM_SARRAY_H
|
||||||
#define _GLIBMM_SARRAY_H
|
#define _GLIBMM_SARRAY_H
|
||||||
|
|
||||||
/* $Id: sarray.h 2 2003-01-07 16:59:16Z murrayc $ */
|
/* $Id: sarray.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* array.h
|
/* array.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -10,16 +10,16 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -9,22 +9,22 @@
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <glib/gshell.h>
|
#include <glib.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <glibmm/arrayhandle.h>
|
#include <glibmm/arrayhandle.h>
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
|
|
||||||
/* $Id: signalproxy.cc 291 2006-05-12 08:08:45Z murrayc $ */
|
/* $Id: signalproxy.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* signalproxy.cc
|
/* signalproxy.cc
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
// -*- c++ -*-
|
// -*- c++ -*-
|
||||||
|
|
||||||
/* $Id: signalproxy_connectionnode.cc 137 2004-10-07 16:02:01Z philipl $ */
|
/* $Id: signalproxy_connectionnode.cc 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* signalproxy_connectionnode.cc
|
/* signalproxy_connectionnode.cc
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,29 +2,29 @@
|
||||||
#ifndef _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
|
#ifndef _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
|
||||||
#define _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
|
#define _GLIBMM_SIGNALPROXY_CONNECTIONNODE_H
|
||||||
|
|
||||||
/* $Id: signalproxy_connectionnode.h 446 2007-09-26 15:10:44Z murrayc $ */
|
/* $Id: signalproxy_connectionnode.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* signalproxy_connectionnode.h
|
/* signalproxy_connectionnode.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 The gtkmm Development Team
|
* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sigc++/sigc++.h>
|
#include <sigc++/sigc++.h>
|
||||||
#include <glib/gtypes.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
typedef struct _GObject GObject;
|
typedef struct _GObject GObject;
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,26 @@
|
||||||
#ifndef _GLIBMM_SLISTHANDLE_H
|
#ifndef _GLIBMM_SLISTHANDLE_H
|
||||||
#define _GLIBMM_SLISTHANDLE_H
|
#define _GLIBMM_SLISTHANDLE_H
|
||||||
|
|
||||||
/* $Id: slisthandle.h 32 2003-04-21 17:39:41Z murrayc $ */
|
/* $Id: slisthandle.h 779 2009-01-19 17:58:50Z murrayc $ */
|
||||||
|
|
||||||
/* Copyright (C) 2002 The gtkmm Development Team
|
/* Copyright (C) 2002 The gtkmm Development Team
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
* License as published by the Free Software Foundation; either
|
* License as published by the Free Software Foundation; either
|
||||||
* version 2 of the License, or (at your option) any later version.
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This library is distributed in the hope that it will be useful,
|
* This library is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* Library General Public License for more details.
|
* Lesser General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Library General Public
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
* License along with this library; if not, write to the Free
|
* License along with this library; if not, write to the Free
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glib/gslist.h>
|
#include <glib.h>
|
||||||
#include <glibmm/containerhandle_shared.h>
|
#include <glibmm/containerhandle_shared.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue