C++ main module for gpm Package  1.0
GPMG_ActionMovie.h
Go to the documentation of this file.
1 #ifndef GPMG_ActionMovie_H
2 #define GPMG_ActionMovie_H
3 
4 
5 #include "GUI_Action.h"
6 
7 
14 class GPMG_ActionMovie : public GUI_Action { // class
15 
16  SP_OBJECT(GPMG_ActionMovie);
17 
18  // ATTRIBUTES
19 public:
20  static const tFlag LOAD_FILES;
21  static const tFlag GO_TO_FIRST;
22  static const tFlag GO_TO_LAST;
23  static const tFlag NEXT;
24  static const tFlag PREVIOUS;
25  static const tFlag PLAY;
26  static const tFlag STOP;
27  static const tFlag RECORD;
28 
29 private:
30 
31  tString mOldPath;
32  // ASSOCIATIONS
33 
34 
35  // METHODS
36 
37 
38 protected:
39  // CONSTRUCTORS
43 
44 
45 
46 
47  // DESTRUCTORS
51  virtual ~GPMG_ActionMovie(void);
52 
53 
54 public:
55  // NEW
58  inline static SP::GPMG_ActionMovie New() {
59  SP::GPMG_ActionMovie p(new GPMG_ActionMovie(),
60  GPMG_ActionMovie::Delete());
61  p->setThis(p);
62  return p;
63  };
66  inline static SP::GPMG_ActionMovie New(const int& action) {
67  SP::GPMG_ActionMovie p=New();
68  p->setActionType(action);
69  if (action==GO_TO_FIRST) p->setIcon("movie-begin.png");
70  else if (action==GO_TO_LAST) p->setIcon("movie-end.png");
71  else if (action==NEXT) p->setIcon("movie-forward.png");
72  else if (action==PREVIOUS) p->setIcon("movie-backward.png");
73  else if (action==PLAY) p->setIcon("movie-play.png");
74  else if (action==STOP) p->setIcon("movie-stop.png");
75  else if (action==RECORD) p->setIcon("movie-record.png");
76  return p;
77  };
78 
79  // SET
80 
81  // GET
82 
83 
84  // OTHERS
85 
88  virtual void toDo();
89 
90 
91 
92 
93 
94 };
95 #endif
GPMG_ActionMovie()
build a GPMG_ActionMovie
Definition: GPMG_ActionMovie.cpp:22
static const tFlag RECORD
Definition: GPMG_ActionMovie.h:27
static const tFlag GO_TO_LAST
Definition: GPMG_ActionMovie.h:22
this class describes the Edit Action Menu
Definition: GPMG_ActionMovie.h:14
static const tFlag GO_TO_FIRST
Definition: GPMG_ActionMovie.h:21
static SP::GPMG_ActionMovie New()
create an action
Definition: GPMG_ActionMovie.h:58
static const tFlag NEXT
Definition: GPMG_ActionMovie.h:23
static const tFlag PLAY
Definition: GPMG_ActionMovie.h:25
static const tFlag LOAD_FILES
Definition: GPMG_ActionMovie.h:20
virtual void toDo()
action to do
Definition: GPMG_ActionMovie.cpp:45
virtual ~GPMG_ActionMovie(void)
destroy a GPMG_ActionMovie
Definition: GPMG_ActionMovie.cpp:40
#define tString
Definition: types.h:36
static const tFlag PREVIOUS
Definition: GPMG_ActionMovie.h:24
DEFINE_SPTR(GPMG_ActionMovie)
static SP::GPMG_ActionMovie New(const int &action)
create an action
Definition: GPMG_ActionMovie.h:66
static const tFlag STOP
Definition: GPMG_ActionMovie.h:26
#define tFlag
Definition: types.h:14