diff options
author | joye <joye> | 2014-07-09 17:01:02 (GMT) |
---|---|---|
committer | joye <joye> | 2014-07-09 17:01:02 (GMT) |
commit | b63e186bd5b3ad65558b0eea544fc00b5d11e867 (patch) | |
tree | b73da9ca97021161c0781ace01d055c890489f77 /src/bltGrLegd.C | |
parent | 20791a93a15c937633a146955b8a6f40cbc7cc07 (diff) | |
download | blt-b63e186bd5b3ad65558b0eea544fc00b5d11e867.zip blt-b63e186bd5b3ad65558b0eea544fc00b5d11e867.tar.gz blt-b63e186bd5b3ad65558b0eea544fc00b5d11e867.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrLegd.C')
-rw-r--r-- | src/bltGrLegd.C | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C index d63676f..32f678c 100644 --- a/src/bltGrLegd.C +++ b/src/bltGrLegd.C @@ -266,7 +266,7 @@ void Legend::map(int plotWidth, int plotHeight) int maxWidth =0; int maxHeight =0; TextStyle ts(graphPtr_, &ops->style); - for (Blt_ChainLink link=Blt_Chain_FirstLink(graphPtr_->elements_.displayList); + for (Blt_ChainLink link=Chain_FirstLink(graphPtr_->elements_.displayList); link; link = Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); @@ -374,7 +374,7 @@ void Legend::map(int plotWidth, int plotHeight) int row =0; int col =0; int count =0; - for (Blt_ChainLink link=Blt_Chain_FirstLink(graphPtr_->elements_.displayList); + for (Blt_ChainLink link=Chain_FirstLink(graphPtr_->elements_.displayList); link; link = Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); count++; @@ -454,7 +454,7 @@ void Legend::draw(Drawable drawable) int yStart = y; TextStyle ts(graphPtr_, &ops->style); - for (Blt_ChainLink link=Blt_Chain_FirstLink(graphPtr_->elements_.displayList); + for (Blt_ChainLink link=Chain_FirstLink(graphPtr_->elements_.displayList); link; link = Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); @@ -574,7 +574,7 @@ void Legend::print(PSOutput* psPtr) double yStart = y; TextStyle ts(graphPtr_, &ops->style); - for (Blt_ChainLink link=Blt_Chain_FirstLink(graphPtr_->elements_.displayList); + for (Blt_ChainLink link=Chain_FirstLink(graphPtr_->elements_.displayList); link; link = Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); @@ -791,7 +791,7 @@ int Legend::selectRange(Element *fromPtr, Element *toPtr) } else { for (Blt_ChainLink link=fromPtr->link; link; - link=Blt_Chain_PrevLink(link)) { + link=Chain_PrevLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); selectEntry(elemPtr); if (link == toPtr->link) @@ -909,7 +909,7 @@ Element* Legend::getPreviousRow(Element* focusPtr) { int col = focusPtr->col_; int row = focusPtr->row_ - 1; - for (Blt_ChainLink link=focusPtr->link; link; link=Blt_Chain_PrevLink(link)) { + for (Blt_ChainLink link=focusPtr->link; link; link=Chain_PrevLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); @@ -926,7 +926,7 @@ Element* Legend::getPreviousColumn(Element* focusPtr) { int col = focusPtr->col_ - 1; int row = focusPtr->row_; - for (Blt_ChainLink link=focusPtr->link; link; link=Blt_Chain_PrevLink(link)) { + for (Blt_ChainLink link=focusPtr->link; link; link=Chain_PrevLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); @@ -941,7 +941,7 @@ Element* Legend::getPreviousColumn(Element* focusPtr) Element* Legend::getFirstElement() { - for (Blt_ChainLink link=Blt_Chain_FirstLink(graphPtr_->elements_.displayList); + for (Blt_ChainLink link=Chain_FirstLink(graphPtr_->elements_.displayList); link; link=Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); @@ -953,8 +953,8 @@ Element* Legend::getFirstElement() Element* Legend::getLastElement() { - for (Blt_ChainLink link=Blt_Chain_LastLink(graphPtr_->elements_.displayList); - link; link=Blt_Chain_PrevLink(link)) { + for (Blt_ChainLink link=Chain_LastLink(graphPtr_->elements_.displayList); + link; link=Chain_PrevLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); if (elemOps->label) @@ -987,7 +987,7 @@ ClientData Legend::pickEntry(int xx, int yy, ClassId* classIdPtr) // Legend entries are stored in bottom-to-top if (nn < nEntries_) { int count = 0; - for (Blt_ChainLink link = Blt_Chain_FirstLink(graphPtr_->elements_.displayList); link; link = Blt_Chain_NextLink(link)) { + for (Blt_ChainLink link = Chain_FirstLink(graphPtr_->elements_.displayList); link; link = Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); ElementOptions* elemOps = (ElementOptions*)elemPtr->ops(); if (elemOps->label) { @@ -1020,7 +1020,7 @@ static int SelectionProc(ClientData clientData, int offset, char *buffer, Tcl_DString dString; Tcl_DStringInit(&dString); if (legendPtr->flags & SELECT_SORTED) { - for (Blt_ChainLink link=Blt_Chain_FirstLink(legendPtr->selected_); + for (Blt_ChainLink link=Chain_FirstLink(legendPtr->selected_); link; link = Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); Tcl_DStringAppend(&dString, elemPtr->name_, -1); @@ -1028,7 +1028,7 @@ static int SelectionProc(ClientData clientData, int offset, char *buffer, } } else { - for (Blt_ChainLink link=Blt_Chain_FirstLink(graphPtr->elements_.displayList); + for (Blt_ChainLink link=Chain_FirstLink(graphPtr->elements_.displayList); link; link = Blt_Chain_NextLink(link)) { Element* elemPtr = (Element*)Blt_Chain_GetValue(link); if (legendPtr->entryIsSelected(elemPtr)) { |