00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef AEDSPINNER_H
00023 #define AEDSPINNER_H
00024
00025 #include "aedWidget.h"
00026 #include "aedTextBox.h"
00027 #include "aedButton.h"
00028
00029
00030 class DLLEXPORT aedSpinner:public aedWidget
00031 {
00032 public:
00033 aedSpinner();
00034 virtual void create(aedWidget * parent = NULL, aedRect pos =
00035 aedDEFAULTPOSITION, std::string caption = "");
00036
00037 int wm_update(Uint32 msdelta);
00038 void incrementValue();
00039 void decrementValue();
00040
00041 Sint32 getValue() const
00042 {
00043 return m_Value;
00044 }
00045 void setValue(Sint32 val);
00046
00047 void setRange(Sint32 minval, Sint32 maxval);
00048 void getRange(Sint32 * minval, Sint32 * maxval) const
00049 {
00050 if(minval)
00051 *minval = m_Min;
00052 if(maxval)
00053 *maxval = m_Max;
00054 }
00055
00056 private:
00057 Sint32 m_Value, m_Min, m_Max;
00058 aedButton m_ButtonUp, m_ButtonDown;
00059 aedTextBox m_TextBox;
00060
00061 void textbox_change(void *caller, void *data);
00062 void buttonUpClicked(void *caller, void *data);
00063 void buttonDownClicked(void *caller, void *data);
00064 };
00065
00066 #if defined(_MSC_VER)
00067 DLLEXTERN template DLLEXPORT aedFunctor1Arg < stub, aedSpinner >;
00068 #endif
00069
00070 #endif