Commit 2a18b17f authored by Michael Carpenter's avatar Michael Carpenter

Changes for the new "View" navigation, and fixes to get most of the...

Changes for the new "View" navigation, and fixes to get most of the dockwidgets working with the new view system
parent ce9d6ce1
This diff is collapsed.
......@@ -228,6 +228,7 @@ public slots:
*/
void showTool(bool visible);
/**
* @brief Shows a Widget from the center stack based on the action sender
*
......@@ -265,8 +266,8 @@ protected:
typedef enum _VIEW_SECTIONS
{
VIEW_ENGINEER,
VIEW_OPERATOR,
VIEW_PILOT,
VIEW_MISSION,
VIEW_FLIGHT,
VIEW_SIMULATION,
VIEW_MAVLINK,
VIEW_FIRMWAREUPDATE,
......@@ -287,7 +288,7 @@ protected:
* @param location The default location for the QDockedWidget in case there is no previous key in the settings
*/
void addTool(SubMainWindow *parent,VIEW_SECTIONS view,QDockWidget* widget, const QString& title, Qt::DockWidgetArea area);
void createDockWidget(QWidget *parent,QWidget *child,QString title,QString objectname,VIEW_SECTIONS view,Qt::DockWidgetArea area,int minwidth=0,int minheight=0);
/**
* @brief Adds an already instantiated QWidget to the center stack
*
......
......@@ -102,10 +102,11 @@
<property name="title">
<string>Perspectives</string>
</property>
<addaction name="actionOperatorsView"/>
<addaction name="actionEngineersView"/>
<addaction name="actionPilotsView"/>
<addaction name="actionMissionView"/>
<addaction name="actionFlightView"/>
<addaction name="actionConfiguration_2"/>
<addaction name="actionEngineersView"/>
<addaction name="actionSimulationView"/>
<addaction name="separator"/>
<addaction name="actionFirmwareUpdateView"/>
<addaction name="actionMavlinkView"/>
......@@ -281,7 +282,7 @@
<string>Developer Credits</string>
</property>
</action>
<action name="actionOperatorsView">
<action name="actionMissionView">
<property name="checkable">
<bool>true</bool>
</property>
......@@ -335,7 +336,7 @@
<string>Select Stylesheet</string>
</property>
</action>
<action name="actionPilotsView">
<action name="actionFlightView">
<property name="checkable">
<bool>true</bool>
</property>
......@@ -490,6 +491,11 @@
<string>Advanced Mode</string>
</property>
</action>
<action name="actionSimulationView">
<property name="text">
<string>Simulation</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>
......
......@@ -65,6 +65,8 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent), m_ui(new Ui::UA
uasViews = QMap<UASInterface*, UASView*>();
this->setVisible(false);
connect(UASManager::instance(),SIGNAL(UASCreated(UASInterface*)),this,SLOT(addUAS(UASInterface*)));
}
UASListWidget::~UASListWidget()
......
......@@ -290,7 +290,7 @@ void UASView::hideEvent(QHideEvent* event)
// React only to internal (pre-display)
// events
Q_UNUSED(event);
refreshTimer->stop();
// refreshTimer->stop();
}
void UASView::receiveHeartbeat(UASInterface* uas)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment