1#ifndef _X2GUIInterface_H
2#define _X2GUIInterface_H
4#define X2GUIInterface_Name "com.bisque.TheSkyX.X2GUIInterface/1.0"
6#ifdef THESKYX_FOLDER_TREE
7#include "driverrootinterface.h"
8#include "components/theskyxfacadefordrivers/theskyxfacadefordriversinterface.h"
10#include "../../licensedinterfaces/driverrootinterface.h"
11#include "../../licensedinterfaces/theskyxfacadefordriversinterface.h"
30 virtual void setText(
const char* pszObjectName,
const char* pszValue) = 0;
32 virtual void text(
const char* pszObjectName,
char* pszOut,
const int& nOutMaxSize) = 0;
35 virtual void setEnabled(
const char* pszObjectName,
const bool& bEnabled) = 0;
37 virtual bool isEnabled(
const char* pszObjectName) = 0;
45 virtual void setChecked(
const char* pszObjectName,
const int & nValue) = 0;
47 virtual int isChecked(
const char* pszObjectName) = 0;
53 virtual void tableWidgetSetItem(
const char* pszControlName,
const int& nRow,
const int& nCol,
const char* pszValue) = 0;
55 virtual void tableWidgetGetItem(
const char* pszControlName,
const int& nRow,
const int& nCol,
char* pszValue,
const int& nOutMaxSize) = 0;
66 virtual void messageBox(
const char* pszTitle,
const char* pszMessage) = 0;
69 virtual bool invokeMethod(
const char* pszObjectName,
const char* pszMethodName,
70 char* pszReturn=NULL,
const int& nReturnMaxSize=0,
71 const char* pszArg1=NULL)=0;
74 virtual void setPropertyString(
const char* pszObjectName,
const char* pszPropertyName,
const char* pszValue) = 0;
76 virtual void propertyString(
const char* pszObjectName,
const char* pszPropertyName,
char* pszOut,
const int& nOutMaxSize) = 0;
79 virtual void setPropertyInt(
const char* pszObjectName,
const char* pszPropertyName,
const int & nValue) = 0;
81 virtual void propertyInt(
const char* pszObjectName,
const char* pszPropertyName,
int& nValue) = 0;
84 virtual void setPropertyDouble(
const char* pszObjectName,
const char* pszPropertyName,
const double& dValue) = 0;
86 virtual void propertyDouble(
const char* pszObjectName,
const char* pszPropertyName,
double& dValue) = 0;
89#define X2GUIEventInterface_Name "com.bisque.TheSkyX.X2GUIEventInterface/1.0"
171 virtual int exec(
bool& bPressedOK)=0;
193 m_pTheSkyX = pTheSkyX;
206 if (NULL == m_pX2UI && m_pTheSkyX)
208 if ((nErr = m_pTheSkyX->doCommand(TheSkyXFacadeForDriversInterface::GET_X2UI, m_pX2UIEvent, &m_pX2UI)))
219 return m_pX2UI->X2DX();
229 m_pTheSkyX->
doCommand(TheSkyXFacadeForDriversInterface::UNGET_X2UI, NULL, &m_pX2UI);
234 TheSkyXFacadeForDriversInterface* m_pTheSkyX;
235 X2GUIInterface* m_pX2UI;
236 X2GUIEventInterface* m_pX2UIEvent;
The DriverRootInterface is the foundation for all X2 device drivers.
Definition driverrootinterface.h:21
virtual int queryAbstraction(const char *pszName, void **ppVal)=0
The TheSkyXFacadeForDriversInterface is a simplified interface to TheSkyX passed to X2 implementors.
Definition theskyxfacadefordriversinterface.h:19
virtual int doCommand(const int &command, void *pIn, void *pOut) const =0
The X2UIEventsInterface notifies X2 implementors when user interface events happen.
Definition x2guiinterface.h:98
virtual void uiEvent(X2GUIExchangeInterface *uiex, const char *pszEvent)=0
The X2GUIExchangeInterface provides the X2 developer the means to get and set data from a graphical u...
Definition x2guiinterface.h:23
virtual void tableWidgetSetItem(const char *pszControlName, const int &nRow, const int &nCol, const char *pszValue)=0
virtual void setPropertyDouble(const char *pszObjectName, const char *pszPropertyName, const double &dValue)=0
virtual int isChecked(const char *pszObjectName)=0
virtual void propertyInt(const char *pszObjectName, const char *pszPropertyName, int &nValue)=0
virtual void comboBoxAppendString(const char *pszControlName, const char *pszValue)=0
virtual void setText(const char *pszObjectName, const char *pszValue)=0
virtual void setPropertyInt(const char *pszObjectName, const char *pszPropertyName, const int &nValue)=0
virtual bool isEnabled(const char *pszObjectName)=0
virtual void setCurrentIndex(const char *pszObjectName, const int &nValue)=0
virtual void tableWidgetGetItem(const char *pszControlName, const int &nRow, const int &nCol, char *pszValue, const int &nOutMaxSize)=0
virtual void propertyString(const char *pszObjectName, const char *pszPropertyName, char *pszOut, const int &nOutMaxSize)=0
virtual void messageBox(const char *pszTitle, const char *pszMessage)=0
virtual void tableWidgetCurrentCol(const char *pszControlName, int &nCol)=0
virtual void tableWidgetRemoveRow(const char *pszControlName, const int &nRow)=0
virtual void tableWidgetRemoveCol(const char *pszControlName, const int &nCol)=0
virtual void setPropertyString(const char *pszObjectName, const char *pszPropertyName, const char *pszValue)=0
virtual void text(const char *pszObjectName, char *pszOut, const int &nOutMaxSize)=0
virtual void setEnabled(const char *pszObjectName, const bool &bEnabled)=0
virtual void tableWidgetCurrentRow(const char *pszControlName, int &nRow)=0
virtual void setChecked(const char *pszObjectName, const int &nValue)=0
virtual void propertyDouble(const char *pszObjectName, const char *pszPropertyName, double &dValue)=0
virtual bool invokeMethod(const char *pszObjectName, const char *pszMethodName, char *pszReturn=NULL, const int &nReturnMaxSize=0, const char *pszArg1=NULL)=0
virtual int currentIndex(const char *pszObjectName)=0
The X2GUIInterface allows X2 implementors to display a customized, cross platform,...
Definition x2guiinterface.h:156
virtual X2GUIExchangeInterface * X2DX()=0
virtual int exec(bool &bPressedOK)=0
virtual int loadUserInterface(const char *pszFileName, const int &dt, const int &nISIndex)=0
The X2ModalUIUtil class supplies the X2 developer with the X2GUIInterface interface.
Definition x2guiinterface.h:187
X2GUIExchangeInterface * X2DX()
Definition x2guiinterface.h:215
X2GUIInterface * X2UI()
Definition x2guiinterface.h:202
X2ModalUIUtil(DriverRootInterface *pCaller, TheSkyXFacadeForDriversInterface *pTheSkyX)
Definition x2guiinterface.h:191