remove deprecated code
This commit is contained in:
@@ -71,9 +71,7 @@ namespace nana{
|
||||
caption_dimension.width += 1;
|
||||
|
||||
std::string div = "vert margin=[0," + std::to_string(gap) + "," + std::to_string(gap + 5) + "," + std::to_string(gap) + "]";
|
||||
#if 0
|
||||
div += "<weight=" + std::to_string(caption_dimension.height) + " <weight=5><" + field_title + " weight=" + std::to_string(caption_dimension.width + 1) + ">>";
|
||||
#else
|
||||
|
||||
div += "<weight=" + std::to_string(caption_dimension.height) + " ";
|
||||
|
||||
if (align::left == caption_align)
|
||||
@@ -88,9 +86,7 @@ namespace nana{
|
||||
else if (align::center == caption_align)
|
||||
div += "<>";
|
||||
|
||||
div += ">";
|
||||
#endif
|
||||
div += "<<vert margin=5 " + std::string(field_options) + ">";
|
||||
div += "><<vert margin=5 " + std::string(field_options) + ">";
|
||||
|
||||
if (!usr_div_str.empty())
|
||||
div += "<" + usr_div_str + ">>";
|
||||
|
||||
@@ -85,27 +85,10 @@ namespace nana {
|
||||
cv_scroll(std::make_shared<cv_scroll_rep>())
|
||||
{
|
||||
API::events(handle).mouse_wheel.connect_unignorable([this](const arg_wheel& arg) {
|
||||
#if 0
|
||||
scroll_interface * scroll = nullptr;
|
||||
switch (arg.which)
|
||||
{
|
||||
case arg_wheel::wheel::vertical:
|
||||
scroll = |
|
||||
break;
|
||||
case arg_wheel::wheel::horizontal:
|
||||
scroll = &horz;
|
||||
break;
|
||||
default:
|
||||
//Other button is not unsupported.
|
||||
return;
|
||||
}
|
||||
#else
|
||||
auto const scroll = cv_scroll->scroll(arg.which);
|
||||
if (nullptr == scroll)
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (!API::empty_window(arg.window_handle))
|
||||
auto const scroll = cv_scroll->scroll(arg.which);
|
||||
|
||||
if (scroll && (!API::empty_window(arg.window_handle)))
|
||||
{
|
||||
auto align_px = (scroll->value() % scroll->step());
|
||||
if (align_px)
|
||||
|
||||
Reference in New Issue
Block a user