BPS C++ API  2.24.4
bpsgui.h
Go to the documentation of this file.
1 
4 #ifndef BPSGUI_H
5 #define BPSGUI_H
6 
7 #include "bpsgui_global.h"
8 #include <QObject>
9 
10 class QPixmap;
11 class QIcon;
12 class QLineEdit;
13 class QSpinBox;
14 class BpsDatastore;
15 
20 #define bpsGui BpsGui::instance()
21 
26 {
27  Q_OBJECT
29 
30 private:
32  BpsGui(QObject* aParent = nullptr);
33  BpsGui(const BpsGui& aBpsGui);
34  virtual ~BpsGui();
35  BpsGui& operator=(const BpsGui& aBps);
37 
38 public:
39 
43  static BpsGui* instance();
44 
52  QPixmap pixmap(const QString& aName, int aSize);
53 
322  QIcon icon(const QString& aName);
323 
334  void applyValidator(BpsDatastore* aDatastore, const QString& aTable, const QString& aColumn, QLineEdit* aEdit);
335 
336 };
337 
338 #endif // BPSGUI_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
BPS datastore class.
Definition: bpsdatastore.h:61
Singleton BpsGui object as application global.
Definition: bpsgui.h:26
void applyValidator(BpsDatastore *aDatastore, const QString &aTable, const QString &aColumn, QLineEdit *aEdit)
Apply constraints to a line edit control.
static BpsGui * instance()
QIcon icon(const QString &aName)
Get one of the built in icons.
QPixmap pixmap(const QString &aName, int aSize)
Get one of the built in pix maps.