aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-08-19Make stylesdir and wallpapers generate inline menu entriesPavel Labath1-21/+11
instead of submenus. This is more in line (no pun intended :P) with how the old menu files worked.
2011-08-16Move declarations of Resource enums to a separate filePavel Labath1-3/+3
The reason for this is that I need to access those enums from fluxbox-update_configs and I don't want to #include and link everything in src. I also merged Slit::Placement, Toolbar::Placement and FbWinFrame::TabPlacement into one enum.
2011-08-06Add new translations to the C locale and fluxbox-nls.hhPavel Labath1-0/+2
2011-07-31Reintruduce support for setting menu titlePavel Labath1-1/+4
this was already present in the old menu files, but I did not notice, because generally the title is same as the label in the parent menu. Now menu title is set by the 'title' property, which falls back to 'label' if it's empty.
2011-07-09MenuCreator: Don't forget to call updateMenu() after creating itPavel Labath1-0/+2
2011-07-08use Lua::registerInitFunction to simplify some parts of codePavel Labath1-0/+1
2011-07-03Report unrecognized menu entriesPavel Labath1-3/+6
I put the error message into the menu, because noone reads stderr anyway.
2011-07-03MenuCreator: more removal of leftovers from old menusPavel Labath1-47/+0
2011-07-03Add support for lua commands to MenuCreatorPavel Labath1-0/+4
2011-07-03Slight simplification of MenuCreator using typedefsPavel Labath1-16/+15
2011-07-02Store menus if smart pointers (RefCount)Pavel Labath1-26/+24
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-07-02Remove leftovers from old menus in MenuCreator.*Pavel Labath1-71/+0
2011-07-02CustomMenu command now shows lua menusPavel Labath1-29/+14
2011-07-01Convert windowmenu to luaPavel Labath1-18/+16
also, i've restored the autoreloading capability of menus.
2011-07-01Handle all menu entry types when loading from luaPavel Labath1-176/+33
2011-06-27A veeeery rough implementation of lua menu parsersPavel Labath1-0/+151
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-03-23compile fix: sunCC 5.11 (sunstudio 12) compiles and links againMathias Gumz1-3/+3
biggest change: renaming of 'class Layer' to 'class ResourceLayer' in Layer.hh to handle complaints about 'ambiguous Layer: Layer or FbTk::Layer'. 'ResourceLayer' sounds crappy, but that was the best I could come up with right now.
2011-02-23disabled overhead base classes 'FbTk::Layer' and 'FbTk::LayerItem'Mathias Gumz1-0/+1
had to add <algorithm> at various other files as a result of this change.
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz1-1/+1
2008-09-21Changed icon list signal in BScreen to use the new signal systemHenrik Kinnunen1-2/+2
2008-08-30use FbMenu::window instead of WindowCmd<>::window for displaying items in ↵Mark Tiefenbruck1-4/+4
the window menu
2008-08-17add SetTitle and SetTitleDialog key commandsMark Tiefenbruck1-0/+7
2008-06-06allow window menu items in ordinary menusMark Tiefenbruck1-54/+3
2008-05-28more more fun with the window menuMark Tiefenbruck1-3/+4
2008-05-12refactor menu reloading, added FbTk::AutoReloadHelperMark Tiefenbruck1-61/+52
2008-05-11reuse some menu pointers instead of using delete/newMark Tiefenbruck1-29/+12
2008-05-11more useless codeMark Tiefenbruck1-4/+0
2008-05-02remove some unnecessary argumentsMark Tiefenbruck1-14/+8
2008-02-06Consistency: alpha submenu of WindowMenu should not have title.Tomas Janousek1-3/+6
Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-01-25cosmeticsMathias Gumz1-29/+32
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-8/+8
ObjectRegistry
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-28move Parser to FbTkMark Tiefenbruck1-8/+8
2007-12-27architecture astronomyMark Tiefenbruck1-46/+9
2007-12-27simplify the window transparency menu and handling a bitMark Tiefenbruck1-2/+2
2007-12-16changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>Mark Tiefenbruck1-5/+5
2007-12-13close menus when they lose focus, instead of on [exec] commandsmarkt1-12/+2
2007-12-13added FbTk::CommandRegistry, decentralized command parsing, and made them ↵markt1-7/+7
auto-register
2007-12-11only allow one open menu at a timemarkt1-4/+2
2007-10-13merged changes from pre-develmarkt1-5/+4
2007-09-08fix crash when changing toolbar visibility with empty toolbar.toolsmarkt1-1/+1
2007-08-04fix encoding of [begin] labelsimonb1-9/+15
2007-07-24fix ToggleDecor for fullscreen and decorationless windows, plus some other ↵markt1-1/+1
cleanup
2007-07-07fixes for --program-prefix and --program-suffix, plus fixed overwriting init ↵markt1-1/+2
file on reconfigure
2007-05-17make sure included menus get remembered, in case they're modifiedmarkt1-0/+3
2007-01-07per-window transparency, including apps and menu support, plus some simonb1-19/+82
infrastructure and related changes. Thanks for original patch from Julien Trolet, dmxen at sourceforge dot net
2006-11-12removed duplicate headers, patch from Slava Semushin aka php-coderfluxgen1-1/+0
2006-10-30Cosmetic patch from Slava Semushinmathias1-53/+58
2006-06-25support encodings in menu filessimonb1-24/+108