Documents > BPS V2 C++ API
bpsapplication.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSAPPLICATION_H
00005 #define BPSAPPLICATION_H
00006 
00007 #include "bpsgui_global.h"
00008 #include <QApplication>
00009 
00015 class BPSGUI_EXPORT BpsApplication : public QApplication
00016 {
00017     Q_OBJECT
00018     BPS_PRIVATE(BpsApplication)
00019 
00020 public:
00026     BpsApplication(int& argc, char** argv);
00027 
00028     virtual ~BpsApplication();
00029 
00036     static QWidget* keyboardTarget();
00037 
00038 signals:
00039 
00044     void hideKeyboardRequest(QWidget* aWidget);
00045 
00046 public slots:
00047 
00054     void showAlphaKeyboard(QWidget* aWidget, bool aShow);
00055 
00062     void showNumericKeyboard(QWidget* aWidget, bool aShow);
00063 
00067     void showContextMenu();
00068 
00072     void sendEnterKey();
00073 
00077     void emitHideKeyboardRequest();
00078 };
00079 
00081 #if defined(qApp)
00082 #undef qApp
00083 #endif
00084 #define qApp (static_cast<BpsApplication*>(QApplication::instance()))
00085 
00086 
00087 #endif // BPSAPPLICATION_H