aboutsummaryrefslogtreecommitdiff
path: root/src/ToolFactory.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-07-02Store menus if smart pointers (RefCount)Pavel Labath1-3/+3
This was originally intended to be a bugfix for an memory error reported by valgrind (accessing freed memory). While debugging it, I found the menu ownership semantics confusing (setInternalMenu() et al.), so I decided to get rid of it and store it in smart pointers everywhere. Looking back, I'm not sure if this was worth all the trouble, but the good news is that the valgrind error disappeared. :)
2011-05-10Make RefCount<> more sensiblePavel Labath1-1/+1
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-02-24SystemTray tool should use the right fallback resourceMathias Gumz1-1/+1
2011-02-24moved Menu placement into ScreenPlacement::placeAndShowMenu()Mathias Gumz1-18/+7
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz1-1/+1
2009-06-28change default toolbar tools to:Mark Tiefenbruck1-26/+6
prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock
2008-08-23fix reading iconbar border from themeMark Tiefenbruck1-1/+2
2008-05-02little hack to allow arbitrary commands in the toolbarMark Tiefenbruck1-2/+1
2008-01-13fix some issues with reverting focusMark Tiefenbruck1-1/+0
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-5/+5
ObjectRegistry
2008-01-07added new ThemeProxy for automatically handling focused vs. unfocused ThemeItemsMark Tiefenbruck1-7/+9
2008-01-05update code to use ThemeProxyMark Tiefenbruck1-2/+2
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2008-01-02moved seldom used code to where it is actually used, no need to include code ↵Mathias Gumz1-2/+0
into compilation when its not needed
2007-12-16changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>Mark Tiefenbruck1-3/+3
2007-12-13added FbTk::CommandRegistry, decentralized command parsing, and made them ↵markt1-3/+3
auto-register
2007-12-11only allow one open menu at a timemarkt1-1/+0
2007-04-08menu from workspacename tool wasn't focused, and fixed unpressed button ↵markt1-1/+2
rendering
2007-01-06oops, didnt mean to commit this change, twas for testing, so revert itsimonb1-2/+2
2007-01-06move triangle drawing into FbDrawablesimonb1-4/+4
Make MenuItem triangles proportional
2006-04-16fix all compiler warnings with -Wallsimonb1-1/+1
2006-03-26rotated fonts, buttons, containers. Used for tabs for nowsimonb1-1/+1
2006-02-16updated copyright infomathias1-1/+1
2005-06-03- Usage of xft-fonts is prefered, except a font-description starts with '-'mathias1-4/+0
- Removed "antialias"-option completly, to enable/disable "antialias" use either <fontname>:antialias=<bool> in the style or use Xft.antialias: <bool> in your .Xdefaults - Added new styleresources: *.font.effect: <halo|shadow> *.font.shadow.x : <int> - shadow x offset *.font.shadow.y : <int> - shadow y offset *.font.shadow.color : <color> - color of shadow *.font.halo.color : <color> - color of halo - Removed 'shadow' and 'halo' options from fontdefinitions: !! Style authors have to update their styles !! - Simplified XmbFontImp to not try all possible fonts to match locale - Style authors may specify multiple fonts: <font1>|<font2>|<font3> if loading of font1 fails, fluxbox probes <font2>, etc. The last font is "fixed". Hints for style authors: - if xft tries to load a font it will _ALWAYS_ return a valid font, it doesnt have to look like the one you want to have, read more about it: http://fontconfig.org/fontconfig-user.html - export XFT_DEBUG=1 before running fluxbox helps to see which fonts are picked. eg: *.font: Verdana,Arial-12:antialias=true|-artwiz-snap-*- if fluxbox is compiled with xft this will NEVER try to load "-artwiz-snap-*-" since xft gives for sure a font, most likely Verdana or Arial but noone knows. So, if fluxbox has no xft support the first fontpattern fails and fluxbox tries the next one, which might be successful. if everything fails, it will use "fixed" - Added caching of fonts, fonts are only loaded once. - Fixed #1090902 (slow utf8 start)
2005-04-27fix a few more bugs with recent reworking stuffsimonb1-0/+4
Some fixes could incidentally fix a few other bugs... the flaws were pre-existing, I've just been weeding out a lot of duplication
2005-02-04fixed uninitialized pointer which could lead to segfaults when the usermathias1-1/+1
specifies nonexistent/invalid tool-names in the init-file
2005-01-24copyright datemathias1-1/+1
2005-01-14systemtray-tool has now a propper background. its styleable via themathias1-4/+5
toolbar.systray.* ressource, same way as the clock.
2004-11-19svn propset svn:keywords "Id"mathias1-1/+1
2004-09-12preliminary support for composite/compositing manager. Also general workrathnor1-10/+14
for consistency with transparency resources
2004-09-11head specific strut, patch from Mathieu De Zutterfluxgen1-15/+15
2004-08-27fallback to clock rather than workspace name for buttons (since itsrathnor1-2/+2
consistent with old and new themes)
2004-08-27add a special fallback for toolbar button stylerathnor1-2/+3
2004-08-25fix up theming of the toolbarrathnor1-3/+3
2004-05-18Make arrows in buttons half the size of the button.grubert1-1/+2
Add UP and DOWN arrows.
2004-01-11hide menusfluxgen1-3/+3
2003-12-04toggle clock format via menufluxgen1-2/+2
2003-10-13creates toolsfluxgen1-0/+171