|
|
Home » Developing U++ » UppHub » TabBar: ordering of tabs by their Value (title)
Docking: removed special sorter [message #27515 is a reply to message #27466] |
Wed, 21 July 2010 16:43   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
hi mrjt,
your last commit reomved the special sorter in DockCont, it was nessessary to have, because the DockCont uses the Values as containers for the DockCtrl, not for the titles itself. thats why the weired converter
//DockCont.h
...
//and the sorting itself uses a ValueSorter inside
struct DockValueSort
: public TabBar::TabSort
{
virtual bool operator()(const TabBar::Tab &a, const TabBar::Tab &b) const
{
DockableCtrl* dca = DockCast(a.value);
DockableCtrl* dcb = DockCast(b.value);
if(dca && dcb)
return (*vo)(dca->GetTitle(), dcb->GetTitle());
else
return false;
}
const ValueOrder *vo;
};
DockValueSort tabsorter_inst;
...
void SortTabs(bool b);
void SortTabs(TabBar::TabSort &sort); //should be protected
void SortTabs(ValueOrder &sort);
void SortTabsOnce(ValueOrder &sort);
//DockCOnt.cpp
void DockCont::SortTabs(bool b)
{
tabbar.SortTabs(b);
}
void DockCont::SortTabs(TabBar::TabSort &sort)
{
tabbar.SortTabs(sort);
}
void DockCont::SortTabs(ValueOrder &sort)
{
tabsorter_inst.vo = &sort;
tabbar.SortTabs(tabsorter_inst);
}
void DockCont::SortTabsOnce(ValueOrder &sort)
{
DockValueSort q;
q.vo = &sort;
tabbar.SortTabsOnce(tabsorter_inst);
}
//ctor
tabsorter_inst.vo = &Single<StdValueOrder>();
//ive fixed it, see attachment, if ok please commit soon. my app relys on that
-
Attachment: Docking.rar
(Size: 8.80KB, Downloaded 315 times)
[Updated on: Wed, 21 July 2010 16:49] Report message to a moderator
|
|
|
 |
|
TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Fri, 25 June 2010 11:50
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Fri, 25 June 2010 12:54
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Fri, 25 June 2010 14:44
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Fri, 25 June 2010 17:57
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Sun, 27 June 2010 13:37
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Mon, 28 June 2010 16:49
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Tue, 29 June 2010 18:39
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Thu, 01 July 2010 14:43
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Behaviour
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Wed, 07 July 2010 11:31
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
By: mrjt on Thu, 15 July 2010 10:33
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Re: TabBar: ordering of tabs by their Value (title)
|
 |
|
Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
By: mrjt on Wed, 21 July 2010 18:41
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
By: mrjt on Thu, 22 July 2010 10:08
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
By: mrjt on Thu, 22 July 2010 10:37
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
By: mrjt on Fri, 23 July 2010 14:02
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
|
 |
|
Re: Docking: removed special sorter
By: mrjt on Wed, 11 August 2010 14:04
|
 |
|
Re: Docking: removed special sorter
By: mrjt on Mon, 06 September 2010 12:49
|
 |
|
Re: Docking: removed special sorter
By: kohait00 on Mon, 06 September 2010 12:58
|
Goto Forum:
Current Time: Wed Aug 27 01:04:42 CEST 2025
Total time taken to generate the page: 0.15026 seconds
|
|
|