#include <maiaButton.h>
Inheritance diagram for maiaButton:
Public Member Functions | |
maiaButton (wxWindow *, bool, maiaButtonData *) | |
void | Show () |
void | Clean () |
void | Select () |
void | Scan () |
void | OnClick () |
void | OnFocus () |
void | PaintDefaultPicture () |
void | LightOn () |
void | LightOnSingle () |
void | LightOff () |
void | Execute () |
void | SetCurrent () |
void | ResetCurrent () |
Private Member Functions | |
void | RenderPushButton () |
void | SendSimulation () |
Private Attributes | |
int | normalIndex |
int | selIndex |
int | scanIndex |
Figure index. | |
int | scanSoundIndex |
int | selSoundIndex |
Sound index. | |
bool | haveScanSound |
bool | haveSelSound |
Flag. | |
maiaButtonData * | buttonData |
Data associated with the button. | |
bool | isCurrent |
Flag. |
This button handles two sounds:
|
The constructor. Initialize the MaiaButton adding images, sounds and other data.
|
|
Clean button from any attributes. Paint 'normal' image. |
|
Implement the Execute method that is invoked by the automatic scan system to execute the code associated with the button. The method insert the execute code in the MaiaEventQueue structure of the application. Reimplemented from omUIButton. |
|
Implement the LightOff method that is invoked by the automatic scan system to turn of the scan mark. The function render the normal image on the button. Reimplemented from omUIButton. |
|
Implement the LightOn method that is invoked by the automatic scan system when the button is automatically scanned. The function render the scan image on the button. Reimplemented from omUIButton. |
|
Implement the LightOnsingle method that is invoked by the automatic scan system when the button is automatically scanned. Check for soundEnabled option end play the sound if needed. The function render the scan image on the button. Reimplemented from omUIButton. |
|
Mouse click event. Implement MaiaLittleWindow virtual function. Automatically called when the button is clicked. Reimplemented from omUIButton. |
|
Handle on focus event. When a button receive focus the focus is retured to the window that lost the focus. Reimplemented from omUIButton. |
|
Call the Clean() method to paint the default picture of the window Reimplemented from omUIButton. |
|
This functions simulates the pressure of a button by rendering select image and after few milliseconds rendering last rendered image |
|
Reset current flag |
|
Set Scanned attribute to button. Paint 'scanned' image. |
|
Set Select attribute to button. Paint 'selected' image. |
|
This function send simulation to the event queue |
|
Set current flag |
|
Show the button and set the cursor on it if the button is selected by scan mode Reimplemented from omUIButton. |
|
Data associated with the button.
|
|
|
|
Flag.
|
|
Flag.
|
|
|
|
Figure index.
|
|
|
|
|
|
Sound index.
|
Copyright © by Luca Clivio |