BPS C++ API  2.24.4
BpsGui Class Reference

Singleton BpsGui object as application global. More...

#include <bpsgui.h>

+ Inheritance diagram for BpsGui:

Public Member Functions

void applyValidator (BpsDatastore *aDatastore, const QString &aTable, const QString &aColumn, QLineEdit *aEdit)
 Apply constraints to a line edit control. More...
 
QIcon icon (const QString &aName)
 Get one of the built in icons. More...
 
QPixmap pixmap (const QString &aName, int aSize)
 Get one of the built in pix maps. More...
 
- Public Member Functions inherited from QObject
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
 QObject (QObject *parent)
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 

Static Public Member Functions

static BpsGuiinstance ()
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Related Functions

(Note that these are not member functions.)

#define bpsGui   BpsGui::instance()
 Convenience notation for BpsGui::instance()
 

Additional Inherited Members

- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Singleton BpsGui object as application global.

Member Function Documentation

◆ applyValidator()

void BpsGui::applyValidator ( BpsDatastore aDatastore,
const QString aTable,
const QString aColumn,
QLineEdit aEdit 
)

Apply constraints to a line edit control.

The validator mask is looked up in the central setting at Validators/table/column.mask. If no mask (or an empty one) is found for the table/column, no validator is applied allowing any input without restriction.

Parameters
aDatastoreOpened and checked in datastore object.
aTableThe table name.
aColumnThe column name.
aEditThe edit control to apply validator or mask to.

◆ icon()

QIcon BpsGui::icon ( const QString aName)

Get one of the built in icons.

The built in icons have native pixmaps of size 16x16, 24x24 and 32x32 for best quality display.

