Commit graph

29 commits

Author SHA1 Message Date
Mario J. Rugiero
63f89cb433 Pass pre_command to CommandDialog as const reference to avoid unnecessary copying. 2015-05-01 10:46:20 +02:00
Pavel Labath
4b47675441 Make RefCount<> more sensible
the previous version of operator*() made no sense. E.g., it violated the invariant
(*ptr).foo <=> ptr->foo. The dereferencing operator now returns a reference to the pointed-to
object, rather than a pointer to it.

I also added a bool conversion operator, which can be used in testing the NULL-ness of the
pointer. Anyone wondering if that could be done in a simpler way is encouraged to read
<http://www.artima.com/cppsource/safebool.html>.

And, finally, I removed the mutable flag from the m_data member, since it does not need it.
2011-05-10 13:00:45 +02:00
Mark Tiefenbruck
a23778a44d add SetTitle and SetTitleDialog key commands 2008-08-17 04:10:17 -07:00
Mark Tiefenbruck
72fd5e03a4 revert focus when closing dialogs 2008-08-16 06:30:09 -07:00
Mark Tiefenbruck
06837ba864 cosmetic changes 2008-08-16 04:36:08 -07:00
Mark Tiefenbruck
bfaec62d79 remove some unnecessary architecture 2008-06-03 00:15:37 -07:00
Mark Tiefenbruck
3a5fd7342d use function pointer for CommandParser::Command 2008-01-17 14:16:58 -08:00
Mark Tiefenbruck
9f2f65a698 make FbTk::Command a template class, split parsing information out of ObjectRegistry 2008-01-10 23:41:22 -08:00
Mark Tiefenbruck
ec3125aeb9 switch FbWinFrameTheme to use FocusableTheme 2008-01-07 12:08:56 -08:00
Mark Tiefenbruck
dbfddf8e0b added new ThemeProxy for automatically handling focused vs. unfocused ThemeItems 2008-01-07 02:26:32 -08:00
Mark Tiefenbruck
ac1bd7e098 update code to use ThemeProxy 2008-01-04 17:39:19 -08:00
Mark Tiefenbruck
9c105111d2 remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Mark Tiefenbruck
8516f1e2a2 changed CommandRegistry to a template class, renamed to ObjectRegistry<Type> 2007-12-15 19:36:01 -08:00
markt
8b7464046c added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register 2007-12-13 05:48:00 +00:00
markt
a59428d67a merged changes from pre-devel 2007-10-13 21:51:37 +00:00
mathias
e5e76e7761 Cosmetic patch from Slava Semushin 2006-10-30 19:31:15 +00:00
markt
9229f8bc9c don't revert focus away from command dialogs 2006-07-25 21:54:58 +00:00
markt
c929da4054 replacing some instances of focusedWindow()->fbwindow() with focusedFbWindow() 2006-07-12 00:08:57 +00:00
fluxgen
5ceacc6592 moved all focus handling to FocusControl 2006-02-18 20:19:22 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +00:00
mathias
6c057c6903 Fix for #1160244, #1099704, #1094107:
if the xkb-extension is enabled and the user switches between his/her
keyboardlayouts fluxbox's keybhandling doesn't work well anymore because
xkeyevent.state contains also xkb-related flags and thus we have to handle
that with caution.

KeyUtils now contain 'isolateModifierMask()' to really work only on the
modifiers. why not as part of cleanMods() ? because the XLookupString return
false results, eg TextBox's would only print chars from the first
keyboardlayout.
2005-05-06 09:22:53 +00:00
mathias
cf46669bc1 copyright date 2005-01-24 18:34:57 +00:00
mathias
993c17cf2e svn propset svn:keywords "Id" 2004-11-19 11:37:27 +00:00
akir
5136d4936e removed unneeded code + some minor fix for mipspro 2004-10-21 10:46:21 +00:00
akir
d673098ef8 removed unneeded m_font 2004-10-06 19:02:03 +00:00
fluxgen
11a7029b22 using empty instead of size 2004-01-21 13:16:09 +00:00
fluxgen
1feb5a6623 tab complete commands 2004-01-02 13:53:21 +00:00
fluxgen
a88e5e57c1 added post command and fixed correct font 2003-12-19 18:16:01 +00:00
fluxgen
65a6213dbe generic command dialog, replaces old setworkspacename 2003-12-19 03:53:21 +00:00