Lumiera  0.pre.03
»edityourfreedom«
TimelinePanelObsolete Class Reference

#include "gui/panel/timeline-panel-obsolete.hpp"

Description

Dockable panel to hold timeline widget.

Definition at line 64 of file timeline-panel-obsolete.hpp.

Public Member Functions

 TimelinePanelObsolete (workspace::PanelManager &, Gdl::DockItem &)
 
- Public Member Functions inherited from Panel
 ~Panel ()
 
Gdl::DockItem & getDockItem ()
 
workspace::PanelManagergetPanelManager ()
 
void iconify ()
 
bool is_iconified () const
 
bool is_locked () const
 
bool is_shown () const
 
void lock (bool show=true)
 Locks or unlocks the panel against modifications. More...
 
void show (bool show=true)
 Shows or hides the panel. More...
 
sigc::signal< void > & signal_hidePanel ()
 fires when the dock item gets hidden. More...
 

Static Public Member Functions

static const gchar * getStockID ()
 
static const char * getTitle ()
 

Classes

class  SequenceChooserColumns
 sequence chooser combo box columns More...
 

Private Member Functions

bool is_playing ()
 
shared_ptr< widget::timeline::TimelineStateloadState (weak_ptr< model::Sequence > sequence)
 
void on_arrow_tool ()
 
bool on_frame ()
 
void on_ibeam_tool ()
 
void on_mouse_hover (Time)
 
void on_play_pause ()
 
void on_playback_period_drag_released ()
 
void on_sequence_chosen ()
 event handler when choosing a new sequence for display More...
 
void on_sequence_list_changed ()
 event handler for change of sequences list More...
 
void on_stop ()
 
void on_time_pressed ()
 
void on_zoom (double time_scale_ratio)
 
void on_zoom_in ()
 
void on_zoom_out ()
 
void pause ()
 
void play ()
 
void setTool (gui::widget::timeline::ToolType tool)
 
void showTime (Time)
 
void updatePlaybackButtons ()
 
void updateSequenceChooser ()
 
void updateToolButtons ()
 
void updateZoomButtons ()
 

Private Attributes

MiniToggleButton arrowTool
 
gui::widget::timeline::ToolType currentTool
 
MiniButton forwardButton
 
MiniToggleButton iBeamTool
 
MiniButton nextButton
 
Controller obsoleteController_
 
Project obsoleteProject_
 
MiniButton playPauseButton
 
MiniButton previousButton
 
MiniButton rewindButton
 
Gtk::SeparatorToolItem separator1
 
Gtk::SeparatorToolItem separator2
 
Gtk::ComboBox sequenceChooser
 
sigc::connection sequenceChooserChangedConnection
 
SequenceChooserColumns sequenceChooserColumns
 
Glib::RefPtr< Gtk::ListStore > sequenceChooserModel
 
MiniButton stopButton
 
TimeCode timeCode
 
std::map< weak_ptr< model::Sequence >, shared_ptr< widget::timeline::TimelineState >, ::util::WeakPtrComparatortimelineStates
 
std::unique_ptr< TimelineWidgettimelineWidget
 
ButtonBar toolbar
 
bool updatingToolbar
 
MiniButton zoomIn
 
MiniButton zoomOut
 
gui::widget::timeline::TimelineZoomScale zoomScale
 

Static Private Attributes

static const int ZoomToolSteps
 

Additional Inherited Members

- Protected Member Functions inherited from Panel
 Panel (workspace::PanelManager &, Gdl::DockItem &, const gchar *longName, const gchar *stockID)
 
workspace::WorkspaceWindowgetWorkspaceWindow ()
 
- Protected Attributes inherited from Panel
Gdl::DockItem & dockItem_
 owner dock item widget that will host the widgets in this panel. More...
 
sigc::signal< void > hidePanelSignal_
 signal that fires when the dock item is hidden. More...
 
widget::PanelBar panelBar_
 panel bar to attach to the panel grip. More...
 
workspace::PanelManagerpanelManager_
 The owner panel manager object. More...
 

Constructor & Destructor Documentation

◆ TimelinePanelObsolete()

TimelinePanelObsolete ( workspace::PanelManager panelManager,
Gdl::DockItem &  dockItem 
)
Parameters
panel_managerThe owner panel manager widget.
dock_itemThe GdlDockItem that will host this panel.

Definition at line 55 of file timeline-panel-obsolete.cpp.

