Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
92d1657e
Commit
92d1657e
authored
Dec 30, 2016
by
Don Gagne
Committed by
GitHub
Dec 30, 2016
Browse files
Merge pull request #4366 from DonLakeFlyer/DeadCode
Remove dead code
parents
ac1faef9
1b89b4c1
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
qgroundcontrol.pro
View file @
92d1657e
...
...
@@ -314,7 +314,6 @@ FORMS += \
FORMS += \
src/ui/Linechart.ui \
src/ui/MultiVehicleDockWidget.ui \
src/ui/QGCDataPlot2D.ui \
src/ui/QGCHilConfiguration.ui \
src/ui/QGCHilFlightGearConfiguration.ui \
src/ui/QGCHilJSBSimConfiguration.ui \
...
...
@@ -545,7 +544,6 @@ HEADERS += \
src/ui/MAVLinkDecoder.h \
src/ui/MainWindow.h \
src/ui/MultiVehicleDockWidget.h \
src/ui/QGCDataPlot2D.h \
src/ui/QGCHilConfiguration.h \
src/ui/QGCHilFlightGearConfiguration.h \
src/ui/QGCHilJSBSimConfiguration.h \
...
...
@@ -694,7 +692,6 @@ SOURCES += \
src/ui/MAVLinkDecoder.cc \
src/ui/MainWindow.cc \
src/ui/MultiVehicleDockWidget.cc \
src/ui/QGCDataPlot2D.cc \
src/ui/QGCHilConfiguration.cc \
src/ui/QGCHilFlightGearConfiguration.cc \
src/ui/QGCHilJSBSimConfiguration.cc \
...
...
src/ui/MainWindow.cc
View file @
92d1657e
...
...
@@ -43,7 +43,6 @@
#include
"QGCImageProvider.h"
#ifndef __mobile__
#include
"QGCDataPlot2D.h"
#include
"Linecharts.h"
#include
"QGCUASFileViewMulti.h"
#include
"UASQuickView.h"
...
...
src/ui/MainWindow.h
View file @
92d1657e
...
...
@@ -47,7 +47,6 @@
class
QGCStatusBar
;
class
Linecharts
;
class
QGCDataPlot2D
;
/**
* @brief Main Application Window
...
...
src/ui/QGCDataPlot2D.cc
deleted
100644 → 0
View file @
ac1faef9
This diff is collapsed.
Click to expand it.
src/ui/QGCDataPlot2D.h
deleted
100644 → 0
View file @
ac1faef9
#ifndef QGCDATAPLOT2D_H
#define QGCDATAPLOT2D_H
#include
<QWidget>
#include
<QFile>
#include
"IncrementalPlot.h"
#include
"LogCompressor.h"
namespace
Ui
{
class
QGCDataPlot2D
;
}
class
QGCDataPlot2D
:
public
QWidget
{
Q_OBJECT
public:
QGCDataPlot2D
(
QWidget
*
parent
=
0
);
~
QGCDataPlot2D
();
/** @brief Calculate and display regression function*/
bool
calculateRegression
(
QString
xName
,
QString
yName
,
QString
method
=
"linear"
);
/** @brief Linear regression over data points */
bool
linearRegression
(
double
*
x
,
double
*
y
,
int
n
,
double
*
a
,
double
*
b
,
double
*
r
);
public
slots
:
/** @brief Load previously selected file */
void
loadFile
();
/** @brief Load file with this name */
void
loadFile
(
QString
file
);
/** @brief Reload a file, with filtering enabled */
void
reloadFile
();
void
selectFile
();
void
loadCsvLog
(
QString
file
,
QString
xAxisName
=
""
,
QString
yAxisFilter
=
""
);
void
loadRawLog
(
QString
file
,
QString
xAxisName
=
""
,
QString
yAxisFilter
=
""
);
void
saveCsvLog
();
/** @brief Save plot to PDF or SVG */
void
savePlot
();
/** @brief Export PDF file */
void
exportPDF
(
QString
fileName
);
/** @brief Export SVG file */
void
exportSVG
(
QString
file
);
/** @brief Print or save PDF file (MacOS/Linux) */
void
print
();
/** @brief Calculate and display regression function*/
bool
calculateRegression
();
signals:
void
visibilityChanged
(
bool
visible
);
protected:
void
showEvent
(
QShowEvent
*
event
)
{
QWidget
::
showEvent
(
event
);
emit
visibilityChanged
(
true
);
}
void
hideEvent
(
QHideEvent
*
event
)
{
QWidget
::
hideEvent
(
event
);
emit
visibilityChanged
(
false
);
}
void
changeEvent
(
QEvent
*
e
);
QString
getSavePlotFilename
();
IncrementalPlot
*
plot
;
LogCompressor
*
compressor
;
QFile
*
logFile
;
QString
fileName
;
QStringList
curveNames
;
private:
Ui
::
QGCDataPlot2D
*
ui
;
};
#endif // QGCDATAPLOT2D_H
src/ui/QGCDataPlot2D.ui
deleted
100644 → 0
View file @
ac1faef9
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
QGCDataPlot2D
</class>
<widget
class=
"QWidget"
name=
"QGCDataPlot2D"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
1463
</width>
<height>
311
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
columnstretch=
"1,1,1,1,100,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
X
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"xAxis"
/>
</item>
<item
row=
"0"
column=
"3"
>
<widget
class=
"QLabel"
name=
"label_3"
>
<property
name=
"text"
>
<string>
Y
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"4"
>
<widget
class=
"QLineEdit"
name=
"yAxis"
/>
</item>
<item
row=
"0"
column=
"5"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"style"
>
<property
name=
"toolTip"
>
<string>
Set line style
</string>
</property>
<item>
<property
name=
"text"
>
<string>
Only lines
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Only crosses
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Only circles
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Only rectangles
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Lines and crosses
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Lines and circles
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Lines and rects
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Dotted lines and crosses
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Dotted lines and circles
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Dotted lines and rects
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Dashed lines and crosses
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Dashed lines and circles
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Dashed lines and rects
</string>
</property>
</item>
</widget>
</item>
<item
row=
"0"
column=
"7"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"reloadButton"
>
<property
name=
"text"
>
<string>
Replot
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"11"
>
<widget
class=
"Line"
name=
"line"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
</widget>
</item>
<item
row=
"0"
column=
"12"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"savePlotButton"
>
<property
name=
"text"
>
<string>
Save Image
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"19"
>
<widget
class=
"QPushButton"
name=
"printButton"
>
<property
name=
"text"
>
<string>
Print
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"label_4"
>
<property
name=
"text"
>
<string>
Title
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"2"
colspan=
"3"
>
<widget
class=
"QLineEdit"
name=
"plotTitle"
/>
</item>
<item
row=
"1"
column=
"5"
>
<widget
class=
"QLabel"
name=
"label_5"
>
<property
name=
"text"
>
<string>
X label
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"6"
colspan=
"2"
>
<widget
class=
"QLineEdit"
name=
"plotXAxisLabel"
/>
</item>
<item
row=
"1"
column=
"8"
>
<widget
class=
"QLabel"
name=
"label_6"
>
<property
name=
"text"
>
<string>
Y label
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"9"
colspan=
"3"
>
<widget
class=
"QLineEdit"
name=
"plotYAxisLabel"
/>
</item>
<item
row=
"1"
column=
"12"
colspan=
"2"
>
<widget
class=
"QCheckBox"
name=
"symmetricCheckBox"
>
<property
name=
"text"
>
<string>
Symmetric
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"14"
colspan=
"2"
>
<widget
class=
"QCheckBox"
name=
"legendCheckBox"
>
<property
name=
"text"
>
<string>
Legend
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"16"
>
<widget
class=
"QCheckBox"
name=
"gridCheckBox"
>
<property
name=
"text"
>
<string>
Grid
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
colspan=
"20"
>
<widget
class=
"QFrame"
name=
"plotFrame"
>
<property
name=
"frameShape"
>
<enum>
QFrame::StyledPanel
</enum>
</property>
<property
name=
"frameShadow"
>
<enum>
QFrame::Raised
</enum>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
File
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"1"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"inputFileType"
>
<item>
<property
name=
"text"
>
<string>
CSV
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
pxIMU
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
RAW
</string>
</property>
</item>
</widget>
</item>
<item
row=
"3"
column=
"3"
colspan=
"4"
>
<widget
class=
"QLabel"
name=
"filenameLabel"
>
<property
name=
"text"
>
<string>
Please select input file..
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"8"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"selectFileButton"
>
<property
name=
"text"
>
<string>
Select file
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"10"
colspan=
"2"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"3"
column=
"12"
>
<widget
class=
"Line"
name=
"line_2"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
</widget>
</item>
<item
row=
"3"
column=
"13"
>
<widget
class=
"QLabel"
name=
"label_7"
>
<property
name=
"text"
>
<string>
Regression
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"14"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"xRegressionComboBox"
/>
</item>
<item
row=
"3"
column=
"16"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"yRegressionComboBox"
/>
</item>
<item
row=
"3"
column=
"19"
>
<widget
class=
"QPushButton"
name=
"regressionButton"
>
<property
name=
"text"
>
<string>
Calculate
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"18"
>
<widget
class=
"QLineEdit"
name=
"regressionOutput"
>
<property
name=
"readOnly"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"0"
column=
"14"
>
<widget
class=
"QPushButton"
name=
"saveCsvButton"
>
<property
name=
"text"
>
<string>
Save Data
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"9"
colspan=
"2"
>
<spacer
name=
"horizontalSpacer_2"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
5
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment