30 Commits

Author SHA1 Message Date
besh81
4dd1c0c7ef dock_pane and toolbar bug fix
fixed bug in dock_pane caption drawing function (used a workaround that hide the caption when the dock_pane width become too small)
fixed small bug in toolbar
2019-09-05 17:37:40 +02:00
besh81
67f5d1743f toolbar: show text inside the button
Added function/method both to toolbar and item_proxy:
void textout(size_type index, bool show); ///< Show/Hide the text inside the button

Before: button without image weren't display
Now: button without image is display as empty square. In case the textout is on the text is show
2019-05-09 09:44:37 +02:00
besh81
5422c43002 toolbar : added toggle button
Following functions/methods have been add both to toolbar and item_proxy:
bool istoggle() const; ///< Returns true if the tool style is toggle.
				bool toggle() const; ///< Gets the tool toggle state (only if tool style is toggle).
				item_proxy& toggle(bool toggle_state); ///< Sets the tool toggle state (only if tool style is toggle).
				std::string toggle_group() const;	///< Returns the toggle group associated with the tool (only if tool style is toggle).
				item_proxy& toggle_group(const ::std::string& group);	///< Adds the tool to a toggle group (only if tool style is toggle).
2019-05-08 18:11:21 +02:00
Jinhao
2cf374705f Merge branch 'hotfix-1.5.6' into develop 2018-04-12 15:49:30 +08:00
Jinhao
dd0c75fb0d update file information 2018-04-01 00:02:24 +08:00
besh81
fcb5c81631 Added toolbar.clear() 2018-03-18 10:48:17 +01:00
5cript
46f03638a2 Removed wrong const. 2018-01-26 02:41:04 +01:00
5cript
18ff787947 Whitespace to Tabs. 2018-01-26 02:38:33 +01:00
5cript
1781e77e39 Added convenient proxy, that allows the user to disable items directly after creation. 2018-01-26 02:36:10 +01:00
Jinhao
4e9646cf64 unify semantics of the blend methods 2017-04-15 11:30:16 +08:00
Jinhao
42990b8670 move lazy_refresh() from namespace API to API::dev 2016-04-17 17:46:19 +08:00
Jinhao
07b5b19545 improve stability of event 2016-04-10 15:23:44 +08:00
Jinhao
397096f60e add contribution information 2016-01-31 22:38:39 +08:00
kmribti
f20c73129f Update toolbar.cpp 2016-01-25 08:26:27 +01:00
Karim Mribti
bfc775c5e0 more toolbar improvement. 2016-01-24 15:04:36 +01:00
Karim Mribti
c20eb357af Toolbar widget improvement.
This patch has 2 new features:

1- new option at constructor to enable creation of detached toolbar from
his parent, this enable the use of toolbar anywhere and the size can be
controlled by a layout manager.

2- add a new option in order to enable to place buttons at right part,
the widget has a new method go_right() after calling it, every new
button is right aligned.

Both changes don't break compatibility with old code.
2016-01-24 13:52:14 +01:00
Jinhao
a2a7d1fc37 remove deprecated components 2016-01-03 17:50:10 +08:00
Jinhao
12358a5dc0 change some APIs for accepting utf8 2015-11-27 01:54:26 +08:00
Jinhao
396163c1b7 fix mouse left button issues due to breaking changes 2015-07-28 00:00:15 +08:00
Jinhao
b1ed1f0452 Merge branch 'hotfixes-1.0.2' into develop
Conflicts:
	include/nana/gui/detail/basic_window.hpp
	include/nana/gui/widgets/listbox.hpp
	source/gui/detail/linux_X11/bedrock.cpp
	source/gui/detail/win32/bedrock.cpp
	source/gui/detail/window_layout.cpp
	source/gui/detail/window_manager.cpp
	source/gui/widgets/listbox.cpp
	source/gui/widgets/toolbar.cpp
2015-07-11 13:35:22 +08:00
Jinhao
28413b7f25 explicit conversion from point/size to rectangle 2015-06-22 11:30:14 +08:00
Jinhao
ee9d102f8d refactor toolbar 2015-05-30 16:55:03 +08:00
cnjinhao
fd5ff571a7 get ready for Linux 2015-02-04 10:26:08 +08:00
cnjinhao
38552b855b make all internal event handlers unignorable 2015-02-04 01:34:50 +08:00
cnjinhao
46f8182c50 add event stop_propagation 2015-02-01 17:12:19 +08:00
cnjinhao
9a71f23ddd Performance improvements 2015-01-09 08:12:20 +08:00
cnjinhao
aa12254844 Added listbox color scheme 2014-12-30 06:28:23 +08:00
cnjinhao
ad7c36be3f Renamed expr_color to color 2014-12-24 02:07:39 +08:00
cnjinhao
42788db077 Breaking changes for expr_color
expr_color is a temporary class name for new color type experiment.
2014-12-17 11:20:47 +08:00
cnjinhao
d0a317bd45 first init of 0.9 2014-12-11 03:32:35 +08:00