A narrow purpose widget used to represent cut positions and regions when editing a video. More...
#include <mythuieditbar.h>
Public Member Functions | |
| MythUIEditBar (MythUIType *parent, const QString &name) | |
| ~MythUIEditBar () | |
| void | SetTotal (double total) |
| void | SetPosition (double position) |
| void | AddRegion (double start, double end) |
| void | SetTotal (long long total) |
| void | SetPosition (long long position) |
| void | AddRegion (long long start, long long end) |
| void | ClearRegions (void) |
| void | Display (void) |
| void | ReleaseImages (void) |
Protected Member Functions | |
| virtual void | CopyFrom (MythUIType *base) |
| virtual void | CreateCopy (MythUIType *parent) |
| virtual void | Finalize (void) |
Private Member Functions | |
| void | AddBar (MythUIShape *shape, MythUIImage *image, const QRect &area) |
| void | AddMark (MythUIShape *shape, MythUIImage *image, int start, bool left) |
| MythUIType * | GetNew (MythUIShape *shape, MythUIImage *image) |
| void | CalcInverseRegions (void) |
| void | ClearImages (void) |
Private Attributes | |
| float | m_position |
| double | m_total |
| QList< QPair< float, float > > | m_regions |
| QList< QPair< float, float > > | m_invregions |
| QList< MythUIType * > | m_images |
A narrow purpose widget used to represent cut positions and regions when editing a video.
Definition at line 15 of file mythuieditbar.h.
| MythUIEditBar::MythUIEditBar | ( | MythUIType * | parent, | |
| const QString & | name | |||
| ) |
Definition at line 4 of file mythuieditbar.cpp.
Referenced by CreateCopy().
| MythUIEditBar::~MythUIEditBar | ( | void | ) |
Definition at line 9 of file mythuieditbar.cpp.
| void MythUIEditBar::SetTotal | ( | double | total | ) |
Definition at line 19 of file mythuieditbar.cpp.
Referenced by SetTotal().
| void MythUIEditBar::SetPosition | ( | double | position | ) |
Definition at line 31 of file mythuieditbar.cpp.
Referenced by SetPosition(), and OSD::SetValues().
| void MythUIEditBar::AddRegion | ( | double | start, | |
| double | end | |||
| ) |
Definition at line 45 of file mythuieditbar.cpp.
Referenced by AddRegion(), and OSD::SetRegions().
| void MythUIEditBar::SetTotal | ( | long long | total | ) |
Definition at line 52 of file mythuieditbar.cpp.
| void MythUIEditBar::SetPosition | ( | long long | position | ) |
Definition at line 57 of file mythuieditbar.cpp.
| void MythUIEditBar::AddRegion | ( | long long | start, | |
| long long | end | |||
| ) |
Definition at line 62 of file mythuieditbar.cpp.
| void MythUIEditBar::ClearRegions | ( | void | ) |
Definition at line 67 of file mythuieditbar.cpp.
Referenced by OSD::SetRegions().
| void MythUIEditBar::Display | ( | void | ) |
Definition at line 72 of file mythuieditbar.cpp.
Referenced by SetPosition(), OSD::SetRegions(), and SetTotal().
| void MythUIEditBar::ReleaseImages | ( | void | ) |
Definition at line 14 of file mythuieditbar.cpp.
Referenced by ~MythUIEditBar().
| void MythUIEditBar::CopyFrom | ( | MythUIType * | base | ) | [protected, virtual] |
Copy this widgets state from another.
Reimplemented from MythUIType.
Definition at line 304 of file mythuieditbar.cpp.
Referenced by CreateCopy().
| void MythUIEditBar::CreateCopy | ( | MythUIType * | parent | ) | [protected, virtual] |
Copy the state of this widget to the one given, it must be of the same type.
Reimplemented from MythUIType.
Definition at line 324 of file mythuieditbar.cpp.
| void MythUIEditBar::Finalize | ( | void | ) | [protected, virtual] |
Perform any post-xml parsing initialisation tasks. This is called after the widget has been created and it's state established by ParseElement() or CopyFrom(). A derived class should use this to perform any initialisation tasks which should occur after this point.
Reimplemented from MythUIType.
Definition at line 333 of file mythuieditbar.cpp.
| void MythUIEditBar::AddBar | ( | MythUIShape * | shape, | |
| MythUIImage * | image, | |||
| const QRect & | area | |||
| ) | [private] |
Definition at line 198 of file mythuieditbar.cpp.
Referenced by Display().
| void MythUIEditBar::AddMark | ( | MythUIShape * | shape, | |
| MythUIImage * | image, | |||
| int | start, | |||
| bool | left | |||
| ) | [private] |
Definition at line 218 of file mythuieditbar.cpp.
Referenced by Display().
| MythUIType * MythUIEditBar::GetNew | ( | MythUIShape * | shape, | |
| MythUIImage * | image | |||
| ) | [private] |
Definition at line 232 of file mythuieditbar.cpp.
| void MythUIEditBar::CalcInverseRegions | ( | void | ) | [private] |
Definition at line 264 of file mythuieditbar.cpp.
Referenced by Display().
| void MythUIEditBar::ClearImages | ( | void | ) | [private] |
Definition at line 295 of file mythuieditbar.cpp.
Referenced by Display(), and ReleaseImages().
float MythUIEditBar::m_position [private] |
Definition at line 44 of file mythuieditbar.h.
Referenced by CopyFrom(), Display(), and SetPosition().
double MythUIEditBar::m_total [private] |
Definition at line 45 of file mythuieditbar.h.
Referenced by AddRegion(), SetPosition(), and SetTotal().
QList<QPair<float,float> > MythUIEditBar::m_regions [private] |
Definition at line 46 of file mythuieditbar.h.
Referenced by AddRegion(), CalcInverseRegions(), ClearRegions(), CopyFrom(), and Display().
QList<QPair<float,float> > MythUIEditBar::m_invregions [private] |
Definition at line 47 of file mythuieditbar.h.
Referenced by CalcInverseRegions(), and Display().
QList<MythUIType*> MythUIEditBar::m_images [private] |
Definition at line 48 of file mythuieditbar.h.
Referenced by ClearImages(), and GetNew().
1.6.3