- NGL_ADD_LIBRARY2: 87 CMakeLists.txt konvertiert für Export-Header Generierung - 44 Export-Header Include-Pfade korrigiert (_export.h) - 81 DDS-Stub-Header generiert (*_dtc.h, *_fts.h, *_dts.h, *_ftc.h) - INGLLogger: Duplikat gelöscht, m_logger Member entfernt, variadische Makros - Q_FUNC_INFO Redefinition behoben (Qt6 definiert bereits) - FATAL_LOG Makro hinzugefügt - InfrastructureManagement DDS-Stubs (ism.hpp, ism_enums.hpp, ism_ftc.h) - FilterManagement DDS-Stubs (flt_ftc.h, flt_dts.h) - AreaEffectSimulation DDS-Stubs (aes.hpp, aes_enums.hpp) - SymbolAppearance Klasse vollständig definiert mit content() Methode - BuildingComponentFilter Klasse definiert mit Copy-Konstruktor - Ftc Factory: nullptr Return (abstract class) - AesFilter Klasse in aes.hpp hinzugefügt - Dtc Klasse in ppm.hpp mit participantChanged Signal - AesType Enum: alle 15 At* Werte definiert - AesEffectState_def: EsReceived hinzugefügt - DataModification Enum: eAdded/eModified/eRemoved - function_reply_object.h → core_types.h Include-Pfad (72 Dateien) - Enum-Class-Streaming Template-Operator in INGLLogger.h - ism_mounting_point.h: QImage → QtGui/QImage, QGuiApplication/QScreen - ism_data_plugin_interface.h: QSet Include, Include-Reihenfolge - QRegExp → QRegularExpression in tpm_js_parser.cpp - .underlying() Aufrufe zu direktem Enum-Vergleich korrigiert - Include-Pfade: aes.hpp in symbol_appearance_settings_impl.h und aes_display_filter_impl.h Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
99 lines
3.1 KiB
C++
Executable File
99 lines
3.1 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
#include <QObject>
|
|
|
|
#include "LtsKeyPushButton.h"
|
|
#include "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
|
|
{
|
|
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);
|
|
bool isEnabledSwitchingEcho() const;
|
|
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; }
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
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;
|
|
|
|
};
|
|
|
|
}
|