Skip to content

Commit

Permalink
Merge pull request #57 from introlab/dev
Browse files Browse the repository at this point in the history
Merge for 1.0.4 release
  • Loading branch information
SBriere authored Jul 28, 2021
2 parents 977450b + 8bda49e commit ee9f68d
Show file tree
Hide file tree
Showing 140 changed files with 2,238 additions and 2,171 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cmake_policy(SET CMP0043 NEW)
# Software version
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "3")
SET(CPACK_PACKAGE_VERSION_PATCH "4")
SET(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
add_definitions(-DOPENTERAPLUS_VERSION="${CPACK_PACKAGE_VERSION}" )
add_definitions(-DOPENTERAPLUS_VERSION_MAJOR="${CPACK_PACKAGE_VERSION_MAJOR}" )
Expand Down
19 changes: 0 additions & 19 deletions client/resources/TeraClient.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<file>controls/branch_left.png</file>
<file>controls/branch_opened.png</file>
<file>controls/branch_up.png</file>
<file>icons/connect.png</file>
<file>icons/copy.png</file>
<file>icons/data.png</file>
<file>icons/data_sensor.png</file>
Expand All @@ -31,27 +30,14 @@
<file>icons/new.png</file>
<file>icons/options.png</file>
<file>icons/patient.png</file>
<file>icons/patient_add.png</file>
<file>icons/patient_filter_red.png</file>
<file>icons/patient_installed.png</file>
<file>icons/patient_installed_v1.png</file>
<file>icons/patient_installed_warning.png</file>
<file>icons/patient_offline.png</file>
<file>icons/patient_offline_v2.png</file>
<file>icons/patient_online.png</file>
<file>icons/patient_online_busy.png</file>
<file>icons/patient_online_busy_warning.png</file>
<file>icons/patient_online_v1.png</file>
<file>icons/patient_online_warning.png</file>
<file>icons/photo.png</file>
<file>icons/photo_add.png</file>
<file>icons/refresh.png</file>
<file>icons/save.png</file>
<file>icons/search.png</file>
<file>icons/sensors.png</file>
<file>icons/session.png</file>
<file>icons/session_add.png</file>
<file>icons/session_disconnect.png</file>
<file>icons/session_offline.png</file>
<file>icons/session_offline_warning.png</file>
<file>icons/session_online.png</file>
Expand All @@ -67,8 +53,6 @@
<file>icons/unlock.png</file>
<file>icons/user_info.png</file>
<file>icons/usergroup.png</file>
<file>icons/video.png</file>
<file>icons/video_add.png</file>
<file>icons/warning.png</file>
<file>TeRA_Background.png</file>
<file>icons/error.png</file>
Expand All @@ -77,11 +61,9 @@
<file>icons/device.png</file>
<file>icons/project.png</file>
<file>icons/device_installed.png</file>
<file>icons/device_offline.png</file>
<file>icons/device_online.png</file>
<file>stylesheet.qss</file>
<file>icons/info.png</file>
<file>icons/camera.png</file>
<file>icons/navtree.png</file>
<file>icons/history.png</file>
<file>icons/config.png</file>
Expand All @@ -103,7 +85,6 @@
<file>icons/service.png</file>
<file>icons/stop.png</file>
<file>status/session_loading.gif</file>
<file>icons/software_user_offline.png</file>
<file>icons/software_user_online.png</file>
<file>controls/radio-off.png</file>
<file>controls/radio-on.png</file>
Expand Down
Binary file added client/resources/icons/busy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed client/resources/icons/camera.png
Binary file not shown.
Binary file modified client/resources/icons/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed client/resources/icons/connect.png
Binary file not shown.
Binary file modified client/resources/icons/copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/data_sensor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/delete_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/device.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/device_installed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/device_installed_busy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed client/resources/icons/device_offline.png
Binary file not shown.
Binary file modified client/resources/icons/device_online.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/device_online_busy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/error2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/group_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/resources/icons/group_delete.png
Binary file modified client/resources/icons/history.png
Binary file modified client/resources/icons/info.png
Binary file modified client/resources/icons/join.png
Binary file modified client/resources/icons/kit.png
Binary file modified client/resources/icons/leave.png
Binary file modified client/resources/icons/lock.png
Binary file modified client/resources/icons/log.png
Binary file modified client/resources/icons/navtree.png
Binary file modified client/resources/icons/new.png
Binary file modified client/resources/icons/ok.png
Binary file modified client/resources/icons/ok2.png
Binary file modified client/resources/icons/options.png
Binary file modified client/resources/icons/password.png
Binary file modified client/resources/icons/patient.png
Binary file removed client/resources/icons/patient_add.png
Diff not rendered.
Binary file removed client/resources/icons/patient_filter_red.png
Diff not rendered.
Binary file modified client/resources/icons/patient_installed.png
Binary file modified client/resources/icons/patient_installed_busy.png
Binary file removed client/resources/icons/patient_installed_v1.png
Diff not rendered.
Binary file removed client/resources/icons/patient_installed_warning.png
Diff not rendered.
Binary file removed client/resources/icons/patient_offline.png
Diff not rendered.
Binary file removed client/resources/icons/patient_offline_v2.png
Diff not rendered.
Binary file modified client/resources/icons/patient_online.png
Binary file modified client/resources/icons/patient_online_busy.png
Diff not rendered.
Binary file removed client/resources/icons/patient_online_v1.png
Diff not rendered.
Binary file removed client/resources/icons/patient_online_warning.png
Diff not rendered.
Binary file removed client/resources/icons/photo.png
Diff not rendered.
Binary file removed client/resources/icons/photo_add.png
Diff not rendered.
Binary file modified client/resources/icons/play.png
Binary file modified client/resources/icons/project.png
Binary file modified client/resources/icons/random.png
Binary file modified client/resources/icons/record.png
Binary file modified client/resources/icons/record_stop.png
Binary file modified client/resources/icons/refresh.png
Binary file modified client/resources/icons/save.png
Binary file modified client/resources/icons/search.png
Binary file modified client/resources/icons/sensors.png
Binary file modified client/resources/icons/server.png
Binary file modified client/resources/icons/service.png
Binary file modified client/resources/icons/session.png
Binary file removed client/resources/icons/session_add.png
Diff not rendered.
Binary file removed client/resources/icons/session_disconnect.png
Diff not rendered.
Binary file modified client/resources/icons/session_offline.png
Binary file modified client/resources/icons/session_offline_warning.png
Binary file modified client/resources/icons/session_online.png
Binary file modified client/resources/icons/session_online_warning.png
Binary file modified client/resources/icons/session_pause.png
Binary file modified client/resources/icons/session_type.png
Binary file modified client/resources/icons/session_warning.png
Binary file modified client/resources/icons/site.png
Binary file modified client/resources/icons/smile.png
Binary file modified client/resources/icons/software_user.png
Binary file removed client/resources/icons/software_user_offline.png
Diff not rendered.
Binary file modified client/resources/icons/software_user_offline_busy.png
Binary file modified client/resources/icons/software_user_online.png
Binary file modified client/resources/icons/software_user_online_busy.png
Binary file modified client/resources/icons/stop.png
Binary file modified client/resources/icons/test.png
Binary file modified client/resources/icons/test_add.png
Binary file modified client/resources/icons/test_lock.png
Binary file modified client/resources/icons/test_unlock.png
Binary file modified client/resources/icons/undo.png
Binary file modified client/resources/icons/unlock.png
Binary file modified client/resources/icons/user_info.png
Binary file modified client/resources/icons/usergroup.png
Binary file removed client/resources/icons/video.png
Diff not rendered.
Binary file removed client/resources/icons/video_add.png
Diff not rendered.
Binary file modified client/resources/icons/view_off.png
Binary file modified client/resources/icons/view_on.png
Binary file modified client/resources/icons/warning.png
10 changes: 3 additions & 7 deletions client/resources/stylesheet.qss
Original file line number Diff line number Diff line change
Expand Up @@ -692,12 +692,8 @@ QWidget#wdgParticipantsNum{
border-radius: 10px;
}

QListWidget#lstOnlineParticipants, QListWidget#lstOnlineUsers, QListWidget#lstOnlineDevices{
background-color: rgba(255,255,255,20%);
selection-background-color: rgba(0,0,0,20%);
QTreeWidget#treeOnline{
background-color: rgba(255,255,255,10%);
selection-background-color: rgba(0,0,0,0%);
/*selection-color: black;*/
}

QFrame#frameOnlineParticipants, QFrame#frameOnlineUsers, QFrame#frameOnlineDevices{
background-color: transparent;
}
1,278 changes: 681 additions & 597 deletions client/resources/translations/openteraplus_en.ts

Large diffs are not rendered by default.

1,268 changes: 666 additions & 602 deletions client/resources/translations/openteraplus_fr.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/src/ClientApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ ClientApp::ClientApp(int &argc, char **argv)
QString stylesheet = QLatin1String(file.readAll());
setStyleSheet(stylesheet);

setApplicationName(QString("OpenTeraPlus v") + QString(OPENTERAPLUS_VERSION));
qDebug() << "Starting App " << applicationName();
//setApplicationName(QString("OpenTeraPlus v") + QString(OPENTERAPLUS_VERSION));
qDebug() << "Starting App " << applicationName() + " v" + QString(OPENTERAPLUS_VERSION);

