GUI Milestone 5
This commit is contained in:
parent
a369381b6c
commit
79cced017e
6 changed files with 228 additions and 20 deletions
|
|
@ -67,6 +67,10 @@ public:
|
|||
void setPendingPosition(const std::string &nodeName, QPointF pos);
|
||||
static WarpNodeType classifyNode(const warppipe::NodeInfo &info);
|
||||
|
||||
void saveLayout(const QString &path) const;
|
||||
bool loadLayout(const QString &path);
|
||||
void autoArrange();
|
||||
|
||||
private:
|
||||
static QString captionForNode(const warppipe::NodeInfo &info);
|
||||
static QVariant styleForNode(WarpNodeType type, bool ghost);
|
||||
|
|
@ -96,4 +100,5 @@ private:
|
|||
bool m_refreshing = false;
|
||||
|
||||
std::unordered_map<std::string, QPointF> m_pendingPositions;
|
||||
std::unordered_map<std::string, QPointF> m_savedPositions;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue