Documents > BPS V2 C++ API

Singleton BpsGui object as application global. More...

#include <bpsgui.h>

List of all members.

Public Member Functions

void applyValidator (BpsDatastore *aDatastore, const QString &aTable, const QString &aColumn, QLineEdit *aEdit)
 Apply constraints to a line edit control.
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.

Static Public Member Functions

static BpsGuiinstance ()

Related Functions

(Note that these are not member functions.)

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

Detailed Description

Singleton BpsGui object as application global.


Member Function Documentation

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:
[in]aDatastoreOpened and checked in datastore object.
[in]aTableThe table name.
[in]aColumnThe column name.
[in]aEditThe edit control to apply validator or mask to.
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
about_16.png
add16, 24, 32
add_16.png
application-exit16, 24, 32
application-exit_16.png
application-pdf16, 24, 32
application-pdf_16.png
arrow_left_blue16, 24, 32
arrow_left_blue_16.png
arrow_left_red16, 24, 32
arrow_left_red_16.png
arrow_right_blue16, 24, 32
arrow_right_blue_16.png
arrow_right_green16, 24, 32
arrow_right_green_16.png
barcode16, 24, 32, 48, 64
barcode_16.png
box_white_closed16, 24, 32, 48, 64
box_white_closed_16.png
box_white_closed_preferences16, 24, 32, 48, 64
box_white_closed_preferences_16.png
box_white_closed_star_yellow16, 24, 32, 48, 64
box_white_closed_star_yellow_16.png
breakbulk16, 24, 32, 48, 64
breakbulk_16.png
bug_yellow_run16, 24, 32
bug_yellow_run_16.png
bullet_ball_blue16, 24, 32
bullet_ball_blue_16.png
bullet_ball_green16, 24, 32
bullet_ball_green_16.png
bullet_ball_grey16, 24, 32
bullet_ball_grey_16.png
bullet_ball_red16, 24, 32
bullet_ball_red_16.png
bullet_ball_yellow16, 24, 32
bullet_ball_yellow_16.png
bullet_square_red16, 24, 32
bullet_square_red_16.png
bullet_triangle_blue16, 24, 32
bullet_triangle_blue_16.png
bullet_triangle_green16, 24, 32
bullet_triangle_green_16.png
businessman16, 24, 32
businessman_16.png
cabinet_open16, 24, 32, 48, 64
cabinet_open_16.png
calendar16, 24, 32
calendar_16.png
chart_dot16, 24, 32, 48, 64
chart_dot_16.png
chartpie16, 24, 32, 48, 64
chartpie_16.png
check16, 24, 32
check_16.png
checkbox16, 24, 32
checkbox_16.png
checkbox_unchecked16, 24, 32
checkbox_unchecked_16.png
cloud16, 24, 32
cloud_16.png
construction_barrier16, 24, 32
construction_barrier_16.png
containership_star_yellow16, 24, 32, 48, 64
containership_star_yellow_16.png
control_panel16, 24, 32, 48, 64
control_panel_16.png
control_panel216, 24, 32, 48, 64
control_panel2_16.png
copy16, 24, 32
copy_16.png
correction_fluid16, 24, 32
correction_fluid_16.png
cubes_star_yellow16, 24, 32, 48, 64
cubes_star_yellow_16.png
cut16, 24, 32
cut_16.png
data_into16, 24, 32
data_into_16.png
data_out16, 24, 32
data_out_16.png
delete16, 24, 32
delete_16.png
document16, 24, 32
document_16.png
document_add16, 24, 32
document_add_16.png
document_attachment16, 24, 32
document_attachment_16.png
document_delete16, 24, 32
document_delete_16.png
document_edit16, 24, 32
document_edit_16.png
document_into16, 24, 32
document_into_16.png
document_lock16, 24, 32
document_lock_16.png
document_new16, 24, 32
document_new_16.png
document_out16, 24, 32
document_out_16.png
document_plain16, 24, 32
document_plain_16.png
document_view16, 24, 32
document_view_16.png
document_warning16, 24, 32
document_warning_16.png
drawing_utensils16, 24, 32, 48, 64
drawing_utensils_16.png
earth16, 24, 32, 48, 64
earth_16.png
edit16, 24, 32, 48, 64
edit_16.png
element_delete16, 24, 32
element_delete_16.png
element_down16, 24, 32
element_down_16.png
element_new16, 24, 32
element_new_16.png
element_up16, 24, 32
element_up_16.png
eraser216, 24, 32
eraser2_16.png
exit16, 24, 32
exit_16.png
error16, 24, 32
error_16.png
export16, 24, 32
export_16.png
export216, 24, 32
export2_16.png
eye16, 24, 32
eye_16.png
factory16, 24, 32, 48, 64
factory_16.png
factory_into16, 24, 32, 48, 64
factory_into_16.png
find16, 24, 32
find_16.png
fit-page16, 24, 32
fit-page_16.png
fit-width16, 24, 32
fit-width_16.png
floppy_disk16, 24, 32
floppy_disk_16.png
floppy_disks16, 24, 32
floppy_disks_16.png
folder16, 24, 32
folder_16.png
folder_add16, 24, 32
folder_add_16.png
folder_closed16, 24, 32
folder_closed_16.png
folder_closed_lock16, 24, 32
folder_closed_lock_16.png
folder_delete16, 24, 32
folder_delete_16.png
folder_lock16, 24, 32
folder_lock_16.png
folder_out16, 24, 32
folder_out_16.png
font16, 24, 32
font_16.png
form_clone16, 24, 32
form_clone_16.png
funnel16, 24, 32
funnel_16.png
gauge216, 24, 32
gauge2_16.png
gears_run16, 24, 32, 48, 64
gears_run_16.png
go-first-view16, 24, 32
go-first-view_16.png
go-last-view16, 24, 32
go-last-view_16.png
go-next-view16, 24, 32
go-next-view_16.png
go-previous-view16, 24, 32
go-previous-view_16.png
graph_edge16, 24, 32
graph_edge_16.png
hand_grab216, 24, 32
hand_grab2_16.png
hand_stop16, 24, 32, 48, 64
hand_stop_16.png
hand_thumb_up16, 24, 32
hand_thumb_up_16.png
handshake16, 24, 32, 48, 64
handshake_16.png
handshake_play16, 24, 32, 48, 64
handshake_play_16.png
handshake_preferences16, 24, 32, 48, 64
handshake_preferences_16.png
handshake_star_yellow16, 24, 32, 48, 64
handshake_star_yellow_16.png
hscales16, 24, 32
hscales_16.png
import16, 24, 32
import_16.png
key216, 24, 32, 48, 64
key2_16.png
keyboard_key16, 24, 32
keyboard_key_16.png
keyboard_numkey16, 24, 32
keyboard_numkey_16.png
knife16, 24, 32
knife_16.png
labeler16, 24, 32, 48, 64
labeler_16.png
link16, 24, 32
link_16.png
lock16, 24, 32
lock_16.png
lock_open16, 24, 32
lock_open_16.png
minus16, 24, 32
minus_16.png
move16, 24, 32
move_16.png
navigate_cross16, 24, 32
navigate_cross_16.png
office_building16, 24, 32, 48, 64
office_building_16.png
package16, 24, 32, 48, 64
package_16.png
package_preferences16, 24, 32, 48, 64
package_preferences_16.png
packline16, 24, 32, 48, 64
packline_16.png
packline_tool16, 24, 32, 48, 64
packline_tool_16.png
palempty16, 24, 32, 48, 64
palempty_16.png
palmixed16, 24, 32, 48, 64
palmixed_16.png
palmono16, 24, 32, 48, 64
palmono_16.png
panel_tool16, 24, 32, 48, 64
panel_tool_16.png
paste16, 24, 32
paste_16.png
pencil16, 24, 32
pencil_16.png
photo_landscape16, 24, 32
photo_landscape_16.png
photo_portrait16, 24, 32
photo_portrait_16.png
pickcart16, 24, 32, 48, 64
pickcart_16.png
pickstock16, 24, 32, 48, 64
pickstock_16.png
plus16, 24, 32
plus_16.png
preferences16, 24, 32, 48, 64
preferences_16.png
preferences_into16, 24, 32
preferences_into_16.png
preferences_out16, 24, 32
preferences_out_16.png
printer16, 24, 32, 48, 64
printer_16.png
printer216, 24, 32, 48, 64
printer2_16.png
printer2_gear16, 24, 32, 48, 64
printer2_gear_16.png
printer2_play16, 24, 32, 48, 64
printer2_play_16.png
printer2_tool16, 24, 32, 48, 64
printer2_tool_16.png
pylon16, 24, 32
pylon_16.png
radar16, 24, 32, 48, 64
radar_16.png
redo16, 24, 32
redo_16.png
refresh16, 24, 32
refresh_16.png
replace216, 24, 32
replace2_16.png
rfid_chip16, 24, 32
rfid_chip_16.png
robot_delete16, 24, 32
robot_delete_16.png
robot_play16, 24, 32
robot_play_16.png
robot_refresh16, 24, 32
robot_refresh_16.png
robot_stop16, 24, 32
robot_stop_16.png
robots_delete16, 24, 32
robots_delete_16.png
robots_play16, 24, 32
robots_play_16.png
robots_stop16, 24, 32
robots_stop_16.png
selection16, 24, 32
selection_16.png
scales16, 24, 32, 48, 64
scales_16.png
shape_ellipse16, 24, 32
shape_ellipse_16.png
shape_rectangle16, 24, 32
shape_rectangle_16.png
shelf16, 24, 32
shelf_16.png
shelf_empty16, 24, 32, 48, 64
shelf_empty_16.png
shelf_empty_new16, 24, 32
shelf_empty_new_16.png
shelf_empty_preferences16, 24, 32, 48, 64
shelf_empty_preferences_16.png
shopping_basket_empty_star_yellow16, 24, 32, 48, 64
shopping_basket_empty_star_yellow_16.png
shopping_cart16, 24, 32, 48, 64
shopping_cart_16.png
signal_flag_checkered16, 24, 32
signal_flag_checkered_16.png
sign_stop16, 24, 32
sign_stop_16.png
symbol_dollar_star_yellow16, 24, 32, 48, 64
symbol_dollar_star_yellow_16.png
symbol_percent16, 24, 32, 48, 64
symbol_percent_16.png
symbol_questionmark16, 24, 32, 48, 64
symbol_questionmark_16.png
table_cell16, 24, 32
table_cell_16.png
table_column16, 24, 32
table_column_16.png
table_row16, 24, 32
table_row_16.png
table_row_add16, 24, 32
table_row_add_16.png
table_row_delete16, 24, 32
table_row_delete_16.png
tarebutton16, 24, 32
tarebutton_16.png
text_align_center16, 24, 32
text_align_center_16.png
text_align_justified16, 24, 32
text_align_justified_16.png
text_align_left16, 24, 32
text_align_left_16.png
text_align_right16, 24, 32
text_align_right_16.png
text_bold16, 24, 32
text_bold_16.png
text_italics16, 24, 32
text_italics_16.png
text_rich_colored16, 24, 32
text_rich_colored_16.png
text_underlined16, 24, 32
text_underlined_16.png
text_tree16, 24, 32
text_tree_16.png
text_tree_into16, 24, 32
text_tree_into_16.png
text_tree_out16, 24, 32
text_tree_out_16.png
toolbox16, 24, 32
toolbox_16.png
trafficlight_green16, 24, 32
trafficlight_green_16.png
truck_blue16, 24, 32, 48, 64
truck_blue_16.png
truck_blue_clock16, 24, 32, 48, 64
truck_blue_clock_16.png
truck_blue_star_yellow16, 24, 32, 48, 64
truck_blue_star_yellow_16.png
truck_red16, 24, 32
truck_red_16.png
truck_red_clock16, 24, 32, 48, 64
truck_red_clock_16.png
tscales16, 24, 32
tscales_16.png
undo16, 24, 32
undo_16.png
user16, 24, 32, 48, 64
user_16.png
user_message16, 24, 32, 48, 64
user_message_16.png
users216, 24, 32, 48, 64
users2_16.png
window_colors216, 24, 32
window_colors2_16.png
window_font16, 24, 32
window_font_16.png
window_gear16, 24, 32
window_gear_16.png
window_next16, 24, 32
window_next_16.png
window_star16, 24, 32
window_star_16.png
window_view16, 24, 32
window_view_16.png
worker2_clock16, 24, 32, 48, 64
worker2_clock_16.png
zerobutton16, 24, 32
zerobutton_16.png
Parameters:
[in]aNameThe name of the icon.
Returns:
The icon.
static BpsGui* BpsGui::instance ( ) [static]
Returns:
The instance of the singleton BpsGui object.
QPixmap BpsGui::pixmap ( const QString &  aName,
int  aSize 
)

Get one of the built in pix maps.

Parameters:
[in]aNameThe name of the image.
[in]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: