Skip to content

Commit

Permalink
Added the PopupMenu.
Browse files Browse the repository at this point in the history
Added GraphicsPath::BezerControl1 and GraphicsPath::BezerControl2.
Added String::trim.
Added String::format.
Added more information in ParseException.
Renamed Timer::Action to Timer::Tick.
Renamed MouseButtons with MouseButton.
Replaced VACA_MID wiht VACA_CLAMP.
Added more documentation (with some ALIASES to make more easy
  the documentation process).
Modified the Vaca logo.
  • Loading branch information
dacap committed Sep 20, 2008
1 parent 490ef6b commit a8a744f
Show file tree
Hide file tree
Showing 116 changed files with 2,765 additions and 841 deletions.
3 changes: 3 additions & 0 deletions Makefile.mgw
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ deps:
clean:
-$(RM) -f bin/*.ilk bin/*.pdb obj/*.res obj/*.o obj/*.obj

cleanobj:
-$(RM) -f $(LIB_OBJS)

distclean: clean
-$(RM) -f bin/Vaca*.dll bin/*.exe lib/*.a lib/*.lib

Expand Down
3 changes: 3 additions & 0 deletions NEWS.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Vaca 0.0.7

- ~Widget now destroys automatically the widget's children.
- Added MenuPopup.
- Renamed MouseButtons to MouseButton.
- Added RefWrapper class and Ref() method to support references in Bind().
- Added GraphicsPath.
- All methods that return Win32 handles (HWND, HDC, HBRUSH,
Expand Down
13 changes: 11 additions & 2 deletions doc/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ HIDE_IN_BODY_DOCS = NO
INTERNAL_DOCS = NO
CASE_SENSE_NAMES = NO
HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = NO
SHOW_INCLUDE_FILES = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
SORT_BRIEF_DOCS = NO
Expand Down Expand Up @@ -284,4 +284,13 @@ SEARCHENGINE = NO
# Aliases
#---------------------------------------------------------------------------

ALIASES += msdn{1}="<a href=\"http://www.google.com/search?as_q=\1+&amp;as_sitesearch=msdn.microsoft.com\">\1</a>"
ALIASES += win32="<dl class=\"win32\"><dt><b>Win32 Specific:</b></dt><dd>"
ALIASES += endwin32="</dd></dl>"
ALIASES += msdn{1}="<code>\1</code><sup>(<a class=\"w32\" href=\"http://www.google.com/search?as_q=\1+&amp;as_sitesearch=microsoft.com\">W32</a>)</sup>"
ALIASES += wikipedia{2}="<a href=\"http://en.wikipedia.org/wiki/\1\">\2</a>"

ALIASES += beginOverviewTable="<table class=\"overview\">"
ALIASES += endTable="</table>"
ALIASES += titleRow{1}="<tr class=\"title\"><td colspan=\"2\">\1</td></tr>"
ALIASES += itemRow{1}="<tr><td>@ref \1</td><td>@copybrief \1</td></tr>"
ALIASES += itemRow{2}="<tr><td>@subpage \1</td><td>\2</td></tr>"
6 changes: 6 additions & 0 deletions doc/Doxyfile_chm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Doxyfile 1.5.6

@INCLUDE = Doxyfile

GENERATE_HTMLHELP = YES
CHM_FILE = ..\Vaca.chm
8 changes: 8 additions & 0 deletions doc/Doxyfile_pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Doxyfile 1.5.6

@INCLUDE = Doxyfile

EXTRACT_PRIVATE = YES
INTERNAL_DOCS = YES
GENERATE_HTMLHELP = YES
CHM_FILE = ..\Vaca-private.chm
13 changes: 10 additions & 3 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
DOXYGEN = "$(PROGRAMFILES)/doxygen/bin/doxygen.exe"

default: all

all: html chm private

html:
_norule:

html: _norule
-mkdir html
$(DOXYGEN) Doxyfile

chm:
-mkdir html
$(DOXYGEN) Doxyfile_chm

private:
$(DOXYGEN) Doxyfile_private
-mkdir html
$(DOXYGEN) Doxyfile_pri

gen1:
$(DOXYGEN) -g new_Doxyfile
Expand All @@ -18,4 +25,4 @@ gen2:
$(DOXYGEN) -w html new_header.html new_footer.html new_style.css new_Doxyfile

clean:
-$(RM) html/*.html html/*.css html/*.gif html/*.png html/index.*
-$(RM) -r html
3 changes: 2 additions & 1 deletion doc/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="footer">
<a href="http://vaca.sourceforge.net/index.php?section=license">&copy; 2005-2008 David A. Capello. All rights reserved.</a><br/>
<!-- a href="http://vaca.sourceforge.net/index.php?section=license">&copy; 2005-2008 David A. Capello. All rights reserved.</a><br/ -->
<a href="page_license.html">&copy; 2005-2008 David A. Capello. All rights reserved.</a><br/>
Generated on $datetime for $projectname by&nbsp;<a href="http://www.doxygen.org/">doxygen</a> $doxygenversion
</div></body></html>
Binary file removed doc/images/Vaca.gif
Binary file not shown.
Binary file added doc/images/Vaca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions doc/pages/bind.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
namespace Vaca {

/**
@page page_bind Bind
In this section we talk about the Bind function that is defined in the
Vaca namespace.
@li @ref page_bind_whatis
@li @ref page_bind_signals
@li @ref page_bind_details
@section page_bind_whatis What Bind is For?
Bind adapts functions or methods so they can be connected to
signals. Basically it creates a BindAdapter that converts the
signature of one function to another signature.
In this way, with Bind we can create an object (BindAdapter) that
has the @c operator() overloaded in such a way that can be called
with any parameters.
For example, the following code:
@code
#include <iostream>
#include "Vaca/Bind.h"
int func(int a, int b)
{
return a+b;
}
int main()
{
int a = Vaca::Bind<int>(&func, 1, 2)(2.3, "Hello", 200);
std::cout << a << std::endl;
return 0;
}
@endcode
Prints the value
@code
3
@endcode
Why? There are two things in the example above:
@li The @em Bind<int>(&func, 1, 2) call which creates a BindAdapter object.
@li A call to the @em operator()(double, const char*, int) of that BindAdapter.
Bind() creates the BindAdapter that allocates memory
to hold the address of @em func and the values 1 and 2.
Then, when the BindAdapter::operator() is used, the parameters
are completelly ignored (@c 2.3, @c "Hello", and @c 200 in this
case) and a call to @em func(1, 2) is made instead.
Is the same to call BindAdapter::operator() without parameters or
with any kind and number of parameters, they will be ignored.
@section page_bind_signals How to Use Bind With Signals?
@section page_bind_details Details About Bind
*/

}
Loading

0 comments on commit a8a744f

Please sign in to comment.