Changeset 254
- Timestamp:
- 11/18/14 17:02:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/canvas/neurodiagram.cpp
r247 r254 243 243 244 244 NeuroSymbol::NeuroSymbol(NeuroDiagram &nd, Neuro * _n) 245 :selected(0), n(_n), diagram(nd)245 :selected(0), n(_n), diagram(nd), FramDrawToolkit(nd.getColorDefs()) 246 246 { 247 247 tooltip = "#"; … … 261 261 if (selected) 262 262 { 263 setColor( 255, 255, 255);263 setColor(ColorDefs::neuroselection); 264 264 fillRect(0, 0, size.x, size.y); 265 265 } … … 271 271 { 272 272 const char* t = label; 273 setColor(ColorDefs::neurosymbol); 273 274 drawAlignedText(size.x / 2, size.y - textHeight(), 0, t); 274 275 … … 325 326 int xw = yw / 4; // x coordinate of the first corner point, depends on yw to avoid overlapping between inputs 326 327 drawLine(size.x / 4, yw, xw, yw); // first horizontal segment (to the left) 327 diagram.setWireColor(ns2->n->state, 0); 328 if (diagram.isLive()) 329 diagram.setWireColor(ns2->n->state, 0); 328 330 // linetype: 1 (default) - draw straight or U-shape depending on layout 329 331 // 0 (debug option) - only draw straight lines … … 442 444 NeuroProbe::NeuroProbe(NeuroSymbol* ns) 443 445 :DCanvasWindow(DCanvasWindow::Title + DCanvasWindow::Border + DCanvasWindow::Close + DCanvasWindow::Size, 444 (const char*)ns->getLabel(), &neurochart, &neurochart)446 (const char*)ns->getLabel(), &neurochart, &neurochart) 445 447 { 446 448 holdismine = 0;
Note: See TracChangeset
for help on using the changeset viewer.