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
2a0a9430
Commit
2a0a9430
authored
Aug 03, 2013
by
Lorenz Meier
Browse files
Merge branch 'master' into config
parents
2ba6578d
cbfff6d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindow.cc
View file @
2a0a9430
...
...
@@ -106,7 +106,7 @@ MainWindow* MainWindow::instance_mode(QSplashScreen* screen, enum MainWindow::CU
MainWindow
*
MainWindow
::
instance
(
QSplashScreen
*
screen
)
{
instance_mode
(
screen
,
CUSTOM_MODE_
NONE
);
return
instance_mode
(
screen
,
CUSTOM_MODE_
UNCHANGED
);
}
/**
...
...
@@ -131,7 +131,7 @@ MainWindow::MainWindow(QWidget *parent):
isAdvancedMode
(
false
),
mavlink
(
new
MAVLinkProtocol
()),
dockWidgetTitleBarEnabled
(
true
),
customMode
(
CUSTOM_MODE_
WIFI
)
customMode
(
CUSTOM_MODE_
NONE
)
{
this
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
//TODO: move protocol outside UI
...
...
@@ -1344,6 +1344,7 @@ bool MainWindow::loadStyle(QGC_MAINWINDOW_STYLE style, QString cssFile)
// And trigger any changes to other UI elements that are watching for
// theme changes.
emit
styleChanged
(
style
);
emit
styleChanged
();
// Finally restore the cursor before returning.
qApp
->
restoreOverrideCursor
();
...
...
src/ui/MainWindow.h
View file @
2a0a9430
...
...
@@ -98,7 +98,8 @@ class MainWindow : public QMainWindow
public:
enum
CUSTOM_MODE
{
CUSTOM_MODE_NONE
=
0
,
CUSTOM_MODE_UNCHANGED
=
0
,
CUSTOM_MODE_NONE
,
CUSTOM_MODE_PX4
,
CUSTOM_MODE_APM
,
CUSTOM_MODE_WIFI
...
...
@@ -177,7 +178,10 @@ public:
void
setCustomMode
(
enum
MainWindow
::
CUSTOM_MODE
mode
)
{
customMode
=
mode
;
if
(
mode
!=
CUSTOM_MODE_UNCHANGED
)
{
customMode
=
mode
;
}
}
enum
MainWindow
::
CUSTOM_MODE
getCustomMode
()
...
...
@@ -307,6 +311,7 @@ public slots:
signals:
void
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
newTheme
);
void
styleChanged
();
void
initStatusChanged
(
const
QString
&
message
,
int
alignment
,
const
QColor
&
color
);
#ifdef MOUSE_ENABLED_LINUX
/** @brief Forward X11Event to catch 3DMouse inputs */
...
...
@@ -502,6 +507,7 @@ protected:
bool
lowPowerMode
;
///< If enabled, QGC reduces the update rates of all widgets
QGCFlightGearLink
*
fgLink
;
QTimer
windowNameUpdateTimer
;
CUSTOM_MODE
customMode
;
private:
QList
<
QObject
*>
commsWidgetList
;
...
...
@@ -511,7 +517,6 @@ private:
QMap
<
VIEW_SECTIONS
,
QMap
<
QString
,
QWidget
*>
>
centralWidgetToDockWidgetsMap
;
bool
isAdvancedMode
;
///< If enabled dock widgets can be moved and floated.
bool
dockWidgetTitleBarEnabled
;
///< If enabled, dock widget titlebars are displayed when NOT in advanced mode.
CUSTOM_MODE
customMode
;
Ui
::
MainWindow
ui
;
/** @brief Set the appropriate titlebar for a given dock widget.
...
...
src/ui/linechart/LinechartWidget.cc
View file @
2a0a9430
...
...
@@ -137,14 +137,7 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent
// Create the layout
createLayout
();
// Add the last actions
//connect(this, SIGNAL(plotWindowPositionUpdated(int)), scrollbar, SLOT(setValue(int)));
//connect(scrollbar, SIGNAL(sliderMoved(int)), this, SLOT(setPlotWindowPosition(int)));
// And make sure we're listening for future style changes
connect
(
MainWindow
::
instance
(),
SIGNAL
(
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
)),
this
,
SLOT
(
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
)));
connect
(
MainWindow
::
instance
(),
SIGNAL
(
styleChanged
()),
this
,
SLOT
(
recolor
()));
updateTimer
->
setInterval
(
updateInterval
);
...
...
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