score icon indicating copy to clipboard operation
score copied to clipboard

sub-scenarios should be minimized when in smallView

Open bltzr opened this issue 8 years ago • 1 comments

e.g. even with the simple scenario below ezez the smallView version is illegible zeczbc maybe when a sub-scenario is in a smallView, only the headers of its constraints should be shown (with a smaller vertical size, also, maybe... ??)

bltzr avatar May 15 '17 14:05 bltzr

To do

Scenarios in small view are scenarios that are displayed in a TemporalConstraintPresenter. The best way to do this imho is :

  • In the LayerPresenter interface, add a virtual setSmallView function, or a setView() with a new enum class LayerViewType { SmallView, FullView }; which could be later expanded. The default implementation should do nothing.
  • In TemporalConstraintPresenter, when a new process is created, call the setSmallView on it. Also, create a new setSmallView function that for now only class on_rackVisibleChanged(false). Maybe it will be necessary to save the "requested" small view in a boolean in the class so that when new processes are created, the view is not inadvertently displayed again.
  • In TemporalScenarioPresenter, reimplement setSmallView() and save a boolean in the class that stores its value.
  • In TemporalScenarioPresenter, when a TemporalConstraintPresenter is created, check if we're in small view, and if it's the case, call setSmallView on it.

jcelerier avatar May 31 '17 09:05 jcelerier