References _, ButtonBar::append(), gui::widget::timeline::Arrow, TimelinePanelObsolete::arrowTool, TimelinePanelObsolete::currentTool, ENSURE(), TimelinePanelObsolete::forwardButton, Project::get_sequences(), TimelinePanelObsolete::iBeamTool, TimelinePanelObsolete::loadState(), TimelinePanelObsolete::SequenceChooserColumns::nameColumn, TimelinePanelObsolete::nextButton, TimelinePanelObsolete::obsoleteController_, TimelinePanelObsolete::obsoleteProject_, TimelinePanelObsolete::on_arrow_tool(), TimelinePanelObsolete::on_ibeam_tool(), TimelinePanelObsolete::on_play_pause(), TimelinePanelObsolete::on_sequence_chosen(), TimelinePanelObsolete::on_sequence_list_changed(), TimelinePanelObsolete::on_stop(), TimelinePanelObsolete::on_zoom(), Panel::panelBar_, TimelinePanelObsolete::playPauseButton, TimelinePanelObsolete::previousButton, TimelinePanelObsolete::rewindButton, TimelinePanelObsolete::separator1, TimelinePanelObsolete::separator2, TimelinePanelObsolete::sequenceChooser, TimelinePanelObsolete::sequenceChooserChangedConnection, TimelinePanelObsolete::sequenceChooserColumns, TimelinePanelObsolete::sequenceChooserModel, TimelinePanelObsolete::showTime(), TimelineZoomScale::signal_zoom(), TimelinePanelObsolete::stopButton, TimelinePanelObsolete::timeCode, TimelinePanelObsolete::timelineWidget, TimelinePanelObsolete::toolbar, TimelinePanelObsolete::updateSequenceChooser(), TimelinePanelObsolete::updateToolButtons(), TimelinePanelObsolete::updateZoomButtons(), TimelinePanelObsolete::updatingToolbar, TimelineZoomScale::wireTimelineState(), Time::ZERO, TimelinePanelObsolete::zoomIn, TimelinePanelObsolete::zoomOut, and TimelinePanelObsolete::zoomScale.

+ Here is the call graph for this function:

Member Function Documentation

◆ getTitle()

const char * getTitle ( )
static

Definition at line 155 of file timeline-panel-obsolete.cpp.

References _.

◆ getStockID()

const gchar * getStockID ( )
static

Definition at line 161 of file timeline-panel-obsolete.cpp.

◆ on_play_pause()

void on_play_pause ( )
private

Definition at line 167 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::is_playing(), TimelinePanelObsolete::pause(), TimelinePanelObsolete::play(), and TimelinePanelObsolete::updatePlaybackButtons().

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_stop()

void on_stop ( )
private

Definition at line 178 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::updatePlaybackButtons().

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_arrow_tool()

void on_arrow_tool ( )
private

Definition at line 185 of file timeline-panel-obsolete.cpp.

References gui::widget::timeline::Arrow, and TimelinePanelObsolete::setTool().

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_ibeam_tool()

void on_ibeam_tool ( )
private

Definition at line 191 of file timeline-panel-obsolete.cpp.

References gui::widget::timeline::IBeam, and TimelinePanelObsolete::setTool().

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_zoom()

void on_zoom ( double  time_scale_ratio)
private

Definition at line 197 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::timelineWidget.

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the caller graph for this function:

◆ on_zoom_in()

void on_zoom_in ( )
private

Definition at line 204 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::timelineWidget, TimelinePanelObsolete::updateZoomButtons(), and TimelinePanelObsolete::ZoomToolSteps.

+ Here is the call graph for this function:

◆ on_zoom_out()

void on_zoom_out ( )
private

Definition at line 212 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::timelineWidget, TimelinePanelObsolete::updateZoomButtons(), and TimelinePanelObsolete::ZoomToolSteps.

+ Here is the call graph for this function:

◆ on_time_pressed()

void on_time_pressed ( )
private

◆ on_mouse_hover()

void on_mouse_hover ( Time  )
private

Definition at line 220 of file timeline-panel-obsolete.cpp.

◆ on_playback_period_drag_released()

void on_playback_period_drag_released ( )
private

Definition at line 226 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::play(), and TimelinePanelObsolete::timelineWidget.

+ Here is the call graph for this function:

◆ on_sequence_list_changed()

void on_sequence_list_changed ( )
private

event handler for change of sequences list

Definition at line 241 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::updateSequenceChooser().

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_sequence_chosen()

void on_sequence_chosen ( )
private

event handler when choosing a new sequence for display

Definition at line 249 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::loadState(), TimelinePanelObsolete::sequenceChooser, TimelinePanelObsolete::sequenceChooserColumns, TimelinePanelObsolete::SequenceChooserColumns::sequenceColumn, TimelinePanelObsolete::timelineWidget, and TimelinePanelObsolete::updateZoomButtons().

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSequenceChooser()

void updateSequenceChooser ( )
private

Definition at line 275 of file timeline-panel-obsolete.cpp.

References Project::get_sequences(), TimelinePanelObsolete::SequenceChooserColumns::nameColumn, TimelinePanelObsolete::obsoleteProject_, TimelinePanelObsolete::sequenceChooser, TimelinePanelObsolete::sequenceChooserChangedConnection, TimelinePanelObsolete::sequenceChooserColumns, TimelinePanelObsolete::sequenceChooserModel, TimelinePanelObsolete::SequenceChooserColumns::sequenceColumn, and TimelinePanelObsolete::timelineWidget.

