Permalink
Browse files

Set up stubs for Results view

  • Loading branch information...
aelliott committed Apr 26, 2013
1 parent aa6c5b2 commit 2d585da9d1da3b8a82304b0f7f649a6d69d68c47
Showing with 201 additions and 14 deletions.
  1. +4 −0 src/developer/icons.qrc
  2. +12 −5 src/developer/results.cpp
  3. +1 −1 src/developer/results.hpp
  4. +174 −6 src/developer/results.ui
  5. +8 −1 src/developer/run.cpp
  6. +2 −1 src/developer/run.hpp
View
@@ -60,5 +60,9 @@
<file alias="small_tick.png">images/FatCow/16x16/tick.png</file>
<file alias="small_cross.png">images/FatCow/16x16/cross.png</file>
<file alias="small_exclamation.png">images/FatCow/16x16/exclamation.png</file>
<file alias="control_end.png">images/FatCow/32x32/control_end_blue.png</file>
<file alias="control_next.png">images/FatCow/32x32/control_fastforward_blue.png</file>
<file alias="control_previous.png">images/FatCow/32x32/control_rewind_blue.png</file>
<file alias="control_start.png">images/FatCow/32x32/control_start_blue.png</file>
</qresource>
</RCC>
View
@@ -6,16 +6,23 @@
namespace Developer {
Results::Results(QWidget *parent) :
QWidget(parent),
ui(new Ui::Results)
Results::Results(QWidget *parent)
: QWidget(parent)
, _ui(new Ui::Results)
{
ui->setupUi(this);
_ui->setupUi(this);
QStringList items;
items << "Results";
QTreeWidgetItem *root = new QTreeWidgetItem(items);
root->setIcon(0, QIcon(QPixmap(":/icons/application-icon.png")));
_ui->resultsTreeWidget->addTopLevelItem(root);
}
Results::~Results()
{
delete ui;
delete _ui;
}
}
@@ -21,7 +21,7 @@ class Results : public QWidget
~Results();
private:
Ui::Results *ui;
Ui::Results *_ui;
};
}
View
@@ -1,21 +1,189 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<author/>
<comment/>
<exportmacro/>
<class>Results</class>
<widget class="QWidget" name="Results">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>596</width>
<height>431</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="sideBar" native="true">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QTreeWidget" name="resultsTreeWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>170</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>170</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="headerHidden">
<bool>true</bool>
</property>
<column>
<property name="text">
<string>1</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="resultsWidget" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="tracingControls" native="true">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="positionLabel">
<property name="text">
<string>Position X of Y</string>
</property>
</widget>
</item>
<item>
<spacer name="tracingSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>179</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="startButton">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="icons.qrc">:/icons/control_start.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="previousButton">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="icons.qrc">:/icons/control_previous.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="nextButton">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="icons.qrc">:/icons/control_next.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lastButton">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="icons.qrc">:/icons/control_end.png</pixmap>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="Developer::GraphWidget" name="graphWidget"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<pixmapfunction/>
<customwidgets>
<customwidget>
<class>Developer::GraphWidget</class>
<extends>QGraphicsView</extends>
<header>graphview/graphwidget.hpp</header>
</customwidget>
</customwidgets>
<resources>
<include location="icons.qrc"/>
</resources>
<connections/>
</ui>
View
@@ -61,7 +61,7 @@ void Run::setProject(Project *proj)
_ui->addRunConfigurationButton->setEnabled(true);
}
void Run::addRunConfiguration()
RunConfiguration *Run::addRunConfiguration(bool addToProject)
{
if(_initial)
{
@@ -78,6 +78,13 @@ void Run::addRunConfiguration()
RunConfiguration *runConfig = new RunConfiguration(_project,
_ui->runConfigurations);
_ui->runConfigurations->layout()->addWidget(runConfig);
if(addToProject)
{
// Add the run configuration to the project
}
return runConfig;
}
}
View
@@ -14,6 +14,7 @@ namespace Ui {
namespace Developer {
class Project;
class RunConfiguration;
class Run : public QWidget
{
@@ -28,7 +29,7 @@ class Run : public QWidget
void setProject(Project *proj);
public slots:
void addRunConfiguration();
RunConfiguration *addRunConfiguration(bool addToProject = true);
private:
Ui::Run *_ui;

0 comments on commit 2d585da

Please sign in to comment.