|
gSAFE
1.3.8
|
#include <guilib.h>
Inherits QFrame.
Public Slots | |
| int | recalcSize () |
| int | setEnabled (bool enable) |
| int | setHide () |
| int | setShow () |
Signals | |
| void | clicked (void) |
| void | clickedCode (QString code) |
Public Member Functions | |
| HPressButton (QWidget *parent, QString text, QString code="") | |
| ~HPressButton (void) | |
| HPressButtonSizeSyncronizer * | getSizeSyncronizer (void) |
| void | setColor (int red, int green, int blue) |
| void | setEffect (int effectwidth) |
| void | setMargin (int margin) |
| void | setSizeSyncronizer (HPressButtonSizeSyncronizer *ss) |
| void | setTextPointSize (int size) |
Static Public Member Functions | |
| static HPressButtonSizeSyncronizer * | createSizeSyncronizer (void) |
HPressButton is a large pusbutton optimised for touchscreens.
You can define a code for every button, and when the button is pressed the clickedCode signal will pass the code.
Optionally, you can define a size syncronizer object, which can control the size of a group of HPressButton-s and equal the sizes.
| HPressButton::HPressButton | ( | QWidget * | parent, |
| QString | text, | ||
| QString | code = "" |
||
| ) |
Creates a HPressButton
| parent | the parent QWidget descendant |
| text | The text of the button. |
| code | The code of the button. Passed by clickedCode signal. |
Definition at line 4623 of file guilib.cpp.
| HPressButton::~HPressButton | ( | void | ) |
Destructor
Definition at line 4649 of file guilib.cpp.
|
signal |
This signal is emitted if the button is pressed
|
signal |
This signal is emitted if the button is pressed, and the button code is passed too.
|
static |
Creates and returns a HPressButtonSizeSyncronizer object. Every HPressButton which have a same HPressButtonSizeSyncronizer will be equalzed size. You can set a HPressButtonSizeSyncronizer to a HPressButton with the setSizeSyncronizer() function
Definition at line 4890 of file guilib.cpp.
|
inline |
Returns the currently set HPressButtonSizeSyncronizer object. Returns NULL if not set.
|
slot |
Recalculate the sizes of the HPressButtons which have same HPressButtonSizeSyncronizer object
Definition at line 4694 of file guilib.cpp.
| void HPressButton::setColor | ( | int | red, |
| int | green, | ||
| int | blue | ||
| ) |
Sets the color of the button
Definition at line 4721 of file guilib.cpp.
| void HPressButton::setEffect | ( | int | effectwidth | ) |
Width of the pressing effect of the button
Definition at line 4675 of file guilib.cpp.
|
slot |
Set if the button is enabled or not. If the button is not enabled the text is red crossed and the button can't pressed. Note: If you like to hide the button use setHide()
Definition at line 4667 of file guilib.cpp.
|
slot |
Hide the button
Definition at line 4654 of file guilib.cpp.
| void HPressButton::setMargin | ( | int | margin | ) |
Sets the margin of the button text
Definition at line 4681 of file guilib.cpp.
|
slot |
Show/Unhide the button
Definition at line 4660 of file guilib.cpp.
|
inline |
Sets the HPressButtonSizeSyncronizer object.
| void HPressButton::setTextPointSize | ( | int | size | ) |
Sets the size of the button text
Definition at line 4687 of file guilib.cpp.
1.8.5