-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPropertiesWidget.h
37 lines (26 loc) · 1.06 KB
/
PropertiesWidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef PROPERTIESWIDGET_H
#define PROPERTIESWIDGET_H
#include <boost/shared_ptr.hpp>
#include "ui_PropertiesWidgetForm.h"
#include <ChimeraTK/RegisterInfo.h>
#include <QWidget>
class PropertiesWidget : public QWidget {
// Q_OBJECT
public:
PropertiesWidget(QWidget* parent);
void clearFields();
Ui::PropertiesWidgetForm ui;
void updateRegisterInfo(const ChimeraTK::RegisterInfo& registerInfo);
/// Clear the red cells of the data display widget after writing
void clearDataWidgetBackground();
protected:
// Numerical addressed -only methods of the interface
void setFixedPointInfo(int width, int nFracBits, bool signedFlag, unsigned int nDimensions);
void setAddress(int bar, int address, int sizeInBytes);
// other internal methods to avoid screens of unstructured code...
void setShape(unsigned int nDimensions, unsigned int nChannels, unsigned int nElements);
void setType(ChimeraTK::DataDescriptor const& dataDescriptor);
void setOneDWidgetsVisible(bool visible);
void setTwoDWidgetsVisible(bool visible);
};
#endif // PROPERTIESWIDGET_H