11 #include "AddonCallback.h"
12 #include "AddonString.h"
14 #include "swighelper.h"
25 class InterceptorBase;
48 explicit Action(
const CAction& caction) { setFromCAction(caction); }
50 void setFromCAction(
const CAction& caction);
53 float fAmount1 = 0.0f;
54 float fAmount2 = 0.0f;
56 unsigned long buttonCode = 0;
57 std::string strAction;
60 AddonClass::Ref<Control> control;
63 #ifdef DOXYGEN_SHOULD_USE_THIS
90 long getId() { XBMC_TRACE;
return id; }
93 #ifdef DOXYGEN_SHOULD_USE_THIS
106 #ifdef DOXYGEN_SHOULD_USE_THIS
116 float getAmount1() { XBMC_TRACE;
return fAmount1; }
119 #ifdef DOXYGEN_SHOULD_USE_THIS
129 float getAmount2() { XBMC_TRACE;
return fAmount2; }
187 friend class WindowDialogMixin;
188 bool isDisposed =
false;
190 void doAddControl(
Control* pControl, CCriticalSection* gcontext,
bool wait);
191 void doRemoveControl(
Control* pControl, CCriticalSection* gcontext,
bool wait);
195 InterceptorBase* window;
198 std::vector<AddonClass::Ref<Control> > vecControls;
199 int iOldWindowId = 0;
200 int iCurrentControlId = 3000;
202 CEvent m_actionEvent;
204 bool canPulse =
false;
207 bool existingWindow =
true;
208 bool destroyAfterDeInit =
false;
218 void deallocating()
override;
245 SWIGHIDDENVIRTUAL
void PulseActionEvent();
246 SWIGHIDDENVIRTUAL
bool WaitForActionEvent(
unsigned int milliseconds);
250 explicit Window(
int existingWindowId = -1);
255 SWIGHIDDENVIRTUAL
bool OnMessage(CGUIMessage& message);
256 SWIGHIDDENVIRTUAL
bool OnAction(
const CAction &action);
257 SWIGHIDDENVIRTUAL
bool OnBack(
int actionId);
258 SWIGHIDDENVIRTUAL
void OnDeinitWindow(
int nextWindowID);
260 SWIGHIDDENVIRTUAL
bool IsDialogRunning()
const
265 SWIGHIDDENVIRTUAL
bool IsDialog()
const
270 SWIGHIDDENVIRTUAL
bool IsModalDialog()
const
275 SWIGHIDDENVIRTUAL
bool IsMediaWindow()
const
280 SWIGHIDDENVIRTUAL
void dispose();
310 #ifdef DOXYGEN_SHOULD_USE_THIS
357 #ifdef DOXYGEN_SHOULD_USE_THIS
386 #ifdef DOXYGEN_SHOULD_USE_THIS
414 virtual void onClick(
int controlId);
417 #ifdef DOXYGEN_SHOULD_USE_THIS
448 #ifdef DOXYGEN_SHOULD_USE_THIS
475 virtual void onFocus(
int controlId);
478 #ifdef DOXYGEN_SHOULD_USE_THIS
506 #ifdef DOXYGEN_SHOULD_USE_THIS
521 SWIGHIDDENVIRTUAL
void show();
524 #ifdef DOXYGEN_SHOULD_USE_THIS
541 #ifdef DOXYGEN_SHOULD_USE_THIS
553 SWIGHIDDENVIRTUAL
void setFocusId(
int iControlId);
556 #ifdef DOXYGEN_SHOULD_USE_THIS
571 #ifdef DOXYGEN_SHOULD_USE_THIS
586 #ifdef DOXYGEN_SHOULD_USE_THIS
604 #ifdef DOXYGEN_SHOULD_USE_THIS
620 SWIGHIDDENVIRTUAL
void removeControls(std::vector<Control*> pControls);
623 #ifdef DOXYGEN_SHOULD_USE_THIS
639 #ifdef DOXYGEN_SHOULD_USE_THIS
655 #ifdef DOXYGEN_SHOULD_USE_THIS
684 SWIGHIDDENVIRTUAL
void setProperty(
const char* key,
const String& value);
687 #ifdef DOXYGEN_SHOULD_USE_THIS
714 SWIGHIDDENVIRTUAL String
getProperty(
const char* key);
717 #ifdef DOXYGEN_SHOULD_USE_THIS
747 #ifdef DOXYGEN_SHOULD_USE_THIS
769 #ifdef DOXYGEN_SHOULD_USE_THIS
781 SWIGHIDDENVIRTUAL
void close();
784 #ifdef DOXYGEN_SHOULD_USE_THIS
793 SWIGHIDDENVIRTUAL
void doModal();
796 #ifdef DOXYGEN_SHOULD_USE_THIS
832 #ifdef DOXYGEN_SHOULD_USE_THIS
848 SWIGHIDDENVIRTUAL
void addControls(std::vector<Control*> pControls);
851 #ifdef DOXYGEN_SHOULD_USE_THIS
Control * GetControlById(int iControlId, CCriticalSection *gc)
static int getNextAvailableWindowId()
void setWindow(InterceptorBase *_window)
void interceptorClear()
Definition: Window.h:286
getButtonCode()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getId()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getAmount1()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getAmount2()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
onInit(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
onAction(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
onDoubleClick(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
onClick(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
onFocus(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
void onControl(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
removeControls(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setFocusId(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
removeControl(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
clearProperty(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getProperty(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
show()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
clearProperties()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getFocusId()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
addControl(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setFocus(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
addControls(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setProperty(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
close()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getHeight()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getFocus()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getWidth()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getControl(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
doModal()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...