Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Enumerations | Functions | Variables
olive::timeline Namespace Reference

Classes

class  MediaImportData
 

Enumerations

enum  MediaImportType { kImportVideoOnly, kImportAudioOnly, kImportBoth }
 

Functions

void MultiplyTrackSizesByDPI ()
 Set default track sizes. More...
 

Variables

const int kGhostThickness = 2
 
const int kClipTextPadding = 3
 
int kTrackDefaultHeight = 40
 
int kTrackMinHeight = 30
 
int kTrackHeightIncrement = 10
 

Enumeration Type Documentation

Enumerator
kImportVideoOnly 
kImportAudioOnly 
kImportBoth 

Function Documentation

void olive::timeline::MultiplyTrackSizesByDPI ( )

Set default track sizes.

Olive has a few default constants used for adjusting track heights in the Timeline. For HiDPI, it makes sense to multiply these by the current DPI scale. It uses a variable from QApplication to do this multiplication, which means the QApplication instance needs to be instantiated before these are calculated. Therefore, call this function ONCE after QApplication is created to multiply the track heights correctly.

Variable Documentation

const int olive::timeline::kClipTextPadding = 3
const int olive::timeline::kGhostThickness = 2
int olive::timeline::kTrackDefaultHeight = 40
int olive::timeline::kTrackHeightIncrement = 10
int olive::timeline::kTrackMinHeight = 30