aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-01-21Fix segfault on shutdownMathias Gumz1-7/+13
There was a problem deep within how the menus were connected and when and what gets deleted. It was clearly related to a menu which was kind of global. In order to better understand the code flow I eliminated the ExtraMenu code: it was used only to get the Remember-Menu into the Window-Menu. Instead of having a singleton of the Remember-Menu and fight against the shaky interconnections we just create a new one on demand and delete when the menu gets deleted. Looks like this fixes the problem. The menu code needs more love anyway. Closes #1118
2015-01-21Remove unused variableMathias Gumz1-1/+1
2015-01-16Refactor: move some menu-creation functions to MenuCreatorMathias Gumz1-7/+11
Another patch to trim down the code that needs to be part of BScreen
2015-01-15Refactor menu code: be more explicit and compactMathias Gumz1-89/+99
This commit is a preparation step for some menu cleanup ahead. To make it easier to understand which types of MenuItems are added where and when, I converted the overloaded FbTk::Menu::insert() functions into explicit ones (Menu::insertSubmenu(), Menu::insertItem(), etc. ). This makes it possible to just grep for 'insertSubmenu()'. Side effect this commit: it trims down the very verbose creation of menu items in regards to how the labels are created. Minor: FbTk::Menu::shown and FbTk::Menu::s_focused are moved out of the class.
2011-10-21refactored MenuCreatorMathias Gumz1-72/+76
make public only what needs to be public
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
2006-06-21fix nls... notably classify text on conversion whether its for X or simonb1-14/+14
console, plus handle catalogs better.
2006-05-20improve native language handling, move messages and menu labels to simonb1-24/+24
FbTk::FbString
2006-05-07removed duplicate setItemEnabledfluxgen1-1/+0
2006-05-07handle utf-8 strings properly.simonb1-0/+1
use utf8 internally
2006-04-25 Fix occasional highlighting of menu nops+separators, sf.net patch simonb1-1/+2
#1475268 (thanks Scott Kuhl; skuhl AT cs utah edu)
2006-04-24fix memory leaks in menu codesimonb1-1/+0
2006-04-22couple of memory fixes from valgrindsimonb1-2/+2
2006-02-20moved class Layer from class Fluxbox and thus reduces some dependeciesfluxgen1-13/+29
2006-01-16applied patch from php-coder to fix some warnings, mostly signed vs unsignedmathias1-1/+1
issues
2005-09-14moved MenuContext classfluxgen1-13/+14
2005-07-04cleaning, change getCount to numberOfWorkspacesfluxgen1-2/+2