Add AutomatedPlanner skeleton class
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "CommandQueueView.h"
|
||||
|
||||
#include "project.h"
|
||||
#include "../AutomatedPlanner.h"
|
||||
|
||||
#include "ui_CommandQueueView.h"
|
||||
|
||||
@@ -43,3 +44,10 @@ void CommandQueueView::on_btnStep_clicked()
|
||||
Project &project(*Project::get());
|
||||
project.processCommands(1);
|
||||
}
|
||||
|
||||
void CommandQueueView::on_btnPlan_clicked()
|
||||
{
|
||||
AutomatedPlanner planner;
|
||||
// TODO: Use some kind of UI context to retrieve currently selected function
|
||||
//planner.planFor(func);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@ protected:
|
||||
private slots:
|
||||
void on_btnStep_clicked();
|
||||
|
||||
void on_btnPlan_clicked();
|
||||
|
||||
private:
|
||||
Ui::CommandQueueView *ui;
|
||||
};
|
||||
|
||||
@@ -15,16 +15,40 @@
|
||||
</property>
|
||||
<widget class="QWidget" name="dockWidgetContents">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Planned actions:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="lstQueuedCommands"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnPlan">
|
||||
<property name="text">
|
||||
<string>Plan</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnStep">
|
||||
<property name="text">
|
||||
<string>Step</string>
|
||||
<string>Execute</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Completed actions:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="lstCompletedCommands"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>DockWidget</string>
|
||||
<string>Doc&kWidget</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="dockWidgetContents">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QTableView" name="m_func_list_view">
|
||||
<widget class="QTreeView" name="m_func_list_view">
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
</property>
|
||||
@@ -32,40 +32,7 @@
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>m_func_list_view</sender>
|
||||
<signal>activated(QModelIndex)</signal>
|
||||
<receiver>FunctionListDockWidget</receiver>
|
||||
<slot>displayRequest(QModelIndex)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>199</x>
|
||||
<y>161</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>199</x>
|
||||
<y>149</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>m_func_list_view</sender>
|
||||
<signal>clicked(QModelIndex)</signal>
|
||||
<receiver>FunctionListDockWidget</receiver>
|
||||
<slot>functionSelected(QModelIndex)</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>199</x>
|
||||
<y>161</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>199</x>
|
||||
<y>149</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<connections/>
|
||||
<slots>
|
||||
<signal>displayRequested()</signal>
|
||||
<slot>displayRequest(QModelIndex)</slot>
|
||||
|
||||
Reference in New Issue
Block a user