-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize qml structure and add boson-specific controls
- Loading branch information
Showing
18 changed files
with
430 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#ifndef BOSONVARIATION_TYPES_H | ||
#define BOSONVARIATION_TYPES_H | ||
|
||
#include <QQmlComponent> | ||
#include <QMetaType> | ||
|
||
extern "C" { | ||
#include "boson_sdk/ReturnCodes.h" | ||
#include "boson_sdk/EnumTypes.h" | ||
} | ||
|
||
#define QML_ENUM(name, storageType, ...)\ | ||
enum class name : storageType {\ | ||
__VA_ARGS__\ | ||
};\ | ||
class QE_##name {\ | ||
Q_GADGET\ | ||
Q_ENUMS(E)\ | ||
public:\ | ||
enum class E : storageType {\ | ||
__VA_ARGS__\ | ||
};\ | ||
}; | ||
|
||
namespace FLR { | ||
|
||
QML_ENUM(COLORLUT_ID_E, int32_t, \ | ||
FLR_COLORLUT_WHITEHOT, \ | ||
FLR_COLORLUT_BLACKHOT, \ | ||
FLR_COLORLUT_REDHOT, \ | ||
FLR_COLORLUT_RAINBOW, \ | ||
FLR_COLORLUT_IRONBOW, \ | ||
FLR_COLORLUT_LAVA, \ | ||
FLR_COLORLUT_ARCTIC, \ | ||
FLR_COLORLUT_GLOBOW, \ | ||
FLR_COLORLUT_GRADEDFIRE, \ | ||
FLR_COLORLUT_INSTALERT, \ | ||
) | ||
|
||
} | ||
void registerBosonVariationQmlTypes(); | ||
|
||
#endif // BOSONVARIATION_TYPES_H |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import QtQuick 2.0 | ||
import QtQuick.Controls 2.0 | ||
import GetThermal 1.0 | ||
import "qrc:/boson" | ||
|
||
Page { | ||
id: root | ||
clip: true | ||
|
||
width: 220 | ||
height: 480 | ||
|
||
property UvcAcquisition acq: null | ||
|
||
header: TabBar { | ||
id: tabBar | ||
currentIndex: swipeView.currentIndex | ||
|
||
TabButton { | ||
text: qsTr("Vid") | ||
} | ||
|
||
TabButton { | ||
text: qsTr("Info") | ||
} | ||
} | ||
|
||
SwipeView { | ||
id: swipeView | ||
x: 0 | ||
y: 40 | ||
currentIndex: tabBar.currentIndex | ||
anchors.fill: parent | ||
|
||
VidControls { | ||
id: vidControls1 | ||
anchors.bottom: parent.bottom | ||
anchors.left: parent.left | ||
anchors.top: parent.top | ||
acq: root.acq | ||
} | ||
|
||
InfoControls { | ||
id: infoControls1 | ||
anchors.bottom: parent.bottom | ||
anchors.left: vidControls1.right | ||
anchors.top: parent.top | ||
acq: root.acq | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import QtQuick 2.0 | ||
import QtQuick.Controls 2.0 | ||
import GetThermal 1.0 | ||
|
||
Item { | ||
id: root | ||
width: 200 | ||
property UvcAcquisition acq: null | ||
|
||
GroupBox { | ||
id: groupBox1 | ||
clip: true | ||
|
||
anchors.margins: 5 | ||
anchors.fill: parent | ||
title: qsTr("FLIR Boson") | ||
|
||
Grid { | ||
id: grid | ||
|
||
columns: 1 | ||
rows: 8 | ||
anchors.fill: parent | ||
spacing: 10 | ||
flow: Grid.TopToBottom | ||
|
||
Label { | ||
text: qsTr("Sensor PN: ") + acq.cci.sensorPartNumber | ||
} | ||
|
||
Label { | ||
text: qsTr("Sensor SN: ") + acq.cci.sensorSerialNumber | ||
} | ||
|
||
Label { | ||
text: qsTr("Cam PN: ") + acq.cci.cameraPartNumber | ||
} | ||
|
||
Label { | ||
text: qsTr("Cam SN: ") + acq.cci.cameraSerialNumber | ||
} | ||
|
||
Label { | ||
text: qsTr("Software: ") + acq.cci.softwareRev | ||
} | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.