// Load config
loadConfig();
Expand Down
2 changes: 1 addition & 1 deletion client/src/dialogs/BaseDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void BaseDialog::setCentralWidget(QWidget *widget)
{
widget->setParent(m_ui.centralWidget);
m_centralWidgetLayout->addWidget(widget);
widget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
//widget->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);

}

Expand Down
19 changes: 13 additions & 6 deletions client/src/dialogs/BaseDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,20 @@
<number>5</number>
</property>
<item>
<widget class="QWidget" name="centralWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="centralWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>672</width>
<height>259</height>
</rect>
</property>
</widget>
</widget>
</item>
<item>
Expand Down
4 changes: 2 additions & 2 deletions client/src/editors/DataEditorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ DataEditorWidget::DataEditorWidget(ComManager *comMan, const TeraData *data, QWi
m_cancelButton = nullptr;
m_mainForm = nullptr;

setData(data);
setLoading();
DataEditorWidget::setData(data);
DataEditorWidget::setLoading();

// Set ComManager pointer
m_comManager = comMan;
Expand Down
8 changes: 4 additions & 4 deletions client/src/editors/DataListWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void DataListWidget::updateDataInList(TeraData* data, bool select_item){
// If we have extra fields to display, append them
QString extra_field = "";
if (!m_extraDisplayFields.isEmpty() && !m_extraInfos.contains(data->getId())){
for (QString field:m_extraDisplayFields){
for (QString field:qAsConst(m_extraDisplayFields)){
QStringList subfields = field.split(".");
QString subfield;
if (subfields.count() > 1){
Expand All @@ -120,7 +120,7 @@ void DataListWidget::updateDataInList(TeraData* data, bool select_item){
if (field_value.canConvert(QMetaType::QVariantList)){
QVariantList field_values = field_value.toList();
QString merged_list;
for (QVariant field_value:field_values){
for (QVariant field_value:qAsConst(field_values)){
if (!merged_list.isEmpty())
merged_list += ", ";
// Search for subfield?
Expand Down Expand Up @@ -159,10 +159,10 @@ void DataListWidget::updateDataInList(TeraData* data, bool select_item){
}
}

/*QString color_field = TeraData::getDataTypeName(m_dataType) + "_color";
QString color_field = TeraData::getDataTypeName(m_dataType) + "_color";
if (data->hasFieldName(color_field)){
item->setForeground(QColor(data->getFieldValue(color_field).toString()));
}*/
}

if (select_item){
ui->lstData->setCurrentItem(item);
Expand Down
4 changes: 3 additions & 1 deletion client/src/editors/GroupWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void GroupWidget::processStatsReply(TeraData stats, QUrlQuery reply_query)

QVariantList parts_list = stats.getFieldValue("participants").toList();

for(QVariant part:parts_list){
for(const QVariant &part:qAsConst(parts_list)){
QVariantMap part_info = part.toMap();
int part_id = part_info["id_participant"].toInt();

Expand Down Expand Up @@ -252,6 +252,8 @@ void GroupWidget::processStatsReply(TeraData stats, QUrlQuery reply_query)
}
ui->tableSummary->setItem(current_row, 5, item);
}
ui->tableSummary->resizeColumnsToContents();
ui->tableSummary->sortByColumn(4, Qt::DescendingOrder); // Sort by last session date
}

}
Expand Down
Loading

0 comments on commit ee9f68d

Please sign in to comment.