Lumiera  0.pre.03
clip-presenter.hpp File Reference

Go to the source code of this file.


Presentation control element to model and manage a clip within the timeline UI.

In the Lumiera timeline UI, we are mixing two different scope of concerns: For one, we have the globally tangible scope of actual session elements an operations performed on those. And then there are more local considerations regarding the "mechanics" of the UI elements, their state and immediate feedback to user interactions. The Presenter – as known from the MVP pattern – serves as link between both levels. For the global angle of view, it is a model::Tangible and thus plays the role of the View, while the Model and Controler roles are mediated through the gui::UiBus, exchanging command, state and mutation messages. On the other hand, for the local angle of view, the Presenter is a structural model element, kind of a view model, and corresponds to the respective element within the session. In addition, it manages actively the collaborative part of layout building, delegating to a mostly passive GTK widget for the actual display. This way it becomes possible to manage the actual UI resources on a global level, avoiding to represent potentially several thousand individual elements as GTK entities, while at any time only several can be visible and active as far as user interaction is concerned.

Especially the ClipPresenter plays a crucial role when it comes to deciding which clip appearance style to use for the actual display. Depending on the zoom level, the ClipPresenter may even decide to hide the individual clip and join it into a combined placeholder for degraded display of a hole strike of clips, just to indicate some content is actually present in this part of the timeline.


WIP-WIP-WIP as of 12/2016

as of 10/2018 timeline display in the UI is rebuilt to match the architecture

Definition in file clip-presenter.hpp.

#include "gui/gtk-base.hpp"
#include "gui/model/controller.hpp"
#include "gui/timeline/clip-widget.hpp"
#include <vector>


class  ClipPresenter


 Lumiera GTK UI implementation root.
 The timeline display and editing operations.