Documents > BPS V2 C++ API
bpskeyboardcontrols.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSKEYBOARDCONTROLS_H
00005 #define BPSKEYBOARDCONTROLS_H
00006 
00007 #include "bpsgui_global.h"
00008 #include <QPushButton>
00009 #include <QAction>
00010 
00011 class BpsNumericKeyboardButton;
00012 class BpsNumericKeyboardAction;
00013 
00021 class BPSGUI_EXPORT BpsAlphaKeyboardButton : public QPushButton
00022 {
00023     Q_OBJECT
00024     BPS_PRIVATE(BpsAlphaKeyboardButton)
00025 
00026 public:
00031     BpsAlphaKeyboardButton(QWidget* aWidget, QWidget* aParent = 0);
00032 
00039     void setNumericButton(BpsNumericKeyboardButton* aButton);
00040 
00041 protected:
00043     // virtual void paintEvent(QPaintEvent* aEvent);
00045 }; // BpsAlphaKeyboardButton
00046 
00047 
00055 class BPSGUI_EXPORT BpsNumericKeyboardButton : public QPushButton
00056 {
00057     Q_OBJECT
00058     BPS_PRIVATE(BpsNumericKeyboardButton)
00059 
00060 public:
00065     BpsNumericKeyboardButton(QWidget* aWidget, QWidget* aParent = 0);
00066 
00073     void setAlphaButton(BpsAlphaKeyboardButton* aButton);
00074 
00075 protected:
00077     // virtual void paintEvent(QPaintEvent* aEvent);
00079 }; // BpsNumericKeyboardButton
00080 
00081 
00086 class BPSGUI_EXPORT BpsContextMenuButton : public QPushButton
00087 {
00088     Q_OBJECT
00089 public:
00093     BpsContextMenuButton(QWidget* aParent);
00094 
00095 protected:
00097     virtual void paintEvent(QPaintEvent* aEvent);
00099 }; // BpsNumericKeyboardButton
00100 
00101 
00106 class BPSGUI_EXPORT BpsVirtualEnterButton : public QPushButton
00107 {
00108     Q_OBJECT
00109 public:
00113     BpsVirtualEnterButton(QWidget* aParent);
00114 }; // BpsVirtualEnterButton
00115 
00116 
00117 
00118 
00126 class BPSGUI_EXPORT BpsAlphaKeyboardAction : public QAction
00127 {
00128     Q_OBJECT
00129     BPS_PRIVATE(BpsAlphaKeyboardAction)
00130 
00131 public:
00132 
00136     enum {
00137         NoKeyboardShown,            
00138         AlphaKeyboardShown,         
00139         NumericKeyboardShown        
00140     };
00141 
00146     BpsAlphaKeyboardAction(QWidget* aWidget, QObject* aParent = 0);
00147 
00154     void setNumericAction(BpsNumericKeyboardAction* aAction);
00155 
00159     int status() const;
00160 
00166     void setStatus(int aStatus);
00167 
00168 }; // BpsAlphaKeyboardAction
00169 
00170 
00178 class BPSGUI_EXPORT BpsNumericKeyboardAction : public QAction
00179 {
00180     Q_OBJECT
00181     BPS_PRIVATE(BpsNumericKeyboardAction)
00182 
00183 public:
00184 
00188     enum {
00189         NoKeyboardShown,            
00190         AlphaKeyboardShown,         
00191         NumericKeyboardShown        
00192     };
00193 
00198     BpsNumericKeyboardAction(QWidget* aWidget, QObject* aParent = 0);
00199 
00206     void setAlphaAction(BpsAlphaKeyboardAction* aAction);
00207 
00211     int status() const;
00212 
00218     void setStatus(int aStatus);
00219 
00220 }; // BpsNumericKeyboardButton
00221 
00222 
00223 #endif // BPSKEYBOARDCONTROLS_H