This is an utility class that allows you to create and manage easily time selections; you will be required to use instances of this class in many plugin methods.
Since version 6.7 of the plugin this class has been deprecated and will be removed from a future plugin version; so, you should stop using it and, instead, you should use the class. Any class method or property returning or accepting as parameters instance of this class will be gradually replaced with a new one that uses instances of the latter class.
Since version 6.7 of the plugin this class can be used in Console Applications
The QTPlgTimeRange class constructors are called when you create a new instance of the class, while the ˜QTPlgTimeRange class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgTimeRange object is valid if both the values of the and class properties are greater than or equal to 0
The class provides you with the following initializer methods:
()
This is the default constructor. Both the and
class properties are set to 0
(other as QTPlgTimeRange)
This is the copy constructor. If the object to be copied is valid, then its properties will be used to
initialize the new class instance properties
(start as integer, length as integer)
the and
class properties are initialized
to the values of the start and length parameters
(m as movie)
the property is initialized to
0 and the
property is set to the duration of the movie specified by the m parameter
[Deprecated]: since version 6.6 of the plugin this redundant constructor has been deprecated
and will be removed from a future plugin version; simply use the
constructor above setting the
length to the value of the
property of the class
(mp as movieplayer)
if the movieplayer specified by the mp parameter has an active time selection, the
property is initialized to the value of
the start time of the current user time selection and the
property is initialized to the
duration of the current user time selection
[Deprecated]: since version 6.6 of the plugin this redundant constructor has been deprecated
and will be removed from a future plugin version; use
property of the class
specifies the begin of the time selection
specifies the duration of the time selection
specifies the end of the time selection (obtained by adding the duration value to the start time)