| #pragma once |
| |
| #ifndef CLEANUPPREVIEW_H |
| #define CLEANUPPREVIEW_H |
| |
| |
| #include <vector> |
| |
| |
| #include "toonz/txshsimplelevel.h" |
| |
| |
| #include "toonzqt/menubarcommand.h" |
| |
| |
| #include <QTimer> |
| |
| |
| |
| |
| |
| class TXshSimpleLevel; |
| class TTool; |
| |
| |
| |
| |
| |
| |
| |
| class PreviewToggleCommand : public MenuItemHandler |
| { |
| Q_OBJECT |
| |
| TXshSimpleLevelP m_sl; |
| std::vector<TFrameId> m_fids; |
| |
| QTimer m_timer; |
| |
| public: |
| PreviewToggleCommand(); |
| |
| void execute(); |
| |
| protected: |
| friend class CameraTestToggleCommand; |
| |
| void enable(); |
| void disable(); |
| |
| void clean(); |
| |
| protected slots: |
| |
| void onPreviewDataChanged(); |
| void onModelChanged(bool needsPostProcess); |
| void postProcess(); |
| }; |
| |
| |
| |
| |
| |
| class CameraTestToggleCommand : public MenuItemHandler |
| { |
| Q_OBJECT |
| |
| TTool *m_oldTool; |
| |
| TXshSimpleLevelP m_sl; |
| std::vector<TFrameId> m_fids; |
| |
| QTimer m_timer; |
| |
| public: |
| CameraTestToggleCommand(); |
| |
| void execute(); |
| |
| protected: |
| friend class PreviewToggleCommand; |
| |
| void enable(); |
| void disable(); |
| |
| void clean(); |
| |
| protected slots: |
| |
| void onPreviewDataChanged(); |
| void postProcess(); |
| }; |
| |
| #endif |