Referenced by TimelinePanelObsolete::on_sequence_list_changed(), and TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePlaybackButtons()

void updatePlaybackButtons ( )
private

Definition at line 310 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::is_playing(), TimelinePanelObsolete::playPauseButton, and MiniWrapper< T >::setStockID().

Referenced by TimelinePanelObsolete::on_play_pause(), and TimelinePanelObsolete::on_stop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateToolButtons()

void updateToolButtons ( )
private

Definition at line 327 of file timeline-panel-obsolete.cpp.

References gui::widget::timeline::Arrow, TimelinePanelObsolete::arrowTool, TimelinePanelObsolete::currentTool, gui::widget::timeline::IBeam, TimelinePanelObsolete::iBeamTool, and TimelinePanelObsolete::updatingToolbar.

Referenced by TimelinePanelObsolete::setTool(), and TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the caller graph for this function:

◆ updateZoomButtons()

void updateZoomButtons ( )
private

Definition at line 340 of file timeline-panel-obsolete.cpp.

Referenced by TimelinePanelObsolete::on_sequence_chosen(), TimelinePanelObsolete::on_zoom_in(), TimelinePanelObsolete::on_zoom_out(), and TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the caller graph for this function:

◆ play()

void play ( )
private

Definition at line 349 of file timeline-panel-obsolete.cpp.

Referenced by TimelinePanelObsolete::on_play_pause(), and TimelinePanelObsolete::on_playback_period_drag_released().

+ Here is the caller graph for this function:

◆ pause()

void pause ( )
private

Definition at line 355 of file timeline-panel-obsolete.cpp.

Referenced by TimelinePanelObsolete::on_play_pause().

+ Here is the caller graph for this function:

◆ is_playing()

bool is_playing ( )
private

Definition at line 361 of file timeline-panel-obsolete.cpp.

Referenced by TimelinePanelObsolete::on_play_pause(), and TimelinePanelObsolete::updatePlaybackButtons().

+ Here is the caller graph for this function:

◆ setTool()

void setTool ( gui::widget::timeline::ToolType  tool)
private

Definition at line 367 of file timeline-panel-obsolete.cpp.

References TimelinePanelObsolete::currentTool, TimelinePanelObsolete::timelineWidget, TimelinePanelObsolete::updateToolButtons(), and TimelinePanelObsolete::updatingToolbar.

Referenced by TimelinePanelObsolete::on_arrow_tool(), and TimelinePanelObsolete::on_ibeam_tool().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showTime()

void showTime ( Time  time)
private

Definition at line 379 of file timeline-panel-obsolete.cpp.

Referenced by TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the caller graph for this function:

◆ loadState()

shared_ptr< TimelineState > loadState ( weak_ptr< model::Sequence sequence)
private

Definition at line 394 of file timeline-panel-obsolete.cpp.

References util::contains(), and TimelinePanelObsolete::timelineStates.

Referenced by TimelinePanelObsolete::on_sequence_chosen(), and TimelinePanelObsolete::TimelinePanelObsolete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_frame()

bool on_frame ( )
private

Definition at line 387 of file timeline-panel-obsolete.cpp.

Member Data Documentation

◆ obsoleteProject_

◆ obsoleteController_

Controller obsoleteController_
private

◆ toolbar

ButtonBar toolbar
private

◆ sequenceChooserColumns

◆ sequenceChooserModel

Glib::RefPtr<Gtk::ListStore> sequenceChooserModel
private

◆ sequenceChooser

◆ sequenceChooserChangedConnection

sigc::connection sequenceChooserChangedConnection
private

◆ timelineWidget

◆ timelineStates

std::map< weak_ptr<model::Sequence> , shared_ptr<widget::timeline::TimelineState> , ::util::WeakPtrComparator > timelineStates
private

Definition at line 172 of file timeline-panel-obsolete.hpp.

Referenced by TimelinePanelObsolete::loadState().

◆ timeCode

TimeCode timeCode
private

◆ previousButton

MiniButton previousButton
private

◆ rewindButton

MiniButton rewindButton
private

◆ playPauseButton

◆ stopButton

MiniButton stopButton
private

◆ forwardButton

MiniButton forwardButton
private

◆ nextButton

MiniButton nextButton
private

◆ arrowTool

◆ iBeamTool

◆ separator1

Gtk::SeparatorToolItem separator1
private

◆ zoomIn

MiniButton zoomIn
private

◆ zoomOut

MiniButton zoomOut
private

◆ zoomScale

◆ separator2

Gtk::SeparatorToolItem separator2
private

◆ updatingToolbar

◆ currentTool

◆ ZoomToolSteps

const int ZoomToolSteps
staticprivate
+ Inheritance diagram for TimelinePanelObsolete:
+ Collaboration diagram for TimelinePanelObsolete:

The documentation for this class was generated from the following files: