29 |
#ifndef PG_SPINNERBOX_H |
#ifndef PG_SPINNERBOX_H |
30 |
#define PG_SPINNERBOX_H |
#define PG_SPINNERBOX_H |
31 |
|
|
|
#ifdef SWIG |
|
|
%include "swigcommon.h" |
|
|
%module pgspinnerbox |
|
|
%{ |
|
|
#include "pgspinnerbox.h" |
|
|
%} |
|
|
#endif |
|
|
|
|
|
#include "pgmaskedit.h" |
|
|
#include "pgbutton.h" |
|
32 |
#include "pgthemewidget.h" |
#include "pgthemewidget.h" |
33 |
|
|
34 |
|
class PG_Button; |
35 |
|
class PG_MaskEdit; |
36 |
|
class PG_LineEdit; |
37 |
|
|
38 |
/** |
/** |
39 |
* @author Atani - Mike Dunston |
* @author Atani - Mike Dunston |
40 |
* |
* |
80 |
void SetMaxValue( int value ) { |
void SetMaxValue( int value ) { |
81 |
m_iMaxValue = value; |
m_iMaxValue = value; |
82 |
} |
} |
83 |
void SetMask( const char *value ) { |
|
84 |
strcpy( m_sMask, value ); |
void SetMask( const char *value ); |
|
m_pEditBox->SetMask( m_sMask ); |
|
|
AdjustSize(); |
|
|
} |
|
85 |
|
|
86 |
int GetValue() { |
int GetValue() { |
87 |
return( m_iValue ); |
return( m_iValue ); |
101 |
protected: |
protected: |
102 |
|
|
103 |
bool handleButtonClick(PG_Button* button); |
bool handleButtonClick(PG_Button* button); |
104 |
bool handle_editend(PG_LineEdit* edit); |
bool handleEditEnd(PG_LineEdit* edit); |
105 |
|
|
106 |
private: |
private: |
107 |
|
|