@VideoEditor.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class VideoEditor : PropWin
  4. {
  5. class Custom : GuiCustom
  6. {
  7. virtual GuiObj* test(C GuiPC &gpc, C Vec2 &pos, GuiObj* &mouse_wheel)override;
  8. virtual void draw(C GuiPC &gpc)override;
  9. };
  10. UID elm_id;
  11. Elm *elm;
  12. bool changed;
  13. Video video;
  14. flt video_time;
  15. Custom custom;
  16. Button locate;
  17. Property *width, *height, *kbps, *fps, *codec;
  18. static void Locate(VideoEditor &editor);
  19. void create();
  20. void setInfo();
  21. virtual void update(C GuiPC &gpc)override;
  22. virtual VideoEditor& hide ( ) override;
  23. virtual Rect sizeLimit( )C override;
  24. virtual VideoEditor& rect (C Rect &rect) override;
  25. void flush();
  26. void setChanged();
  27. void set(Elm *elm);
  28. void activate(Elm *elm);
  29. void toggle (Elm *elm);
  30. void closeElm (C UID &elm_id);
  31. void erasing (C UID &elm_id);
  32. void elmChanged(C UID &elm_id);
  33. public:
  34. VideoEditor();
  35. };
  36. /******************************************************************************/
  37. /******************************************************************************/
  38. extern VideoEditor VideoEdit;
  39. /******************************************************************************/