Fix merge
# Conflicts: # include/nana/gui/widgets/treebox.hpp # source/gui/place.cpp
This commit is contained in:
parent
d6088e5d7d
commit
ca96a9d3ca
@ -46,8 +46,6 @@ before_install:
|
|||||||
- cd ..
|
- cd ..
|
||||||
- git clone --depth=1 --branch=hotfix https://github.com/qPCR4vir/nana-demo.git nana-demo
|
- git clone --depth=1 --branch=hotfix https://github.com/qPCR4vir/nana-demo.git nana-demo
|
||||||
- export PATH="$HOME/bin:$PATH"
|
- export PATH="$HOME/bin:$PATH"
|
||||||
|
|
||||||
#- mkdir ~/bin #it seemd that a bin already exists from 20170901
|
|
||||||
- wget --no-check-certificate --no-clobber -O /tmp/tools/cmake https://cmake.org/files/v3.12/cmake-3.12.0-rc3-Linux-x86_64.sh || true
|
- wget --no-check-certificate --no-clobber -O /tmp/tools/cmake https://cmake.org/files/v3.12/cmake-3.12.0-rc3-Linux-x86_64.sh || true
|
||||||
- chmod -R +x /tmp/tools
|
- chmod -R +x /tmp/tools
|
||||||
|
|
||||||
|
@ -256,6 +256,7 @@
|
|||||||
<ClInclude Include="..\..\include\nana\gui.hpp" />
|
<ClInclude Include="..\..\include\nana\gui.hpp" />
|
||||||
<ClInclude Include="..\..\include\nana\gui\animation.hpp" />
|
<ClInclude Include="..\..\include\nana\gui\animation.hpp" />
|
||||||
<ClInclude Include="..\..\include\nana\gui\basis.hpp" />
|
<ClInclude Include="..\..\include\nana\gui\basis.hpp" />
|
||||||
|
<ClInclude Include="..\..\include\nana\gui\dragdrop.hpp" />
|
||||||
<ClInclude Include="..\..\include\nana\gui\dragger.hpp" />
|
<ClInclude Include="..\..\include\nana\gui\dragger.hpp" />
|
||||||
<ClInclude Include="..\..\include\nana\gui\drawing.hpp" />
|
<ClInclude Include="..\..\include\nana\gui\drawing.hpp" />
|
||||||
<ClInclude Include="..\..\include\nana\gui\effects.hpp" />
|
<ClInclude Include="..\..\include\nana\gui\effects.hpp" />
|
||||||
|
@ -474,6 +474,9 @@
|
|||||||
<ClInclude Include="..\..\include\nana\verbose_preprocessor.hpp">
|
<ClInclude Include="..\..\include\nana\verbose_preprocessor.hpp">
|
||||||
<Filter>Include</Filter>
|
<Filter>Include</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\include\nana\gui\dragdrop.hpp">
|
||||||
|
<Filter>Include\gui</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\..\include\nana\pop_ignore_diagnostic">
|
<None Include="..\..\include\nana\pop_ignore_diagnostic">
|
||||||
|
@ -40,7 +40,16 @@ namespace nana
|
|||||||
simple_dragdrop(simple_dragdrop&&) = delete;
|
simple_dragdrop(simple_dragdrop&&) = delete;
|
||||||
simple_dragdrop& operator=(simple_dragdrop&&) = delete;
|
simple_dragdrop& operator=(simple_dragdrop&&) = delete;
|
||||||
public:
|
public:
|
||||||
simple_dragdrop(window source);
|
explicit simple_dragdrop(window source);
|
||||||
|
simple_dragdrop(window drag_origin,
|
||||||
|
std::function<bool()> when,
|
||||||
|
window drop_target,
|
||||||
|
std::function<void()> how)
|
||||||
|
: simple_dragdrop{drag_origin}
|
||||||
|
{
|
||||||
|
condition(when);
|
||||||
|
make_drop(drop_target, how);
|
||||||
|
}
|
||||||
~simple_dragdrop();
|
~simple_dragdrop();
|
||||||
|
|
||||||
/// Condition checker
|
/// Condition checker
|
||||||
|
@ -59,9 +59,8 @@ namespace nana{
|
|||||||
group(window parent, const rectangle& = {}, bool visible = true);
|
group(window parent, const rectangle& = {}, bool visible = true);
|
||||||
|
|
||||||
/// The construction that creates the widget and set the title or caption
|
/// The construction that creates the widget and set the title or caption
|
||||||
|
group(window parent, ///< a handle to the parent
|
||||||
group(window parent, ///< a handle to the parent
|
::std::string title, ///< caption of the group
|
||||||
::std::string title, ///< caption of the group
|
|
||||||
bool formatted = false, ///< Enable/disable the formatted text for the title
|
bool formatted = false, ///< Enable/disable the formatted text for the title
|
||||||
unsigned gap = 2, ///< between the content and the external limit
|
unsigned gap = 2, ///< between the content and the external limit
|
||||||
const rectangle& r = {} ,
|
const rectangle& r = {} ,
|
||||||
|
@ -1465,7 +1465,7 @@ the nana::detail::basic_window member pointer scheme
|
|||||||
size_type column_size() const;
|
size_type column_size() const;
|
||||||
|
|
||||||
/// Move column to view_position
|
/// Move column to view_position
|
||||||
void move_column(size_type abs_pos, size_type view_pos);
|
void move_column(size_type abs_pos, size_type view_pos);
|
||||||
|
|
||||||
/// Sort columns in range first_col to last_col inclusive using the values from a row
|
/// Sort columns in range first_col to last_col inclusive using the values from a row
|
||||||
void reorder_columns(size_type first_col,
|
void reorder_columns(size_type first_col,
|
||||||
|
@ -350,9 +350,9 @@ namespace nana
|
|||||||
/// \brief Displays a hierarchical list of items, such as the files and directories on a disk.
|
/// \brief Displays a hierarchical list of items, such as the files and directories on a disk.
|
||||||
/// See also in [documentation](http://nanapro.org/en-us/documentation/widgets/treebox.htm)
|
/// See also in [documentation](http://nanapro.org/en-us/documentation/widgets/treebox.htm)
|
||||||
class treebox
|
class treebox
|
||||||
:public widget_object < category::widget_tag,
|
:public widget_object <category::widget_tag,
|
||||||
drawerbase::treebox::trigger,
|
drawerbase::treebox::trigger,
|
||||||
drawerbase::treebox::treebox_events>
|
drawerbase::treebox::treebox_events, drawerbase::treebox::scheme>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/// A type refers to the item and is also used to iterate through the nodes.
|
/// A type refers to the item and is also used to iterate through the nodes.
|
||||||
|
@ -549,9 +549,9 @@ namespace nana
|
|||||||
if (!front) view++;
|
if (!front) view++;
|
||||||
if (view >= cont_.size() ) return;
|
if (view >= cont_.size() ) return;
|
||||||
|
|
||||||
auto i = std::find_if( cont_.begin(),
|
auto i = std::find_if( cont_.begin(),
|
||||||
cont_.end(),
|
cont_.end(),
|
||||||
[&](const column& c){return col==c.index;});
|
[&](const column& c){return col==c.index;});
|
||||||
|
|
||||||
if (i==cont_.end()) return;
|
if (i==cont_.end()) return;
|
||||||
|
|
||||||
@ -4474,7 +4474,7 @@ namespace nana
|
|||||||
essence_->stop_mouse_selection();
|
essence_->stop_mouse_selection();
|
||||||
need_refresh = true;
|
need_refresh = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (operation_states::msup_deselect == essence_->operation.state)
|
if (operation_states::msup_deselect == essence_->operation.state)
|
||||||
{
|
{
|
||||||
essence_->operation.state = operation_states::none;
|
essence_->operation.state = operation_states::none;
|
||||||
@ -6193,7 +6193,7 @@ namespace nana
|
|||||||
|
|
||||||
std::vector<size_type> new_idx;
|
std::vector<size_type> new_idx;
|
||||||
for(size_type i=first_col; i<=last_col; ++i) new_idx.push_back(i);
|
for(size_type i=first_col; i<=last_col; ++i) new_idx.push_back(i);
|
||||||
|
|
||||||
internal_scope_guard lock;
|
internal_scope_guard lock;
|
||||||
auto ip_row = this->at(row);
|
auto ip_row = this->at(row);
|
||||||
auto pnany=_m_ess().lister.anyobj(row,false);
|
auto pnany=_m_ess().lister.anyobj(row,false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user