##// END OF EJS Templates
Function added to the plugin to store packets in CSV format.
Function added to the plugin to store packets in CSV format.

File last commit:

r46:47a6c68a9cf9 default
r55:4ea52012da18 default
Show More
rmappluginui.h
169 lines | 4.9 KiB | text/x-c | CLexer
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 /*------------------------------------------------------------------------------
-- This file is a part of the LPPMON Software
-- Copyright (C) 20011, Laboratory of Plasma Physics - CNRS
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-------------------------------------------------------------------------------*/
/*-- Author : Paul Leroy
-- Mail : paul.leroy@lpp.polytechnique.fr
----------------------------------------------------------------------------*/
#ifndef RMAPPLUGINUI_H
#define RMAPPLUGINUI_H
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QSlider>
#include <QSpinBox>
#include <QGridLayout>
#include <QCheckBox>
#include <QFile>
#include <QTextStream>
#include <QFileDialog>
#include <QDir>
#include <QDialog>
#include <QCloseEvent>
#include <QTabWidget>
lfrsgse is a QMainWindow...
r39 #include <QTextEdit>
#include <QRadioButton>
#include <QGroupBox>
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 #include <rmapoperations.h>
#include <gresbstatusenquiry.h>
#include <stardundee.h>
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 #include <gresb.h>
lfrsgse is a QMainWindow...
r39 #include <wfdisplay.h>
dashboard tab added to the rmapplugin...
r46 #include <parameterdump.h>
lfrsgse is a QMainWindow...
r39
#include "qipdialogbox.h"
waveform display added for the normal mode...
r19 #include "tmstatistics.h"
First version of the gse-lesia module...
r23 #include "tmechobridge.h"
dashboard tab added to the rmapplugin...
r46 #include "entermode.h"
#include "lfractions.h"
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1
enum selectedBridge{
selectedBridgeIsUnknown,
selectedBridgeIsGRESB,
selectedBridgeIsStarDundee
};
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
class rmapPluginUI : public QWidget
{
Q_OBJECT
public:
explicit rmapPluginUI(QWidget *parent = 0);
~rmapPluginUI();
QPushButton* rmapOpenCommunicationButton;
QPushButton* rmapCloseCommunicationButton;
QPushButton* logFileChooseButton;
QPushButton* gresbStatusQueryRetryButton;
QPushButton* gresbStatusQueryAbortButton;
QPushButton* sendCCSDSCommandButton;
QPushButton* send_TC_LFR_UPDATE_TIME_Button;
QPushButton* reset_TC_LFR_UPDATE_TIME_Button;
QPushButton* clearConsoleButton;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QRadioButton* selectGRESB_BUTTON;
QRadioButton* selectStarDundee_BUTTON;
QGroupBox *selection_GROUPBOX;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 QSpinBox* gresbVirtualLinkSpinBox;
QSpinBox* spwLinkSpinBox;
QSpinBox* rmapSourceLogicalAddressSpinBox;
QSpinBox* rmapTargetLogicalAddressSpinBox;
QSpinBox* CCSDSTargetLogicalAddressSpinBox;
QCheckBox *logEnableCheckBox;
QCheckBox *RMAP_write_verify;
QCheckBox *RMAP_write_reply;
QLabel* rmapSendStateLabel;
QLabel* rmapReceiveStateLabel;
QLabel* gresbStatusQueryLabel;
QLabel* gresbStatusQueryDialogLabel;
QLabel* sendCCSDSCommandLabel;
plugin updated, TM packet store reworked to store any TM continuously...
r13 QLabel* nbPacketInStore;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
QDialog* gresbStatusQueryDialog;
QTextEdit* console;
first version of the waveform display...
r17 WFDisplay* wfDisplay;
waveform display added for the normal mode...
r19 TMStatistics* tmStatistics;
dashboard tab added to the rmapplugin...
r46 LFRActions* lfrActions;
waveform display added for the normal mode...
r19
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 // SPACEWIRE BRIDGES
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 StarDundee *starDundee;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 gresb *gresbBridge;
First version of the gse-lesia module...
r23 // TM Echo Bridge
TMEchoBridge * tmEchoBridge;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 bool islogfileenable();
void appendToLogFile(const QString & text);
void closeEvent(QCloseEvent *event);
public slots:
void chooseLogFile();
void logFileEnDisable(int state);
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 RMAP_command_codes getCommandCode();
private slots:
void selectionBetweenGresbAndStarDundee();
Minor updates
r3 void isOpen(bool flag);
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
signals:
void connectPortsig(QString PortName,int baudrate);
void setLogFileName(QString FileName);
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 void commandCodeHasChanged(RMAP_command_codes commandCode);
void bridgeHasChanged(selectedBridge bridge);
Minor updates
r3 void targetHasChanged(unsigned char target);
Plugin modified to allow the launch of interactiv tests from the python interpreter...
r11 void sourceHasChanged(unsigned char source);
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
private:
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QLabel *gresbBridgeIPLabel;
QLabel *gresbVirtualLinkLabel;
QLabel *spwLinkLabel;
QLabel *rmapSourceLogicalAddressLabel;
QLabel *rmapTargetLogicalAddressLabel;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 QLabel *logFileName;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QGridLayout *bridgeSelection_LAYOUT;
first version of the waveform display...
r17 QGridLayout *connectionLayout;
QGridLayout *gresbStatusQueryDialogLayout;
QGridLayout *generalParameters_LAYOUT;
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QVBoxLayout *selectionLayout;
QVBoxLayout *mainLayout;
QVBoxLayout *ccsdsLayout;
QVBoxLayout *consoleLayout;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QTabWidget *spwTabWidget;
QWidget* bridgeWidget;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0
paul@pc-solar1.lab-lpp.local
First version with the Star Dundee bridge operational
r1 QGroupBox *gresb_GROUPBOX;
QGroupBox *stardundee_GROUPBOX;
QGroupBox *generalParameters_GROUPBOX;
QFile *logFile;
QTextStream *logFileStrm;
Initial commit: rmapplugin fully operational with the GRESB Ethernet/SpaceWire bridge.
r0 bool logFileEn;
};
#endif // RMAPPLUGINUI_H