Session 022: Migrate Lts/Tools (72 submodules) to Qt6
- Copied complete Lts/Tools directory from qt5-before to qt6-after - Updated 32 CMakeLists.txt files (Qt5:: → Qt6::) - Tools subdirectory already included in parent Lts/CMakeLists.txt - All 72 tool submodules now present in qt6-migrated-legatus - Includes: Adler, ArAssets, ConfigX, DBAdministration, DBUpdate, DdsView, InfrastructureManagement, and 67 more tools - C++17 standard (RTI 7.7.0 compatibility maintained) - Tests deferred until final validation phase Migration progress: ✅ Lts/Application (68 files) ✅ Lts/DDS (verified Qt6-ready) ✅ Lts/Plugins (60 submodules, verified) ✅ Lts/Projects (5 submodules, verified) ✅ Lts/Proxies (13 submodules, verified) ✅ Lts/Services (47 submodules, verified) ✅ Lts/Tools (72 submodules, copied + CMake updated) ✅ Lts/Viewer (LtsFileDialog, LtsReportDisplay, SituationMap) 🟡 TetraIF (partial) 🟡 Z (partial: nglwidgets, QtSingleApplication, qsql_informix, WMS_Interface)
This commit is contained in:
1 parent
01dce5fe52
commit
d5c13033e2
1792 files changed
+982018
No files matched your search
@@ -0,0 +1,83 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Implements n QLedChars to display a line of Text/Image
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Florian Schult, SLSE, 2016-03-18
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QVector>
|
||||
#include <QWidget>
|
||||
|
||||
#ifndef QLEDLINE_EXPORT
|
||||
# ifdef BUILD_STATIC_LIBRARIES
|
||||
# define QLEDLINE_EXPORT
|
||||
# else
|
||||
# ifdef MAKE_QLEDLINE_LIB
|
||||
# define QLEDLINE_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define QLEDLINE_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class QLedLine;
|
||||
}
|
||||
|
||||
class QHBoxLayout;
|
||||
class QLedChar;
|
||||
class QTimer;
|
||||
class QImage;
|
||||
|
||||
class QLEDLINE_EXPORT QLedLine : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QLedLine(QWidget *parent = nullptr);
|
||||
~QLedLine();
|
||||
|
||||
int height() const;
|
||||
void setHeight(int height);
|
||||
|
||||
int charCount() const;
|
||||
void setCharCount(int charCount);
|
||||
|
||||
// Returns the QSize of the first QLedChar
|
||||
QSize charSize() const;
|
||||
|
||||
void setCharCountAndHeight(int charCount, int height);
|
||||
|
||||
bool isTextVisible() const;
|
||||
int flashTime() const;
|
||||
QColor color() const;
|
||||
QString shownText() const;
|
||||
QString text() const;
|
||||
|
||||
private:
|
||||
void addChar();
|
||||
void deleteChar();
|
||||
|
||||
public slots:
|
||||
void setText(const QString &text);
|
||||
void setFlashing(int msecs = 0);
|
||||
void setTextVisible(bool visible = true);
|
||||
void setColor(const QColor &color);
|
||||
void clear();
|
||||
void setImage(const QImage &image);
|
||||
|
||||
private:
|
||||
int m_charCount;
|
||||
int m_height;
|
||||
bool m_visible;
|
||||
QString m_text;
|
||||
QHBoxLayout *m_layout;
|
||||
QVector<QLedChar*> m_chars;
|
||||
QTimer *m_flashTimer;
|
||||
QColor m_color;
|
||||
QImage m_image;
|
||||
};
|
||||
Reference in new issue
Block a user