Commit d6bf4d62 authored by CHEVALIER Arthur's avatar CHEVALIER Arthur Committed by Mathieu Faverge

fix(base):

	Adding missing .gitignore
fix(plugins):
	Fixing CMakeLists.txt to use the environment variable HOME instead of empty CMake variable HOME

feat(plugins):
	Adding base plugin interface for matrix visualizer
parent 0068063a
# Atom editor
.clang_complete
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
# Coverages files
*.gcov
*.gcno
*.gcda
# Cmake files
CMakeCache.txt
CMakeFiles
CMakeScripts
CPackLists.txt
CPackConfig.cmake
CPackSourceConfig.cmake
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
# Generated directories
plugins/*/*_autogen
src/*_autogen
# Generated files
src/common/ViteConfig.hpp
toto.trace
# QT files
src/interface/vite.qrc.depends
src/qrc_vite.cpp
moc*
ui*
# Binary
src/vite
#
#
#
#
### ViTE optional plugins
......@@ -7,6 +7,8 @@ option(VITE_PLUGINS_DISTRIBUTIONS
"Enable the distribution plugin." OFF)
option(VITE_PLUGINS_TRACEINFOS
"Enable the TraceInfos plugin." OFF)
option(VITE_PLUGINS_MATRIX_VISUALIZER
"Enable the MatrixVisualizer plugin." OFF)
include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_BINARY_DIR}/src/common)
......@@ -18,3 +20,7 @@ endif( VITE_PLUGINS_DISTRIBUTIONS )
if( VITE_PLUGINS_TRACEINFOS )
add_subdirectory(TraceInfos)
endif( VITE_PLUGINS_TRACEINFOS )
if( VITE_PLUGINS_MATRIX_VISUALIZER )
add_subdirectory(MatrixVisualizer)
endif( VITE_PLUGINS_MATRIX_VISUALIZER )
......@@ -34,4 +34,4 @@ IF(USE_QT5)
qt5_use_modules(Distribution Widgets Core)
ENDIF(USE_QT5)
install(TARGETS Distribution DESTINATION ${HOME}/.vite)
\ No newline at end of file
install(TARGETS Distribution DESTINATION $ENV{HOME}/.vite)
###
#
# This file is part of the ViTE project.
#
# This software is governed by the CeCILL-A license under French law
# and abiding by the rules of distribution of free software. You can
# use, modify and/or redistribute the software under the terms of the
# CeCILL-A license as circulated by CEA, CNRS and INRIA at the following
# URL: "http://www.cecill.info".
#
# @version 1.2.0
# @authors COULOMB Kevin
# @authors FAVERGE Mathieu
# @authors JAZEIX Johnny
# @authors LAGRASSE Olivier
# @authors MARCOUEILLE Jule
# @authors NOISETTE Pascal
# @authors REDONDY Arthur
# @authors VUCHENER Clment
# @authors RICHART Nicolas
#
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set (MATRIXVISUALIZER_hdrs
MatrixVisualizer.hpp
)
set (MATRIXVISUALIZER_srcs
MatrixVisualizer.cpp
)
QT5_WRAP_UI(MATRIXVISUALIZER_forms
widget.ui
)
add_library(MatrixVisualizer SHARED ${MATRIXVISUALIZER_srcs} ${MATRIXVISUALIZER_forms})
IF(USE_QT5)
qt5_use_modules(MatrixVisualizer Widgets Core)
ENDIF(USE_QT5)
install(TARGETS MatrixVisualizer DESTINATION $ENV{HOME}/.vite)
#include <iostream>
#include <QWidget>
#include "plugin/Plugin.hpp"
// Generated
#include "ui_widget.h"
#include "MatrixVisualizer.hpp"
Matrix_visualizer::Matrix_visualizer() {
setupUi(this);
}
Matrix_visualizer::~Matrix_visualizer(){
}
void Matrix_visualizer::init(){
}
void Matrix_visualizer::clear(){
}
void Matrix_visualizer::set_arguments(std::map<std::string /*argname*/, QVariant* /*argValue*/>){
}
std::string Matrix_visualizer::get_name(){
return "Matrix visualizer";
}
void Matrix_visualizer::execute(){
}
#ifndef MATRIX_VISUALIZER_HPP
#define MATRIX_VISUALIZER_HPP
class Matrix_visualizer : public Plugin, protected Ui::Matrix_visualizer_widget_ui {
public:
Matrix_visualizer();
~Matrix_visualizer();
void init();
void clear();
void set_arguments(std::map<std::string /*argname*/, QVariant* /*argValue*/>);
std::string get_name();
public slots:
void execute();
};
extern "C"
#ifdef WIN32
__declspec(dllexport) // no comment
#endif
Plugin *create() { return new Matrix_visualizer(); }
#endif
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Matrix_visualizer_widget_ui</class>
<widget class="QWidget" name="Matrix_visualizer_widget_ui">
<property name="windowTitle">
Matrix visualizer
</property>
<layout class="QGridLayout" name="widget_layout">
<!-- Inputs block, top-left -->
<item row="0" column="0">
<widget class="QGroupBox" name="group_box_inputs">
<property name="title">
<string>Inputs:</string>
</property>
<layout class="QVBoxLayout" name="vertical_layout">
<item>
<widget class="QLabel" name="label_symbol">
<property name="text">
<string>Matrix symbolic file:</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontal_layout_symbol">
<item>
<widget class="QLineEdit" name="line_edit_symbol">
<property name="placeholderText">
<string>Matrix symbolic filepath...</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tool_button_symbol">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_symbol">
<property name="text">
<string>Matrix values file:</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontal_layout_values">
<item>
<widget class="QLineEdit" name="line_edit_values">
<property name="placeholderText">
<string>Matrix value filepath...</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tool_button_values">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<!-- Options block, bottom left -->
<item row="1" column="0">
<widget class="QGroupBox" name="group_box_options">
<property name="title">
<string>Options:</string>
</property>
</widget>
</item>
<!-- Infos block, top right -->
<item row="0" column="1">
<widget class="QGroupBox" name="group_box_infos">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>543</width>
<height>250</height>
</rect>
</property>
<property name="title">
<string>Infos:</string>
</property>
</widget>
</item>
<!-- Logs block, bottom right -->
<item row="1" column="1">
<widget class="QGroupBox" name="group_box_logs">
<property name="title">
<string>Logs:</string>
</property>
</widget>
</item>
</layout>
</widget>
</ui>
......@@ -34,4 +34,4 @@ IF(USE_QT5)
qt5_use_modules(TraceInfos Widgets Core)
ENDIF(USE_QT5)
install(TARGETS TraceInfos DESTINATION ${HOME}/.vite)
\ No newline at end of file
install(TARGETS TraceInfos DESTINATION $ENV{HOME}/.vite)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment