Documents > BPS V2 C++ API
bpsgui.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSGUI_H
00005 #define BPSGUI_H
00006 
00007 #include "bpsgui_global.h"
00008 #include <QObject>
00009 
00010 class QPixmap;
00011 class QIcon;
00012 class QLineEdit;
00013 class QSpinBox;
00014 class BpsDatastore;
00015 
00020 #define bpsGui BpsGui::instance()
00021 
00025 class BPSGUI_EXPORT BpsGui : public QObject
00026 {
00027     Q_OBJECT
00028     BPS_PRIVATE(BpsGui)
00029 
00030 private:
00032     BpsGui(QObject* aParent = 0);
00033     BpsGui(const BpsGui& aBpsGui); 
00034     virtual ~BpsGui();
00035     BpsGui& operator=(const BpsGui& aBps);
00037 
00038 public:
00039 
00043     static BpsGui* instance();
00044 
00052     QPixmap pixmap(const QString& aName, int aSize);
00053 
00264     QIcon icon(const QString& aName);
00265 
00276     void applyValidator(BpsDatastore* aDatastore, const QString& aTable, const QString& aColumn, QLineEdit* aEdit);
00277 };
00278 
00279 #endif // BPSGUI_H