BPS C++ API  2.24.4
bpskeyboardcontrols.h
Go to the documentation of this file.
1 
4 #ifndef BPSKEYBOARDCONTROLS_H
5 #define BPSKEYBOARDCONTROLS_H
6 
7 #include "bpsgui_global.h"
8 #include <QPushButton>
9 #include <QAction>
10 
13 
22 {
23  Q_OBJECT
25 
26 public:
31  BpsAlphaKeyboardButton(QWidget* aWidget, QWidget* aParent = nullptr);
32 
40 
41 protected:
43  // virtual void paintEvent(QPaintEvent* aEvent);
45 }; // BpsAlphaKeyboardButton
46 
47 
56 {
57  Q_OBJECT
59 
60 public:
65  BpsNumericKeyboardButton(QWidget* aWidget, QWidget* aParent = nullptr);
66 
74 
75 protected:
77  // virtual void paintEvent(QPaintEvent* aEvent);
79 }; // BpsNumericKeyboardButton
80 
81 
87 {
88  Q_OBJECT
89 public:
94 
95 protected:
97  //virtual void paintEvent(QPaintEvent* aEvent);
99 }; // BpsContextMenuButton
100 
101 
107 {
108  Q_OBJECT
109 public:
114 }; // BpsAdjustColumnsButton
115 
116 
122 {
123  Q_OBJECT
124 public:
129 }; // BpsVirtualEnterButton
130 
131 
132 
133 
142 {
143  Q_OBJECT
145 
146 public:
147 
151  enum {
154  NumericKeyboardShown
155  };
156 
161  BpsAlphaKeyboardAction(QWidget* aWidget, QObject* aParent = nullptr);
162 
170 
174  int status() const;
175 
181  void setStatus(int aStatus);
182 
183 }; // BpsAlphaKeyboardAction
184 
185 
194 {
195  Q_OBJECT
197 
198 public:
199 
203  enum {
206  NumericKeyboardShown
207  };
208 
213  BpsNumericKeyboardAction(QWidget* aWidget, QObject* aParent = nullptr);
214 
222 
226  int status() const;
227 
233  void setStatus(int aStatus);
234 
235 }; // BpsNumericKeyboardAction
236 
237 #endif // BPSKEYBOARDCONTROLS_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
A push button that sends Ctrl and Numpad-Plus to adjust the columns of a table or tree widget current...
Definition: bpskeyboardcontrols.h:107
BpsAdjustColumnsButton(QWidget *aParent)
A checkable action to show or hide the alphanumeric keyboard.
Definition: bpskeyboardcontrols.h:142
void setStatus(int aStatus)
Set the keyboard show status.
void setNumericAction(BpsNumericKeyboardAction *aAction)
Set the associated numeric keyboard action.
@ AlphaKeyboardShown
The alphanumeric keyboard is shown.
Definition: bpskeyboardcontrols.h:153
@ NoKeyboardShown
No keyboard is shown.
Definition: bpskeyboardcontrols.h:152
BpsAlphaKeyboardAction(QWidget *aWidget, QObject *aParent=nullptr)
A checkable push button to show or hide the alphanumeric keyboard.
Definition: bpskeyboardcontrols.h:22
void setNumericButton(BpsNumericKeyboardButton *aButton)
Set the associated numeric keyboard button.
BpsAlphaKeyboardButton(QWidget *aWidget, QWidget *aParent=nullptr)
A push button that sends a key stroke to bring up the context menu for the widget currently having ke...
Definition: bpskeyboardcontrols.h:87
BpsContextMenuButton(QWidget *aParent)
A checkable action to show or hide the numeric keyboard.
Definition: bpskeyboardcontrols.h:194
@ NoKeyboardShown
No keyboard is shown.
Definition: bpskeyboardcontrols.h:204
@ AlphaKeyboardShown
The alphanumeric keyboard is shown.
Definition: bpskeyboardcontrols.h:205
void setAlphaAction(BpsAlphaKeyboardAction *aAction)
Set the associated alphanumeric keyboard action.
BpsNumericKeyboardAction(QWidget *aWidget, QObject *aParent=nullptr)
void setStatus(int aStatus)
Set the keyboard show status.
A checkable push button to show or hide the numeric keyboard.
Definition: bpskeyboardcontrols.h:56
void setAlphaButton(BpsAlphaKeyboardButton *aButton)
Set the associated alphanumeric keyboard button.
BpsNumericKeyboardButton(QWidget *aWidget, QWidget *aParent=nullptr)
A push button that sends a enter key stroke to the widget currently having keyboard focus.
Definition: bpskeyboardcontrols.h:122
BpsVirtualEnterButton(QWidget *aParent)