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

Public Member Functions | |
| void | setMouse (const QString &) |
| void | setMouse (const QString &, const QString &) |
| void | enableWheelEmulation (int) |
| void | disableWheelEmulation (void) |
| void | enable3ButtonEmulation (void) |
| void | disable3ButtonEmulation (void) |
| void | enableWheel (void) |
| void | enableWheelOn (int, int) |
| void | disableWheel (void) |
| void | enableXAxisInvertation (void) |
| void | enableYAxisInvertation (void) |
| void | disableXAxisInvertation (void) |
| void | disableYAxisInvertation (void) |
| QList< QString > | getMouseList (void) |
| QList< QString > | getMouseVendorList (void) |
| QList< QString > | getMouseModelList (const QString &) |
| QDict< QString > | getMouseData (const QString &) |
| QDict< QString > | getMouseData (const QString &, const QString &) |
| int | getWheelEmulatedButton (void) |
| bool | isWheelEnabled (void) |
| bool | isWheelEmulated (void) |
| bool | isButtonEmulated (void) |
| bool | isXAxisInverted (void) |
| bool | isYAxisInverted (void) |
| bool | isMouse (void) |
| SaXManipulateMice (SaXImport *, int=1) | |
The mice manipulator requires one import object (Pointers) to become created. Once created the manipulator object is able to get/set standard mouse configuration information like wheel and button handling. The following example demonstrate how to disable the mouse wheel.
#include <sax/sax.h> int main (void) { SaXException().setDebug (true); QDict<SaXImport> section; printf ("Importing data...\n"); SaXConfig* config = new SaXConfig; SaXImport* import = new SaXImport ( SAX_POINTERS ); import->setSource ( SAX_SYSTEM_CONFIG ); import->doImport(); config->addImport (import); section.insert ( import->getSectionName(),import ); printf ("Disable core pointer mouse wheel...\n"); SaXManipulateMice mMouse ( section["Pointers"] ); if (mMouse.selectPointer (SAX_CORE_POINTER)) { if (mMouse.wheelEnabled()) { mMouse.disableWheel(); } } 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 201 of file pointers.h.
| SaX::SaXManipulateMice::SaXManipulateMice | ( | SaXImport * | , | |
| int | = 1 | |||
| ) |
Definition at line 312 of file pointers.cpp.
| void SaX::SaXManipulateMice::setMouse | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 701 of file pointers.cpp.
References SaX::SaXException::errorString(), SaX::SaXException::excCDBRecordNotFound(), SaX::SaXManipulatePointers::mImport, and SaX::SaXManipulatePointers::mPointer.
Referenced by setMouse().
Here is the call graph for this function:

| void SaX::SaXManipulateMice::setMouse | ( | const QString & | , | |
| const QString & | ||||
| ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 744 of file pointers.cpp.
References setMouse().
Here is the call graph for this function:

| void SaX::SaXManipulateMice::enableWheelEmulation | ( | int | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 325 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::disableWheelEmulation | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 342 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::enable3ButtonEmulation | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 357 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::disable3ButtonEmulation | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 372 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::enableWheel | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 385 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::enableWheelOn | ( | int | , | |
| int | ||||
| ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 401 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::disableWheel | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 445 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::enableXAxisInvertation | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 417 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::enableYAxisInvertation | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 431 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::disableXAxisInvertation | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 459 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| void SaX::SaXManipulateMice::disableYAxisInvertation | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 473 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| QList< QString > SaX::SaXManipulateMice::getMouseList | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 626 of file pointers.cpp.
Referenced by getMouseModelList(), and getMouseVendorList().
| QList< QString > SaX::SaXManipulateMice::getMouseVendorList | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 648 of file pointers.cpp.
References getMouseList().
Here is the call graph for this function:

| QList< QString > SaX::SaXManipulateMice::getMouseModelList | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 677 of file pointers.cpp.
References getMouseList().
Here is the call graph for this function:

| QDict< QString > SaX::SaXManipulateMice::getMouseData | ( | const QString & | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 757 of file pointers.cpp.
Referenced by getMouseData().
| QDict< QString > SaX::SaXManipulateMice::getMouseData | ( | const QString & | , | |
| const QString & | ||||
| ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 783 of file pointers.cpp.
References getMouseData().
Here is the call graph for this function:

| int SaX::SaXManipulateMice::getWheelEmulatedButton | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 610 of file pointers.cpp.
References isWheelEmulated(), and SaX::SaXManipulatePointers::mImport.
Here is the call graph for this function:

| bool SaX::SaXManipulateMice::isWheelEnabled | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 520 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| bool SaX::SaXManipulateMice::isWheelEmulated | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 574 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
Referenced by getWheelEmulatedButton().
| bool SaX::SaXManipulateMice::isButtonEmulated | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 592 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| bool SaX::SaXManipulateMice::isXAxisInverted | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 538 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| bool SaX::SaXManipulateMice::isYAxisInverted | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 556 of file pointers.cpp.
References SaX::SaXManipulatePointers::mImport.
| bool SaX::SaXManipulateMice::isMouse | ( | void | ) | [virtual] |
Implements SaX::SaXManipulateMiceIF.
Definition at line 487 of file pointers.cpp.
References SaX::SaXManipulatePointers::getDriver(), and SaX::SaXManipulatePointers::mImport.
Here is the call graph for this function:

1.5.0