19 #ifndef _OPTICSDATAMAPPER_HPP_ 20 #define _OPTICSDATAMAPPER_HPP_ 25 class Ui_OpticsWidget;
34 OpticsDataMapper(Ui_OpticsWidget *aWidget, QMap<QString, QSqlTableModel *> tableModels, QObject *parent = 0);
38 void apertureChanged();
39 void deleteSelectedOptic();
40 void focalLengthChanged();
41 void hFlipChanged(
int state);
42 void insertNewOptic();
43 void lightTransmissionChanged();
45 void opticSelected(
const QModelIndex &index);
46 void typeChanged(
const QString &newValue);
48 void vFlipChanged(
int state);
51 QSqlRecord currentRecord();
52 void populateFormWithIndex(
const QModelIndex &index);
53 void setupConnections();
54 void teardownConnections();
57 int lastRowNumberSelected;
58 QSqlTableModel *tableModel;
59 QSqlTableModel *typeTableModel;
60 Ui_OpticsWidget *widget;
64 #endif // _OPTICSDATAMAPPER_HPP_