Changeset 141 in Sophya for trunk/SophyaPI
- Timestamp:
- Sep 2, 1998, 6:38:21 PM (27 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piapplx.cc
r138 r141 141 141 142 142 // Pour appeler FinishCreate() des objets dans la fenetre principale 143 MBCont()->FinishCreate(); 143 if (mStop) MBCont()->FinishCreate(); // C'est la premiere fois 144 else mStop = true; // On rerentre apres un stop 144 145 while (mStop) 145 146 { -
trunk/SophyaPI/PI/pidrwtools.cc
r138 r141 198 198 mOpt[5]->AppendItem("Normal-Line", 602); 199 199 mOpt[5]->AppendItem("Thick-Line", 603); 200 mOpt[5]->AppendItem("ThinDashed-Line", 604); 201 mOpt[5]->AppendItem("Dashed-Line", 605); 202 mOpt[5]->AppendItem("ThickDashed-Line", 606); 200 203 mOpt[5]->SetValue(600); 201 204 mOpt[5]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic); … … 298 301 PI_TriangleMarker, PI_FTriangleMarker, 299 302 PI_StarMarker, PI_FStarMarker }; 300 PILineAtt line[4] = { PI_NotDefLineAtt, PI_ThinLine, PI_NormalLine, PI_ThickLine}; 303 PILineAtt line[7] = { PI_NotDefLineAtt, PI_ThinLine, PI_NormalLine, PI_ThickLine, 304 PI_ThinDashedLine, PI_DashedLine, PI_ThickDashedLine}; 301 305 302 306 PIFontAtt fntatt[4] = { PI_NotDefFontAtt, PI_RomanFont, PI_BoldFont, PI_ItalicFont }; … … 354 358 drw->SetFontAtt(fntsz[kk], fntatt[kkk]); 355 359 k = mOpt[5]->GetValue()-600; 356 if ( (k < 0) || (k > 3) ) k = 0;360 if ( (k < 0) || (k > 6) ) k = 0; 357 361 drw->SetLineAtt(line[k]); 358 362 if (msg == 2800) drw->Refresh(); -
trunk/SophyaPI/PI/pigraphgen.h
r138 r141 27 27 28 28 enum PILineAtt { PI_NotDefLineAtt = -1, 29 PI_NormalLine = 0, PI_ThinLine = 1, PI_ThickLine = 2 }; 29 PI_NormalLine = 0, PI_ThinLine = 1, PI_ThickLine = 2 , 30 PI_DashedLine = 128, PI_ThinDashedLine = 129, PI_ThickDashedLine = 130 }; 30 31 31 32 enum PIMarker { PI_NotDefMarker = -1, -
trunk/SophyaPI/PI/pigraphx.cc
r140 r141 395 395 void PIGraphicX::SelLine(PILineAtt att) 396 396 { 397 unsigned int lt; 397 unsigned int lt=0; 398 int lstyle=LineSolid; 398 399 399 400 if (att == mLAtt) return; … … 403 404 case PI_NormalLine : 404 405 lt = 2; 406 lstyle = LineSolid; 405 407 break; 406 408 case PI_ThickLine : 407 409 lt = 4; 410 lstyle = LineSolid; 408 411 break; 409 412 case PI_ThinLine : 410 413 lt = 0; 411 break; 414 lstyle = LineSolid; 415 break; 416 case PI_DashedLine : 417 lt = 2; 418 lstyle = LineOnOffDash; 419 break; 420 case PI_ThickDashedLine : 421 lt = 4; 422 lstyle = LineOnOffDash; 423 break; 424 case PI_ThinDashedLine : 425 lt = 0; 426 lstyle = LineOnOffDash; 427 break; 428 412 429 default: 413 430 lt = 0; 431 lstyle=LineSolid; 414 432 break; 415 433 } 416 434 417 XSetLineAttributes(XtDisplay(MyWdg()), DefGC(), lt, LineSolid, CapButt, JoinMiter);435 XSetLineAttributes(XtDisplay(MyWdg()), DefGC(), lt, lstyle, CapButt, JoinMiter); 418 436 mLAtt = att; 419 437 return;
Note:
See TracChangeset
for help on using the changeset viewer.