Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

TimecodeDisplay Class Reference

A widget for inserting a timecode value. More...

#include <timecodedisplay.h>

Collaboration diagram for TimecodeDisplay:

List of all members.

Public Slots

void setValue (int value)
 Sets the value.
void setValue (const QString &value)
void setValue (GenTime value)
void slotUpdateTimeCodeFormat ()
 Sets value's format accorrding to Kdenlive's settings.


void editingFinished ()
void valueChanged (int value, bool final)

Public Member Functions

GenTime gentime () const
 Returns the current input as a GenTime object.
int getValue () const
 Returns the current input in frames.
int maximum () const
 Returns the maximum value, which can be entered. default is no maximum (-1)
int minimum () const
 Returns the minimum value, which can be entered. default is 0.
void setRange (int min, int max)
 Sets the minimum maximum value that can be entered.
void setTimeCodeFormat (bool frametimecode, bool init=false)
 Sets value's format to frames or HH:MM:SS:FF according to.
virtual void stepBy (int steps)
Timecode timecode () const
 Returs the widget's timecode object.
 TimecodeDisplay (Timecode t, QWidget *parent=0)
 Constructor for the widget, sets value to 0.
void updateTimeCode (Timecode t)
 Sets timecode for current project.

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *)
stepEnabled () const

Private Slots

void slotEditingFinished ()

Private Attributes

bool m_frametimecode
int m_maximum
int m_minimum
Timecode m_timecode
int m_value

Detailed Description

A widget for inserting a timecode value.

Jean-Baptiste Mardelle

TimecodeDisplay can be used to insert eigther frames or a timecode in the format HH:MM:SS:FF

Definition at line 36 of file timecodedisplay.h.

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

Generated by  Doxygen 1.6.0   Back to index