1 #ifndef TRANSITIONPOPUP_H
2 #define TRANSITIONPOPUP_H
5 #include "mwindowgui.inc"
7 #include "transition.inc"
9 class TransitionPopupOn
;
10 class TransitionPopupShow
;
11 class TransitionPopupAttach
;
12 class TransitionPopupDetach
;
13 class TransitionPopupLength
;
14 class TransitionLengthText
;
16 class TransitionLengthThread
: public Thread
19 TransitionLengthThread(MWindow
*mwindow
, TransitionPopup
*popup
);
20 ~TransitionLengthThread();
25 TransitionPopup
*popup
;
29 class TransitionLengthDialog
: public BC_Window
32 TransitionLengthDialog(MWindow
*mwindow
, Transition
*transition
);
33 ~TransitionLengthDialog();
35 void create_objects();
39 Transition
*transition
;
40 TransitionLengthText
*text
;
43 class TransitionLengthText
: public BC_TumbleTextBox
46 TransitionLengthText(MWindow
*mwindow
,
47 TransitionLengthDialog
*gui
,
52 TransitionLengthDialog
*gui
;
56 class TransitionPopup
: public BC_PopupMenu
59 TransitionPopup(MWindow
*mwindow
, MWindowGUI
*gui
);
62 void create_objects();
63 int update(Transition
*transition
);
65 // Acquired through the update command as the plugin currently being operated on
66 Transition
*transition
;
68 // Set when the user clicks a transition.
72 // Needed for loading updates
73 TransitionPopupOn
*on
;
74 TransitionPopupShow
*show
;
75 TransitionPopupAttach
*attach
;
76 TransitionPopupDetach
*detach
;
77 TransitionPopupLength
*length
;
78 TransitionLengthThread
*length_thread
;
82 class TransitionPopupAttach
: public BC_MenuItem
85 TransitionPopupAttach(MWindow
*mwindow
, TransitionPopup
*popup
);
86 ~TransitionPopupAttach();
90 TransitionPopup
*popup
;
93 class TransitionPopupDetach
: public BC_MenuItem
96 TransitionPopupDetach(MWindow
*mwindow
, TransitionPopup
*popup
);
97 ~TransitionPopupDetach();
101 TransitionPopup
*popup
;
104 class TransitionPopupShow
: public BC_MenuItem
107 TransitionPopupShow(MWindow
*mwindow
, TransitionPopup
*popup
);
108 ~TransitionPopupShow();
112 TransitionPopup
*popup
;
115 class TransitionPopupOn
: public BC_MenuItem
118 TransitionPopupOn(MWindow
*mwindow
, TransitionPopup
*popup
);
119 ~TransitionPopupOn();
123 TransitionPopup
*popup
;
126 class TransitionPopupLength
: public BC_MenuItem
129 TransitionPopupLength(MWindow
*mwindow
, TransitionPopup
*popup
);
130 ~TransitionPopupLength();
134 TransitionPopup
*popup
;