Commit Graph

454 Commits

Author SHA1 Message Date
Davis King
7335256438 Renamed dragable to draggable.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402588
2008-10-24 03:30:47 +00:00
Davis King
32ca94c956 - removed scroll_bar::set_orientation()
- added the dragable::on_drag_stop() event
- added the dragable::is_being_dragged() function
- Made the scroll_bar have a user settable style and made a default
  style
- Added some missing mutex locks to the scroll_bar widget

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402587
2008-10-24 03:24:42 +00:00
Davis King
2ad5e749e9 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402586
2008-10-23 23:33:53 +00:00
Davis King
2055ec6e2a Removed the arrow_button widget and moved its functionality into the
button widget.  I also added 4 new button styles that correspond to
the 4 types of arrow button.  Lastly, I had to move some things around
so that is why there seem to be a lot of code changes in this commit.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402585
2008-10-23 23:29:49 +00:00
Davis King
1e103791c9 Changed cmakelists.txt so that cmake 2.6 doesn't give a warning.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402584
2008-10-22 21:12:31 +00:00
Davis King
732dbae290 Changed cmakelists.txt so that cmake 2.6 doesn't give a warning.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402583
2008-10-22 21:12:16 +00:00
Davis King
159d32d71d made a release
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402581
2008-10-20 23:37:46 +00:00
Davis King
b215c6e4d4 Moved the dlib_assert_breakpoint() call in the assert macro to the front. This avoids
the case where your program has had its heap corrupted and is very nearly about to crash,
and so when an assert triggers it crashes on the code that constructs the error
message because the heap is hosed.  Thus preventing you from hitting a break point
on dlib_assert_breakpoint().  So this change mitigates that.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402580
2008-10-20 21:15:02 +00:00
Davis King
51e2396b6b changed svm test a little
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402579
2008-10-18 18:06:12 +00:00
Davis King
efe29d0bb8 Changed the code to avoid a compiler warning.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402578
2008-10-18 18:05:55 +00:00
Davis King
1a369c1cab Changed code to suppress compiler warnings
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402577
2008-10-18 16:40:22 +00:00
Davis King
49063e24f3 Moved a bunch of code from the base_widgets.h file to the base_widgets.cpp file.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402576
2008-10-18 15:59:53 +00:00
Davis King
3514446e66 Moved a bunch of stuff from the widgets header file to the widgets cpp file.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402575
2008-10-18 14:45:27 +00:00
Davis King
668da7e90b Cleaned up some more gui code. I fixed a memory leak in the native_font object,
made the get_native_font() function return a shared_ptr_thread_safe object instead
of a raw pointer, and also made the letter object noncopyable (as it should have been).
I also moved some code from the widgets header file to the cpp file.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402574
2008-10-18 14:17:52 +00:00
Davis King
d87afaa28f Removed an unnecessary COMPILE_TIME_ASSERT statement from the
svd function.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402573
2008-10-18 13:30:12 +00:00
Davis King
624566e825 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402572
2008-10-17 15:57:45 +00:00
Davis King
9ca3886d35 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402571
2008-10-17 14:19:56 +00:00
Davis King
8f44370756 Added a tensor_product() function for the matrix object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402570
2008-10-17 14:19:11 +00:00
Davis King
d12f667eab Fixed an #include statement so that it works even if you don't
specify an include path argument to your compiler.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402569
2008-10-17 13:05:23 +00:00
Davis King
8ace4f2e57 Removed the forced setting of DLIB_NO_GUI_SUPPORT in the cmake file
since it is sort of irritating.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402568
2008-10-16 01:25:06 +00:00
Davis King
f50af4d8e2 Switched the timer example to the more efficient version of the
timer object.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402567
2008-10-15 03:07:25 +00:00
Davis King
0d9ef16aa0 Fixed a compile time error and also added back in the call to start the
event_handler_thread in the gui core that I accidentally deleted a few minutes ago.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402566
2008-10-15 02:38:13 +00:00
Davis King
c0976e3539 changed the shared_ptr_thread_safe object so that it unlocks its
internal mutex before calling delete on the pointer that it contains.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402565
2008-10-15 02:36:03 +00:00
Davis King
9f7abda42f Cleaned up more of the gui core code
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402564
2008-10-15 02:13:51 +00:00
Davis King
d1487bb141 Cleaned up the gui_core code. Also made it so that the gui event handler thread
isn't created at all unless some part of an application calls some of the
gui_core code.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402563
2008-10-15 01:12:13 +00:00
Davis King
02f6a1add3 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402562
2008-10-13 02:30:47 +00:00
Davis King
70920caab8 made the spec more clear
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402561
2008-10-13 02:30:23 +00:00
Davis King
1fc848fcf1 Updated the rvm example so that it uses the vector_normalizer
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402560
2008-10-13 02:22:53 +00:00
Davis King
324148c9fc updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402559
2008-10-12 22:40:42 +00:00
Davis King
fa5aefdbb7 updated the svm example to use the vector_normalizer
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402558
2008-10-12 22:35:32 +00:00
Davis King
1daf85508e Added some missing asserts
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402557
2008-10-12 22:24:59 +00:00
Davis King
c7524e8e85 Added the normalized_function object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402556
2008-10-12 22:14:53 +00:00
Davis King
c9b5d5dc5a Added the vector_normalizer object
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402555
2008-10-12 19:46:26 +00:00
Davis King
8b487fb703 Added the sort_columns() and rsort_columns() functions
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402554
2008-10-12 19:28:22 +00:00
Davis King
f791d2cfeb added another svn:ignore item
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402553
2008-10-12 15:55:02 +00:00
Davis King
febbfa96f0 made a release
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402551
2008-10-10 00:53:34 +00:00
Davis King
92a672d2e3 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402550
2008-10-09 02:35:55 +00:00
Davis King
b451babd6e Removed the default argument to the is_dlib_thread() function and
instead added an overload that doesn't take any arguments.  I did this
because -O3 sometimes makes gcc ignore more complex default arguments.
I don't actually have any cases where this happened to this function
but I'm changing it just to be safe.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402549
2008-10-09 02:27:33 +00:00
Davis King
41c9c2a202 Added some comments about setting the matrix size at runtime.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402548
2008-10-08 23:42:24 +00:00
Davis King
d8ddd8db3f Fixed more Intel compiler incompatibilities.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402547
2008-10-08 23:32:15 +00:00
Davis King
2376f339d3 Fixed a bunch of compiler warnings and errors in the
Intel compiler.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402546
2008-10-08 00:39:36 +00:00
Davis King
95ece26f5a Added some things to the initializer lists of some exception classes because
without them you get errors when compiling with the Intel compiler.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402545
2008-10-07 12:50:12 +00:00
Davis King
4115e78c5e Added dlib:: in front of the set.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402544
2008-10-07 12:49:09 +00:00
Davis King
530d1640a7 cleaned up the code
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402543
2008-10-07 02:24:40 +00:00
Davis King
c4ab461065 Updated the rank features example
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402542
2008-10-07 02:24:23 +00:00
Davis King
770368705b - Made the spec for the rank_features() function a little more clear. Also made
the implementation do recursive feature elimination when the user tries to
    rank all the features.
  - The report format that comes out of the rank_features() function is now
    also slightly different.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402541
2008-10-07 01:00:54 +00:00
Davis King
a708705fb2 Fixed a bug in the covariance() function that prevented it from compiling
sometimes.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402540
2008-10-06 21:21:15 +00:00
Davis King
1db20426d1 Fixed typo in spec
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402539
2008-10-05 14:53:59 +00:00
Davis King
70b42fb6b5 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402538
2008-10-03 01:20:21 +00:00
Davis King
146af066e6 Added the popup_menu_region widget.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402537
2008-10-03 01:18:54 +00:00