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
434ac621
Commit
434ac621
authored
Apr 24, 2013
by
Michael Carpenter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled movement of dock widges, unless in "Advanced Mode" (File->Advanced Mode)
parent
bb90b295
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
3 deletions
+80
-3
MainWindow.cc
src/ui/MainWindow.cc
+63
-2
MainWindow.h
src/ui/MainWindow.h
+4
-0
MainWindow.ui
src/ui/MainWindow.ui
+13
-1
No files found.
src/ui/MainWindow.cc
View file @
434ac621
This diff is collapsed.
Click to expand it.
src/ui/MainWindow.h
View file @
434ac621
...
...
@@ -155,6 +155,8 @@ public slots:
void
stopVideoCapture
();
void
saveScreen
();
/** @brief Sets advanced mode, allowing for editing of tool widget locations */
void
setAdvancedMode
();
/** @brief Load configuration view */
void
loadConfigurationView
();
/** @brief Load default view when no MAV is connected */
...
...
@@ -419,6 +421,8 @@ protected:
QTimer
windowNameUpdateTimer
;
private:
QMap
<
QDockWidget
*
,
QWidget
*>
dockToTitleBarMap
;
bool
isAdvancedMode
;
Ui
::
MainWindow
ui
;
QString
getWindowStateKey
();
...
...
src/ui/MainWindow.ui
View file @
434ac621
...
...
@@ -72,6 +72,7 @@
<addaction
name=
"actionJoystickSettings"
/>
<addaction
name=
"actionSettings"
/>
<addaction
name=
"menuPreferences"
/>
<addaction
name=
"actionAdvanced_Mode"
/>
<addaction
name=
"separator"
/>
<addaction
name=
"actionExit"
/>
</widget>
...
...
@@ -467,9 +468,12 @@
</property>
<property
name=
"toolTip"
>
<string>
Open the simulation view
</string>
</property>
</property>
</action>
<action
name=
"actionConfiguration_2"
>
<property
name=
"checkable"
>
<bool>
true
</bool>
</property>
<property
name=
"icon"
>
<iconset
resource=
"../../qgroundcontrol.qrc"
>
<normaloff>
:/files/images/categories/preferences-system.svg
</normaloff>
:/files/images/categories/preferences-system.svg
</iconset>
...
...
@@ -478,6 +482,14 @@
<string>
Configuration
</string>
</property>
</action>
<action
name=
"actionAdvanced_Mode"
>
<property
name=
"checkable"
>
<bool>
true
</bool>
</property>
<property
name=
"text"
>
<string>
Advanced Mode
</string>
</property>
</action>
</widget>
<layoutdefault
spacing=
"6"
margin=
"11"
/>
<resources>
...
...
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