BPS C++ API  2.24.4
bpsconfigwidget.h
Go to the documentation of this file.
1 
4 #ifndef BPSCONFIGWIDGET_H
5 #define BPSCONFIGWIDGET_H
6 
7 #include "bpsgui_global.h"
8 #include <QWidget>
9 
10 class BpsDatastore;
11 
16 {
17  Q_OBJECT
19 
20 public:
25  BpsConfigWidget(QWidget* aParent=0);
26 
30  virtual ~BpsConfigWidget();
31 
36  virtual void setConfig(const QMap<QString,QString>& aConfig);
37 
41  virtual QMap<QString,QString> config() const;
42 
46  virtual bool isConfigValid() const;
47 
51  virtual void focusToFirstInput();
52 
57  virtual void focusToFirstInvalidInput();
58 
59 signals:
60 
65  void configEdited();
66 
71  void configChanged();
72 
77  void configValid(bool aValid);
78 };
79 
80 #endif // BPSCONFIGWIDGET_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
Abstract configuration widget.
Definition: bpsconfigwidget.h:16
virtual void focusToFirstInvalidInput()
Set the focus to the first input responsible for the invalid state.
virtual void setConfig(const QMap< QString, QString > &aConfig)
Set the configuration settings to edit.
virtual bool isConfigValid() const
void configEdited()
Signal emitted when a user changes the configuration.
virtual QMap< QString, QString > config() const
BpsConfigWidget(QWidget *aParent=0)
The constructor.
void configChanged()
Signal emitted whenever the configuration changes.
void configValid(bool aValid)
Signal emitted when valid/invalid status changes;.
virtual ~BpsConfigWidget()
Virtual default destructor.
virtual void focusToFirstInput()
Set the focus to the first input.
BPS datastore class.
Definition: bpsdatastore.h:61