25 #ifndef WQTNETWORKEDITORPROJECTFILEIO_H
26 #define WQTNETWORKEDITORPROJECTFILEIO_H
31 #include <QtCore/QPoint>
33 #include "core/common/WProjectFileIO.h"
64 virtual bool parse( std::string line,
unsigned int lineNumber );
77 virtual void save( std::ostream& output );
A base class for all parts of OpenWalnut which can be serialized to a project file.
std::shared_ptr< WProjectFileIO > SPtr
Abbreviation for a shared pointer.
Class loading project files.
IO class for writing the network editor meta data for the modules.
std::map< unsigned int, QPoint > ModuleNetworkFlags
Map between module ID and network flags.
QPoint m_bbBR
The bounding coordinates of the loaded grid: top-left.
virtual bool parse(std::string line, unsigned int lineNumber)
This method parses the specified line and interprets it.
QPoint m_bbTL
The bounding coordinates of the loaded grid: top-left.
ModuleNetworkCoordinates m_networkCoords
The mapping of network coordinates for each module.
WQtNetworkEditorProjectFileIO(WQtNetworkEditor *ne)
Default constructor.
virtual SPtr clone(WProjectFile *project) const
Create a clone of the IO.
std::map< unsigned int, QPoint > ModuleNetworkCoordinates
Map between module ID and network coord.
double m_networkScale
Keep scale.
ModuleNetworkFlags m_networkFlags
Keep flags.
virtual void save(std::ostream &output)
Saves the state to the specified stream.
virtual ~WQtNetworkEditorProjectFileIO()
Destructor.
virtual void done()
Called whenever the end of the project file has been reached.
WQtNetworkEditor * m_networkEditor
The network editor to use.
Container widget to hold the WQtNetworkScene.