Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Richard Lin
SceneChangingFramework
Commits
6306f597
Commit
6306f597
authored
Jan 12, 2018
by
Richard Lin
Browse files
Finish: pulgin
parent
11c0659b
Changes
12
Hide whitespace changes
Inline
Side-by-side
InstrumentCluster/scenemanager.cpp
0 → 100644
View file @
6306f597
#include "scenemanager.h"
sceneManager
::
sceneManager
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
InstrumentCluster/scenemanager.h
0 → 100644
View file @
6306f597
#ifndef SCENEMANAGER_H
#define SCENEMANAGER_H
#include <QObject>
class
sceneManager
:
public
QObject
{
Q_OBJECT
public:
explicit
sceneManager
(
QObject
*
parent
=
nullptr
);
signals:
public
slots
:
};
#endif // SCENEMANAGER_H
\ No newline at end of file
ScenePlugin/Triton/
udpdatabaseprotocoldriver
.h
→
ScenePlugin/Triton/
tritonScene
.h
View file @
6306f597
File moved
ScenePlugin/Triton/tritonscene.qrc
0 → 100644
View file @
6306f597
<!DOCTYPE RCC>
<RCC
version=
"1.0"
/>
ScenePlugin/TritonScene/TritonScene.pro
0 → 100644
View file @
6306f597
QT
+=
network
widgets
TEMPLATE
=
lib
CONFIG
+=
plugin
TARGET
=
$$
qtLibraryTarget
(
TritonScene
)
DESTDIR
=
..
/../
ScenePlugin
CONFIG
+=
c
++
11
INCLUDEPATH
+=
$$
PWD
\
HEADERS
+=
\
$$
PWD
/
plugin
.
h
SOURCES
+=
\
$$
PWD
/
plugin
.
cpp
RESOURCES
+=
\
res
.
qrc
DISTFILES
+=
\
meta
-
data
.
json
#
interface
:
include
(..
/../
Interface
/
Interface
.
pri
)
ScenePlugin/TritonScene/content/TritonScene.qml
0 → 100644
View file @
6306f597
import
QtQuick
2.0
Item
{
width
:
1920
height
:
720
Image
{
id
:
bg
anchors.fill
:
parent
source
:
"
:/img/main.png
"
}
}
ScenePlugin/TritonScene/content/img/main.png
0 → 100644
View file @
6306f597
1.23 MB
ScenePlugin/TritonScene/content/img/snapshot.png
0 → 100644
View file @
6306f597
25.7 KB
ScenePlugin/TritonScene/meta-data.json
0 → 100644
View file @
6306f597
{
"name"
:
"Triton"
,
"version"
:
1
,
"type"
:
"scenePlugin"
,
"entryPath"
:
":/content/tritonScene.qml"
}
ScenePlugin/TritonScene/plugin.cpp
0 → 100644
View file @
6306f597
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif
#include <QImage>
#include "plugin.h"
Plugin
::
Plugin
(
QObject
*
parent
)
:
iPlugin
(
parent
)
{
initialRes
();
_snapShot
=
new
QImage
(
":/content/img/snapshot.png"
,
"PNG"
);
}
Plugin
::~
Plugin
(){
cleanUpRes
();
delete
_snapShot
;
}
void
Plugin
::
initialRes
(
void
){
Q_INIT_RESOURCE
(
res
);
}
void
Plugin
::
cleanUpRes
(
void
){
Q_CLEANUP_RESOURCE
(
res
);
}
QImage
*
Plugin
::
snapShot
(
void
)
const
{
return
_snapShot
;
}
ScenePlugin/TritonScene/plugin.h
0 → 100644
View file @
6306f597
#ifndef PLUGIN
#define PLUGIN
/*!
* \brief The TritonScene Plugin
* TritonScene is a demo scene plugin, reuse some design of triton-ui cluster
*/
#include <QObject>
#include "iplugin.h"
/*!
* \brief The Plugin class
* The Plugin class is a decorator of the scene plugin,
* provide a handler for complex interactivities
*/
class
Plugin
:
public
iPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA
(
IID
"com.tqc.instrumentCluster.tritonScene"
FILE
"meta-data.json"
)
Q_INTERFACES
(
iPlugin
)
public:
/*!
* Constructor
*/
explicit
Plugin
(
QObject
*
parent
=
0
);
~
Plugin
();
public
slots
:
virtual
void
initialRes
(
void
);
virtual
void
cleanUpRes
(
void
);
virtual
QImage
*
snapShot
(
void
)
const
;
private:
QImage
*
_snapShot
;
};
#endif // PLUGIN
ScenePlugin/TritonScene/res.qrc
0 → 100644
View file @
6306f597
<RCC>
<qresource prefix="/">
<file>content/img/main.png</file>
<file>content/img/snapshot.png</file>
<file>content/TritonScene.qml</file>
</qresource>
</RCC>
Ghost User
@ghost
·
Dec 14, 2021
11.pdf
[11.pdf](/uploads/1a16b3280cf8cc0be2749899ac4f1a0b/11.pdf)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment