Skip to content

Commit 9374ec8

Browse files
authored
Merge pull request #72 from introlab/dev
Main merge for 1.1.1 release
2 parents 9892d56 + 31cd9ae commit 9374ec8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5637
-1432
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cmake_policy(SET CMP0043 NEW)
1717
# Software version
1818
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
1919
SET(CPACK_PACKAGE_VERSION_MINOR "1")
20-
SET(CPACK_PACKAGE_VERSION_PATCH "0")
20+
SET(CPACK_PACKAGE_VERSION_PATCH "1")
2121
SET(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
2222
add_definitions(-DOPENTERAPLUS_VERSION="${CPACK_PACKAGE_VERSION}" )
2323
add_definitions(-DOPENTERAPLUS_VERSION_MAJOR="${CPACK_PACKAGE_VERSION_MAJOR}" )

client/resources/TeraClient.qrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,7 @@
132132
<file>icons/project_new.png</file>
133133
<file>translations/openteraplus_en.qm</file>
134134
<file>translations/openteraplus_fr.qm</file>
135+
<file>icons/test_type.png</file>
136+
<file>icons/qr.png</file>
135137
</qresource>
136138
</RCC>

client/resources/icons/qr.png

4.1 KB
Loading

client/resources/icons/test.png

-27.1 KB
Loading
29.9 KB
Loading

client/resources/translations/openteraplus_en.ts

Lines changed: 940 additions & 669 deletions
Large diffs are not rendered by default.

client/resources/translations/openteraplus_fr.ts

Lines changed: 929 additions & 668 deletions
Large diffs are not rendered by default.

client/src/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ set(headers
6464
editors/UserGroupWidget.h
6565
editors/ServiceWidget.h
6666
editors/ServiceConfigWidget.h
67+
editors/TestTypeWidget.h
6768
# Wizards
6869
wizards/UserWizard.h
6970
wizards/BaseWizard.h
@@ -98,6 +99,8 @@ set(headers
9899
widgets/DashboardWidget.h
99100
widgets/AssetsWidget.h
100101
widgets/ResultMessageWidget.h
102+
widgets/TestsWidget.h
103+
widgets/QRWidget.h
101104
# Kits
102105
kit/KitConfigDialog.h
103106
kit/KitConfigManager.h
@@ -160,6 +163,7 @@ set(srcs
160163
editors/UserGroupWidget.cpp
161164
editors/ServiceWidget.cpp
162165
editors/ServiceConfigWidget.cpp
166+
editors/TestTypeWidget.cpp
163167
# Wizards
164168
wizards/UserWizard.cpp
165169
wizards/BaseWizard.cpp
@@ -193,6 +197,8 @@ set(srcs
193197
widgets/DashboardWidget.cpp
194198
widgets/AssetsWidget.cpp
195199
widgets/ResultMessageWidget.cpp
200+
widgets/TestsWidget.cpp
201+
widgets/QRWidget.cpp
196202
# Kits
197203
kit/KitConfigDialog.cpp
198204
kit/KitConfigManager.cpp
@@ -235,6 +241,7 @@ SET(uis
235241
editors/UserGroupWidget.ui
236242
editors/ServiceWidget.ui
237243
editors/ServiceConfigWidget.ui
244+
editors/TestTypeWidget.ui
238245
# Services
239246
services/VideoRehabService/VideoRehabWidget.ui
240247
services/VideoRehabService/VideoRehabSetupWidget.ui
@@ -252,6 +259,7 @@ SET(uis
252259
widgets/DashboardWidget.ui
253260
widgets/AssetsWidget.ui
254261
widgets/ResultMessageWidget.ui
262+
widgets/TestsWidget.ui
255263
# Kits
256264
kit/KitConfigDialog.ui
257265
kit/KitInSessionDialog.ui

client/src/dialogs/LoginDialog.ui

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ QGroupBox#grpLogos{background-color:rgba(200,200,200,200);}
151151
<font>
152152
<family>10px Arial</family>
153153
<pointsize>10</pointsize>
154-
<weight>75</weight>
155154
<italic>false</italic>
156155
<bold>true</bold>
157156
</font>
@@ -179,7 +178,6 @@ QGroupBox#grpLogos{background-color:rgba(200,200,200,200);}
179178
<font>
180179
<family>10px Arial</family>
181180
<pointsize>10</pointsize>
182-
<weight>75</weight>
183181
<italic>false</italic>
184182
<bold>true</bold>
185183
</font>
@@ -195,7 +193,6 @@ QGroupBox#grpLogos{background-color:rgba(200,200,200,200);}
195193
<font>
196194
<family>10px Arial</family>
197195
<pointsize>10</pointsize>
198-
<weight>75</weight>
199196
<italic>false</italic>
200197
<bold>true</bold>
201198
</font>

client/src/editors/DataListWidget.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "editors/UserGroupWidget.h"
1111
#include "editors/ServiceWidget.h"
1212
#include "editors/ServiceConfigWidget.h"
13+
#include "editors/TestTypeWidget.h"
1314

1415
#include "wizards/UserWizard.h"
1516

@@ -85,9 +86,13 @@ void DataListWidget::updateDataInList(TeraData* data, bool select_item){
8586
item = getItemForData(data);
8687

8788
// If we don't, create a new one.
89+
QString data_name = tr("Inconnu");
90+
if (data->hasNameField())
91+
data_name = data->getName();
8892
if (!item){
8993
// Check if we have a new item that we could match
90-
item = new QListWidgetItem(data->getName(),ui->lstData);
94+
95+
item = new QListWidgetItem(data_name, ui->lstData);
9196
m_datamap[data] = item;
9297

9398
}else{
@@ -97,7 +102,6 @@ void DataListWidget::updateDataInList(TeraData* data, bool select_item){
97102
}
98103

99104
item->setIcon(QIcon(TeraData::getIconFilenameForDataType(data->getDataType())));
100-
QString data_name = data->getName();
101105
// If a parent is specified, append the parent name
102106
if (data->hasFieldName(data->getDataTypeName(data->getDataType()) + "_parent"))
103107
data_name = "[" + data->getFieldValue(data->getDataTypeName(data->getDataType()) + "_parent").toString() + "]\n" + data_name;
@@ -240,6 +244,9 @@ void DataListWidget::showEditor(TeraData *data)
240244
case TERADATA_SERVICE:
241245
m_editor = new ServiceWidget(m_comManager, data);
242246
break;
247+
case TERADATA_TESTTYPE:
248+
m_editor = new TestTypeWidget(m_comManager, data);
249+
break;
243250
default:
244251
LOG_ERROR("Unhandled datatype for editor: " + TeraData::getDataTypeName(data->getDataType()), "DataListWidget::showEditor()");
245252
return;

0 commit comments

Comments
 (0)