Changeset View
Changeset View
Standalone View
Standalone View
libs/libkis/Document.h
Context not available. | |||||
746 | */ | 746 | */ | ||
---|---|---|---|---|---|
747 | QRect bounds() const; | 747 | QRect bounds() const; | ||
748 | 748 | | |||
749 | | ||||
750 | | ||||
751 | | ||||
752 | | ||||
753 | | ||||
754 | | ||||
755 | /**** | ||||
756 | * Animation Related API | ||||
757 | *****/ | ||||
758 | | ||||
759 | | ||||
749 | /** | 760 | /** | ||
750 | * @brief Import an image sequence of files from a directory. This will grab all | 761 | * @brief Import an image sequence of files from a directory. This will grab all | ||
751 | * images from the directory and import them with a potential offset (firstFrame) | 762 | * images from the directory and import them with a potential offset (firstFrame) | ||
Context not available. | |||||
754 | */ | 765 | */ | ||
755 | bool importAnimation(const QList<QString> &files, int firstFrame, int step); | 766 | bool importAnimation(const QList<QString> &files, int firstFrame, int step); | ||
756 | 767 | | |||
768 | /** | ||||
769 | * @brief frames per second of document | ||||
770 | * @return the fps of the document | ||||
771 | */ | ||||
772 | int framesPerSecond(); | ||||
773 | | ||||
774 | /** | ||||
775 | * @brief set frames per second of document | ||||
776 | */ | ||||
777 | void setFramesPerSecond(int fps); | ||||
778 | | ||||
779 | /** | ||||
780 | * @brief set start time of animation | ||||
781 | */ | ||||
782 | void setFullClipRangeStartTime(int startTime); | ||||
783 | | ||||
784 | /** | ||||
785 | * @brief get the full clip range start time | ||||
786 | * @return full clip range start time | ||||
787 | */ | ||||
788 | int fullClipRangeStartTime(); | ||||
789 | | ||||
790 | | ||||
791 | /** | ||||
792 | * @brief set full clip range end time | ||||
793 | */ | ||||
794 | void setFullClipRangeEndTime(int endTime); | ||||
795 | | ||||
796 | /** | ||||
797 | * @brief get the full clip range end time | ||||
798 | * @return full clip range end time | ||||
799 | */ | ||||
800 | int fullClipRangeEndTime(); | ||||
801 | | ||||
802 | /** | ||||
803 | * @brief get total frame range for animation | ||||
804 | * @return total frame range for animation | ||||
805 | */ | ||||
806 | int animationLength(); | ||||
807 | | ||||
808 | /** | ||||
809 | * @brief set temporary playback range of document | ||||
810 | */ | ||||
811 | void setPlayBackRange(int start, int stop); | ||||
812 | | ||||
813 | /** | ||||
814 | * @brief get start time of current playback | ||||
815 | * @return start time of current playback | ||||
816 | */ | ||||
817 | int playBackStartTime(); | ||||
818 | | ||||
819 | /** | ||||
820 | * @brief get end time of current playback | ||||
821 | * @return end time of current playback | ||||
822 | */ | ||||
823 | int playBackEndTime(); | ||||
824 | | ||||
825 | /** | ||||
826 | * @brief get current frame selected of animation | ||||
827 | * @return current frame selected of animation | ||||
828 | */ | ||||
829 | int currentTime(); | ||||
830 | | ||||
831 | /** | ||||
832 | * @brief set current time of document's animation | ||||
833 | */ | ||||
834 | void setCurrentTime(int time); | ||||
835 | | ||||
757 | 836 | | |||
758 | private: | 837 | private: | ||
759 | 838 | | |||
Context not available. |