timeline_area.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * timeline_area.h - advanced timeline
  3. * Copyright (C) 2017 caryoscelus
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef __STUDIO__WIDGETS__TIMELINE_AREA_H__9A8A8D52
  19. #define __STUDIO__WIDGETS__TIMELINE_AREA_H__9A8A8D52
  20. #include <QGraphicsView>
  21. #include <core/std/memory.h>
  22. #include <core/std/map.h>
  23. #include <core/std/vector.h>
  24. #include <canvas/abstract_canvas.h>
  25. #include <canvas/registry.h>
  26. class QGraphicsScene;
  27. namespace rainynite::studio {
  28. class TimelineEditor;
  29. class TimelineArea : public AbstractCanvas {
  30. public:
  31. explicit TimelineArea(QWidget* parent = nullptr);
  32. virtual ~TimelineArea();
  33. void add_misc_editor(shared_ptr<CanvasEditor> editor);
  34. private:
  35. vector<shared_ptr<CanvasEditor>> misc_editors;
  36. };
  37. REGISTER_CANVAS(TimelineArea);
  38. }
  39. #endif