mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ArrayCtrl::SetRowDisplay, SetColumnDisplay
git-svn-id: svn://ultimatepp.org/upp/trunk@11087 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7db4d4c20e
commit
0f3412d6bd
3 changed files with 31 additions and 0 deletions
|
|
@ -295,6 +295,23 @@ void ArrayCtrl::SetDisplay(int i, int j, const Display& d)
|
|||
RefreshRow(i);
|
||||
}
|
||||
|
||||
void ArrayCtrl::SetRowDisplay(int i, const Display& d)
|
||||
{
|
||||
if(i >= 0 && i < GetCount())
|
||||
for (int j = 0 ; j < GetColumnCount(); j++)
|
||||
this->cellinfo.At(i).At(j).Set(d);
|
||||
RefreshRow(i);
|
||||
}
|
||||
|
||||
void ArrayCtrl::SetColumnDisplay(int j, const Display& d)
|
||||
{
|
||||
if(j >= 0 && j < GetColumnCount())
|
||||
for (int i = 0 ; i < GetCount(); i++) {
|
||||
this->cellinfo.At(i).At(j).Set(d);
|
||||
RefreshRow(i);
|
||||
}
|
||||
}
|
||||
|
||||
const Display& ArrayCtrl::GetDisplay(int i, int j)
|
||||
{
|
||||
if(i < cellinfo.GetCount() && j < cellinfo[i].GetCount() && cellinfo[i][j].IsDisplay())
|
||||
|
|
|
|||
|
|
@ -559,6 +559,8 @@ public:
|
|||
bool IsInsert() const { return insertmode; }
|
||||
|
||||
void SetDisplay(int i, int col, const Display& d);
|
||||
void SetRowDisplay(int i, const Display& d);
|
||||
void SetColumnDisplay(int j, const Display& d);
|
||||
const Display& GetDisplay(int row, int col);
|
||||
const Display& GetDisplay(int col);
|
||||
|
||||
|
|
|
|||
|
|
@ -1502,6 +1502,18 @@ or graphical exports from the array control).&]
|
|||
[s7; [*C@3 j]-|zero`-based column index&]
|
||||
[s7; [*C@3 d]-|display to use&]
|
||||
[s3; &]
|
||||
[s4;%- &]
|
||||
[s5;:Upp`:`:ArrayCtrl`:`:SetRowDisplay`(int`,const Upp`:`:Display`&`):%- [@(0.0.255) vo
|
||||
id]_[* SetRowDisplay]([@(0.0.255) int]_[*@3 i], [@(0.0.255) const]_[_^Upp`:`:Display^ Displ
|
||||
ay][@(0.0.255) `&]_[*@3 d])&]
|
||||
[s2; Sets Display [%-*@3 d] for each cell of line [%-*@3 i].&]
|
||||
[s3; &]
|
||||
[s4;%- &]
|
||||
[s5;:Upp`:`:ArrayCtrl`:`:SetColumnDisplay`(int`,const Upp`:`:Display`&`):%- [@(0.0.255) v
|
||||
oid]_[* SetColumnDisplay]([@(0.0.255) int]_[*@3 j], [@(0.0.255) const]_[_^Upp`:`:Display^ D
|
||||
isplay][@(0.0.255) `&]_[*@3 d])&]
|
||||
[s2; Sets Display [%-*@3 d] for each cell of column j.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:ArrayCtrl`:`:GetDisplay`(int`,int`): [@(0.0.255) const]_[_^Display^ Display][@(0.0.255) `&
|
||||
]_[* GetDisplay]([@(0.0.255) int]_[*@3 row], [@(0.0.255) int]_[*@3 col])&]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue