-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-gov' into release
- Loading branch information
Showing
249 changed files
with
6,853 additions
and
3,496 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
addons/default-vehicle/default-vehicle/default-vehicle.pro
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
addons/default-vehicle/default-vehicle/include/default-vehicle.h
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
addons/default-vehicle/default-vehicle/src/default-vehicle.cpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
TEMPLATE = lib | ||
|
||
QT += core | ||
QT += gui | ||
QT += widgets | ||
QT += opengl | ||
QT += xml | ||
|
||
TARGET = blok-display | ||
|
||
DESTDIR = ../../../../modules/ep20 | ||
|
||
CONFIG(debug, debug|release) { | ||
|
||
LIBS += -L../../../../lib -ldisplay_d | ||
LIBS += -L../../../../lib -lCfgReader_d | ||
|
||
} else { | ||
|
||
LIBS += -L../../../../lib -ldisplay | ||
LIBS += -L../../../../lib -lCfgReader | ||
} | ||
|
||
INCLUDEPATH += ./include | ||
INCLUDEPATH += ../ep20/include | ||
INCLUDEPATH += ../../../simulator/vehicle/include | ||
INCLUDEPATH += ../../../CfgReader/include | ||
INCLUDEPATH += ../../../viewer/display/include | ||
|
||
HEADERS += $$files(./include/*.h) | ||
SOURCES += $$files(./src/*.cpp) | ||
RESOURCES += $$files(./resources/*.qrc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
//----------------------------------------------------------------------------- | ||
// | ||
// Экран потери связи | ||
// (c) РГУПС, ВЖД 18/07/2017 | ||
// Разработал: Даглдиян Б.Д. | ||
// | ||
//----------------------------------------------------------------------------- | ||
/*! | ||
* \file | ||
* \brief Экран потери связи | ||
* \copyright РГУПС, ВЖД | ||
* \author Даглдиян Б.Д. | ||
* \date 18/07/2017 | ||
*/ | ||
|
||
#ifndef DISCONNECTIONSERVER_H | ||
#define DISCONNECTIONSERVER_H | ||
|
||
#include <QLabel> | ||
#include <QPainter> | ||
|
||
/*! | ||
* \class DisconnectionServer | ||
* \brief Класс, вызываемый при потере связи с сервером | ||
*/ | ||
class DisconnectionServer : public QLabel | ||
{ | ||
|
||
public: | ||
/*! | ||
* \brief Конструктор. | ||
* \param size - размер элемента | ||
*/ | ||
DisconnectionServer(QSize size, QWidget* parent = Q_NULLPTR); | ||
|
||
/// Деструктор | ||
~DisconnectionServer(); | ||
|
||
|
||
}; | ||
|
||
#endif // DISCONNECTIONSERVER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#ifndef IMAGE_LABEL_H | ||
#define IMAGE_LABEL_H | ||
|
||
#include <QLabel> | ||
#include <QPainter> | ||
|
||
class ImageLabel : public QLabel | ||
{ | ||
public: | ||
|
||
ImageLabel(QWidget *parent = Q_NULLPTR) : QLabel(parent) | ||
, pixmap(Q_NULLPTR) | ||
{ | ||
|
||
} | ||
|
||
ImageLabel(const QString &text, QWidget *parent = Q_NULLPTR) : QLabel(text, parent) | ||
, pixmap(Q_NULLPTR) | ||
{ | ||
|
||
} | ||
|
||
virtual ~ImageLabel() | ||
{ | ||
|
||
} | ||
|
||
void setPixmap(QPixmap *pxmp) | ||
{ | ||
pixmap = pxmp; | ||
} | ||
|
||
|
||
private: | ||
|
||
QPixmap *pixmap; | ||
|
||
void paintEvent(QPaintEvent *) | ||
{ | ||
if (pixmap == Q_NULLPTR) | ||
return; | ||
|
||
QPainter p(this); | ||
p.setWindow(this->frameGeometry()); | ||
p.drawPixmap(this->frameGeometry(), *pixmap); | ||
} | ||
}; | ||
|
||
|
||
#endif // IMAGE_LABEL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
//----------------------------------------------------------------------------- | ||
// | ||
// Элемент блока информации | ||
// (c) РГУПС, ВЖД 12/04/2017 | ||
// Разработал: Даглдиян Б.Д. | ||
// | ||
//----------------------------------------------------------------------------- | ||
/*! | ||
* \file | ||
* \brief Класс элемента блока информации | ||
* \copyright РГУПС, ВЖД | ||
* \author Даглдиян Б.Д. | ||
* \date 12/04/2017 | ||
*/ | ||
|
||
#ifndef INFORMPART_H | ||
#define INFORMPART_H | ||
|
||
|
||
#include <QLabel> | ||
#include <QPainter> | ||
#include <QImage> | ||
|
||
#include "ImageLabel.h" | ||
|
||
/*! | ||
* \class InformPart | ||
* \brief Класс, описывающий элемент блока информации | ||
*/ | ||
class InformPart : public ImageLabel | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
/*! | ||
* \brief Конструктор. Рисуем элемент информационного блока | ||
* \param geo - геометрия элемента (позиция, размер) | ||
* \param strHead - текст заголовка | ||
* \param strText - текст | ||
* \param align - выравнивание | ||
* \param marginLeft - отступ текста слева | ||
* \param isDrawX - рисовать ли крестик | ||
* \param isDrawO - рисовать ли эллипс | ||
*/ | ||
InformPart( QRect geo, QString strHead, QString strText, | ||
Qt::Alignment align, QWidget *parent = Q_NULLPTR, | ||
QString config_path = "", | ||
int marginLeft =0, bool isDrawX =false, bool isDrawO =false ); | ||
/// Деструктор | ||
~InformPart(); | ||
|
||
/*! | ||
* \brief Установить текст элемента | ||
* \param strText - текст | ||
*/ | ||
void setText(QString strText); | ||
|
||
void setTextOverHead(QString headText, QRect geo); | ||
|
||
void setImgOverLabel(); | ||
|
||
private: | ||
|
||
QLabel* labelText_; ///< виждет для отображения текста элемента | ||
QLabel* labelTextOverHead_; ///< перекрывающий текст заголовка | ||
int fooWidth_; | ||
|
||
void drawX(); ///< Нарисовать крестик | ||
void drawO(); ///< Нарисовать эллипс | ||
|
||
// --- cfg параметры --- // | ||
QString colorBorder_; | ||
QString colorTextHead_; | ||
QString colorText_; | ||
int fontSize_; | ||
// --------------------- // | ||
|
||
QPixmap pm; | ||
|
||
/// Чтение конфигураций | ||
bool loadInformPartCfg(QString cfg_path); | ||
}; | ||
|
||
#endif // INFORMPART_H |
Oops, something went wrong.