29 #include "XmlStackedHandler.h" 33 class QXmlStreamWriter;
36 class ControlDisplayProperties;
102 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
123 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
124 const QString &qName,
const QXmlAttributes &atts);
This represents an ISIS control net in a project-based GUI interface.
The main project for ipce.
void deleteFromDisk()
Delete the control net from disk.
File name manipulation and expansion.
Control(QString cnetFileName, QObject *parent=0)
Create a Control from control net located on disk.
ControlDisplayProperties * m_displayProperties
Contains the display properties for this Control object.
QUuid * m_id
A unique ID for this Control.
void copyToNewProjectRoot(const Project *project, FileName newProjectRoot)
Copies the files of the given Project to the given location.
FileName m_xmlHandlerCnetFolderName
The name of the folder for the control xml.
Nested class used to write the Control object information to an XML file for the purpose of saving an...
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Method to write this Control object's member data to an XML stream.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Method to read the given XML formatted attribute for a Control object into the XmlHandler.
void closeControlNet()
Cleans up the ControlNet pointer.
This is the GUI communication mechanism for cubes.
void openControlNet()
Sets the ControlNet from the control net file name provided in the constructor.
bool isModified()
Has this control been modified?
bool write()
Write control net to disk.
~Control()
Destroys Control object.
XML Handler that parses XMLs in a stack-oriented way.
void updateFileName(Project *)
Change the on-disk file name for this control to be where the control ought to be in the given projec...
ControlNet * controlNet()
Open and return a pointer to the ControlNet for this Control.
XmlHandler(Control *control, FileName cnetFolder)
Constructor for the Control object's XmlHandler.
ControlNet * m_controlNet
A pointer to the ControlNet object associated with this Control object.
QString m_fileName
Project associated with this control.
ControlDisplayProperties * displayProperties()
Access a pointer to the display properties for the control network.
void setModified(bool modified=true)
Sets the modification state of this control.
Namespace for ISIS/Bullet specific routines.
Control * m_xmlHandlerControl
A pointer to the Control object to be read or written.
QString id() const
Access the unique ID associated with this Control.
Manage a stack of content handlers for reading XML files.
QString fileName() const
Access the name of the control network file associated with this Control.