Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

@@ -0,0 +1,39 @@
/**
* @RDE_HEADER@
* CustomView for MDM Station
* $Id$
* $HeadURL$
* $Author$
* Created by Patric Karwat, SLSE, 2016-10-05
*/
#include "template.h"
#include "ui_template.h"
#include "participant_template_chooser_model.h"
namespace ParticipantManagement
{
CustomViewTemplate::CustomViewTemplate(QWidget *parent) // TODO: Class Name passt irgendwie nicht zum Programm?
: AbstractDisplayWidget(parent)
, m_ui(new Ui::CustomViewTemplate)
{
m_ui->setupUi(this);
}
CustomViewTemplate::~CustomViewTemplate()
{
delete m_ui;
}
bool CustomViewTemplate::init(const QModelIndex &idx)
{
if (!idx.isValid())
return false;
m_ui->lbNote->setText(rowData(idx, ParticipantManagement::ParticipantTemplateChooserModel::ColDesignatorIdentifier).toString());
m_ui->lbType->setText(rowData(idx, ParticipantManagement::ParticipantTemplateChooserModel::ColType).toString());
return true;
}
} // namespace ParticipantManagement
@@ -0,0 +1,32 @@
/**
* @RDE_HEADER@
* CustomView for MRK Marker
* $Id$
* $HeadURL$
* $Author$
* Created by Mike Wille, SLSE, 2016-04-08
*/
#pragma once
#include <Viewer/LtsDataView/abstract_display_widget.h>
namespace Ui
{
class CustomViewTemplate;
}
namespace ParticipantManagement
{
class CustomViewTemplate final : public LtsDataView::AbstractDisplayWidget
{
Q_OBJECT
public:
explicit CustomViewTemplate(QWidget *parent = nullptr);
~CustomViewTemplate();
bool init(const QModelIndex &idx) override;
private:
Ui::CustomViewTemplate* m_ui;
};
} // namespace ParticipantManagement
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CustomViewTemplate</class>
<widget class="QWidget" name="CustomViewTemplate">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>300</width>
<height>230</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="lbType">
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
<property name="text">
<string notr="true">Type</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lbNote">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string notr="true">Note</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="lbTime">
<property name="text">
<string notr="true">Time</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string notr="true">with</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lbOffset">
<property name="text">
<string notr="true">Offset</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string notr="true">seconds Offset</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>