Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 47249c40 authored by Olivier Lagrasse's avatar Olivier Lagrasse
Browse files

suppression plugin de l'interface + fichier resource du dossier message

parent 9d29728f
Branches
Tags
No related merge requests found
......@@ -51,7 +51,7 @@ plugins:
mtest:
cd ./test && qmake-qt4 && make all
make -C test
@echo " "
@echo "Compilation completed! (test)"
@echo " "
......
CONFIG += designer plugin
QT += opengl
TARGET = $$qtLibraryTarget($$TARGET)
TEMPLATE = lib
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer
HEADERS = render_area_plugin.hpp \
../src/render_area.hpp
SOURCES = render_area_plugin.cpp \
../src/render_area.cpp
# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/designer/customwidgetplugin
INSTALLS += target sources
#include "../src/render_area.hpp"
#include "render_area_plugin.hpp"
#include <QtPlugin>
Render_areaPlugin::Render_areaPlugin(QObject *parent)
: QObject(parent)
{
initialized = false;
}
void Render_areaPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
if (initialized)
return;
initialized = true;
}
bool Render_areaPlugin::isInitialized() const
{
return initialized;
}
QWidget *Render_areaPlugin::createWidget(QWidget *parent)
{
return new Render_area(parent);
}
QString Render_areaPlugin::name() const
{
return "Render_area";
}
QString Render_areaPlugin::group() const
{
return "Display Widgets [Examples]";
}
QIcon Render_areaPlugin::icon() const
{
return QIcon();
}
QString Render_areaPlugin::toolTip() const
{
return "";
}
QString Render_areaPlugin::whatsThis() const
{
return "";
}
bool Render_areaPlugin::isContainer() const
{
return false;
}
QString Render_areaPlugin::domXml() const
{
return "<widget class=\"Render_area\" name=\"render_area\">\n"
" <property name=\"geometry\">\n"
" <rect>\n"
" <x>0</x>\n"
" <y>0</y>\n"
" <width>450</width>\n"
" <height>300</height>\n"
" </rect>\n"
" </property>\n"
" <property name=\"toolTip\" >\n"
" <string>Render area</string>\n"
" </property>\n"
" <property name=\"whatsThis\" >\n"
" <string>An OpenGL render area for ViTE.</string>\n"
" </property>\n"
"</widget>\n";
}
QString Render_areaPlugin::includeFile() const
{
return "analogclock.h";
}
Q_EXPORT_PLUGIN2(customwidgetplugin, Render_areaPlugin)
#ifndef RENDER_AREA_PLUGIN_HPP
#define RENDER_AREA_PLUGIN_HPP
#include <QDesignerCustomWidgetInterface>
class Render_areaPlugin : public QObject, public QDesignerCustomWidgetInterface
{
Q_OBJECT
Q_INTERFACES(QDesignerCustomWidgetInterface)
public:
Render_areaPlugin(QObject *parent = 0);
bool isContainer() const;
bool isInitialized() const;
QIcon icon() const;
QString domXml() const;
QString group() const;
QString includeFile() const;
QString name() const;
QString toolTip() const;
QString whatsThis() const;
QWidget *createWidget(QWidget *parent);
void initialize(QDesignerFormEditorInterface *core);
private:
bool initialized;
};
#endif
......@@ -15,6 +15,7 @@ typedef double Level;
#include <QGLWidget>/* for the OpenGL Widget */
//#include "interface_graphic.hpp"
#include "resource.hpp"
......
......@@ -46,7 +46,6 @@ HEADERS += interface.hpp \
../../message/src/endinformation.hpp \
../../message/src/message.hpp \
../../message/src/message_ns.hpp \
../../message/src/resource.hpp \
../../trace/src/DrawTrace.hpp
FORMS += info_window.ui main_window.ui maquette.ui
......
......@@ -8,7 +8,7 @@
#define RESOURCE_TEST_HPP
#include "../../main_resource.hpp"
#define ASSERT_SUCCESS 0
......
/*!
*\file resource.hpp
*\brief This file gives some common header files for the message classes.
*/
#ifndef RESOURCE_MESSAGE_HPP
#define RESOURCE_MESSAGE_HPP
#include "../../main_resource.hpp"
#endif
/*!
*\file resource.hpp
*\brief This file gives some common header files for the message classes.
*/
#ifndef MESSAGE_RESOURCE_HPP
#define MESSAGE_RESOURCE_HPP
#include "../../main_resource.hpp"
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment