aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-01-23Refactor Toolbar.cc, less noiseMathias Gumz1-148/+80
2015-01-15Refactor menu code: be more explicit and compactMathias Gumz1-19/+22
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.
2013-05-26build-sys: use AC_USE_SYSTEM_EXTENSIONSSami Kerola1-5/+0
The earlier _GNU_SOURCE definitions possibly did not take effect everywhere where it was intended.
2013-05-26build-sys: include config.h to all files using automakeSami Kerola1-4/+0
Do not try to be too smart which compilations need config.h, as most of them will simply because of the config.h has information about system capabilities.
2013-02-27minor code simplificationsMathias Gumz1-8/+2
2013-02-27Workspace switching on the toolbar via the mouse buttonsSoeren Beye1-1/+1
2012-12-30Set WM_WINDOW_ROLE for fluxbox windowsVladimir A. Pavlov1-0/+2
2012-10-03Improved vertical alignment of text in FbTk::TextButtonMathias Gumz1-2/+0
The old formula for vertical align text inside FbTk::TextButton ('height/2 + font_ascent/2 - 1') produced not always good looking results, escpecially when different fonts are involved (eg, ClockTool and WorkspaceName have different fonts and font-sizes). '(height - font_ascent) / 2 - 1' produces better results. Additional changes: * added ASCII-Art to document the involved entities when calculating the baseline * rewritten tests/testFont.cc to accept multiples texts and multiple fonts * removed some internal parts of FbTk::Font from the public interface
2012-08-28changed timing functions to use a monotonic increasing clockMathias Gumz1-1/+1
gettimeofday() is subject to be changed on daylight-saving or to ntp-related (think leap-seconds). even worse, it is subject to be changed BACK in time. this is hard to fix correctly (see commit 45726d3016e and bug #3560509). it is irrelevant for timers to know the nano-seconds since the epoch anyways.
2011-05-10Convert ToolbarItem::resizeSig to FbTk::SignalPavel Labath1-6/+2
2011-05-10Convert Screen::reconfigureSig to FbTk::SignalPavel Labath1-2/+5
2011-05-10Convert FbTk::Theme::reconfigSig and friends to the new Signal systemPavel Labath1-1/+1
I removed the const versions of reconfigSig() in the process since FbTk::Signal has no const methods anyway.
2011-03-23compile fix: sunCC 5.11 (sunstudio 12) compiles and links againMathias Gumz1-5/+5
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-03-01fix misordered Toolbar::Placement strings, closes 3195721Mathias Gumz1-3/+3
2011-02-24moved Menu placement into ScreenPlacement::placeAndShowMenu()Mathias Gumz1-16/+4
2011-02-23renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItemMathias Gumz1-1/+1
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.
2011-01-16compile fix, new name of setMinimumSublevels() is setMinimumColumns()Mathias Gumz1-1/+1
2010-09-17code simplification by reducing if-else hellMathias Gumz1-66/+38
a lot of the parsing-related and menu-building stuff is just plain stupid boiler plate code. putting the data into a const array separates the boiler plate data from the actual code.
2010-09-15use hardcoded array for hardcoded placement menu defaultsMathias Gumz1-30/+28
2010-09-15removed useless codeMathias Gumz1-4/+0
'tools' is transformed to lower case some lines above, 'm_tools_ is a copy of the lower cased 'tools'.
2010-09-15code deduplication by using <algorithm> and FbTk/STLUtil.hhMathias Gumz1-17/+8
2010-05-23mostly cosmetic fixes, mainly discovered by 'clang --analyze'Mathias Gumz1-31/+32
reordering of Resource-related stuff was because of "error: explicit specialization of 'getString' after instantiation" complaints.
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz1-1/+1
2009-07-24make autohide only show the border or 1 pixel if borderlessMark Tiefenbruck1-18/+15
2009-06-28change default toolbar tools to:Mark Tiefenbruck1-1/+1
prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock
2009-06-28change default toolbar head from 0 to 1Mark Tiefenbruck1-1/+1
2008-10-19increase default size of toolbar and icon buttonsMark Tiefenbruck1-1/+1
2008-09-28Changed resize signal in BScreen to use the new signal systemHenrik Kinnunen1-1/+8
2008-09-08update workspace names atoms/resources when adding a new workspaceMark Tiefenbruck1-1/+1
also removed unnecessary items from default init file
2008-08-24toolbar placement menu wasn't updatingMark Tiefenbruck1-0/+1
2008-08-04add selection box to various "choose one of these" menu itemsMark Tiefenbruck1-10/+15
2008-04-27Added SimpleObserver class.Henrik Kinnunen1-21/+16
This class works in the same way as the SimpleCommand class. Use it with the makeObserver function. It calls the receiver's member function when the subject sends a signal.
2008-03-29fixed a small issue with autohidden toolbarMathias Gumz1-2/+8
the toolbar was not going to hidden state when the slit covered the toolbar and the mouse was still in the toolbar area. now we check event.subwindow to decide if it was a "valid" leaveNotifyEvent.
2008-02-11more fun with the window menuMark Tiefenbruck1-12/+1
2008-01-27"On head" menu -- reloading and refreshing bugfix.Tomas Janousek1-4/+8
We should reload the contents of this menu on Xinerama layout change. I switched it from FbMenu to ToggleMenu, because the selected head wasn't being updated properly. Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-01-22fix some issues with window menusMark Tiefenbruck1-1/+13
2008-01-15split Text.hh into Orientation.hh and TextUtils.{cc,hh}Mathias Gumz1-0/+1
2008-01-13fix crashes on restartMark Tiefenbruck1-1/+2
2008-01-12move some stuff from Fluxbox to BScreenMark Tiefenbruck1-4/+1
2008-01-11make FbTk::Command a template class, split parsing information out of ↵Mark Tiefenbruck1-7/+7
ObjectRegistry
2008-01-05update code to use ThemeProxyMark Tiefenbruck1-18/+18
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-28move Shape to FbTkMark Tiefenbruck1-16/+15
2007-12-27architecture astronomyMark Tiefenbruck1-10/+10
2007-12-16changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>Mark Tiefenbruck1-2/+2
2007-12-13added FbTk::CommandRegistry, decentralized command parsing, and made them ↵markt1-2/+2
auto-register
2007-12-11only allow one open menu at a timemarkt1-21/+15
2007-12-09added OnTitlebar modifier to keys filemarkt1-1/+1
2007-11-23make sure window commands operate on the right windowmarkt1-0/+3