-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
27264ce
commit 9a3a639
Showing
13 changed files
with
491 additions
and
68 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -1,4 +1,59 @@ | ||
#ifndef VAPOUR_DESCRIPTOR_DEVELOP_H | ||
#define VAPOUR_DESCRIPTOR_DEVELOP_H | ||
|
||
|
||
#include"vapour_descriptor.h" | ||
|
||
class VapourDescriptorInput : public VapourDescriptor | ||
{ | ||
public: | ||
VapourDescriptorInput(int in_num,int out_num,QString node_name,int edit_number=1) | ||
:VapourDescriptor(in_num,out_num,node_name,edit_number) | ||
{ | ||
this->interaction = new VapourActionEdit(edit_number); | ||
this->interaction->setGeometry(edge_size, title_height+0.5*edge_size, | ||
width - 2*edge_size,height - 2*edge_size - title_height); | ||
this->proxyContent->setWidget(this->interaction); | ||
} | ||
QPointF getPos() override{ | ||
return this->pos(); | ||
} | ||
void setText(int n,QString t) override{ | ||
this->interaction->edits[n]->setText(t); | ||
} | ||
double getText(int n) override{ | ||
return this->interaction->edits[n]->text().toDouble(); | ||
} | ||
|
||
public: | ||
VapourActionEdit* interaction; | ||
|
||
}; | ||
|
||
class VapourDescriptorOutput : public VapourDescriptor | ||
{ | ||
public: | ||
VapourDescriptorOutput(int in_num,int out_num,QString node_name,int edit_number=1) | ||
:VapourDescriptor(in_num,out_num,node_name,edit_number) | ||
{ | ||
this->interaction = new VapourActionText(edit_number); | ||
this->interaction->setGeometry(edge_size, title_height+0.5*edge_size, | ||
width - 2*edge_size,height - 2*edge_size - title_height); | ||
this->proxyContent->setWidget(this->interaction); | ||
} | ||
QPointF getPos() override{ | ||
return this->pos(); | ||
} | ||
void setText(int n,QString t) override{ | ||
this->interaction->edits[n]->setText(t); | ||
} | ||
double getText(int n) override{ | ||
return this->interaction->edits[n]->text().toDouble(); | ||
} | ||
|
||
public: | ||
VapourActionText* interaction; | ||
|
||
}; | ||
|
||
#endif // VAPOUR_DESCRIPTOR_DEVELOP_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
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
Oops, something went wrong.