2016-12-02 19:34:38 +01:00
|
|
|
/*
|
2016-12-02 20:07:31 +01:00
|
|
|
TIMELINE-WIDGET-EMPTY.hpp - placeholder widget for a missing timeline
|
2016-12-02 19:34:38 +01:00
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2016, Hermann Vosseler <Ichthyostega@web.de>
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2016-12-02 20:07:31 +01:00
|
|
|
/** @file timeline-widget-empty.hpp
|
|
|
|
|
** Empty placeholder to be rendered when the UI starts without session.
|
|
|
|
|
** The TimelinePannel represents the [model root](\ref mobject::session::Root) and thus
|
|
|
|
|
** has the responsibility to manage the individual TimelineWidget instances. In case the
|
|
|
|
|
** UI is started with no usable session loaded in Proc-Layer, this empty placeholder widget
|
|
|
|
|
** can be inserted.
|
2016-12-02 19:34:38 +01:00
|
|
|
**
|
|
|
|
|
** @todo as of 12/2016 a complete rework of the timeline display is underway
|
|
|
|
|
**
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2016-12-02 20:07:31 +01:00
|
|
|
#ifndef GUI_TIMELINE_TIMELINE_WIDGET_EMPTY_H
|
|
|
|
|
#define GUI_TIMELINE_TIMELINE_WIDGET_EMPTY_H
|
2016-12-02 19:34:38 +01:00
|
|
|
|
|
|
|
|
#include "gui/gtk-base.hpp"
|
|
|
|
|
|
|
|
|
|
#include "lib/time/timevalue.hpp"
|
|
|
|
|
|
|
|
|
|
//#include <memory>
|
|
|
|
|
//#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace gui {
|
|
|
|
|
namespace timeline {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Core timeline display (custom widget).
|
|
|
|
|
* @todo WIP-WIP-rewrite as of 12/2016
|
|
|
|
|
* @remarks At top level, this widget is split into a header pane (left)
|
|
|
|
|
* and a scrollable timeline body (right). The layout of both parts is aligned.
|
|
|
|
|
*/
|
2016-12-02 20:07:31 +01:00
|
|
|
class TimelineWidgetEmpty
|
2016-12-02 19:34:38 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* @param source_state state to be used used as the
|
|
|
|
|
* data source (model) for this timeline widget.
|
|
|
|
|
*/
|
2016-12-02 20:07:31 +01:00
|
|
|
TimelineWidgetEmpty();
|
|
|
|
|
~TimelineWidgetEmpty();
|
2016-12-02 19:34:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public: /* ===== Control interface ===== */
|
|
|
|
|
|
|
|
|
|
public: /* ===== Signals ===== */
|
|
|
|
|
|
|
|
|
|
private:/* ===== Events ===== */
|
|
|
|
|
|
|
|
|
|
private:/* ===== Internals ===== */
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}}// namespace gui::timeline
|
2016-12-02 20:07:31 +01:00
|
|
|
#endif /*GUI_TIMELINE_TIMELINE_WIDGET_EMPTY_H*/
|