-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
• added Node::hasDriver() for convenience
• added SchematicElement::id() for convenience, due to this, PortGraphicsItem::id() is removed • one can now only drag a wire in data flow direction i.e. from a data source (output port) to a data sink (input port) • added metamodel::enums::ElementType::FUNCTION • functions of a component are now displayed in the component descriptor hierarchy • elements in the component descriptor hierarchy now use the qt ressource system • since functions are mostly to long to fit in whole, a tool tip display it all • function items in the component hierarchy also got a nice icon
- Loading branch information
Fredo Erxleben
committed
Mar 13, 2015
1 parent
7e5c193
commit 31b6759
Showing
17 changed files
with
194 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ enum class ElementType { | |
CONFIG_BIT_GROUP, | ||
CONFIG_BIT, | ||
PORT, | ||
FUNCTION, | ||
INVALID | ||
}; | ||
|
||
|
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
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,9 @@ | ||
#include "FunctionDescriptor.h" | ||
|
||
using namespace q2d::metamodel; | ||
|
||
FunctionDescriptor::FunctionDescriptor(QString function, ComponentDescriptor* parent) | ||
: ComponentElement(function, parent){ | ||
this->setIcon(QIcon(":/icons/ressources/icons/function.svg")); | ||
this->setToolTip(function); | ||
} |
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,23 @@ | ||
#ifndef FUNCTIONDESCRIPTOR_H | ||
#define FUNCTIONDESCRIPTOR_H | ||
|
||
#include "ComponentElement.h" | ||
|
||
namespace q2d { | ||
namespace metamodel { | ||
|
||
class FunctionDescriptor | ||
: public ComponentElement { | ||
private: | ||
public: | ||
explicit FunctionDescriptor(QString function, ComponentDescriptor* parent); | ||
|
||
virtual int type() const override { | ||
return enums::elementTypeToInt(enums::ElementType::FUNCTION); | ||
} | ||
}; | ||
|
||
} // namespace metamodel | ||
} // namespace q2d | ||
|
||
#endif // FUNCTIONDESCRIPTOR_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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.