Mathias Gumz
8387742c88
Refactor menu code: be more explicit and compact
...
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.
2015-01-15 14:25:05 +01:00
Mathias Gumz
3f76e117bf
refactored MenuCreator
...
make public only what needs to be public
2011-10-21 08:42:48 +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
Mathias Gumz
e850b01919
compile fix: sunCC 5.11 (sunstudio 12) compiles and links again
...
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-23 12:02:15 +01:00
Mathias Gumz
813e6c4402
disabled overhead base classes 'FbTk::Layer' and 'FbTk::LayerItem'
...
had to add <algorithm> at various other files as a result of this change.
2011-02-23 22:46:13 +01:00
Mathias Gumz
884db973bb
cosmetic fixes: removed redundant ';' + some whitespaces
2009-09-30 21:02:24 +02:00
Henrik Kinnunen
ed53f3c623
Changed icon list signal in BScreen to use the new signal system
2008-09-21 20:45:01 +02:00
Mark Tiefenbruck
41b2e0ced4
use FbMenu::window instead of WindowCmd<>::window for displaying items in the window menu
2008-08-30 18:36:53 -04:00
Mark Tiefenbruck
a23778a44d
add SetTitle and SetTitleDialog key commands
2008-08-17 04:10:17 -07:00
Mark Tiefenbruck
ac9c672a1e
allow window menu items in ordinary menus
2008-06-06 06:58:20 -07:00
Mark Tiefenbruck
467fefaae4
more more fun with the window menu
2008-05-28 02:32:57 -07:00
Mark Tiefenbruck
93b0c5322a
refactor menu reloading, added FbTk::AutoReloadHelper
2008-05-11 17:22:40 -07:00
Mark Tiefenbruck
72a45fae3c
reuse some menu pointers instead of using delete/new
2008-05-11 10:17:21 -07:00
Mark Tiefenbruck
85d8ac7549
more useless code
2008-05-11 09:08:14 -07:00
Mark Tiefenbruck
d7afd7b39e
remove some unnecessary arguments
2008-05-02 03:44:27 -07:00
Tomas Janousek
1534c8d728
Consistency: alpha submenu of WindowMenu should not have title.
...
Signed-off-by: Tomas Janousek <tomi@nomi.cz>
2008-02-06 16:36:23 +01:00
Mathias Gumz
6717a1c805
cosmetics
2008-01-25 08:21:55 +01: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
9c105111d2
remove old svn $Id$ tags
2008-01-03 17:34:12 -08:00
Mark Tiefenbruck
39224b0142
move Parser to FbTk
2007-12-27 21:52:00 -08:00
Mark Tiefenbruck
b5c354b994
architecture astronomy
2007-12-27 13:55:24 -08:00
Mark Tiefenbruck
1f5cd12fac
simplify the window transparency menu and handling a bit
2007-12-26 20:42:10 -08:00
Mark Tiefenbruck
8516f1e2a2
changed CommandRegistry to a template class, renamed to ObjectRegistry<Type>
2007-12-15 19:36:01 -08:00
markt
b001ea9f1f
close menus when they lose focus, instead of on [exec] commands
2007-12-13 18:42:05 +00:00
markt
8b7464046c
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
2007-12-13 05:48:00 +00:00
markt
474e201745
only allow one open menu at a time
2007-12-11 19:29:00 +00:00
markt
a59428d67a
merged changes from pre-devel
2007-10-13 21:51:37 +00:00
markt
16218ae90b
fix crash when changing toolbar visibility with empty toolbar.tools
2007-09-08 18:38:30 +00:00
simonb
0ae1f4f532
fix encoding of [begin] label
2007-08-04 18:49:55 +00:00
markt
363764db5b
fix ToggleDecor for fullscreen and decorationless windows, plus some other cleanup
2007-07-24 12:12:45 +00:00
markt
135019abf9
fixes for --program-prefix and --program-suffix, plus fixed overwriting init file on reconfigure
2007-07-07 23:11:04 +00:00
markt
0f23536eff
make sure included menus get remembered, in case they're modified
2007-05-17 20:51:43 +00:00
simonb
1cc7b60aa2
per-window transparency, including apps and menu support, plus some
...
infrastructure and related changes. Thanks for original patch from
Julien Trolet, dmxen at sourceforge dot net
2007-01-07 11:55:14 +00:00
fluxgen
3efe68ffe3
removed duplicate headers, patch from Slava Semushin aka php-coder
2006-11-12 17:16:56 +00:00
mathias
e5e76e7761
Cosmetic patch from Slava Semushin
2006-10-30 19:31:15 +00:00
simonb
80389b5dd5
support encodings in menu files
2006-06-25 09:05:58 +00:00
simonb
3ada3b1f0d
fix nls... notably classify text on conversion whether its for X or
...
console, plus handle catalogs better.
2006-06-21 14:41:16 +00:00
simonb
0861f3a907
improve native language handling, move messages and menu labels to
...
FbTk::FbString
2006-05-20 15:08:14 +00:00
fluxgen
ac098b4d0f
removed duplicate setItemEnabled
2006-05-07 09:54:55 +00:00
simonb
520f552be7
handle utf-8 strings properly.
...
use utf8 internally
2006-05-07 03:41:27 +00:00
simonb
e2bc57bc0f
Fix occasional highlighting of menu nops+separators, sf.net patch
...
#1475268 (thanks Scott Kuhl; skuhl AT cs utah edu)
2006-04-25 03:11:31 +00:00
simonb
f6a072430d
fix memory leaks in menu code
2006-04-24 13:34:14 +00:00
simonb
932eebe0dd
couple of memory fixes from valgrind
2006-04-22 15:37:04 +00:00
fluxgen
369b4e1b92
moved class Layer from class Fluxbox and thus reduces some dependecies
2006-02-20 21:04:35 +00:00
mathias
f803d8f250
applied patch from php-coder to fix some warnings, mostly signed vs unsigned
...
issues
2006-01-16 18:46:39 +00:00
fluxgen
43fc6483b4
moved MenuContext class
2005-09-14 20:28:15 +00:00
fluxgen
3626faea73
cleaning, change getCount to numberOfWorkspaces
2005-07-04 18:19:09 +00:00
fluxgen
5373f6d840
moved window menu from FluxboxWindow to BScreen
2005-06-23 03:07:25 +00:00
mathias
cf46669bc1
copyright date
2005-01-24 18:34:57 +00:00
mathias
b3fa5c2428
* moved FbTk/Directory.cc/hh over to FbTk/FileUtil.cc/hh which contain now
...
file and directory - helproutines.
* created the FileUtil-namespace which contains file-related functions, moved
those functions out of Directory - code
* changes to the rest of the files to follow those changes
2004-12-18 01:29:22 +00:00