#include <pointers.h>
Inheritance diagram for SaX::SaXManipulateTouchscreens:

Public Member Functions | |
| QList< QString > | getPanelList (void) |
| QList< QString > | getPanelVendorList (void) |
| QList< QString > | getPanelModelList (const QString &) |
| QDict< QString > | getPanelData (const QString &) |
| QDict< QString > | getPanelData (const QString &, const QString &) |
| void | setTouchPanel (const QString &, const QString &) |
| void | setTouchPanel (const QString &) |
| bool | isTouchpanel (void) |
| QString | getName (void) |
| QString | getVendor (void) |
| QString | getType (void) |
| SaXManipulateTouchscreens (SaXImport *, int=1) | |
The touchscreen manipulator requires one import object (Pointers) to become created. Once created the manipulator object is able to transform a currently existing InputDevice into a touchpanel. In almost all cases it is needed to create this InputDevice first which means there is the need for the device manipulator as well. The following example demonstrate how to add a touch panel to the configuration.
#include <sax/sax.h> int main (void) { SaXException().setDebug (true); QDict<SaXImport> section; int importID[] = { SAX_POINTERS, SAX_LAYOUT }; printf ("Importing data...\n"); SaXConfig* config = new SaXConfig; for (int id=0; id<2; id++) { SaXImport* import = new SaXImport ( importID[id] ); import->setSource ( SAX_SYSTEM_CONFIG ); import->doImport(); config->addImport (import); section.insert ( import->getSectionName(),import ); } printf ("Adding new pointer device... "); SaXManipulateDevices dev ( section["Pointers"],section["Layout"] ); int panelID = dev.addInputDevice (SAX_INPUT_TOUCHPANEL); printf ("ID: %d is [SAX_INPUT_TOUCHPANEL]: added\n",panelID); printf ("Setting up touchpanel data... "); SaXManipulateTouchscreens pointer ( section["Pointers"] ); if (pointer.selectPointer (panelID)) { QList<QString> panelList = pointer.getPanelList(); QString* myPanel = panelList.at(0); pointer.setTouchPanel( *myPanel ); printf ("TouchPanel: [%s] configured\n", myPanel->ascii()); } printf ("writing configuration\n"); config->setMode (SAX_MERGE); if ( ! config->createConfiguration() ) { printf ("%s\n",config->errorString().ascii()); printf ("%s\n",config->getParseErrorValue().ascii()); return 1; } return (0); }
Definition at line 498 of file pointers.h.
| SaX::SaXManipulateTouchscreens::SaXManipulateTouchscreens | ( | SaXImport * | , | |
| int | = 1 | |||
| ) |
Definition at line 1340 of file pointers.cpp.
| QList< QString > SaX::SaXManipulateTouchscreens::getPanelList | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1422 of file pointers.cpp.
Referenced by getPanelModelList(), and getPanelVendorList().
| QList< QString > SaX::SaXManipulateTouchscreens::getPanelVendorList | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1444 of file pointers.cpp.
References getPanelList().
Here is the call graph for this function:

| QList< QString > SaX::SaXManipulateTouchscreens::getPanelModelList | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1473 of file pointers.cpp.
References getPanelList().
Here is the call graph for this function:

| QDict< QString > SaX::SaXManipulateTouchscreens::getPanelData | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1497 of file pointers.cpp.
Referenced by getPanelData().
| QDict< QString > SaX::SaXManipulateTouchscreens::getPanelData | ( | const QString & | , | |
| const QString & | ||||
| ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1523 of file pointers.cpp.
References getPanelData().
Here is the call graph for this function:

| void SaX::SaXManipulateTouchscreens::setTouchPanel | ( | const QString & | , | |
| const QString & | ||||
| ) | [virtual] |
| void SaX::SaXManipulateTouchscreens::setTouchPanel | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1536 of file pointers.cpp.
References SaX::SaXException::errorString(), SaX::SaXException::excCDBRecordNotFound(), SaX::SaXManipulatePointers::mImport, SaX::SaXManipulatePointers::mPointer, and SaX::SaXManipulatePointers::setNamePair().
Here is the call graph for this function:

| bool SaX::SaXManipulateTouchscreens::isTouchpanel | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1354 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| QString SaX::SaXManipulateTouchscreens::getName | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1373 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| QString SaX::SaXManipulateTouchscreens::getVendor | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1390 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| QString SaX::SaXManipulateTouchscreens::getType | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTouchscreensIF.
Definition at line 1407 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
1.5.0