Changeset View
Changeset View
Standalone View
Standalone View
umbrello/umlwidgets/statewidget.cpp
Context not available. | |||||
131 | painter->drawEllipse(3, 3, w - 6, h - 6); | 131 | painter->drawEllipse(3, 3, w - 6, h - 6); | ||
---|---|---|---|---|---|
132 | break; | 132 | break; | ||
133 | case StateWidget::Fork: | 133 | case StateWidget::Fork: | ||
134 | { | ||||
135 | painter->setPen(Qt::black); | ||||
136 | painter->setBrush(Qt::black); | ||||
137 | painter->drawRect(rect()); | ||||
138 | } | ||||
139 | break; | ||||
134 | case StateWidget::Join: | 140 | case StateWidget::Join: | ||
135 | { | 141 | { | ||
136 | painter->setPen(Qt::black); | 142 | painter->setPen(Qt::black); | ||
Context not available. | |||||
414 | setAutoResize(false); | 420 | setAutoResize(false); | ||
415 | setResizable(false); | 421 | setResizable(false); | ||
416 | } | 422 | } | ||
423 | | ||||
424 | switch (stateType) { | ||||
425 | case StateWidget::Initial: | ||||
426 | setToolTip(tr("<b>Initial State</b>" | ||||
427 | "<p>Objects begin their lifecycle in " | ||||
428 | "an initial state. In a method State-" | ||||
429 | "chart, the initial state marks the " | ||||
430 | "beginning of the method.</p>")); | ||||
431 | break; | ||||
432 | case StateWidget::End: | ||||
433 | setToolTip(QLatin1String("<b>End State</b>" | ||||
434 | "<p>An End State describes that the object " | ||||
435 | "has fulfilled its duty in this state and " | ||||
436 | "is not necessary anymore. </p>")); | ||||
437 | break; | ||||
438 | case StateWidget::Fork: | ||||
439 | setToolTip(QLatin1String("<b>Fork</b>" | ||||
440 | "<p>A Fork must have at least two outgoing " | ||||
441 | "Transitions and exactly one incoming " | ||||
442 | "Transition.</p>")); | ||||
443 | break; | ||||
444 | case StateWidget::Join: | ||||
445 | setToolTip(QLatin1String("<b>Join</b>" | ||||
446 | "<p>A Join must have at least two " | ||||
447 | "incoming Transitions and exactly one " | ||||
448 | "outgoing Transition.</p>")); | ||||
449 | break; | ||||
450 | case StateWidget::Junction: | ||||
451 | setToolTip(QLatin1String("<b>Junction</b>" | ||||
452 | "<p>A Junction must have at least " | ||||
453 | "one incoming and one outgoing " | ||||
454 | "Transition.</p>")); | ||||
455 | break; | ||||
456 | case StateWidget::DeepHistory: | ||||
457 | setToolTip(QLatin1String("<b>Deep History</b>" | ||||
458 | "<p>Deep History represents the full " | ||||
459 | "state configuration of the most recent " | ||||
460 | "visit to the containing Region.</p>")); | ||||
461 | break; | ||||
462 | case StateWidget::ShallowHistory: | ||||
463 | setToolTip(QLatin1String("<b>Shallow History</b>" | ||||
464 | "<p>Shallow History represents a return " | ||||
465 | "to only the topmost substate of the most " | ||||
466 | "recent state configuration, which is " | ||||
467 | "entered using the default entry rule.</p>" | ||||
468 | )); | ||||
469 | break; | ||||
470 | case StateWidget::Choice: | ||||
471 | setToolTip(QLatin1String("<b>Choice</b>" | ||||
472 | "<p>An element in a state machine in which a single " | ||||
473 | "trigger leads to more than one possible outcome, " | ||||
474 | "each with its own guard condition.</p>")); | ||||
475 | break; | ||||
476 | case StateWidget::Combined: | ||||
477 | setToolTip(QLatin1String("<b>Combined State</b>" | ||||
478 | "<p>A state that consists of either concurrent " | ||||
479 | "(orthogonal) substates or sequential (disjoint) substates.</p>")); | ||||
480 | break; | ||||
481 | default: | ||||
482 | break; | ||||
483 | } | ||||
417 | } | 484 | } | ||
418 | 485 | | |||
419 | /** | 486 | /** | ||
Context not available. | |||||
606 | break; | 673 | break; | ||
607 | } | 674 | } | ||
608 | } | 675 | } | ||
609 | | ||||
Context not available. |