4 #ifndef BPSTABLEFIELD_H
5 #define BPSTABLEFIELD_H
285 virtual QVariant defaultValue()
const;
317 virtual QVariant defaultValue()
const;
349 virtual QVariant defaultValue()
const;
380 virtual QVariant defaultValue()
const;
410 virtual QVariant defaultValue()
const;
442 virtual QVariant defaultValue()
const;
473 virtual QVariant defaultValue()
const;
519 virtual QVariant defaultValue()
const;
552 virtual QVariant defaultValue()
const;
582 virtual QVariant defaultValue()
const;
709 virtual QVariant defaultValue()
const;
#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
QPair< QVariant, QString > BpsComboBoxOption
Single option used with BpsComboBoxField.
Definition: bpstablefield.h:484
QList< BpsComboBoxOption > BpsComboBoxOptions
List of options to be used with BpsComboBoxField.
Definition: bpstablefield.h:490
Table field to edit or select an article.
Definition: bpstablefield.h:753
BpsArticleInputField(const QString &aHeader, const QString &aColumn)
Table field to be handled by a bar code type combo box.
Definition: bpstablefield.h:565
BpsBarcodeComboBoxField(const QString &aHeader, const QString &aColumn)
Table field to be handled by a dual-state check box.
Definition: bpstablefield.h:260
BpsCheckBoxField(const QString &aHeader, const QString &aColumn, const QString &aUnchecked, const QString &aUncheckedDisplay, const QString &aChecked, const QString &aCheckedDisplay)
Table field to be handled by a standard color combo box.
Definition: bpstablefield.h:534
BpsColorComboBoxField(const QString &aHeader, const QString &aColumn)
Table field to be handled by a combo box with fixed list of dropdown values.
Definition: bpstablefield.h:497
BpsComboBoxField(const QString &aHeader, const QString &aColumn, const BpsComboBoxOptions &aOptions)
Table field to be handled as a CRON schedule definition.
Definition: bpstablefield.h:692
BpsCronEditField(const QString &aHeader, const QString &aColumn)
Table field to be handled by a date/time edit, with support for BPS validator settings.
Definition: bpstablefield.h:392
BpsDateTimeField(const QString &aHeader, const QString &aColumn)
Table field for images, where the image is stores in a byte array as JPG or PNG file.
Definition: bpstablefield.h:821
BpsImageField(const QString &aHeader, const QString &aColumn, const QSize &aThumbSize)
Table field to be handled by a line edit, with support for BPS masks.
Definition: bpstablefield.h:298
BpsLineEditField(const QString &aHeader, const QString &aColumn, QVariant::Type aType=QVariant::String)
Table field for date or date/time values handled by a line edit.
Definition: bpstablefield.h:424
BpsNvlDateTimeField(const QString &aHeader, const QString &aColumn)
Table field to be handled by a line edit, with support for BPS masks.
Definition: bpstablefield.h:330
BpsPincodeField(const QString &aHeader, const QString &aColumn, QVariant::Type aType=QVariant::String)
Table field to be handled by a external editor.
Definition: bpstablefield.h:231
BpsSpecialField(const QString &aHeader, const QString &aColumn)
Table field to be handled by a spin box, with support for min/max settings.
Definition: bpstablefield.h:455
BpsSpinBoxField(const QString &aHeader, const QString &aColumn)
Abstract base class for table fields.
Definition: bpstablefield.h:24
BpsTableField(const QString &aHeader, const QString &aColumn)
Construct a regular field which is displayed in the view attached to the model.
void setIsEditable(bool aIsEditable)
Enable / disable editing of a field.
virtual QWidget * createEditor(QWidget *aParent=nullptr)=0
Create an editor for the delegate.
void setDecimalPlaces(int aDecPlaces)
Set number of decimal places to display for numeric values.
void setAlignment(Qt::Alignment aAlignment)
Set the display alignment of the field.
virtual QVariant imp(const QVariant &aValue)
Import a value, for example from paste.
QString displayedColumn() const
BpsTableField(const BpsTableField &aOther)
Copy constructor.
virtual BpsTableField * clone() const =0
Clone the object, e.g.
virtual void setEditorData(QWidget *aEditor, const QVariant &aValue)=0
Set editor data from model data.
QVariantMap getSettings(const QStringList &aNames) const
Get validator settings for a number of fields.
virtual QVariant decoration(BpsTableItem *aItem) const
void editorDataChanged(const QString &aColumn, const QVariant &aValue)
Signal emitted whenever an editor created by the field object changes the edited data.
virtual QVariant editorData(QWidget *aEditor) const =0
Get the current editor data.
void setDisplayedColumn(const QString &aColumn)
Set an alternate column to fetch for display.
virtual QVariant exp(const QVariant &aValue)
Export a value, for example for cut/copy.
Qt::Alignment alignment() const
QString wholeColumn() const
virtual QVariant defaultValue() const
int decimalPlaces() const
Maximum number of decimal places to show for numeric values.
void setSortRole(int aRole)
Set a custom sort role for this field.
virtual QVariant display(BpsTableItem *aItem) const
Get the display data for the item.
Database table descriptor.
Definition: bpstable.h:19
Items used by BpsTableModel.
Definition: bpstableitem.h:18
Table field to be handled by a text edit.
Definition: bpstablefield.h:362
BpsTextEditField(const QString &aHeader, const QString &aColumn)