Qt6 Migration: Complete migration with DDS/RTI support and build validation
Major Changes:
- Merged latest Qt5 devel content from dlbo (292 files changed, 7 new dirs)
- Consolidated forward-declarations and include folders
- Removed unneeded modules per Niklas' repo check list
Build System Fixes:
- Fixed CMake VERSION_GREATER syntax in ParticipantManagement/CMakeLists.txt
- Added VLC packages (libvlc-dev, vlc-plugin-base) to docker_build.sh
- Added PostgreSQL dev packages (libpq-dev, postgresql-server-dev-all) to Dockerfile
- Fixed locale warnings (ANSI_X3.4-1968 → C.UTF-8)
- Fixed ArcGIS SDK path warnings when BUILD_ARCGIS=OFF
Code Generation Fixes:
- Fixed IDL enum collisions (PortType→CorePortType/DdsutPortType, PdmEventType)
- Fixed Grantlee template svc_translation.cpp.grantlee:
- Changed {{ idl_enum.name }}_def:: to {{ idl_enum.name }}::
- Fixed .underlying() calls for C++11 scoped enums (enum class)
- Removed generated files from repo (moc_*, *_dtc.h, *_ftc.h)
Validation:
- BUILD_RTI=ON: SUCCESS
- BUILD_RTI=OFF: SUCCESS
- C++17 standard maintained for RTI 7.7 compatibility
- Ubuntu 26.04 Docker environment verified
Remaining Warnings (expected):
- BgViewer, KDChart, KDReports, Poppler-Qt6 not found (optional features)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
18662 files changed
+4115092
-5435
No files matched your search
@@ -0,0 +1,103 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Virtual Keyboard
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Patric Karwat, SLSE, 2018-06-07
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "LtsKeyPushButton.h"
|
||||
#include <LtsVirtualKeyboard/ltsvirtualkeyboard_export.h>
|
||||
#include <LtsSession/lts_session.h>
|
||||
|
||||
class QClipboard;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QSize;
|
||||
class QTextEdit;
|
||||
|
||||
namespace LtsVirtualKeyboard
|
||||
{
|
||||
|
||||
class LTSVIRTUALKEYBOARD_EXPORT LtsVirtualKeyboard : public QWidget //public LtsWidgets::LtsDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
private:
|
||||
LtsVirtualKeyboard(LtsSession::LtsSession *session, QWidget *activeForm = nullptr, bool onlyNumericPad = false, QWidget *parent = nullptr);
|
||||
~LtsVirtualKeyboard();
|
||||
|
||||
public:
|
||||
static LtsVirtualKeyboard *getInstance(LtsSession::LtsSession *session, QWidget *activeForm = nullptr, bool onlyNumericPad = false, QWidget *parent = nullptr);
|
||||
static void cleanupLtsVirtualKeyboard();
|
||||
|
||||
void createKeyboard();
|
||||
bool statusEchoMode() const { return (m_echoMode); }
|
||||
void setStatusEchoMode(bool echo) { m_echoMode = echo; }
|
||||
void receiptChildKey(QWidget *focusThisControl = nullptr, QKeyEvent *event = nullptr, bool reset = false);
|
||||
void switchKeyEchoMode(QWidget *control);
|
||||
void enableSwitchingEcho(bool status); // if you don't want control echo from keyboard
|
||||
bool isEnabledSwitchingEcho() const; // current status
|
||||
void borderFrame(bool visible = true);
|
||||
void checkInput();
|
||||
QWidget *setDefaultTextStyle(QWidget *control);
|
||||
bool isNumericPad() const;
|
||||
QLabel *zoomedWidget();
|
||||
void setActiveWindw(QWidget *widget) { m_activeWindow = widget; }
|
||||
void setSession(LtsSession::LtsSession *session) { m_session= session; }
|
||||
|
||||
|
||||
//void retranslate() override;
|
||||
|
||||
|
||||
public slots:
|
||||
void show(QWidget *first = nullptr, bool frameless = false);
|
||||
void hide(bool changeColor);
|
||||
void focusThis(QWidget *control, bool numpad = false);
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
|
||||
private:
|
||||
QSize availableDesktopSize() const;
|
||||
void init_keyboard(QWidget *focusThisControl);
|
||||
QWidget *setCurrentTextStyle(QWidget *control);
|
||||
LtsKeyPushButton *createNewKey(const QString &keyValue, const QString ¬TranslatedValue, const QString ¬TranslatedValueAlt = QString());
|
||||
QWidget *getNextTextbox(QWidget *thisControl = nullptr, bool reset = false);
|
||||
void controlKeyEcho(QWidget *control);
|
||||
void setTextToCurrentWidget(const QString &text);
|
||||
QString getTextFromCurrentWidget();
|
||||
QString getCurretText()const;
|
||||
void setCurrentText(const QString &text);
|
||||
int getCurrentTextCursorPosition();
|
||||
void setCurrentTextCursorPosition(int cursor);
|
||||
bool hasSelection() const;
|
||||
QString getSelectedText() const;
|
||||
int getSelectionStart() const;
|
||||
void reinit();
|
||||
private:
|
||||
|
||||
QTextEdit *m_te;
|
||||
QLineEdit *m_le;
|
||||
|
||||
QWidget *m_nextInput;
|
||||
QWidget *m_activeWindow;
|
||||
bool m_echoMode; // status of current text object for echo
|
||||
bool m_enablePasswordEcho;
|
||||
bool m_numericPad;
|
||||
bool m_isAlt;
|
||||
bool m_isCap;
|
||||
bool m_enableEnter;
|
||||
bool m_ready;
|
||||
|
||||
int m_height;
|
||||
QClipboard *m_clipboard;
|
||||
LtsSession::LtsSession *m_session;
|
||||
|
||||
};
|
||||
|
||||
} //namespace LtsVirtualKeyboard
|
||||
Reference in new issue
Block a user