11#include "AddonCallback.h"
12#include "AddonString.h"
14#include "swighelper.h"
26 class InterceptorBase;
49 explicit Action(
const CAction& caction) { setFromCAction(caction); }
51 void setFromCAction(
const CAction& caction);
54 float fAmount1 = 0.0f;
55 float fAmount2 = 0.0f;
57 unsigned long buttonCode = 0;
58 std::string strAction;
61 AddonClass::Ref<Control> control;
64#ifdef DOXYGEN_SHOULD_USE_THIS
91 long getId() { XBMC_TRACE;
return id; }
94#ifdef DOXYGEN_SHOULD_USE_THIS
107#ifdef DOXYGEN_SHOULD_USE_THIS
117 float getAmount1() { XBMC_TRACE;
return fAmount1; }
120#ifdef DOXYGEN_SHOULD_USE_THIS
130 float getAmount2() { XBMC_TRACE;
return fAmount2; }
188 friend class WindowDialogMixin;
189 bool isDisposed =
false;
191 void doAddControl(
Control* pControl, CCriticalSection* gcontext,
bool wait);
192 void doRemoveControl(
Control* pControl, CCriticalSection* gcontext,
bool wait);
196 InterceptorBase* window;
199 std::vector<AddonClass::Ref<Control> > vecControls;
200 int iOldWindowId = 0;
201 int iCurrentControlId = 3000;
203 CEvent m_actionEvent;
205 bool canPulse =
false;
208 bool existingWindow =
true;
209 bool destroyAfterDeInit =
false;
219 void deallocating()
override;
246 SWIGHIDDENVIRTUAL
void PulseActionEvent();
247 SWIGHIDDENVIRTUAL
bool WaitForActionEvent(
unsigned int milliseconds);
251 explicit Window(
int existingWindowId = -1);
256 SWIGHIDDENVIRTUAL
bool OnMessage(CGUIMessage& message);
257 SWIGHIDDENVIRTUAL
bool OnAction(
const CAction &action);
258 SWIGHIDDENVIRTUAL
bool OnBack(
int actionId);
259 SWIGHIDDENVIRTUAL
void OnDeinitWindow(
int nextWindowID);
261 SWIGHIDDENVIRTUAL
bool IsDialogRunning()
const
266 SWIGHIDDENVIRTUAL
bool IsDialog()
const
271 SWIGHIDDENVIRTUAL
bool IsModalDialog()
const
276 SWIGHIDDENVIRTUAL
bool IsMediaWindow()
const
281 SWIGHIDDENVIRTUAL
void dispose();
289 std::unique_lock<CCriticalSection> lock(*
this);
315#ifdef DOXYGEN_SHOULD_USE_THIS
362#ifdef DOXYGEN_SHOULD_USE_THIS
391#ifdef DOXYGEN_SHOULD_USE_THIS
419 virtual void onClick(
int controlId);
422#ifdef DOXYGEN_SHOULD_USE_THIS
453#ifdef DOXYGEN_SHOULD_USE_THIS
480 virtual void onFocus(
int controlId);
483#ifdef DOXYGEN_SHOULD_USE_THIS
511#ifdef DOXYGEN_SHOULD_USE_THIS
526 SWIGHIDDENVIRTUAL
void show();
529#ifdef DOXYGEN_SHOULD_USE_THIS
546#ifdef DOXYGEN_SHOULD_USE_THIS
558 SWIGHIDDENVIRTUAL
void setFocusId(
int iControlId);
561#ifdef DOXYGEN_SHOULD_USE_THIS
576#ifdef DOXYGEN_SHOULD_USE_THIS
591#ifdef DOXYGEN_SHOULD_USE_THIS
609#ifdef DOXYGEN_SHOULD_USE_THIS
625 SWIGHIDDENVIRTUAL
void removeControls(std::vector<Control*> pControls);
628#ifdef DOXYGEN_SHOULD_USE_THIS
644#ifdef DOXYGEN_SHOULD_USE_THIS
660#ifdef DOXYGEN_SHOULD_USE_THIS
689 SWIGHIDDENVIRTUAL
void setProperty(
const char* key,
const String& value);
692#ifdef DOXYGEN_SHOULD_USE_THIS
719 SWIGHIDDENVIRTUAL String
getProperty(
const char* key);
722#ifdef DOXYGEN_SHOULD_USE_THIS
752#ifdef DOXYGEN_SHOULD_USE_THIS
774#ifdef DOXYGEN_SHOULD_USE_THIS
786 SWIGHIDDENVIRTUAL
void close();
789#ifdef DOXYGEN_SHOULD_USE_THIS
798 SWIGHIDDENVIRTUAL
void doModal();
801#ifdef DOXYGEN_SHOULD_USE_THIS
837#ifdef DOXYGEN_SHOULD_USE_THIS
853 SWIGHIDDENVIRTUAL
void addControls(std::vector<Control*> pControls);
856#ifdef DOXYGEN_SHOULD_USE_THIS
Action class.
Definition Window.h:44
static int getNextAvailableWindowId()
void setWindow(InterceptorBase *_window)
void interceptorClear()
Definition Window.h:287
Control * GetControlById(int iControlId, CCriticalSection *gc)
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...