NameSizesIcons
about16, 24, 32, 48, 64
add16, 24, 32
agent16, 24, 32
agent_add16, 24, 32
agent_delete16, 24, 32
agent_edit16, 24, 32
align_bottom16, 24, 32
align_center16, 24, 32
align_left16, 24, 32
align_middle16, 24, 32
align_right16, 24, 32
align_top16, 24, 32
application-exit16, 24, 32
application-pdf16, 24, 32
arrow_left_blue16, 24, 32
arrow_left_red16, 24, 32
arrow_right_blue16, 24, 32
arrow_right_green16, 24, 32
arrow_up_down16, 24, 32
barcode16, 24, 32, 48, 64
box_into16, 24, 32, 48, 64
box_white_closed16, 24, 32, 48, 64
box_white_closed_preferences16, 24, 32, 48, 64
box_white_closed_star_yellow16, 24, 32, 48, 64
breakbulk16, 24, 32, 48, 64
bug_yellow_run16, 24, 32
bullet_ball_blue16, 24, 32
bullet_ball_green16, 24, 32
bullet_ball_grey16, 24, 32
bullet_ball_red16, 24, 32
bullet_ball_yellow16, 24, 32
bullet_square_red16, 24, 32
bullet_triangle_blue16, 24, 32
bullet_triangle_green16, 24, 32
businessman16, 24, 32
cabinet_open16, 24, 32, 48, 64
calendar16, 24, 32, 48, 64
chart_dot16, 24, 32, 48, 64
chartpie16, 24, 32, 48, 64
check16, 24, 32
checkbox16, 24, 32
checkbox_unchecked16, 24, 32
cloud16, 24, 32
construction_barrier16, 24, 32
containership_star_yellow16, 24, 32, 48, 64
control_panel16, 24, 32, 48, 64
control_panel216, 24, 32, 48, 64
copy16, 24, 32
correction_fluid16, 24, 32
cubes_star_yellow16, 24, 32, 48, 64
cut16, 24, 32
data_into16, 24, 32
data_ok16, 24, 32
data_out16, 24, 32
delete16, 24, 32
digisys16, 24, 32
document16, 24, 32
document_add16, 24, 32
document_attachment16, 24, 32
document_delete16, 24, 32
document_edit16, 24, 32
document_into16, 24, 32
document_lock16, 24, 32
document_new16, 24, 32
document_out16, 24, 32
document_plain16, 24, 32
document_view16, 24, 32
document_warning16, 24, 32
drawing_utensils16, 24, 32, 48, 64
earth16, 24, 32, 48, 64
edit16, 24, 32, 48, 64
element_copy16, 24, 32
element_delete16, 24, 32
element_down16, 24, 32
element_new16, 24, 32
element_next16, 24, 32
element_up16, 24, 32
emergency_stop_button16, 24, 32
eraser216, 24, 32
exit16, 24, 32
erp16, 24, 32, 48, 64
error16, 24, 32
export16, 24, 32
export216, 24, 32
eye16, 24, 32
factory16, 24, 32, 48, 64
factory_into16, 24, 32, 48, 64
find16, 24, 32
fit-page16, 24, 32
fit-width16, 24, 32
floppy_disk16, 24, 32
floppy_disks16, 24, 32
folder16, 24, 32
folder_add16, 24, 32
folder_closed16, 24, 32
folder_closed_lock16, 24, 32
folder_delete16, 24, 32
folder_lock16, 24, 32
folder_out16, 24, 32
font16, 24, 32
form_clone16, 24, 32
funnel16, 24, 32
gauge216, 24, 32
gear16, 24, 32
gear_add16, 24, 32
gear_refresh16, 24, 32
gears16, 24, 32, 48, 64
gears_add16, 24, 32
gears_run16, 24, 32, 48, 64
gears_star_yellow16, 24, 32, 48, 64
go-first-view16, 24, 32
go-last-view16, 24, 32
go-next-view16, 24, 32
go-previous-view16, 24, 32
graph_edge16, 24, 32
hand_grab216, 24, 32
hand_stop16, 24, 32, 48, 64
hand_thumb_up16, 24, 32
handsaw16, 24, 32
handshake16, 24, 32, 48, 64
handshake_play16, 24, 32, 48, 64
handshake_preferences16, 24, 32, 48, 64
handshake_star_yellow16, 24, 32, 48, 64
headset16, 24, 32, 48, 64
hscales16, 24, 32
import16, 24, 32
inv16, 24, 32
inv_ok16, 24, 32
inv_unknown16, 24, 32
key216, 24, 32, 48, 64
keyboard_key16, 24, 32
keyboard_numkey16, 24, 32
knife16, 24, 32
labeler16, 24, 32, 48, 64
link16, 24, 32
lock16, 24, 32
lock_open16, 24, 32
lock_view16, 24, 32
medal16, 24, 32, 48, 64
menuopen16, 24, 32, 48, 64
minus16, 24, 32
move16, 24, 32
multibbulk16, 24, 32, 48, 64
navigate_cross16, 24, 32
office_building16, 24, 32, 48, 64
osiris16, 24, 32, 48
package16, 24, 32, 48, 64
package_new16, 24, 32
package_preferences16, 24, 32, 48, 64
packline16, 24, 32, 48, 64
packline_tool16, 24, 32, 48, 64
paint_brush16, 24, 32
palempty16, 24, 32, 48, 64
palmixed16, 24, 32, 48, 64
palmixed_warning16, 24, 32, 48, 64
palmono16, 24, 32, 48, 64
panel_tool16, 24, 32, 48, 64
paste16, 24, 32
pencil16, 24, 32
photo_landscape16, 24, 32
photo_portrait16, 24, 32
pickcart16, 24, 32, 48, 64
pickstock16, 24, 32, 48, 64
pipette16, 24, 32
plus16, 24, 32
plug_lan_forbidden16, 24, 32
plug_lan_ok16, 24, 32
preferences16, 24, 32, 48, 64
preferences_into16, 24, 32
preferences_out16, 24, 32
printer16, 24, 32, 48, 64
printer216, 24, 32, 48, 64
printer2_gear16, 24, 32, 48, 64
printer2_play16, 24, 32, 48, 64
printer2_tool16, 24, 32, 48, 64
pylon16, 24, 32
radar16, 24, 32, 48, 64
redo16, 24, 32
refresh16, 24, 32
replace216, 24, 32
rfid_chip16, 24, 32
robot_delete16, 24, 32
robot_finish16, 24, 32
robot_in16, 24, 32, 48, 64
robot_out16, 24, 32, 48, 64
robot_play16, 24, 32
robot_refresh16, 24, 32
robot_start16, 24, 32
robot_stop16, 24, 32
robots_delete16, 24, 32
robots_play16, 24, 32
robots_stop16, 24, 32
selection16, 24, 32
scales16, 24, 32, 48, 64
shape_ellipse16, 24, 32
shape_rectangle16, 24, 32
shelf16, 24, 32
shelf_empty16, 24, 32, 48, 64
shelf_empty_new16, 24, 32
shelf_empty_preferences16, 24, 32, 48, 64
shopping_basket_add16, 24, 32
shopping_basket_delete16, 24, 32
shopping_basket_empty_forbidden16, 24, 32
shopping_basket_empty_star_yellow16, 24, 32, 48, 64
shopping_basket_ok16, 24, 32
shopping_cart16, 24, 32, 48, 64
signal_flag_checkered16, 24, 32
sign_stop16, 24, 32
symbol_dollar_star_yellow16, 24, 32, 48, 64
symbol_percent16, 24, 32, 48, 64
symbol_questionmark16, 24, 32, 48, 64
table2_selection_rows16, 24, 32
table_cell16, 24, 32
table_column16, 24, 32
table_row16, 24, 32
table_row_add16, 24, 32
table_row_delete16, 24, 32
tag16, 24, 32
tarebutton16, 24, 32
text_align_center16, 24, 32
text_align_justified16, 24, 32
text_align_left16, 24, 32
text_align_right16, 24, 32
text_bold16, 24, 32
text_italics16, 24, 32
text_rich_colored16, 24, 32
text_underlined16, 24, 32
text_tree16, 24, 32
text_tree_into16, 24, 32
text_tree_out16, 24, 32
toolbox16, 24, 32
tractor_red16, 24, 32, 48, 64
trafficlight_green16, 24, 32
truck_blue16, 24, 32, 48, 64
truck_blue_clock16, 24, 32, 48, 64
truck_blue_star_yellow16, 24, 32, 48, 64
truck_red16, 24, 32
truck_red_clock16, 24, 32, 48, 64
tscales16, 24, 32
undo16, 24, 32
user16, 24, 32, 48, 64
user_add16, 24, 32
user_delete16, 24, 32
user_earth16, 24, 32, 48, 64
user_edit16, 24, 32
user_message16, 24, 32, 48, 64
users216, 24, 32, 48, 64
warning16, 24, 32, 48, 64
warning_toxic16, 24, 32, 48, 64
window_colors216, 24, 32
window_font16, 24, 32
window_gear16, 24, 32
window_next16, 24, 32
window_star16, 24, 32
window_view16, 24, 32
worker16, 24, 32
worker2_clock16, 24, 32, 48, 64
zerobutton16, 24, 32
Parameters
aNameThe name of the icon.
Returns
The icon.

◆ instance()

static BpsGui* BpsGui::instance ( )
static
Returns
The instance of the singleton BpsGui object.

◆ pixmap()

QPixmap BpsGui::pixmap ( const QString aName,
int  aSize 
)

Get one of the built in pix maps.

Parameters
aNameThe name of the image.
aSizeThe size as 16, 24, 32, 48 or 64.
Returns
Returns the standard pixmap.
See also
icon()

The documentation for this class was generated from the following file: