kopia lustrzana https://gitlab.com/Teuniz/DSRemote
Added keyboard shortcut to toggle FFT.
rodzic
9f8732bbf6
commit
28c8ca9ec2
2
global.h
2
global.h
|
@ -35,7 +35,7 @@
|
|||
|
||||
|
||||
#define PROGRAM_NAME "DSRemote"
|
||||
#define PROGRAM_VERSION "0.32_1602011306"
|
||||
#define PROGRAM_VERSION "0.32_1602061414"
|
||||
|
||||
#define MAX_PATHLEN 4096
|
||||
|
||||
|
|
|
@ -1856,6 +1856,7 @@ void UI_Mainwindow::show_howto_operate()
|
|||
"Decrease vertical scale: +\n"
|
||||
"Press '1' to select or deselect channel 1\n"
|
||||
"Press '2' to select or deselect channel 2, etc.\n"
|
||||
"Press 'f' to toggle FFT.\n"
|
||||
);
|
||||
|
||||
msgBox.exec();
|
||||
|
|
|
@ -347,6 +347,7 @@ void UI_Mainwindow::open_connection()
|
|||
connect(select_chan2_act, SIGNAL(triggered()), this, SLOT(ch2ButtonClicked()));
|
||||
connect(select_chan3_act, SIGNAL(triggered()), this, SLOT(ch3ButtonClicked()));
|
||||
connect(select_chan4_act, SIGNAL(triggered()), this, SLOT(ch4ButtonClicked()));
|
||||
connect(toggle_fft_act, SIGNAL(triggered()), this, SLOT(toggle_fft()));
|
||||
|
||||
connect(horPosDial, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(horPosDialClicked(QPoint)));
|
||||
connect(vertOffsetDial, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(vertOffsetDialClicked(QPoint)));
|
||||
|
@ -466,6 +467,7 @@ void UI_Mainwindow::close_connection()
|
|||
disconnect(select_chan2_act, SIGNAL(triggered()), this, SLOT(ch2ButtonClicked()));
|
||||
disconnect(select_chan3_act, SIGNAL(triggered()), this, SLOT(ch3ButtonClicked()));
|
||||
disconnect(select_chan4_act, SIGNAL(triggered()), this, SLOT(ch4ButtonClicked()));
|
||||
disconnect(toggle_fft_act, SIGNAL(triggered()), this, SLOT(toggle_fft()));
|
||||
|
||||
disconnect(horPosDial, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(horPosDialClicked(QPoint)));
|
||||
disconnect(vertOffsetDial, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(vertOffsetDialClicked(QPoint)));
|
||||
|
|
|
@ -214,7 +214,8 @@ private:
|
|||
*select_chan1_act,
|
||||
*select_chan2_act,
|
||||
*select_chan3_act,
|
||||
*select_chan4_act;
|
||||
*select_chan4_act,
|
||||
*toggle_fft_act;
|
||||
|
||||
struct tmcdev *device;
|
||||
|
||||
|
|
|
@ -462,6 +462,10 @@ UI_Mainwindow::UI_Mainwindow()
|
|||
select_chan4_act->setShortcut(QKeySequence("4"));
|
||||
addAction(select_chan4_act);
|
||||
|
||||
toggle_fft_act = new QAction(this);
|
||||
toggle_fft_act->setShortcut(QKeySequence("f"));
|
||||
addAction(toggle_fft_act);
|
||||
|
||||
DPRwidget->setEnabled(false);
|
||||
|
||||
recent_dir[0] = 0;
|
||||
|
|
|
@ -1207,9 +1207,7 @@ void SignalCurve::drawfpsLabel(QPainter *painter, int xpos, int ypos)
|
|||
|
||||
painter->drawText(xpos, ypos, str);
|
||||
|
||||
tp2.tv_sec = tp1.tv_sec;
|
||||
|
||||
tp2.tv_nsec = tp1.tv_nsec;
|
||||
tp2 = tp1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue