mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
ArrayCtrl: AcceptRow now public and documented
git-svn-id: svn://ultimatepp.org/upp/trunk@10901 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6d43ea4b7f
commit
31d123e5cc
3 changed files with 11 additions and 1 deletions
|
|
@ -1246,6 +1246,7 @@ bool ArrayCtrl::UpdateRow() {
|
|||
}
|
||||
}
|
||||
if(iv) {
|
||||
RefreshRow(cursor);
|
||||
InvalidateCache(cursor);
|
||||
WhenArrayAction();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -290,7 +290,6 @@ private:
|
|||
void AfterSet(int i);
|
||||
|
||||
void Reline(int i, int y);
|
||||
bool AcceptRow();
|
||||
void Remove0(int i);
|
||||
void DisableCtrls();
|
||||
void SetCtrls();
|
||||
|
|
@ -519,6 +518,7 @@ public:
|
|||
int GetScroll() const;
|
||||
void ScrollTo(int sc);
|
||||
void ShowAppendLine();
|
||||
bool AcceptRow();
|
||||
|
||||
void Move(int d);
|
||||
void SwapUp();
|
||||
|
|
|
|||
|
|
@ -546,6 +546,15 @@ values.&]
|
|||
[s2; Show an additional pseudo`-row at the table end. When clicked,
|
||||
a new row is appended to the array.&]
|
||||
[s3; &]
|
||||
[s4;%- &]
|
||||
[s5;:Upp`:`:ArrayCtrl`:`:AcceptRow`(`):%- [@(0.0.255) bool]_[* AcceptRow]()&]
|
||||
[s2; When there are slave widgets (connected using AddCtrl), the
|
||||
visible content of ArrayCtrl line is normally updated when cursor
|
||||
moves to another line (and the move is prevented if any slave
|
||||
widget has invalid value). This method tries to check for invalid
|
||||
values and updates the row immediately. Returns true if there
|
||||
were no invalid values in slave widgets.&]
|
||||
[s3;%- &]
|
||||
[s4; &]
|
||||
[s5;:ArrayCtrl`:`:IsEdit`(`)const: [@(0.0.255) bool]_[* IsEdit]()_[@(0.0.255) const]&]
|
||||
[s2; Checks whether the array is currently being edited.&]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue