Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
07aba7a1
Commit
07aba7a1
authored
Jul 31, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old SettingsDialog
parent
8c7432cb
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
168 deletions
+1
-168
qgroundcontrol.pro
qgroundcontrol.pro
+0
-3
MainWindow.cc
src/ui/MainWindow.cc
+1
-12
MainWindow.h
src/ui/MainWindow.h
+0
-4
MainWindow.ui
src/ui/MainWindow.ui
+0
-12
SettingsDialog.cc
src/ui/SettingsDialog.cc
+0
-57
SettingsDialog.h
src/ui/SettingsDialog.h
+0
-37
SettingsDialog.ui
src/ui/SettingsDialog.ui
+0
-43
No files found.
qgroundcontrol.pro
View file @
07aba7a1
...
@@ -238,7 +238,6 @@ FORMS += \
...
@@ -238,7 +238,6 @@ FORMS += \
src/ui/QGCTabbedInfoView.ui \
src/ui/QGCTabbedInfoView.ui \
src/ui/QGCUASFileView.ui \
src/ui/QGCUASFileView.ui \
src/ui/QGCUASFileViewMulti.ui \
src/ui/QGCUASFileViewMulti.ui \
src/ui/SettingsDialog.ui \
src/ui/uas/UASQuickView.ui \
src/ui/uas/UASQuickView.ui \
src/ui/uas/UASQuickViewItemSelect.ui \
src/ui/uas/UASQuickViewItemSelect.ui \
src/ui/UASInfo.ui \
src/ui/UASInfo.ui \
...
@@ -363,7 +362,6 @@ HEADERS += \
...
@@ -363,7 +362,6 @@ HEADERS += \
src/ui/MultiVehicleDockWidget.h \
src/ui/MultiVehicleDockWidget.h \
src/ui/QGCMAVLinkLogPlayer.h \
src/ui/QGCMAVLinkLogPlayer.h \
src/ui/QGCMapRCToParamDialog.h \
src/ui/QGCMapRCToParamDialog.h \
src/ui/SettingsDialog.h \
src/ui/uas/UASMessageView.h \
src/ui/uas/UASMessageView.h \
src/ui/uas/QGCUnconnectedInfoWidget.h \
src/ui/uas/QGCUnconnectedInfoWidget.h \
src/ui/QGCDataPlot2D.h \
src/ui/QGCDataPlot2D.h \
...
@@ -490,7 +488,6 @@ SOURCES += \
...
@@ -490,7 +488,6 @@ SOURCES += \
src/ui/uas/UASMessageView.cc \
src/ui/uas/UASMessageView.cc \
src/uas/FileManager.cc \
src/uas/FileManager.cc \
src/ui/uas/QGCUnconnectedInfoWidget.cc \
src/ui/uas/QGCUnconnectedInfoWidget.cc \
src/ui/SettingsDialog.cc \
src/ui/MAVLinkDecoder.cc \
src/ui/MAVLinkDecoder.cc \
src/ui/MAVLinkSettingsWidget.cc \
src/ui/MAVLinkSettingsWidget.cc \
src/ui/QGCMapRCToParamDialog.cpp \
src/ui/QGCMapRCToParamDialog.cpp \
...
...
src/ui/MainWindow.cc
View file @
07aba7a1
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include <QDesktopServices>
#include <QDesktopServices>
#include <QDockWidget>
#include <QDockWidget>
#include <QMenuBar>
#include <QMenuBar>
#include <QDialog>
#include "QGC.h"
#include "QGC.h"
#include "MAVLinkProtocol.h"
#include "MAVLinkProtocol.h"
...
@@ -42,7 +43,6 @@
...
@@ -42,7 +43,6 @@
#include "QGCImageProvider.h"
#include "QGCImageProvider.h"
#ifndef __mobile__
#ifndef __mobile__
#include "SettingsDialog.h"
#include "QGCDataPlot2D.h"
#include "QGCDataPlot2D.h"
#include "Linecharts.h"
#include "Linecharts.h"
#include "QGCUASFileViewMulti.h"
#include "QGCUASFileViewMulti.h"
...
@@ -489,9 +489,6 @@ void MainWindow::connectCommonActions()
...
@@ -489,9 +489,6 @@ void MainWindow::connectCommonActions()
connect
(
qgcApp
()
->
toolbox
()
->
audioOutput
(),
&
GAudioOutput
::
mutedChanged
,
_ui
.
actionMuteAudioOutput
,
&
QAction
::
setChecked
);
connect
(
qgcApp
()
->
toolbox
()
->
audioOutput
(),
&
GAudioOutput
::
mutedChanged
,
_ui
.
actionMuteAudioOutput
,
&
QAction
::
setChecked
);
connect
(
_ui
.
actionMuteAudioOutput
,
&
QAction
::
triggered
,
qgcApp
()
->
toolbox
()
->
audioOutput
(),
&
GAudioOutput
::
mute
);
connect
(
_ui
.
actionMuteAudioOutput
,
&
QAction
::
triggered
,
qgcApp
()
->
toolbox
()
->
audioOutput
(),
&
GAudioOutput
::
mute
);
// Application Settings
connect
(
_ui
.
actionSettings
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
showSettings
);
// Connect internal actions
// Connect internal actions
connect
(
qgcApp
()
->
toolbox
()
->
multiVehicleManager
(),
&
MultiVehicleManager
::
vehicleAdded
,
this
,
&
MainWindow
::
_vehicleAdded
);
connect
(
qgcApp
()
->
toolbox
()
->
multiVehicleManager
(),
&
MultiVehicleManager
::
vehicleAdded
,
this
,
&
MainWindow
::
_vehicleAdded
);
}
}
...
@@ -503,14 +500,6 @@ void MainWindow::_openUrl(const QString& url, const QString& errorMessage)
...
@@ -503,14 +500,6 @@ void MainWindow::_openUrl(const QString& url, const QString& errorMessage)
}
}
}
}
#ifndef __mobile__
void
MainWindow
::
showSettings
()
{
SettingsDialog
settings
(
this
);
settings
.
exec
();
}
#endif
void
MainWindow
::
_vehicleAdded
(
Vehicle
*
vehicle
)
void
MainWindow
::
_vehicleAdded
(
Vehicle
*
vehicle
)
{
{
connect
(
vehicle
->
uas
(),
&
UAS
::
valueChanged
,
this
,
&
MainWindow
::
valueChanged
);
connect
(
vehicle
->
uas
(),
&
UAS
::
valueChanged
,
this
,
&
MainWindow
::
valueChanged
);
...
...
src/ui/MainWindow.h
View file @
07aba7a1
...
@@ -89,10 +89,6 @@ public:
...
@@ -89,10 +89,6 @@ public:
QObject
*
rootQmlObject
(
void
);
QObject
*
rootQmlObject
(
void
);
public
slots
:
public
slots
:
#ifndef __mobile__
void
showSettings
();
#endif
/** @brief Save power by reducing update rates */
/** @brief Save power by reducing update rates */
void
enableLowPowerMode
(
bool
enabled
)
{
_lowPowerMode
=
enabled
;
}
void
enableLowPowerMode
(
bool
enabled
)
{
_lowPowerMode
=
enabled
;
}
...
...
src/ui/MainWindow.ui
View file @
07aba7a1
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
<addaction
name=
"separator"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"actionMuteAudioOutput"
/>
<addaction
name=
"actionMuteAudioOutput"
/>
<addaction
name=
"actionStatusBar"
/>
<addaction
name=
"actionStatusBar"
/>
<addaction
name=
"actionSettings"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"actionExit"
/>
<addaction
name=
"actionExit"
/>
</widget>
</widget>
...
@@ -95,17 +94,6 @@
...
@@ -95,17 +94,6 @@
<string>
Mute Audio Output
</string>
<string>
Mute Audio Output
</string>
</property>
</property>
</action>
</action>
<action
name=
"actionSettings"
>
<property
name=
"text"
>
<string>
Settings
</string>
</property>
<property
name=
"toolTip"
>
<string>
Application settings
</string>
</property>
<property
name=
"menuRole"
>
<enum>
QAction::PreferencesRole
</enum>
</property>
</action>
<action
name=
"actionAdvanced_Mode"
>
<action
name=
"actionAdvanced_Mode"
>
<property
name=
"checkable"
>
<property
name=
"checkable"
>
<bool>
true
</bool>
<bool>
true
</bool>
...
...
src/ui/SettingsDialog.cc
deleted
100644 → 0
View file @
8c7432cb
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#include <QSettings>
#include <QDesktopWidget>
#include "SettingsDialog.h"
#include "MainWindow.h"
#include "ui_SettingsDialog.h"
#include "LinkManager.h"
#include "MAVLinkProtocol.h"
#include "MAVLinkSettingsWidget.h"
#include "GAudioOutput.h"
#include "QGCApplication.h"
#include "QGCFileDialog.h"
#include "QGCMessageBox.h"
#include "MainToolBarController.h"
#include "FlightMapSettings.h"
SettingsDialog
::
SettingsDialog
(
QWidget
*
parent
,
Qt
::
WindowFlags
flags
)
:
QDialog
(
parent
,
flags
)
,
_ui
(
new
Ui
::
SettingsDialog
)
{
_ui
->
setupUi
(
this
);
// Center the window on the screen.
QDesktopWidget
*
desktop
=
QApplication
::
desktop
();
int
screen
=
desktop
->
screenNumber
(
parent
);
QRect
position
=
frameGeometry
();
position
.
moveCenter
(
QApplication
::
desktop
()
->
availableGeometry
(
screen
).
center
());
move
(
position
.
topLeft
());
MAVLinkSettingsWidget
*
pMavsettings
=
new
MAVLinkSettingsWidget
(
qgcApp
()
->
toolbox
()
->
mavlinkProtocol
(),
this
);
// Add the MAVLink settings pane
_ui
->
tabWidget
->
addTab
(
pMavsettings
,
"MAVLink"
);
this
->
window
()
->
setWindowTitle
(
tr
(
"QGroundControl Settings"
));
_ui
->
tabWidget
->
setCurrentWidget
(
pMavsettings
);
connect
(
_ui
->
buttonBox
,
&
QDialogButtonBox
::
accepted
,
this
,
&
SettingsDialog
::
accept
);
}
SettingsDialog
::~
SettingsDialog
()
{
delete
_ui
;
}
src/ui/SettingsDialog.h
deleted
100644 → 0
View file @
8c7432cb
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include <QDialog>
#include "MainWindow.h"
#include "GAudioOutput.h"
#include "FlightMapSettings.h"
namespace
Ui
{
class
SettingsDialog
;
}
class
SettingsDialog
:
public
QDialog
{
Q_OBJECT
public:
SettingsDialog
(
QWidget
*
parent
=
0
,
Qt
::
WindowFlags
flags
=
Qt
::
Sheet
);
~
SettingsDialog
();
private:
Ui
::
SettingsDialog
*
_ui
;
};
#endif
src/ui/SettingsDialog.ui
deleted
100644 → 0
View file @
8c7432cb
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
SettingsDialog
</class>
<widget
class=
"QDialog"
name=
"SettingsDialog"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
500
</width>
<height>
689
</height>
</rect>
</property>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"MinimumExpanding"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"windowTitle"
>
<string>
Dialog
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_5"
>
<item>
<widget
class=
"QTabWidget"
name=
"tabWidget"
/>
</item>
<item>
<widget
class=
"QDialogButtonBox"
name=
"buttonBox"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"standardButtons"
>
<set>
QDialogButtonBox::Ok
</set>
</property>
<property
name=
"centerButtons"
>
<bool>
false
</bool>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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