📄 show.h
字号:
/*************************************************************************** show.h - The definition for the display ------------------- begin : 2002 authors : Linus Gasser emails : linus.gasser@epfl.ch ***************************************************************************//*************************************************************************** Changes ------- date - name - description 02-12-19 - ineiti - begin **************************************************************************//*************************************************************************** * * * 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 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef SHOW_H__#define SHOW_H__#include <qobject.h>#include <qwidget.h>#include <qtimer.h>#include <qlayout.h>#include "block.h"#include "qwt_plot.h"/** * @short Holds the definition of a the display */class QwtPlotZoomer;class Show : public QwtPlot { Q_OBJECTpublic: Show(QString name, Block *b, QWidget *parent ); ~Show(); void AddTypes( QVBoxLayout *vBox, bool dSignal = true, bool dPlot = true, bool dFreeze = true ); void AddExport( QVBoxLayout *vBox ); long getKey() { return signal; }; void newBlock( QString name, Block *b ); enum showType_e showType;public slots: // Reads in the pointer and updates it on screen void Update(); // switch( t ){ // case 0: complex // case 1: real // case 2: imag // case 3: abs //} void ShowSig( int t ); void slotFreeze( bool dF ); void close(); void styling(int style); void slotExportPs(); void slotExportML(); void slotExportBin();protected: void Show::shapeSignal( double *x, double *y, double abs_x, double abs_y, double scaleX, double scaleY, int len ); void adjustCurve(); long signal; double scaleX, scaleY, zoomIn; QTimer* updateTimer; int freeze; int isLine; QwtPlotZoomer *plotZoomer; Block *block; QWidget *parent; bool dComplex;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -