-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
389 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "zflyembodyannotationbundle.h" | ||
|
||
ZFlyEmBodyAnnotationBundle::ZFlyEmBodyAnnotationBundle() | ||
{ | ||
} | ||
|
||
void ZFlyEmBodyAnnotationBundle::addBodyAnnotation( | ||
const ZFlyEmBodyAnnotation &annotation) | ||
{ | ||
m_annotationArray.push_back(annotation); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef ZFLYEMBODYANNOTATIONBUNDLE_H | ||
#define ZFLYEMBODYANNOTATIONBUNDLE_H | ||
|
||
#include <vector> | ||
#include "zflyembodyannotation.h" | ||
|
||
class ZFlyEmBodyAnnotationBundle | ||
{ | ||
public: | ||
ZFlyEmBodyAnnotationBundle(); | ||
|
||
void addBodyAnnotation(const ZFlyEmBodyAnnotation &annotation); | ||
|
||
private: | ||
std::vector<ZFlyEmBodyAnnotation> m_annotationArray; | ||
std::string m_userName; | ||
std::string m_software; | ||
std::string m_description; | ||
}; | ||
|
||
#endif // ZFLYEMBODYANNOTATIONBUNDLE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#include "zflyembodyannotationdialog.h" | ||
#include "ui_zflyembodyannotationdialog.h" | ||
#include "zflyembodyannotation.h" | ||
|
||
ZFlyEmBodyAnnotationDialog::ZFlyEmBodyAnnotationDialog(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::ZFlyEmBodyAnnotationDialog) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
ZFlyEmBodyAnnotationDialog::~ZFlyEmBodyAnnotationDialog() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void ZFlyEmBodyAnnotationDialog::setBodyId(uint64_t bodyId) | ||
{ | ||
m_bodyId = bodyId; | ||
} | ||
|
||
QString ZFlyEmBodyAnnotationDialog::getComment() const | ||
{ | ||
if (ui->orphanCheckBox->isChecked()) { | ||
return "Orphan"; | ||
} | ||
|
||
return ""; | ||
} | ||
|
||
QString ZFlyEmBodyAnnotationDialog::getStatus() const | ||
{ | ||
if (ui->skipCheckBox->isChecked()) { | ||
return "Skip"; | ||
} | ||
|
||
return ""; | ||
} | ||
|
||
QString ZFlyEmBodyAnnotationDialog::getName() const | ||
{ | ||
return ui->nameLineEdit->text(); | ||
} | ||
|
||
QString ZFlyEmBodyAnnotationDialog::getType() const | ||
{ | ||
return ""; | ||
} | ||
|
||
uint64_t ZFlyEmBodyAnnotationDialog::getBodyId() const | ||
{ | ||
return m_bodyId; | ||
} | ||
|
||
ZFlyEmBodyAnnotation ZFlyEmBodyAnnotationDialog::getBodyAnnotation() const | ||
{ | ||
ZFlyEmBodyAnnotation annotation; | ||
annotation.setBodyId(getBodyId()); | ||
annotation.setComment(getComment().toStdString()); | ||
annotation.setStatus(getStatus().toStdString()); | ||
annotation.setName(getName().toStdString()); | ||
annotation.setType(getType().toStdString()); | ||
|
||
return annotation; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef ZFLYEMBODYANNOTATIONDIALOG_H | ||
#define ZFLYEMBODYANNOTATIONDIALOG_H | ||
|
||
#include <QDialog> | ||
|
||
class ZFlyEmBodyAnnotation; | ||
|
||
namespace Ui { | ||
class ZFlyEmBodyAnnotationDialog; | ||
} | ||
|
||
class ZFlyEmBodyAnnotationDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit ZFlyEmBodyAnnotationDialog(QWidget *parent = 0); | ||
~ZFlyEmBodyAnnotationDialog(); | ||
|
||
ZFlyEmBodyAnnotation getBodyAnnotation() const; | ||
|
||
void setBodyId(uint64_t bodyId); | ||
|
||
uint64_t getBodyId() const; | ||
QString getComment() const; | ||
QString getName() const; | ||
QString getType() const; | ||
QString getStatus() const; | ||
|
||
private: | ||
Ui::ZFlyEmBodyAnnotationDialog *ui; | ||
uint64_t m_bodyId; | ||
}; | ||
|
||
#endif // ZFLYEMBODYANNOTATIONDIALOG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>ZFlyEmBodyAnnotationDialog</class> | ||
<widget class="QDialog" name="ZFlyEmBodyAnnotationDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>265</width> | ||
<height>181</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dialog</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="bodyIdLabel"> | ||
<property name="text"> | ||
<string>TextLabel</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QLineEdit" name="nameLineEdit"/> | ||
</item> | ||
<item> | ||
<widget class="QComboBox" name="nameComboBox"/> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
<item> | ||
<widget class="QCheckBox" name="orphanCheckBox"> | ||
<property name="text"> | ||
<string>Orphan</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QCheckBox" name="skipCheckBox"> | ||
<property name="text"> | ||
<string>Skip</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>ZFlyEmBodyAnnotationDialog</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>248</x> | ||
<y>254</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>157</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>rejected()</signal> | ||
<receiver>ZFlyEmBodyAnnotationDialog</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>316</x> | ||
<y>260</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>286</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
</ui> |
Oops, something went wrong.