diff options
author | joye <joye> | 2014-04-09 21:08:19 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-09 21:08:19 (GMT) |
commit | ec1d8a9f5f36aa09b955f2de840c28ca11f36e5b (patch) | |
tree | 7078406ead2ff2b27d9de9cdf3151cac30eef5cb /src | |
parent | 48256f999b8ea707e272a1a2608d3eef70d52291 (diff) | |
download | blt-ec1d8a9f5f36aa09b955f2de840c28ca11f36e5b.zip blt-ec1d8a9f5f36aa09b955f2de840c28ca11f36e5b.tar.gz blt-ec1d8a9f5f36aa09b955f2de840c28ca11f36e5b.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/bltGrLegd.C | 1 | ||||
-rw-r--r-- | src/bltGrLegd.h | 2 | ||||
-rw-r--r-- | src/bltGrLegdOp.C | 21 |
3 files changed, 11 insertions, 13 deletions
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C index 048de6d..414d123 100644 --- a/src/bltGrLegd.C +++ b/src/bltGrLegd.C @@ -150,7 +150,6 @@ Legend::Legend(Graph* graphPtr) { ops_ = (void*)calloc(1, sizeof(LegendOptions)); LegendOptions* ops = (LegendOptions*)ops_; - ops->legendPtr = this; graphPtr_ = graphPtr; flags =0; diff --git a/src/bltGrLegd.h b/src/bltGrLegd.h index a80e7d4..cef2ca6 100644 --- a/src/bltGrLegd.h +++ b/src/bltGrLegd.h @@ -65,8 +65,6 @@ typedef enum { class Legend; typedef struct { - // Legend* legendPtr; - Tk_3DBorder activeBg; XColor* activeFgColor; int activeRelief; diff --git a/src/bltGrLegdOp.C b/src/bltGrLegdOp.C index ea56cd9..1f14cd9 100644 --- a/src/bltGrLegdOp.C +++ b/src/bltGrLegdOp.C @@ -54,8 +54,8 @@ static int CgetOp(Graph* graphPtr, Tcl_Interp* interp, Legend* legendPtr = graphPtr->legend; Tcl_Obj* objPtr = Tk_GetOptionValue(interp, - (char*)legendPtr->ops_, - legendPtr->optionTable_, + (char*)legendPtr->ops(), + legendPtr->optionTable(), objv[3], graphPtr->tkwin); if (objPtr == NULL) return TCL_ERROR; @@ -70,8 +70,8 @@ static int ConfigureOp(Graph* graphPtr, Tcl_Interp* interp, Legend* legendPtr = graphPtr->legend; if (objc <= 4) { Tcl_Obj* objPtr = Tk_GetOptionInfo(graphPtr->interp, - (char*)legendPtr->ops_, - legendPtr->optionTable_, + (char*)legendPtr->ops(), + legendPtr->optionTable(), (objc == 4) ? objv[3] : NULL, graphPtr->tkwin); if (objPtr == NULL) @@ -95,7 +95,8 @@ static int LegendObjConfigure(Tcl_Interp* interp, Graph* graphPtr, for (error=0; error<=1; error++) { if (!error) { - if (Tk_SetOptions(interp, (char*)legendPtr->ops_, legendPtr->optionTable_, + if (Tk_SetOptions(interp, (char*)legendPtr->ops(), + legendPtr->optionTable(), objc, objv, graphPtr->tkwin, &savedOptions, &mask) != TCL_OK) continue; @@ -131,7 +132,7 @@ static int ActivateOp(Graph* graphPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const objv[]) { Legend* legendPtr = graphPtr->legend; - LegendOptions* ops = (LegendOptions*)legendPtr->ops_; + LegendOptions* ops = (LegendOptions*)legendPtr->ops(); unsigned int active, redraw; const char *string; @@ -282,7 +283,7 @@ static int GetOp(Graph* graphPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const objv[]) { Legend* legendPtr = graphPtr->legend; - LegendOptions* ops = (LegendOptions*)legendPtr->ops_; + LegendOptions* ops = (LegendOptions*)legendPtr->ops(); if (((ops->hide) == 0) && (legendPtr->nEntries_ > 0)) { Element* elemPtr; @@ -370,7 +371,7 @@ static int SelectionMarkOp(Graph* graphPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const objv[]) { Legend* legendPtr = graphPtr->legend; - LegendOptions* ops = (LegendOptions*)legendPtr->ops_; + LegendOptions* ops = (LegendOptions*)legendPtr->ops(); Element* elemPtr; if (legendPtr->getElementFromObj(objv[4], &elemPtr) != TCL_OK) @@ -421,7 +422,7 @@ static int SelectionSetOp(Graph* graphPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const objv[]) { Legend* legendPtr = graphPtr->legend; - LegendOptions* ops = (LegendOptions*)legendPtr->ops_; + LegendOptions* ops = (LegendOptions*)legendPtr->ops(); legendPtr->flags &= ~SELECT_TOGGLE; const char* string = Tcl_GetString(objv[3]); @@ -508,7 +509,7 @@ static int SelectionOp(Graph* graphPtr, Tcl_Interp* interp, static void LostSelectionProc(ClientData clientData) { Legend* legendPtr = (Legend*)clientData; - LegendOptions* ops = (LegendOptions*)legendPtr->ops_; + LegendOptions* ops = (LegendOptions*)legendPtr->ops(); if (ops->exportSelection) legendPtr->clearSelection(); |