BPS C++ API  2.24.4
bpsapplication.h
Go to the documentation of this file.
1 
4 #ifndef BPSAPPLICATION_H
5 #define BPSAPPLICATION_H
6 
7 #include "bpsgui_global.h"
8 #include <QApplication>
9 
16 {
17  Q_OBJECT
19 
20 public:
26  BpsApplication(int& argc, char** argv);
27 
28  virtual ~BpsApplication();
29 
37 
38 signals:
39 
44  void hideKeyboardRequest(QWidget* aWidget);
45 
46 public slots:
47 
54  void showAlphaKeyboard(QWidget* aWidget, bool aShow);
55 
62  void showNumericKeyboard(QWidget* aWidget, bool aShow);
63 
68 
73 
77  void sendEnterKey();
78 
83 };
84 
86 #if defined(qApp)
87 #undef qApp
88 #endif
89 #define qApp (static_cast<BpsApplication*>(QApplication::instance()))
91 
92 #endif // BPSAPPLICATION_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
This class is a extension of QApplication which contains support for BPS virtual keyboards.
Definition: bpsapplication.h:16
void showNumericKeyboard(QWidget *aWidget, bool aShow)
Show or hide the numeric keyboard for the given widget, whenever the top window of that widget is act...
static QWidget * keyboardTarget()
Find the current receiver widget for keyboard input.
void emitHideKeyboardRequest()
Emit hideKeyboardRequest.
void sendAdjustColumns()
Send Ctrl and Numpad-Plus to adjust the columns of a table or tree widget currently having keyboard f...
void showContextMenu()
Send a keyboard stroke to open the context menu for the widget currently having focus.
void hideKeyboardRequest(QWidget *aWidget)
Signal emitted when the virtual keyboard hide button is hit.
void showAlphaKeyboard(QWidget *aWidget, bool aShow)
Show or hide the alphanumeric keyboard for the given widget, whenever the top window of that widget i...
BpsApplication(int &argc, char **argv)
The one and only constructor.
void sendEnterKey()
Send a enter key keyboard stroke to the widget currently having focus.