BPS C++ API  2.24.4
bpsdialog.h
Go to the documentation of this file.
1 
4 #ifndef BPSDIALOG_H
5 #define BPSDIALOG_H
6 
7 #include "bpsgui_global.h"
8 #include <QDialog>
9 #include <QVariant>
10 
11 class BpsDatastore;
12 
40 {
41  Q_OBJECT
43 
44 public:
50  BpsTextInputDialog(QWidget* aParent, const QString& aTitle, const QString& aLabel);
51 
52  virtual ~BpsTextInputDialog();
53 
57  QString text() const;
58 
63  void setText(const QString& aText);
64 
65 }; // BpsTextInputDialog
66 
67 
68 /************************************************************************/
69 /* B p s S e l e c t U s e r D i a l o g */
70 /************************************************************************/
71 
91 {
92  Q_OBJECT
94 
95 public:
101  BpsSelectUserDialog(QWidget* aParent, const QString& aTitle, BpsDatastore* aDatastore);
102 
103  virtual ~BpsSelectUserDialog();
104 
106  int exec();
108 
112  QVariant userKey() const;
113 
118  void setUserKey(const QVariant& aUserKey);
119 
120 }; // BpsSelectUserDialog
121 
122 #endif // BPSDIALOG_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
Select a bps user.
Definition: bpsdialog.h:91
QVariant userKey() const
void setUserKey(const QVariant &aUserKey)
Set the current user key.
BpsSelectUserDialog(QWidget *aParent, const QString &aTitle, BpsDatastore *aDatastore)
This class is somewhat a replacement for QInputDialog where a line of text shall be edited or entered...
Definition: bpsdialog.h:40
void setText(const QString &aText)
Set the text to be edited.
BpsTextInputDialog(QWidget *aParent, const QString &aTitle, const QString &aLabel)
QString text() const
virtual int exec()