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

Public Member Functions | |
| QDict< QString > | getTabletData (const QString &) |
| QDict< QString > | getTabletData (const QString &, const QString &) |
| QDict< QString > | getPenData (const QString &) |
| QDict< QString > | getPenData (const QString &, const QString &) |
| QList< QString > | getTabletVendorList (void) |
| QList< QString > | getTabletModelList (const QString &) |
| QList< QString > | getTabletList (void) |
| QList< QString > | getPenList (void) |
| QList< QString > | getTabletDrivers (void) |
| QDict< QString > | getTabletOptions (const QString &) |
| void | setTablet (const QString &, const QString &) |
| void | setTablet (const QString &) |
| void | setType (const QString &) |
| void | setMode (const QString &) |
| int | addPen (const QString &) |
| int | addPen (const QString &, const QString &) |
| int | removePen (int) |
| QString | getName (void) |
| QString | getVendor (void) |
| QString | getType (void) |
| QString | getMode (void) |
| bool | isTablet (void) |
| bool | isPen (void) |
| bool | isEraser (void) |
| SaXManipulateTablets (SaXImport *, SaXImport *, int=1) | |
The tablet manipulator requires two import object (Pointers and Layout) to become created. Once created the manipulator object is able to get/set tablet configuration information. To set up a tablet a new input device needs to created first which get transformed into a tablet using the setTablet() method. Based on this tablet device the manipulator is able to add additional input devices using the addPen() method which results in a stylus or an eraser pointer for this tablet. The following example demonstrate how to add a tablet with one stylus-pen applied
#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 tabletID = dev.addInputDevice (SAX_INPUT_TABLET); printf ("ID: %d is [SAX_INPUT_TABLET]: added\n",tabletID); printf ("Setting up tablet data... "); SaXManipulateTablets pointer ( section["Pointers"],section["Layout"] ); if (pointer.selectPointer (tabletID)) { QList<QString> tabletList = pointer.getTabletList(); QList<QString> penList = pointer.getPenList(); QString* myTablet = tabletList.at (3); QString* myPen = penList.at(3); pointer.setTablet( *myTablet ); pointer.addPen ( *myPen ); printf ("Tablet: [%s] with pen: [%s] configured\n", myTablet->ascii(),myPen->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 357 of file pointers.h.
Definition at line 797 of file pointers.cpp.
| QDict< QString > SaX::SaXManipulateTablets::getTabletData | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1075 of file pointers.cpp.
Referenced by getTabletData().
| QDict< QString > SaX::SaXManipulateTablets::getTabletData | ( | const QString & | , | |
| const QString & | ||||
| ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1099 of file pointers.cpp.
References getTabletData().
Here is the call graph for this function:

| QDict< QString > SaX::SaXManipulateTablets::getPenData | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1112 of file pointers.cpp.
Referenced by getPenData().
| QDict< QString > SaX::SaXManipulateTablets::getPenData | ( | const QString & | , | |
| const QString & | ||||
| ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1136 of file pointers.cpp.
References getPenData().
Here is the call graph for this function:

| QList< QString > SaX::SaXManipulateTablets::getTabletVendorList | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1022 of file pointers.cpp.
References getTabletList().
Here is the call graph for this function:

| QList< QString > SaX::SaXManipulateTablets::getTabletModelList | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1051 of file pointers.cpp.
References getTabletList().
Here is the call graph for this function:

| QList< QString > SaX::SaXManipulateTablets::getTabletList | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1000 of file pointers.cpp.
Referenced by getTabletModelList(), and getTabletVendorList().
| QList< QString > SaX::SaXManipulateTablets::getPenList | ( | void | ) | [virtual] |
| QList< QString > SaX::SaXManipulateTablets::getTabletDrivers | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 950 of file pointers.cpp.
References SaX::SaXStorage::getTablePointerCDB().
Here is the call graph for this function:

| QDict< QString > SaX::SaXManipulateTablets::getTabletOptions | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 971 of file pointers.cpp.
References SaX::SaXException::errorString(), and SaX::SaXException::excCDBRecordNotFound().
Here is the call graph for this function:

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

| void SaX::SaXManipulateTablets::setType | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 813 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateTablets::setMode | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 827 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| int SaX::SaXManipulateTablets::addPen | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1226 of file pointers.cpp.
References SaX::SaXManipulateDevices::addInputDevice(), SaX::SaXException::errorString(), SaX::SaXException::excCDBRecordNotFound(), SaX::SaXException::excPointerFashionTypeFailed(), SaX::SaXManipulatePointers::mImport, SaX::SaXManipulatePointers::mPointer, and SaX::SaXManipulatePointers::selectPointer().
Referenced by addPen().
Here is the call graph for this function:

| int SaX::SaXManipulateTablets::addPen | ( | const QString & | , | |
| const QString & | ||||
| ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1298 of file pointers.cpp.
References addPen().
Here is the call graph for this function:

| int SaX::SaXManipulateTablets::removePen | ( | int | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 1313 of file pointers.cpp.
References SaX::SaXException::errorString(), SaX::SaXException::excPointerFashionTypeFailed(), SaX::SaXStorage::getItem(), SaX::SaXManipulatePointers::mImport, SaX::SaXManipulateDevices::removeInputDevice(), and SaX::SaXManipulatePointers::selectPointer().
Here is the call graph for this function:

| QString SaX::SaXManipulateTablets::getName | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 896 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| QString SaX::SaXManipulateTablets::getVendor | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 909 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| QString SaX::SaXManipulateTablets::getType | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 922 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| QString SaX::SaXManipulateTablets::getMode | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 936 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| bool SaX::SaXManipulateTablets::isTablet | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 841 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| bool SaX::SaXManipulateTablets::isPen | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 859 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| bool SaX::SaXManipulateTablets::isEraser | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateTabletsIF.
Definition at line 877 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
1.5.0