Singleton BpsGui object as application global. More...
#include <bpsgui.h>
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 BpsGui * | instance () |
Related Functions | |
(Note that these are not member functions.) | |
| #define | bpsGui BpsGui::instance() |
| Convenience notation for BpsGui::instance() | |
Singleton BpsGui object as application global.
| 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.
| [in] | aDatastore | Opened and checked in datastore object. |
| [in] | aTable | The table name. |
| [in] | aColumn | The column name. |
| [in] | aEdit | The 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.
| Name | Sizes | Icons |
|---|---|---|
| about | 16, 24, 32, 48, 64 |
|
| add | 16, 24, 32 |
|
| application-exit | 16, 24, 32 |
|
| application-pdf | 16, 24, 32 |
|
| arrow_left_blue | 16, 24, 32 |
|
| arrow_left_red | 16, 24, 32 |
|
| arrow_right_blue | 16, 24, 32 |
|
| arrow_right_green | 16, 24, 32 |
|
| barcode | 16, 24, 32, 48, 64 |
|
| box_white_closed | 16, 24, 32, 48, 64 |
|
| box_white_closed_preferences | 16, 24, 32, 48, 64 |
|
| box_white_closed_star_yellow | 16, 24, 32, 48, 64 |
|
| breakbulk | 16, 24, 32, 48, 64 |
|
| bug_yellow_run | 16, 24, 32 |
|
| bullet_ball_blue | 16, 24, 32 |
|
| bullet_ball_green | 16, 24, 32 |
|
| bullet_ball_grey | 16, 24, 32 |
|
| bullet_ball_red | 16, 24, 32 |
|
| bullet_ball_yellow | 16, 24, 32 |
|
| bullet_square_red | 16, 24, 32 |
|
| bullet_triangle_blue | 16, 24, 32 |
|
| bullet_triangle_green | 16, 24, 32 |
|
| businessman | 16, 24, 32 |
|
| cabinet_open | 16, 24, 32, 48, 64 |
|
| calendar | 16, 24, 32 |
|
| chart_dot | 16, 24, 32, 48, 64 |
|
| chartpie | 16, 24, 32, 48, 64 |
|
| check | 16, 24, 32 |
|
| checkbox | 16, 24, 32 |
|
| checkbox_unchecked | 16, 24, 32 |
|
| cloud | 16, 24, 32 |
|
| construction_barrier | 16, 24, 32 |
|
| containership_star_yellow | 16, 24, 32, 48, 64 |
|
| control_panel | 16, 24, 32, 48, 64 |
|
| control_panel2 | 16, 24, 32, 48, 64 |
|
| copy | 16, 24, 32 |
|
| correction_fluid | 16, 24, 32 |
|
| cubes_star_yellow | 16, 24, 32, 48, 64 |
|
| cut | 16, 24, 32 |
|
| data_into | 16, 24, 32 |
|
| data_out | 16, 24, 32 |
|
| delete | 16, 24, 32 |
|
| document | 16, 24, 32 |
|
| document_add | 16, 24, 32 |
|
| document_attachment | 16, 24, 32 |
|
| document_delete | 16, 24, 32 |
|
| document_edit | 16, 24, 32 |
|
| document_into | 16, 24, 32 |
|
| document_lock | 16, 24, 32 |
|
| document_new | 16, 24, 32 |
|
| document_out | 16, 24, 32 |
|
| document_plain | 16, 24, 32 |
|
| document_view | 16, 24, 32 |
|
| document_warning | 16, 24, 32 |
|
| drawing_utensils | 16, 24, 32, 48, 64 |
|
| earth | 16, 24, 32, 48, 64 |
|
| edit | 16, 24, 32, 48, 64 |
|
| element_delete | 16, 24, 32 |
|
| element_down | 16, 24, 32 |
|
| element_new | 16, 24, 32 |
|
| element_up | 16, 24, 32 |
|
| eraser2 | 16, 24, 32 |
|
| exit | 16, 24, 32 |
|
| error | 16, 24, 32 |
|
| export | 16, 24, 32 |
|
| export2 | 16, 24, 32 |
|
| eye | 16, 24, 32 |
|
| factory | 16, 24, 32, 48, 64 |
|
| factory_into | 16, 24, 32, 48, 64 |
|
| find | 16, 24, 32 |
|
| fit-page | 16, 24, 32 |
|
| fit-width | 16, 24, 32 |
|
| floppy_disk | 16, 24, 32 |
|
| floppy_disks | 16, 24, 32 |
|
| folder | 16, 24, 32 |
|
| folder_add | 16, 24, 32 |
|
| folder_closed | 16, 24, 32 |
|
| folder_closed_lock | 16, 24, 32 |
|
| folder_delete | 16, 24, 32 |
|
| folder_lock | 16, 24, 32 |
|
| folder_out | 16, 24, 32 |
|
| font | 16, 24, 32 |
|
| form_clone | 16, 24, 32 |
|
| funnel | 16, 24, 32 |
|
| gauge2 | 16, 24, 32 |
|
| gears_run | 16, 24, 32, 48, 64 |
|
| go-first-view | 16, 24, 32 |
|
| go-last-view | 16, 24, 32 |
|
| go-next-view | 16, 24, 32 |
|
| go-previous-view | 16, 24, 32 |
|
| graph_edge | 16, 24, 32 |
|
| hand_grab2 | 16, 24, 32 |
|
| hand_stop | 16, 24, 32, 48, 64 |
|
| hand_thumb_up | 16, 24, 32 | |
| handshake | 16, 24, 32, 48, 64 |
|
| handshake_play | 16, 24, 32, 48, 64 |
|
| handshake_preferences | 16, 24, 32, 48, 64 |
|
| handshake_star_yellow | 16, 24, 32, 48, 64 |
|
| hscales | 16, 24, 32 |
|
| import | 16, 24, 32 |
|
| key2 | 16, 24, 32, 48, 64 |
|
| keyboard_key | 16, 24, 32 |
|
| keyboard_numkey | 16, 24, 32 |
|
| knife | 16, 24, 32 |
|
| labeler | 16, 24, 32, 48, 64 |
|
| link | 16, 24, 32 |
|
| lock | 16, 24, 32 |
|
| lock_open | 16, 24, 32 |
|
| minus | 16, 24, 32 |
|
| move | 16, 24, 32 |
|
| navigate_cross | 16, 24, 32 |
|
| office_building | 16, 24, 32, 48, 64 |
|
| package | 16, 24, 32, 48, 64 |
|
| package_preferences | 16, 24, 32, 48, 64 |
|
| packline | 16, 24, 32, 48, 64 |
|
| packline_tool | 16, 24, 32, 48, 64 |
|
| palempty | 16, 24, 32, 48, 64 |
|
| palmixed | 16, 24, 32, 48, 64 |
|
| palmono | 16, 24, 32, 48, 64 |
|
| panel_tool | 16, 24, 32, 48, 64 |
|
| paste | 16, 24, 32 |
|
| pencil | 16, 24, 32 |
|
| photo_landscape | 16, 24, 32 |
|
| photo_portrait | 16, 24, 32 |
|
| pickcart | 16, 24, 32, 48, 64 |
|
| pickstock | 16, 24, 32, 48, 64 |
|
| plus | 16, 24, 32 |
|
| preferences | 16, 24, 32, 48, 64 |
|
| preferences_into | 16, 24, 32 |
|
| preferences_out | 16, 24, 32 |
|
| printer | 16, 24, 32, 48, 64 |
|
| printer2 | 16, 24, 32, 48, 64 |
|
| printer2_gear | 16, 24, 32, 48, 64 |
|
| printer2_play | 16, 24, 32, 48, 64 |
|
| printer2_tool | 16, 24, 32, 48, 64 |
|
| pylon | 16, 24, 32 |
|
| radar | 16, 24, 32, 48, 64 |
|
| redo | 16, 24, 32 |
|
| refresh | 16, 24, 32 |
|
| replace2 | 16, 24, 32 |
|
| rfid_chip | 16, 24, 32 |
|
| robot_delete | 16, 24, 32 |
|
| robot_play | 16, 24, 32 |
|
| robot_refresh | 16, 24, 32 |
|
| robot_stop | 16, 24, 32 |
|
| robots_delete | 16, 24, 32 |
|
| robots_play | 16, 24, 32 |
|
| robots_stop | 16, 24, 32 |
|
| selection | 16, 24, 32 |
|
| scales | 16, 24, 32, 48, 64 |
|
| shape_ellipse | 16, 24, 32 |
|
| shape_rectangle | 16, 24, 32 |
|
| shelf | 16, 24, 32 |
|
| shelf_empty | 16, 24, 32, 48, 64 |
|
| shelf_empty_new | 16, 24, 32 |
|
| shelf_empty_preferences | 16, 24, 32, 48, 64 |
|
| shopping_basket_empty_star_yellow | 16, 24, 32, 48, 64 |
|
| shopping_cart | 16, 24, 32, 48, 64 |
|
| signal_flag_checkered | 16, 24, 32 |
|
| sign_stop | 16, 24, 32 |
|
| symbol_dollar_star_yellow | 16, 24, 32, 48, 64 |
|
| symbol_percent | 16, 24, 32, 48, 64 |
|
| symbol_questionmark | 16, 24, 32, 48, 64 |
|
| table_cell | 16, 24, 32 |
|
| table_column | 16, 24, 32 |
|
| table_row | 16, 24, 32 |
|
| table_row_add | 16, 24, 32 |
|
| table_row_delete | 16, 24, 32 |
|
| tarebutton | 16, 24, 32 |
|
| text_align_center | 16, 24, 32 |
|
| text_align_justified | 16, 24, 32 |
|
| text_align_left | 16, 24, 32 |
|
| text_align_right | 16, 24, 32 |
|
| text_bold | 16, 24, 32 |
|
| text_italics | 16, 24, 32 |
|
| text_rich_colored | 16, 24, 32 |
|
| text_underlined | 16, 24, 32 |
|
| text_tree | 16, 24, 32 |
|
| text_tree_into | 16, 24, 32 |
|
| text_tree_out | 16, 24, 32 |
|
| toolbox | 16, 24, 32 |
|
| trafficlight_green | 16, 24, 32 |
|
| truck_blue | 16, 24, 32, 48, 64 |
|
| truck_blue_clock | 16, 24, 32, 48, 64 |
|
| truck_blue_star_yellow | 16, 24, 32, 48, 64 |
|
| truck_red | 16, 24, 32 |
|
| truck_red_clock | 16, 24, 32, 48, 64 |
|
| tscales | 16, 24, 32 |
|
| undo | 16, 24, 32 |
|
| user | 16, 24, 32, 48, 64 |
|
| user_message | 16, 24, 32, 48, 64 |
|
| users2 | 16, 24, 32, 48, 64 |
|
| window_colors2 | 16, 24, 32 |
|
| window_font | 16, 24, 32 |
|
| window_gear | 16, 24, 32 |
|
| window_next | 16, 24, 32 |
|
| window_star | 16, 24, 32 |
|
| window_view | 16, 24, 32 |
|
| worker2_clock | 16, 24, 32, 48, 64 |
|
| zerobutton | 16, 24, 32 |
|
| [in] | aName | The name of the icon. |
| QPixmap BpsGui::pixmap | ( | const QString & | aName, |
| int | aSize | ||
| ) |
Get one of the built in pix maps.
| [in] | aName | The name of the image. |
| [in] | aSize | The size as 16, 24, 32, 48 or 64. |